En route 1 tahun lalu
induk
melakukan
32569e9f28
3 mengubah file dengan 11 tambahan dan 7 penghapusan
  1. 2 2
      common/config.js
  2. 4 3
      pages/learn/index.vue
  3. 5 2
      pages3/polyv/detail.vue

+ 2 - 2
common/config.js

@@ -7,8 +7,8 @@ const test = {
 	tenantId: "867735392558919680", //详粤云学堂
 	appid: "wxd3c8ae80cf43a305", 
 };
-const index = 0; // 测试环境
-// const index = 1; // 祥粤云学堂1 
+// const index = 0; // 测试环境
+const index = 1; // 祥粤云学堂1 
 // const index = 2 // 祥粤学堂
 // const index = 3 // 勘设云学堂1
 // const index = 4 // 中正学堂1

+ 4 - 3
pages/learn/index.vue

@@ -381,9 +381,10 @@
 									@click="toBuyQuestionBank(item)">
 									<view class="exam_word ones">购买题库</view>
 								</view>
-								<view class="box_appoint" v-if="item.examApplyGoodsList" @click="appointment(item)">
+								<view class="box_appoint" v-if="item.examApplyGoodsList && item.examApplyGoodsList.length > 0 &&
+                      item.subscribeSign != 0" @click="appointment(item)">
 									<view class="exam_word ones">{{
-                    item.subscribeSign == 4 ? "预约记录" : "预约考试"
+                    item.subscribeSign == 1 ? "预约考试" : "预约记录"
                   }}</view>
 								</view>
 								<view class="box_appoint" v-if="
@@ -623,7 +624,7 @@
 				}) => {
 					let text = "";
 					let color = "";
-					if (periodStatus === -1 || educationName == '考前培训') {
+					if (periodStatus === -1) {
 						let index = 0;
 						if (!studyStatus) {
 							index = 0;

+ 5 - 2
pages3/polyv/detail.vue

@@ -359,8 +359,6 @@
 				console.log("解析后的option.obj", JSON.parse(decodeURIComponent(option.obj)))
 				option = JSON.parse(decodeURIComponent(option.obj));
 			}
-			// 进行学习后,保存标识,用于检查是否二建15天提示弹窗弹出
-			this.saveLoaclCheckClass(Number(option.orderGoodsId))
 			// 请求商品类型并判断是否是小程序环境
 			await this.orderGetViewSign(option)
 			if (option.isOther) {
@@ -400,6 +398,11 @@
 			}
 			// 公众号模板消息的数据埋点
 			informId && this.clickOfficial(informId);
+			// 进行学习后,保存标识,用于检查是否二建15天提示弹窗弹出
+			if (!this.userInfo) {
+				await this.$store.dispatch('getUserInfo')
+			}
+			this.saveLoaclCheckClass(Number(option.orderGoodsId))
 			this.init();
 		},
 		async onShow() {