|
|
@@ -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) {
|