课程列表显示已读未读
This commit is contained in:
2
App.vue
2
App.vue
@@ -312,7 +312,7 @@ export default {
|
|||||||
|
|
||||||
/* 以下样式用于 hello uni-app 演示所需 */
|
/* 以下样式用于 hello uni-app 演示所需 */
|
||||||
page {
|
page {
|
||||||
background-color: #efeff4;
|
background-color: #f5f5f5;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
/* line-height: 1.8; */
|
/* line-height: 1.8; */
|
||||||
|
|||||||
@@ -208,6 +208,16 @@
|
|||||||
</view>
|
</view>
|
||||||
<br clear="both" />
|
<br clear="both" />
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<view class="orderContent" v-if="orderContet.orderType == 'aiVip'||orderContet.orderType == 'upgradeAiVip'" style=" display: flex; align-items: center; justify-content: center;">
|
||||||
|
<image src="/static/icon/order_vip.png" mode="aspectFill" style="width: 100rpx; height: 100rpx; flex-shrink: 0;"></image>
|
||||||
|
<view class="itemJian">
|
||||||
|
<view class="orderTitle" style="line-height: 46rpx; margin-bottom: 0;">
|
||||||
|
{{ orderContet.aiBuyConfig.title }}<span style=" color: red;">({{ orderContet.aiBuyConfig.count }}次)<span v-if="orderContet.orderType=='upgradeAiVip'">(VIP升级)</span></span>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
<view
|
<view
|
||||||
class="orderContent"
|
class="orderContent"
|
||||||
v-else-if="orderContet.orderType == 'point'"
|
v-else-if="orderContet.orderType == 'point'"
|
||||||
|
|||||||
@@ -1644,7 +1644,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.commonDetailPage {
|
.commonDetailPage {
|
||||||
background-color: $themeBgColor;
|
background-color: #f5f5f5;
|
||||||
height: calc(100vh);
|
height: calc(100vh);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -815,10 +815,12 @@ export default {
|
|||||||
//获取商品信息
|
//获取商品信息
|
||||||
// await this.getGoodsDataInfo();
|
// await this.getGoodsDataInfo();
|
||||||
await this.initPrepareOrder();
|
await this.initPrepareOrder();
|
||||||
this.$nextTick(async () => {
|
|
||||||
if (this.pageType == "vip") {
|
if (this.pageType == "vip") {
|
||||||
|
console.log(111)
|
||||||
await this.getTotalPrice();
|
await this.getTotalPrice();
|
||||||
} else {
|
} else {
|
||||||
|
console.log(222)
|
||||||
await this.getVipFei();
|
await this.getVipFei();
|
||||||
await this.getDistrictAmount();
|
await this.getDistrictAmount();
|
||||||
await this.getActiveCouponList();
|
await this.getActiveCouponList();
|
||||||
@@ -826,6 +828,7 @@ export default {
|
|||||||
|
|
||||||
var list = [...this.goodsDataList];
|
var list = [...this.goodsDataList];
|
||||||
list = list.map((e) => e.goodsType);
|
list = list.map((e) => e.goodsType);
|
||||||
|
console.log(333)
|
||||||
this.haveCourse = list.some((ele) => ele === "05");
|
this.haveCourse = list.some((ele) => ele === "05");
|
||||||
if (this.options.sourceType == "curriculum") {
|
if (this.options.sourceType == "curriculum") {
|
||||||
this.goToInfo = {
|
this.goToInfo = {
|
||||||
@@ -838,7 +841,6 @@ export default {
|
|||||||
type: 1,
|
type: 1,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
|
||||||
},
|
},
|
||||||
async getVipFei() {
|
async getVipFei() {
|
||||||
let key = [];
|
let key = [];
|
||||||
|
|||||||
@@ -172,7 +172,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template slot="contentList" slot-scope="slotProps">
|
<template slot="contentList" slot-scope="slotProps">
|
||||||
|
|
||||||
<view
|
<view
|
||||||
v-if="
|
v-if="
|
||||||
userVip == null &&
|
userVip == null &&
|
||||||
@@ -227,12 +226,9 @@
|
|||||||
>
|
>
|
||||||
<template slot="labelSlot" slot-scope="slotProps1">
|
<template slot="labelSlot" slot-scope="slotProps1">
|
||||||
<view
|
<view
|
||||||
:style="`${
|
:style="`${ slotProps1.row.isAudition==1|| slotProps1.row.isLearned==1||slotProps1.row.isLearned==0
|
||||||
slotProps1.rowIndex < 3
|
|
||||||
? 'width:calc(100% - 100rpx);float:left;'
|
? 'width:calc(100% - 100rpx);float:left;'
|
||||||
: 'width:100%;'
|
: 'width:100%;'}`">
|
||||||
}`"
|
|
||||||
>
|
|
||||||
<text
|
<text
|
||||||
:class="`${
|
:class="`${
|
||||||
slotProps1.row.viewFlg == 1 ? 'aui-text-success' : ''
|
slotProps1.row.viewFlg == 1 ? 'aui-text-success' : ''
|
||||||
@@ -247,10 +243,16 @@
|
|||||||
<text
|
<text
|
||||||
class="fdButtonBox aui-text-success"
|
class="fdButtonBox aui-text-success"
|
||||||
style="background: none"
|
style="background: none"
|
||||||
v-if="slotProps1.row.isAudition == 1"
|
v-if="slotProps.data.isBuy == 0&&slotProps1.row.isAudition == 1&&userVip==null"
|
||||||
>试听</text
|
>试听</text
|
||||||
>
|
>
|
||||||
|
|
||||||
|
<template v-if="slotProps.data.isBuy == 1 || userVip!=null">
|
||||||
|
<uni-tag v-if="slotProps1.row.isLearned == 0" style="position: absolute; right: 10rpx; top: 5rpx;"
|
||||||
|
:inverted="true" text="未学" size="mini" type="primary" />
|
||||||
|
<uni-tag v-if="slotProps1.row.isLearned == 1" style="position: absolute; right: 10rpx; top: 5rpx;"
|
||||||
|
:inverted="true" text="已学" size="mini" type="success" />
|
||||||
|
</template>
|
||||||
<view class="shitingTag" v-if="slotProps.data.type != 0">
|
<view class="shitingTag" v-if="slotProps.data.type != 0">
|
||||||
<u-icon
|
<u-icon
|
||||||
v-if="
|
v-if="
|
||||||
@@ -1198,6 +1200,8 @@ export default {
|
|||||||
/deep/.titleItem {
|
/deep/.titleItem {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
/deep/.scroll-view-item:nth-child(2n-1) {
|
/deep/.scroll-view-item:nth-child(2n-1) {
|
||||||
|
|||||||
BIN
static/icon/order_vip.png
Normal file
BIN
static/icon/order_vip.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
506
unpackage/dist/dev/app-plus/app-service.js
vendored
506
unpackage/dist/dev/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
403
unpackage/dist/dev/app-plus/app-view.js
vendored
403
unpackage/dist/dev/app-plus/app-view.js
vendored
File diff suppressed because one or more lines are too long
2
unpackage/dist/dev/app-plus/manifest.json
vendored
2
unpackage/dist/dev/app-plus/manifest.json
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user