|
@@ -194,10 +194,7 @@
|
|
|
</template>
|
|
|
|
|
|
<template v-else>
|
|
|
- <!-- 班级有效期过了 -->
|
|
|
- <template
|
|
|
- v-if="item.classEndTime && item.classEndTime < sysTime"
|
|
|
- >
|
|
|
+ <template v-if="item.classEndTime && item.classEndTime < sysTime">
|
|
|
<view class="class-warm">
|
|
|
<u-icon
|
|
|
class="class-warm__icon"
|
|
@@ -224,11 +221,13 @@
|
|
|
)
|
|
|
}}</view
|
|
|
>
|
|
|
- <view class="date">班级状态:已过期 </view>
|
|
|
- <!-- <view class="date"
|
|
|
- >班级状态:已过期,有疑问请联系
|
|
|
- <text @click="call()">020-87085982</text></view
|
|
|
- > -->
|
|
|
+ <view class="date"
|
|
|
+ >班级状态:已过期
|
|
|
+ <template v-if="eduPhone">
|
|
|
+ <text>,有疑问请联系</text>
|
|
|
+ <text @click="call()">{{ eduPhone }}</text>
|
|
|
+ </template>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -265,11 +264,14 @@
|
|
|
)
|
|
|
}}</view
|
|
|
>
|
|
|
- <view class="date">班级状态:未到学习时间 </view>
|
|
|
- <!-- <view class="date"
|
|
|
- >班级状态:未到学习时间,有疑问请联系
|
|
|
- <text @click="call()">020-87085982</text></view
|
|
|
- > -->
|
|
|
+ <view class="date"
|
|
|
+ >班级状态:未到学习时间
|
|
|
+
|
|
|
+ <template v-if="eduPhone">
|
|
|
+ <text>,有疑问请联系</text>
|
|
|
+ <text @click="call()">{{ eduPhone }}</text>
|
|
|
+ </template>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -818,6 +820,9 @@ export default {
|
|
|
allCourse() {
|
|
|
return this.courseLists.length || this.livingLists.length ? true : false;
|
|
|
},
|
|
|
+ eduPhone() {
|
|
|
+ return this.userInfo.eduPhone;
|
|
|
+ },
|
|
|
},
|
|
|
onLoad() {
|
|
|
// 1668873600 ,2022.11.20的时间戳
|
|
@@ -1035,9 +1040,8 @@ export default {
|
|
|
|
|
|
// 进入视频课
|
|
|
this.activeItem = item;
|
|
|
- if (item.interfaceAccountId > 0) {
|
|
|
+ if (!item.interfaceAccountId) {
|
|
|
//学习账号已开通
|
|
|
-
|
|
|
if (item.learnStatus > 0) {
|
|
|
//跳转第三方h5
|
|
|
uni.navigateTo({
|
|
@@ -1045,10 +1049,10 @@ export default {
|
|
|
});
|
|
|
return;
|
|
|
} else {
|
|
|
- // ,有疑问,请联系020-87085982
|
|
|
+ const text = this.eduPhone ? ",有疑问,请联系" + this.eduPhone : "";
|
|
|
uni.showModal({
|
|
|
showCancel: false,
|
|
|
- content: "您的学习账号未开通,请稍后再尝试,有疑问!",
|
|
|
+ content: "您的学习账号未开通,请稍后再尝试" + text,
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
@@ -1241,11 +1245,13 @@ export default {
|
|
|
if (res.data.data.pushInfo) {
|
|
|
resolve(true);
|
|
|
} else {
|
|
|
- // ,有疑问,请联系020-87085982
|
|
|
+ const text = this.eduPhone
|
|
|
+ ? ",有疑问,请联系" + this.eduPhone
|
|
|
+ : "";
|
|
|
uni.showModal({
|
|
|
showCancel: false,
|
|
|
title: "提示",
|
|
|
- content: "开通信息推送不成功,无法进入学习!",
|
|
|
+ content: "开通信息推送不成功,无法进入学习" + text,
|
|
|
});
|
|
|
resolve(false);
|
|
|
}
|
|
@@ -1371,11 +1377,13 @@ export default {
|
|
|
title: "提交成功",
|
|
|
});
|
|
|
} else {
|
|
|
- // ,有疑问,请联系020-87085982
|
|
|
+ const text = this.eduPhone
|
|
|
+ ? ",有疑问,请联系" + this.eduPhone
|
|
|
+ : "";
|
|
|
uni.showModal({
|
|
|
showCancel: false,
|
|
|
title: "提示",
|
|
|
- content: "开通信息推送不成功,无法进入学习!",
|
|
|
+ content: "开通信息推送不成功,无法进入学!" + text,
|
|
|
});
|
|
|
}
|
|
|
this.showUserConfirmInfo = false;
|
|
@@ -1394,9 +1402,11 @@ export default {
|
|
|
clearInterval(this.confirmTimer);
|
|
|
},
|
|
|
call() {
|
|
|
+ // #ifdef MP-WEIXIN
|
|
|
uni.makePhoneCall({
|
|
|
phoneNumber: "020-87085982", //仅为示例
|
|
|
});
|
|
|
+ // #endif
|
|
|
},
|
|
|
closePop() {
|
|
|
this.appointTestShow = false;
|