En route 1 жил өмнө
parent
commit
42e76fe8fa

+ 3 - 1
pages/course/index.vue

@@ -155,7 +155,7 @@
 			}
 		},
 		computed: {
-			...mapGetters(["current"])
+			...mapGetters(["current","hideBuyState"])
 		},
 		methods: {
 			backFunc(item) {
@@ -196,6 +196,7 @@
 				this.$store.state.current = e
 			},
 			initList() {
+				if(!this.hideBuyState){
 				this.$api.goodsList({
 					...this.formData,
 					...this.activeData,
@@ -206,6 +207,7 @@
 					this.goodsList = this.goodsList.concat(res.data.rows)
 					this.total = res.data.total
 				});
+				}
 			},
 
 			tobuy(item) {

+ 13 - 13
pages/index/index.vue

@@ -20,7 +20,7 @@
 				</view>
 			</view>
 		</view>
-		<view class="content" v-if="other.courseH5 == 1 && recommendCourse.length > 0">
+		<view class="content" v-if="!hideBuyState && other.courseH5 == 1 && recommendCourse.length > 0">
 			<view class="header_top">
 				<text class="left">推荐课程</text>
 				<u-tabs class="u-tabs" :list="recommendCourse" :current="currentCourse" bg-color="transparent"
@@ -66,7 +66,7 @@
 				</view>
 			</view>
 		</view>
-		<view class="content" v-if="other.bankH5 == 1 &&recommendBank.length > 0">
+		<view class="content" v-if="!hideBuyState && other.bankH5 == 1 &&recommendBank.length > 0">
 			<view class="header_top">
 				<text class="left">推荐题库</text>
 				<u-tabs class="u-tabs" :list="recommendBank" :current="currentBank" bg-color="transparent"
@@ -392,6 +392,16 @@
 				title: this.header.companyName,
 			});
 			// #endif
+			// #ifdef MP-WEIXIN
+			wx.getSystemInfo({
+				success: function(res) {
+					self.version = res.SDKVersion;
+					self.appCommonConfig({
+						version: self.version,
+					});
+				},
+			});
+			// #endif
 			this.getLocation();
 			this.recommendList()
 			this.dictObj;
@@ -407,20 +417,10 @@
 					});
 				}
 			}
-
-			wx.getSystemInfo({
-				success: function(res) {
-					self.version = res.SDKVersion;
-					console.log("该版本号为: ", self.version);
-				},
-			});
 		},
 		onShow() {
 			this.getInfo(); // 判断有没有关注公众号
 			this.isClickOff(); //关注公众号,每天最多显示1次;当天学员关闭弹窗后,无需再显示
-			this.appCommonConfig({
-				version: this.version,
-			});
 		},
 		onShareAppMessage(res) {
 			return {
@@ -437,7 +437,7 @@
 			}
 		},
 		computed: {
-			...mapGetters(["header", "other", "dictObj", "userInfo", "tenantId"]),
+			...mapGetters(["header", "other", "dictObj", "userInfo", "tenantId", "hideBuyState"]),
 			filterNum: function() {
 				return function(list) {
 					if (list && list.length > 0) {

+ 1 - 1
pages/learn/index.vue

@@ -241,7 +241,7 @@
                 ">
 								温馨提示:当前班级正在申请中,正式开班后方可进行学习,请耐心等待
 							</div>
-							<div v-if="item.officialStatus != 1
+							<div v-if="item.officialStatus != 1 && false
 							">
 								推送失败原因:{{item.pushFailReason || '请先完善个人信息'}}
 							</div>

+ 4 - 4
pages5/mockExam/registrationSuccess.vue

@@ -73,14 +73,14 @@
 		<view class="activity_phone">
 			<view class="titles">活动咨询电话</view>
 			<view class="phone_num">
-				<text @click="call('020-87085982')">020-87085982</text>、
-				<text @click="call('87085983')">87085983</text>
+				<text @click="call('13138489426')">13138489426</text>、
+				<text @click="call('13631379636')">13631379636</text>
 			</view>
 			<view class="titles">报名咨询</view>
 			<view class="phone_num">
-				<text style="margin-right: 20rpx" @click="call('13631379636')">苏老师13631379636
+				<text style="margin-right: 20rpx" @click="call('13434221571')">苏老师13434221571
 				</text>
-				<text @click="call('13138489426')">13138489426</text>
+				<text @click="call('13434221571')">13434221571</text>
 			</view>
 			<view class="titles">联系地址</view>
 			<view class="phone_num">广州市天河区燕岭路123号建设大厦3楼</view>