视频
This commit is contained in:
@@ -49,7 +49,8 @@
|
||||
font-size: 26rpx;
|
||||
font-weight: 700;
|
||||
">
|
||||
<text style="font-size: 20rpx">免费</text>
|
||||
<text style="font-size: 20rpx" v-if="slotProps.row.courseCatalogueEntityList[0].type==2">超 V 专享</text>
|
||||
<text style="font-size: 20rpx" v-else>免费</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="curriculum_tag_info_box price_box" v-else>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
}`"
|
||||
>
|
||||
<view
|
||||
:style="`background:#000;height:200px;`"
|
||||
:style="`background:${currentVideo.type==2?'#959698':'#000'};height:200px;`"
|
||||
v-if="videoArray.length > 0"
|
||||
>
|
||||
<common-video
|
||||
@@ -25,6 +25,7 @@
|
||||
:currentVideoId="currentVideoId"
|
||||
>
|
||||
</common-video>
|
||||
|
||||
<view style="color: #fff"></view>
|
||||
</view>
|
||||
|
||||
|
||||
@@ -184,8 +184,8 @@
|
||||
<!-- slotProps.data.type---------- 0 是免费 1 普通 2 svip -->
|
||||
<u-icon
|
||||
v-if="
|
||||
(goBuyType == 0 || goBuyType == 2) &&
|
||||
slotProps.data.type != 0
|
||||
(slotProps.data.type != 0 && goBuyType != 1) ||
|
||||
(slotProps.data.type == 2 && goBuyType != 1)
|
||||
"
|
||||
@click="handleClickGetGoodsList(slotProps.data)"
|
||||
class="editIcon"
|
||||
@@ -252,7 +252,7 @@
|
||||
<text
|
||||
class="fdButtonBox aui-text-success"
|
||||
style="background: none"
|
||||
v-if="slotProps.row.isAudition == 1 "
|
||||
v-if="slotProps.row.isAudition == 1"
|
||||
>试听</text
|
||||
>
|
||||
|
||||
@@ -673,30 +673,45 @@ export default {
|
||||
this.$forceUpdate();
|
||||
});
|
||||
} else {
|
||||
this.$http
|
||||
.request({
|
||||
url: this.urlList.goodsList,
|
||||
method: "POST",
|
||||
data: {
|
||||
id: v.id,
|
||||
},
|
||||
header: {
|
||||
//默认 无 说明:请求头
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
})
|
||||
.then(async (res) => {
|
||||
if (res.productList.length > 0) {
|
||||
this.goodsList = res.productList;
|
||||
this.selectGoodsData = this.goodsList[0];
|
||||
this.$refs.commonSelectGoods.open();
|
||||
this.show = true;
|
||||
} else {
|
||||
this.$commonJS.showToast("此课程暂无购买方式");
|
||||
}
|
||||
if (v.type == 2) {
|
||||
// 超v
|
||||
|
||||
this.$forceUpdate();
|
||||
});
|
||||
if (this.goBuyType != 1) {
|
||||
uni.showModal({
|
||||
title: "提示",
|
||||
content: "当前课程目录是超V专享,开通超V可观看",
|
||||
confirmText: "好的",
|
||||
showCancel: false,
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (this.goBuyType == 0 || this.goBuyType == 2) {
|
||||
this.$http
|
||||
.request({
|
||||
url: this.urlList.goodsList,
|
||||
method: "POST",
|
||||
data: {
|
||||
id: v.id,
|
||||
},
|
||||
header: {
|
||||
//默认 无 说明:请求头
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
})
|
||||
.then(async (res) => {
|
||||
if (res.productList.length > 0) {
|
||||
this.goodsList = res.productList;
|
||||
this.selectGoodsData = this.goodsList[0];
|
||||
this.$refs.commonSelectGoods.open();
|
||||
this.show = true;
|
||||
} else {
|
||||
this.$commonJS.showToast("此课程暂无购买方式");
|
||||
}
|
||||
|
||||
this.$forceUpdate();
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
hancleModalConfirm() {
|
||||
|
||||
Reference in New Issue
Block a user