coursewareLearning.vue 944 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!-- 课件学习 -->
  2. <template>
  3. <view id="coursewareLearning-web-view">
  4. <!-- <web-view v-if="webViewType" :src="baseUrl + dataText"></web-view> -->
  5. <web-view v-if="webViewType" :src="dataText"></web-view>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. name: "coursewareLearning-web-view",
  11. data() {
  12. return {
  13. webViewType: false,
  14. dataText:'http://192.168.1.10/#/?pageType=learningMaterials&touken=d050fc42-0005-4eff-a3cc-5c3bb76a1d52&coursewareId=2092529570460073986',
  15. }
  16. },
  17. onLoad(option) {
  18. this.$set(this,'dataText',
  19. // uni.getStorageSync('cameraExtranetAgent')+
  20. 'http://192.168.1.8/stream/#/'+
  21. '?pageType=learningMaterials&touken='+uni.getStorageSync('token')+
  22. '&coursewareId='+option.coursewareId
  23. );
  24. this.$set(this,'webViewType',true);
  25. },
  26. mounted() {
  27. },
  28. methods: {
  29. },
  30. }
  31. </script>
  32. <style lang="stylus" scoped>
  33. #coursewareLearning-web-view {
  34. overflow:scroll;
  35. }
  36. </style>