h5.vue 514 B

123456789101112131415161718192021222324252627
  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.mine_code == 'zaoquan' && option.workBench == 'pingce'){
  15. this.href = "http://webdevelop.nxjiewei.com/assets/html/pingce/?mine_code=zaoquan&token=" + uni.getStorageSync('Authorization')
  16. }else{
  17. this.href = option.url + "?token="+uni.getStorageSync('Authorization')
  18. }
  19. }
  20. }
  21. </script>
  22. <style lang="scss">
  23. </style>