课程说明
This commit is contained in:
@@ -14,10 +14,6 @@
|
||||
</view>
|
||||
<view class="fourBox">
|
||||
<view class="fourIcon flexbox" style="justify-content: space-around;">
|
||||
<div class="item flexbox" @click="onPageJump()">
|
||||
<image src="../../static/my_01.png" mode="aspectFit"></image>
|
||||
<text>课程设置</text>
|
||||
</div>
|
||||
<div class="item flexbox" @click="onPageJump()">
|
||||
<image src="../../static/my_02.png" mode="aspectFit"></image>
|
||||
<text>我的课程</text>
|
||||
@@ -30,6 +26,10 @@
|
||||
<image src="../../static/my_04.png" mode="aspectFit"></image>
|
||||
<text>吴门医述</text>
|
||||
</div>
|
||||
<div class="item flexbox" @click="onPageJump('/pages/course/courseSet')">
|
||||
<image src="../../static/my_01.png" mode="aspectFit"></image>
|
||||
<text>学习大纲</text>
|
||||
</div>
|
||||
</view>
|
||||
</view>
|
||||
<view class="home_nar ">
|
||||
@@ -174,7 +174,7 @@
|
||||
<text>精彩试听</text>
|
||||
</view>
|
||||
<view class="learn flexbox shiting">
|
||||
<view class="item" v-for="(item, index) in tryListenList" :key="index">
|
||||
<view class="item" v-for="(item, index) in tryListenList" :key="index" @click="onPageJump('/pages/course/courseDetail',item.id, item.title)">
|
||||
<view class="imgcontainer">
|
||||
<image :src="item.image" mode="aspectFit"></image>
|
||||
</view>
|
||||
@@ -182,7 +182,7 @@
|
||||
<view class="txt555">
|
||||
{{item.title}}
|
||||
</view>
|
||||
<view class="buybtn" @click="onPageJump()">
|
||||
<view class="buybtn" @click.stop="onPageJump()">
|
||||
<span>购买</span>
|
||||
</view>
|
||||
</view>
|
||||
@@ -197,14 +197,27 @@
|
||||
<view>
|
||||
<u-back-top :scroll-top="scrollTop" bottom="60" :customStyle='bgiStyle' :iconStyle="iconStyle"></u-back-top>
|
||||
</view>
|
||||
<!-- <web-view :webview-styles="webviewStyles" src="weburl"></web-view> -->
|
||||
<!-- 公共组件-每个页面必须引入 -->
|
||||
|
||||
<!-- 公共组件-每个页面必须引入 -->
|
||||
<public-module></public-module>
|
||||
<z-navigation></z-navigation>
|
||||
<music-play :playList="myList"></music-play>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
methods: {
|
||||
getWebViewMessage(e) {
|
||||
uni.showModal({
|
||||
content: JSON.stringify(e.detail),
|
||||
showCancel: false
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
import musicPlay from '@/components/music.vue'
|
||||
import repciptData from '@/static/json/repcipt.json'
|
||||
@@ -217,6 +230,7 @@
|
||||
data() {
|
||||
return {
|
||||
myList: [],
|
||||
|
||||
showEbook: false, // 显示电子书相关
|
||||
transaction: { // 成功回调
|
||||
|
||||
@@ -315,6 +329,12 @@
|
||||
//方法
|
||||
methods: {
|
||||
...mapMutations(['setUserInfo']),
|
||||
getWebViewMessage(e) {
|
||||
uni.showModal({
|
||||
content: JSON.stringify(e.detail),
|
||||
showCancel: false
|
||||
})
|
||||
},
|
||||
requestAll() {
|
||||
this.getUserInfo()
|
||||
this.tjProList = []
|
||||
@@ -474,17 +494,26 @@
|
||||
});
|
||||
},
|
||||
newsClick(item) {
|
||||
if (item.type == 1) { // url跳转
|
||||
if (item.url != '') {
|
||||
this.openURL(item.url)
|
||||
} else {
|
||||
console.log('跳转链接为空')
|
||||
}
|
||||
} else { // 内部跳转
|
||||
// if (item.type == 1) { // url跳转
|
||||
// if (item.url != '') {
|
||||
// // this.openURL(item.url)
|
||||
// this.surl = item.url
|
||||
// this.urlVisible = true
|
||||
// } else {
|
||||
|
||||
// }
|
||||
// } else { // 内部跳转
|
||||
// uni.navigateTo({
|
||||
// url: 'pages/news/news'
|
||||
// });
|
||||
// uni.navigateTo({
|
||||
// url: `/pages/news/news?newsId=1&title=1`
|
||||
// });
|
||||
console.log('item',item)
|
||||
uni.navigateTo({
|
||||
url: '/pages/news/news?newsid=' + item.id
|
||||
url: `/pages/news/news?newsId=${item.id}&url=${item.url}&type=${item.type}`
|
||||
})
|
||||
}
|
||||
// }
|
||||
},
|
||||
openURL(url) {
|
||||
// #ifdef APP-PLUS
|
||||
@@ -504,14 +533,14 @@
|
||||
}
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url: `/pages/course/index?id=${this.tabsid}&title=${item.title}`
|
||||
url: `/pages/course/index?id=${this.tabsid}&title=${item.title}&pid=${this.tabsid}`
|
||||
});
|
||||
}
|
||||
},
|
||||
curseClickJump(item){
|
||||
uni.navigateTo({
|
||||
// url: `/pages/course/index?id=${item.id}&title=中医学`
|
||||
url: `/pages/course/index?id=${item.id}&title=${item.title}`
|
||||
url: `/pages/course/index?id=${item.id}&title=${item.title}&pid=${item.pid}`
|
||||
});
|
||||
},
|
||||
// 获取用户详情
|
||||
|
||||
Reference in New Issue
Block a user