|
@@ -1,9 +1,9 @@
|
|
|
<template>
|
|
|
<view class="app-container">
|
|
|
<!-- 背景 -->
|
|
|
- <view class="bg" :style="{'background': `url(${data.channelPic})no-repeat 100% / cover`}" />
|
|
|
+ <view class="bg" :style="{ 'background': `url(${data.channelPic})no-repeat 100% / cover` }" />
|
|
|
<!-- 跳转App -->
|
|
|
- <open-app :page="1" :channel="data.channelId" />
|
|
|
+ <open-app @open="open" />
|
|
|
<!-- 详情 -->
|
|
|
<view class="detail">
|
|
|
<img :src="data.channelPic" />
|
|
@@ -22,7 +22,7 @@
|
|
|
</view>
|
|
|
<!-- 列表 -->
|
|
|
<view class="list" v-if="list.length > 0">
|
|
|
- <view class="item" v-for="item in list" :key="item.audioId" @click="getNav(item)">
|
|
|
+ <view class="item" v-for="item in list" :key="item.audioId" @click="open">
|
|
|
<img class="logo" :src="item.audioPic" />
|
|
|
<view class="title">
|
|
|
<text>{{ item.audioName }}</text>
|
|
@@ -54,8 +54,8 @@ export default {
|
|
|
},
|
|
|
onLoad(e) {
|
|
|
if (e.userId) {
|
|
|
- this.form.userId = e.userId,
|
|
|
- this.form.channelId = e.channelId
|
|
|
+ this.form.userId = e.userId
|
|
|
+ this.form.channelId = e.channelId
|
|
|
// 频道详情
|
|
|
channelDetail({
|
|
|
channelId: e.channelId,
|
|
@@ -85,15 +85,15 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
// 下一页
|
|
|
- getNav(item) {
|
|
|
- let url = this.data.channelType === 1 || this.data.channelType === 3 ? `/pages/share/controls?channelType=${this.data.channelType}&audioId=${item.audioId}` : `/pages/share/detail?audioId=${item.audioId}`
|
|
|
- uni.navigateTo({
|
|
|
- url: url
|
|
|
- })
|
|
|
- },
|
|
|
+ // getNav(item) {
|
|
|
+ // let url = this.data.channelType === 1 || this.data.channelType === 3 ? `/pages/share/controls?channelType=${this.data.channelType}&audioId=${item.audioId}` : `/pages/share/detail?audioId=${item.audioId}`
|
|
|
+ // uni.navigateTo({
|
|
|
+ // url: url
|
|
|
+ // })
|
|
|
+ // },
|
|
|
// 打开app
|
|
|
open() {
|
|
|
- this.openApp(1, this.data.channelId)
|
|
|
+ this.openApp(`?page=/mobile/channelSinglePage&channel=${this.data.channelId}&channelId=${this.data.id}`)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -237,7 +237,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-.no-data{
|
|
|
+.no-data {
|
|
|
text-align: center;
|
|
|
margin-top: 200rpx;
|
|
|
color: rgba(255, 255, 255, 0.7);
|