h5.vue 533 B

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