课程列表 + 精彩试听

This commit is contained in:
@fawn-nine
2024-05-30 14:24:41 +08:00
parent 97b70afa01
commit 629c59989c
4 changed files with 434 additions and 56 deletions

View File

@@ -12,6 +12,7 @@
</view>
</view>
</view>
<button type="default" @click="curseClickJump">去课程中心</button>
<view class="fourBox">
<view class="fourIcon flexbox" style="justify-content: space-around;">
<div class="item flexbox" @click="onPageJump()">
@@ -43,7 +44,7 @@
</view>
<view class="fourBox" v-if="sbuMedicalTagsList && sbuMedicalTagsList.length > 0">
<view class="childrenBox fourIcon flexbox" style="justify-content: space-around;">
<div class="item flexbox" @click="onPageJump()" v-for="(item, index) in sbuMedicalTagsList"
<div class="item flexbox" @click="curseClickJump(item)" v-for="(item, index) in sbuMedicalTagsList"
:key="index">
<image :src="item.icon" mode="aspectFit"></image>
<text>{{item.title}}</text>
@@ -165,8 +166,10 @@
</view>
</view>
</view>
<view class="fourBox" v-if="tryListenList.length > 0">
<view class="learnBox" v-if="tryListenList.length > 0">
<view class="learnBox" >
<view class="titleBox flexbox">
<image src="../../static/try_listen.png" mode="aspectFit"></image>
<text>精彩试听</text>
@@ -188,10 +191,10 @@
</view>
</view>
<view class="moreBox shiting">
<text @click="onPageJump('/pages/course/index',26,'精彩试听')">更多试听</text>
<text @click="onPageJump('/pages/course/tryListen',26,'精彩试听')">更多试听</text>
</view>
</view>
</view>
<view>
<u-back-top :scroll-top="scrollTop" bottom="60" :customStyle='bgiStyle' :iconStyle="iconStyle"></u-back-top>
</view>
@@ -494,7 +497,7 @@
},
curseClick(item) {
this.tabsid = item.id
if (item.isLast == 1) { // 终极
if (item.isLast == 1) { // 终极
if (item.children && item.children.length > 0) {
this.sbuMedicalTagsList = item.children
} else {
@@ -502,10 +505,16 @@
}
} else {
uni.navigateTo({
url: 'url'
})
url: `/pages/course/index?id=${this.tabsid}&title=${item.title}`
});
}
},
curseClickJump(item){
uni.navigateTo({
url: `/pages/course/index?id=33&title=中医学`
// url: `/pages/course/index?id=${item.id}&title=${item.title}`
});
},
// 获取用户详情
getUserInfo() {
// 用户详情
@@ -523,7 +532,7 @@
uni.navigateTo({
url: `${url}?id=${thatId}&title=${title}`
});
},
},
onPageJumpData(url, data) {
uni.navigateTo({
@@ -853,9 +862,10 @@
.learnBox {
background-color: #fff;
margin-top: 10px;
margin-top: 10px; border-radius: 20rpx;
@include ptop_bottm(10px);
@include pleft_right(10px);
@include mshadow(10px, 1);margin-bottom: 10px;
.learn {
justify-content: space-between;