XSLu08042 3 周之前
父節點
當前提交
8e9d61f962
共有 2 個文件被更改,包括 4 次插入5 次删除
  1. 1 1
      pages_course/components/ques.vue
  2. 3 4
      pages_course/components/yk-screenRecord/yk-screenRecord.vue

+ 1 - 1
pages_course/components/ques.vue

@@ -5,7 +5,7 @@
 			<view class="ques-content-tit" v-if="showTreatment==0" :style="{ color: currentId==2? '#FF5C03':'#222',fontSize: fontSize(36)}" @click="choose(2)">活动</view>
 			<view class="ques-content-tit" v-if="showNote==1&&courseNote" :style="{ color: currentId==1 ? '#FF5C03':'#222',fontSize: fontSize(36)}" @click="choose(1)">笔记</view>
 		</view>
-		<view v-if="currentId==1&&showNote==1&&courseNote" class="note" :style="{ fontSize: fontSize(32)}">{{courseNote}}</view>
+		<view v-if="currentId==1&&showNote==1&&courseNote" class="note" :style="{ fontSize: fontSize(32)}"><text>{{courseNote}}</text></view>
 		<template v-if="currentId==2&&showTreatment==0">
 			<goodsList ref="goodsList" :treatmentPackage="treatmentPackage" :urlOption="urlOption"></goodsList>
 		</template>

+ 3 - 4
pages_course/components/yk-screenRecord/yk-screenRecord.vue

@@ -16,10 +16,6 @@
 			this.AllowScreenshots()
 		},
 		beforeDestroy() {
-			uni.showToast({
-				title: '2223',
-				icon: 'error'
-			})
 			this.AllowScreenshots()
 		},
 		methods: {
@@ -97,6 +93,7 @@
 			},
 			//安卓端允许截屏  
 			AllowScreenshots() {
+				let _this = this;
 				uni.getSystemInfo({
 					success: function(e) {
 						// #ifdef MP-WEIXIN
@@ -141,11 +138,13 @@
 						// #endif
 					}
 				})
+				// #ifdef APP-PLUS
 				let osname = plus.os.name;
 				if (osname == "Android") {
 					var activity = plus.android.runtimeMainActivity();
 					plus.android.invoke(plus.android.invoke(activity, "getWindow"), "clearFlags", 0x00002000);
 				}
+				// #endif
 			}
 		}
 	}