h5.vue 622 B

12345678910111213141516171819202122232425262728293031
  1. <template>
  2. <view>
  3. <web-view :src="href"></web-view>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. href: ""
  11. };
  12. },
  13. onLoad(option) {
  14. if (option.url == 'jinjiaqu_pingce') {
  15. this.href = 'http://webdevelop.nxjiewei.com/assets/html/pingce/?mine_code=jinjiaqu&token=' + uni.getStorageSync('Authorization') + '#/'
  16. }if (option.url == 'https://xw.tianqi.qq.com/') {
  17. this.href = 'https://xw.tianqi.qq.com/'
  18. }else{
  19. this.href = option.url + "?token="+uni.getStorageSync('Authorization')
  20. console.log(this.href)
  21. }
  22. }
  23. }
  24. </script>
  25. <style lang="scss">
  26. </style>