zm
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -57,7 +57,17 @@
|
||||
<text class="flexbox" style="color: #5f8f7f" v-if="goBuyType == 1">
|
||||
立即续费
|
||||
</text>
|
||||
<text class="saveBtn vipBtn flexbox" v-if="goBuyType == 2">
|
||||
<text
|
||||
class="saveBtn vipBtn flexbox"
|
||||
style="
|
||||
font-weight: bold;
|
||||
padding-top: 6rpx;
|
||||
padding-bottom: 6rpx;
|
||||
background: #00d8df !important;
|
||||
color: #fff;
|
||||
"
|
||||
v-if="goBuyType == 2 || goBuyType == 3"
|
||||
>
|
||||
立即升级
|
||||
</text>
|
||||
|
||||
@@ -143,10 +153,10 @@
|
||||
<view
|
||||
class="not_purchased"
|
||||
v-if="
|
||||
(slotProps.data.isBuy != 1 &&
|
||||
(vip.type == 0 || vip.type == 3)) ||
|
||||
(slotProps.data.isBuy == 0 &&
|
||||
(vip.type == 0 || vip.type == 2)) ||
|
||||
(slotProps.data.isBuy == 1 &&
|
||||
(vip.type == 0 || vip.type == 3) &&
|
||||
(vip.type == 0 || vip.type == 2) &&
|
||||
slotProps.data.endTime)
|
||||
"
|
||||
>
|
||||
@@ -154,8 +164,8 @@
|
||||
|
||||
<text
|
||||
v-if="
|
||||
slotProps.data.isBuy != 1 &&
|
||||
(vip.type == 0 || vip.type == 3)
|
||||
slotProps.data.isBuy == 0 &&
|
||||
(vip.type == 0 || vip.type == 2)
|
||||
"
|
||||
>未购买
|
||||
</text>
|
||||
@@ -163,7 +173,7 @@
|
||||
<text
|
||||
v-if="
|
||||
slotProps.data.isBuy == 1 &&
|
||||
(vip.type == 0 || vip.type == 3) &&
|
||||
(vip.type == 0 || vip.type == 2) &&
|
||||
slotProps.data.endTime
|
||||
"
|
||||
>有效期至{{ slotProps.data.endTime }}
|
||||
@@ -171,8 +181,12 @@
|
||||
</view>
|
||||
|
||||
<view class="right">
|
||||
<!-- slotProps.data.type---------- 0 是免费 1 普通 2 svip -->
|
||||
<u-icon
|
||||
v-if="goBuyType != 1 && slotProps.data.type != 0"
|
||||
v-if="
|
||||
(goBuyType == 0 || goBuyType == 2) &&
|
||||
slotProps.data.type != 0
|
||||
"
|
||||
@click="handleClickGetGoodsList(slotProps.data)"
|
||||
class="editIcon"
|
||||
name="shopping-cart-fill"
|
||||
@@ -183,7 +197,7 @@
|
||||
|
||||
<text
|
||||
v-if="
|
||||
goBuyType != 1 &&
|
||||
(goBuyType == 0 || goBuyType == 2) &&
|
||||
slotProps.data.type == 0 &&
|
||||
!slotProps.data.endTime
|
||||
"
|
||||
@@ -529,7 +543,9 @@ export default {
|
||||
});
|
||||
},
|
||||
getUserInfo() {
|
||||
console.log("111111111111111111111111111");
|
||||
this.$http.post("common/user/getUserInfo").then((res) => {
|
||||
console.log(res, "111111111111111111111111111");
|
||||
if (res.result.userVip) {
|
||||
this.vip = res.result.userVip;
|
||||
} else {
|
||||
@@ -540,14 +556,24 @@ export default {
|
||||
|
||||
switch (this.vip.type) {
|
||||
case 0:
|
||||
this.goBuyTitle = "购买VIP,即可免费观看吴门医述所有课程";
|
||||
this.goBuyTitle = "购买VIP,即可免费观看众妙之门所有课程";
|
||||
this.goBuyType = 0;
|
||||
break;
|
||||
case 1 || 2:
|
||||
case 1:
|
||||
var vipName = "";
|
||||
if (this.vip.type == 1) {
|
||||
vipName = "超级VIP";
|
||||
}
|
||||
|
||||
//超级VIP
|
||||
this.goBuyTitle = `尊贵的${vipName},您的有效期到 ${
|
||||
this.vip.endTime && this.vip.endTime.split(" ")[0]
|
||||
}`;
|
||||
this.goBuyType = 1;
|
||||
break;
|
||||
case 2:
|
||||
var vipName = "";
|
||||
|
||||
if (this.vip.type == 2) {
|
||||
vipName = "吴门医述VIP";
|
||||
}
|
||||
@@ -555,7 +581,7 @@ export default {
|
||||
this.goBuyTitle = `尊贵的${vipName},您的有效期到 ${
|
||||
this.vip.endTime && this.vip.endTime.split(" ")[0]
|
||||
}`;
|
||||
this.goBuyType = 1;
|
||||
this.goBuyType = 2;
|
||||
break;
|
||||
|
||||
case 3:
|
||||
@@ -563,7 +589,7 @@ export default {
|
||||
this.goBuyTitle =
|
||||
"尊贵的众妙之门VIP,升级至超级VIP,即可免费观看吴门医述所有课程";
|
||||
|
||||
this.goBuyType = 2;
|
||||
this.goBuyType = 3;
|
||||
break;
|
||||
}
|
||||
});
|
||||
@@ -753,7 +779,8 @@ export default {
|
||||
if (
|
||||
this.cateList[this.currentCateIndex].isBuy == 1 ||
|
||||
v.isAudition == 1 ||
|
||||
this.vip.type != "0"
|
||||
this.vip.type == "1" ||
|
||||
this.vip.type == "3"
|
||||
) {
|
||||
uni.navigateTo({
|
||||
// url: '../bookShop/commodityDetail?id=' + item.id
|
||||
|
||||
Reference in New Issue
Block a user