h5.vue 525 B

1234567891011121314151617181920212223242526272829
  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. }else{
  17. this.href = option.url + "?token="+uni.getStorageSync('Authorization')
  18. console.log(this.href)
  19. }
  20. }
  21. }
  22. </script>
  23. <style lang="scss">
  24. </style>