courseLearning.vue 747 B

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