暂存
This commit is contained in:
@@ -113,7 +113,7 @@
|
||||
<!-- end -->
|
||||
<template v-if="librayList[curIndex]">
|
||||
<view :class="['endBox',(userMsg.vip == 1 || userMsg.vip == 2) ? 'vipBgColor':'']"
|
||||
v-if="librayList[curIndex].isBuy == 1 || userMsg.vip != 0">
|
||||
v-if="librayList[curIndex].isBuy == 1 || userMsg.vip == 2 || userMsg.vip == 1">
|
||||
<!-- 已经可以观看的情况 -->
|
||||
<view class="box">
|
||||
<view class="flexbox" v-if="userMsg.vip == 1 || userMsg.vip == 2">
|
||||
@@ -181,7 +181,7 @@
|
||||
</view>
|
||||
<view class="shitingTag">
|
||||
<u-icon
|
||||
v-if="librayList[curIndex].isBuy == 0 && userMsg.vip == 0 && item.isAudition == 0"
|
||||
v-if="librayList[curIndex].isBuy == 0 && (userMsg.vip == 0 || userMsg.vip == 3) && item.isAudition == 0"
|
||||
name="lock" color="#258feb" size="28"></u-icon>
|
||||
</view>
|
||||
|
||||
@@ -1293,13 +1293,7 @@
|
||||
this.$forceUpdate();
|
||||
this.pageTitle = this.course.title;
|
||||
this.librayList = [...res.data.catalogues];
|
||||
console.log('获取课程详情=》',res.data);
|
||||
// for (let i = 0; i < that.librayList.length; i++) {
|
||||
// var list = await that.getChapterList(that.librayList[i]);
|
||||
// console.log("list at line 1222:", list);
|
||||
// that.courseList[i] = [...list];
|
||||
// // console.log("that.courseList at line 1238:", that.courseList);
|
||||
// }
|
||||
console.log('获取课程详情=》',res.data);
|
||||
that.$forceUpdate();
|
||||
if (this.librayList.length > 0) {
|
||||
if(this.catalogueId){
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
<view class="newBox">
|
||||
<view :class="['item','flexbox', userMsg.vip != '0'&& item.isBuy != 1 ? 'blueBorder':'']" v-for="(item, index) in MyCourseList.list" :key="index"
|
||||
>
|
||||
<view class="vipTag" v-if="userMsg.vip != '0' && item.isBuy != 1">
|
||||
<view class="vipTag" v-if="(userMsg.vip == '1' || userMsg.vip == '2') && item.isBuy != 1">
|
||||
VIP畅学
|
||||
</view>
|
||||
<!-- <view class="imgcontainer" :style="{backgroundImage:surl(item.image)}"> -->
|
||||
@@ -505,16 +505,18 @@
|
||||
// console.log('正在执行,未完成')
|
||||
// return
|
||||
// }
|
||||
this.MyCourseList.flag = true
|
||||
$http.request({
|
||||
url: "medical/course/getUserCourseBuy",
|
||||
method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
|
||||
data: {
|
||||
var data = {
|
||||
"limit": 10,
|
||||
"title": this.searchValue,
|
||||
"medicalId": this.medicalId,
|
||||
"page": this.MyCourseList.page
|
||||
},
|
||||
}
|
||||
console.log('搜索的内容',data);
|
||||
this.MyCourseList.flag = true
|
||||
$http.request({
|
||||
url: "medical/course/getUserCourseBuy",
|
||||
method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
|
||||
data,
|
||||
header: { //默认 无 说明:请求头
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user