redirect.vue 514 B

12345678910111213141516171819202122232425262728293031
  1. <template>
  2. <view>
  3. </view>
  4. </template>
  5. <script>
  6. export default {
  7. data() {
  8. return {
  9. }
  10. },
  11. onLoad({token, sharecode, is_channel, is_notice, print}){
  12. this.$api.getServiceurl({token}).then(({code, data}) => {
  13. if(print){
  14. console.log(data)
  15. return
  16. }
  17. location.href = `${data}/h5/#/pages/tabbar/index?token=${token || ''}&sharecode=${sharecode || ''}&is_channel=${is_channel || ''}&is_notice=${is_notice || ''}`
  18. })
  19. },
  20. methods: {
  21. }
  22. }
  23. </script>
  24. <style>
  25. </style>