signature - 副本.vue 834 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. // 手写签名H5地址
  11. href:'',
  12. mine_code:"",
  13. staff_num:'',
  14. Authorization:""
  15. }
  16. },
  17. onLoad() {
  18. // 初始化当前煤矿编码
  19. this.mine_code = uni.getStorageSync('mine_code')
  20. // 用户工号
  21. this.staff_num = uni.getStorageSync('user').staff_num
  22. this.Authorization = uni.getStorageSync('token_type') + ' ' + uni.getStorageSync('Authorization')
  23. // console.log(this.Authorization)
  24. // console.log(this.staff_num)
  25. this.href = "http://anstatic.nxmy.com:8011/assets/html/zhks-quankuang/signature?staff=" + this.staff_num + "&token=" + this.Authorization + "&mine_code=" + this.mine_code
  26. }
  27. }
  28. </script>
  29. <style scoped="true" lang="scss">
  30. </style>