chemicalsInstructionsVideo.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <view id="chemicalsInstructionsVideo">
  3. <web-view :src="webViewUrl" v-if="pageType"></web-view>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. name: "chemicalsInstructionsVideo",
  9. data() {
  10. return {
  11. webViewUrl:'',
  12. pageType:false,
  13. }
  14. },
  15. onLoad(option) {
  16. if(uni.getStorageSync('weChatProgramVersion')){
  17. this.$set(this,'webViewUrl','https://labcontrol.nwafu.edu.cn/stream/#/?chemicalsInstructionsVideo');
  18. this.$set(this,'pageType',true);
  19. }else{
  20. this.$set(this,'webViewUrl','');
  21. this.$set(this,'pageType',false);
  22. }
  23. },
  24. mounted() {
  25. },
  26. methods: {
  27. },
  28. }
  29. </script>
  30. <style lang="stylus" scoped>
  31. #chemicalsInstructionsVideo {
  32. background-color: #EBEBEB;
  33. padding:40rpx 0;
  34. .max-big-video-box{
  35. width:690rpx;
  36. margin:0 30rpx 40rpx;
  37. background-color: #fff;
  38. border-radius:20rpx;
  39. overflow: hidden;
  40. .video-box{
  41. width:690rpx;
  42. height:300rpx;
  43. }
  44. .video-title-p{
  45. height:76rpx;
  46. line-height:70rpx;
  47. font-size:30rpx;
  48. color:#333;
  49. padding-left:20rpx;
  50. }
  51. }
  52. }
  53. </style>