video_monitor.vue 807 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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://webdevelop.nxjiewei.com/assets/html/video/?mine_code=" + option.mine_code
  15. this.get_product_data_query_power()
  16. },
  17. methods:{
  18. get_product_data_query_power(){
  19. this.$p_api.product_data_query_power({
  20. staff_num: uni.getStorageSync('user').staff_num,
  21. data_module: "spjk"
  22. }).then((res)=>{
  23. if(res.data.content.status){
  24. console.log("可查看")
  25. }else{
  26. uni.showToast({
  27. icon:"none",
  28. title:"没有查看权限!"
  29. })
  30. setTimeout(()=>{
  31. uni.navigateBack()
  32. },1000)
  33. }
  34. })
  35. },
  36. }
  37. }
  38. </script>
  39. <style lang="scss">
  40. </style>