修改
This commit is contained in:
@@ -34,33 +34,31 @@
|
||||
</view>
|
||||
</view> -->
|
||||
<view
|
||||
style="font-size: 24rpx;line-height: 40rpx;"
|
||||
style="font-size: 24rpx; line-height: 40rpx"
|
||||
class="learning_image_right"
|
||||
v-if="currentCateIndex != 2"
|
||||
@click.stop="
|
||||
slotProps.row.isStudying == 1 || currentCateIndex == 0
|
||||
? openCancelCollection(slotProps.row)
|
||||
: handlecollection(slotProps.row)
|
||||
"
|
||||
>
|
||||
<text
|
||||
style="background-color: #adecf7"
|
||||
v-if="slotProps.row.isStudying == 1 || currentCateIndex == 0"
|
||||
@click.native.stop="openCancelCollection(slotProps.row)"
|
||||
>
|
||||
移出正在学习</text
|
||||
>
|
||||
<text
|
||||
v-else
|
||||
style="font-size: 24rpx"
|
||||
@click.native.stop="handlecollection(slotProps.row)"
|
||||
>
|
||||
加入正在学习</text
|
||||
>
|
||||
<text v-else style="font-size: 24rpx"> 加入正在学习</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view style="overflow: hidden">
|
||||
<view class="feng" style="position: relative;">
|
||||
<view class="feng" style="position: relative">
|
||||
<!-- <view v-if="currentCateIndex==0" class="delisted"
|
||||
>已过期</view
|
||||
> -->
|
||||
|
||||
|
||||
<image
|
||||
v-if="slotProps.row.image"
|
||||
:src="slotProps.row.image"
|
||||
@@ -77,17 +75,19 @@
|
||||
"
|
||||
>暂无封面图</view
|
||||
>
|
||||
|
||||
|
||||
<view v-if="currentCateIndex==2" style="font-size: 24rpx;position: absolute;" class="learning_image_right delisted">
|
||||
|
||||
<view
|
||||
v-if="currentCateIndex == 2"
|
||||
style="font-size: 24rpx; position: absolute"
|
||||
class="learning_image_right delisted"
|
||||
>
|
||||
<text style="background-color: red; color: #fff"> 再次学习</text>
|
||||
</view>
|
||||
</view
|
||||
>
|
||||
</view>
|
||||
<view class="cate_right">
|
||||
<view
|
||||
class="related_courses_name "
|
||||
:style="`${currentCateIndex==2 ? 'color:#c0c4cc' : ''}`"
|
||||
class="related_courses_name"
|
||||
:style="`${currentCateIndex == 2 ? 'color:#c0c4cc' : ''}`"
|
||||
>{{ slotProps.row.title }}</view
|
||||
>
|
||||
|
||||
@@ -166,22 +166,21 @@
|
||||
flex-direction: column;
|
||||
margin-bottom: 10rpx;
|
||||
"
|
||||
><view
|
||||
><view
|
||||
class=""
|
||||
v-if="item.isBuy!=1"
|
||||
v-if="item.isBuy != 1"
|
||||
style="color: #969696; font-size: 24rpx"
|
||||
>
|
||||
未购买 </view
|
||||
>
|
||||
未购买
|
||||
</view>
|
||||
<view
|
||||
class=""
|
||||
v-if="item.lastStudyTime"
|
||||
style="color: #969696; font-size: 24rpx"
|
||||
>
|
||||
上次学习时间:{{ item.lastStudyTime }} </view
|
||||
>
|
||||
|
||||
|
||||
上次学习时间:{{ item.lastStudyTime }}
|
||||
</view>
|
||||
|
||||
<view
|
||||
class=""
|
||||
style="color: #969696; font-size: 24rpx"
|
||||
@@ -254,7 +253,16 @@ export default {
|
||||
console.log(res, "7777777777777777777");
|
||||
this.signShow = false;
|
||||
if (res.code == 0) {
|
||||
this.$emit("refresh");
|
||||
if (this.currentCateIndex == 0) {
|
||||
this.$emit("refresh");
|
||||
} else {
|
||||
this.dataList.map((e) => {
|
||||
if (e.id == this.selectCurriculum.id) {
|
||||
e.isStudying = 0;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// that.cateIconList = res.labels ? res.labels : [];
|
||||
}
|
||||
});
|
||||
@@ -285,7 +293,12 @@ export default {
|
||||
})
|
||||
.then(async (res) => {
|
||||
if (res.code == 0) {
|
||||
this.$emit("refresh");
|
||||
this.dataList.map((e) => {
|
||||
if (e.id == row.id) {
|
||||
e.isStudying = 1;
|
||||
}
|
||||
});
|
||||
// this.$emit("refresh");
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user