| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <!-- 课件学习 -->
- <template>
- <view id="coursewareLearning-web-view">
- <!-- <web-view v-if="webViewType" :src="baseUrl + dataText"></web-view> -->
- <web-view v-if="webViewType" :src="dataText"></web-view>
- </view>
- </template>
- <script>
- export default {
- name: "coursewareLearning-web-view",
- data() {
- return {
- webViewType: false,
- dataText:'',
- }
- },
- onLoad(option) {
- if(uni.getStorageSync('weChatProgramVersion')){
- this.$set(this,'dataText',
- uni.getStorageSync('cameraExtranetAgent')+
- // 'http://192.168.1.8/stream/#/'+
- '?pageType=learningMaterials&touken='+uni.getStorageSync('token')+
- '&coursewareId='+option.coursewareId
- );
- this.$set(this,'webViewType',true);
- }else{
- this.$set(this,'dataText','');
- this.$set(this,'webViewType',false);
- }
- },
- mounted() {
- },
- methods: {
-
- },
- }
- </script>
- <style lang="stylus" scoped>
- #coursewareLearning-web-view {
- overflow:scroll;
- }
- </style>
|