apply.vue 889 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. mine_code:""
  12. };
  13. },
  14. onLoad(option) {
  15. // 初始化当前煤矿编码
  16. this.mine_code = uni.getStorageSync('mine_code')
  17. this.Authorization = uni.getStorageSync('token_type') + ' ' + uni.getStorageSync('Authorization')
  18. // 设置标题
  19. uni.setNavigationBarTitle({
  20. title: option.title
  21. })
  22. console.log(option.id)
  23. // this.href = "http://tysc.tianyuyezi.com/apply?id=" + option.id + "&token=" + this.Authorization
  24. this.href = "http://anstatic.nxmy.com:8011/assets/html/zhks-quankuang/apply?id=" + option.id + "&token=" + this.Authorization + "&mine_code=" + this.mine_code
  25. },
  26. }
  27. </script>
  28. <style lang="scss">
  29. .content {
  30. width: 749rpx;
  31. box-sizing: border-box;
  32. padding: 30px 24rpx;
  33. }
  34. </style>