DESKTOP-SVI9JE1\muzen 2 سال پیش
والد
کامیت
4de677e32f
4فایلهای تغییر یافته به همراه29 افزوده شده و 25 حذف شده
  1. 2 2
      src/pages/share/channels.vue
  2. 3 2
      src/pages/share/controls.vue
  3. 11 8
      src/pages/share/detail.vue
  4. 13 13
      src/pages/share/list.vue

+ 2 - 2
src/pages/share/channels.vue

@@ -1,6 +1,6 @@
 <template>
   <view class="app-container">
-    <open-app :page="0" />
+    <open-app @open="open" />
     <!-- 12频道分享 -->
     <view class="twelve_channels">
       <view class="item" v-for="item in list" :key="item.channelId" @click="getDetail(item)">
@@ -44,7 +44,7 @@ export default {
   methods: {
     getDetail(item) {
       uni.navigateTo({
-        url: `/pages/share/list?channelId=${item.id}&userId=${this.userId}`,
+        url: `?page=/pages/share/list&channelId=${item.id}&userId=${this.userId}`,
       })
     },
   }

+ 3 - 2
src/pages/share/controls.vue

@@ -3,7 +3,7 @@
     <!-- 背景 -->
     <view class="bg" :style="{'background': `url(${form.icon})no-repeat 100% / cover`}" />
     <!-- 跳转App -->
-    <open-app :page="3" :audioId="form.audioId" />
+    <open-app @open="open" />
     <!-- 播控分享 -->
     <view class="play_control">
       <img v-if="channelType !== '1'" class="cover" :src="form.icon" />
@@ -92,7 +92,8 @@ export default {
   methods: {
     // 打开app
     open() {
-      this.openApp(3, this.form.audioId)
+      // this.openApp(3, this.form.audioId)
+      this.openApp(`?page=/mobile/audioPage&audioId=${this.form.audioId}`)
     }
   }
 }

+ 11 - 8
src/pages/share/detail.vue

@@ -3,7 +3,7 @@
     <!-- 背景 -->
     <view class="bg" />
     <!-- 跳转App -->
-    <open-app :page="2" :audioType="data.audioType" />
+    <open-app @open="open" />
     <!-- 详情 -->
     <view class="detail">
       <img class="logo" :src="data.thumb" />
@@ -27,7 +27,7 @@
     <uni-segmented-control :current="current" @clickItem="onClickItem" styleType="text" :values="items"
       activeColor="#fff" />
     <view v-show="current === 0" class="list_content">
-      <uni-row class="item" v-for="(item, index) in list" :key="item.id" @click.native="getNav(item)">
+      <uni-row class="item" v-for="(item, index) in list" :key="item.id" @click.native="open">
         <uni-col :span="2" style="color:#FFFFFF66; fontSize: 28rpx; fontWeight:bold">
           {{ index + 1}}
         </uni-col>
@@ -101,14 +101,17 @@ export default {
       })
     },
     // 下一页
-    getNav(item) {
-      uni.navigateTo({
-        url: `/pages/share/controls?audioId=${item.audioId}`
-      })
-    },
+    // getNav(item) {
+    //   uni.navigateTo({
+    //     url: `/pages/share/controls?audioId=${item.audioId}`
+    //   })
+    // },
     // 打开app
     open() {
-      this.openApp(2, this.data.audioType)
+      // this.openApp(2, this.data.audioType)
+      if(this.data.audioType === 8){
+        this.openApp(`?page=/mobile/playAlbumPage&audioType=${this.data.audioType}&audioId=${this.form.audioId}`)
+      }
     },
     onClickItem(e) {
       if (this.current != e.currentIndex) {

+ 13 - 13
src/pages/share/list.vue

@@ -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);