h5.vue 619 B

12345678910111213141516171819202122232425
  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. // this.href = 'http://web.nxjiewei.com/#/ningdongyunying/puzzle/puzzles?token=' + uni.getStorageSync('Authorization')
  15. // this.href = 'http://anstatic.nxmy.com:8011/assets/html/zhks-quankuang/ceshi/?token=' + uni.getStorageSync('Authorization')
  16. this.href = "http://web.nxjiewei.com/#/ningdongyunying/puzzle/puzzle-info?id="+ option.id +"&staff_num=" + uni.getStorageSync('user').staff_num
  17. }
  18. }
  19. </script>
  20. <style lang="scss">
  21. </style>