Browse Source

Merge branch 'test'

# Conflicts:
#	src/utils/request.js
DESKTOP-O04BTUJ\muzen 2 years ago
parent
commit
b8e69a11d9
4 changed files with 15 additions and 6 deletions
  1. 2 2
      src/pages/lottery/index.vue
  2. 13 2
      src/pages/share/list.vue
  3. BIN
      src/static/share/empty.png
  4. 0 2
      src/utils/request.js

+ 2 - 2
src/pages/lottery/index.vue

@@ -87,7 +87,6 @@ export default {
   },
   },
   onLoad() {
   onLoad() {
     this.getList()
     this.getList()
-    console.log(getApp());
   },
   },
   methods: {
   methods: {
     // 获取页面信息
     // 获取页面信息
@@ -166,12 +165,12 @@ export default {
       this.$nextTick(() => {
       this.$nextTick(() => {
         this.$refs.popup.open()
         this.$refs.popup.open()
         this.disabled = true
         this.disabled = true
-        this.getList()
       })
       })
     },
     },
 
 
     // 再抽一次
     // 再抽一次
     getAgain() {
     getAgain() {
+      this.getList()
       this.$refs.popup.close()
       this.$refs.popup.close()
       this.startCallBack()
       this.startCallBack()
     },
     },
@@ -208,6 +207,7 @@ export default {
     // 关闭弹窗
     // 关闭弹窗
     closePopup() {
     closePopup() {
       this.$refs.popup.close()
       this.$refs.popup.close()
+      this.getList()
     }
     }
   }
   }
 }
 }

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

@@ -21,7 +21,7 @@
       </view>
       </view>
     </view>
     </view>
     <!-- 列表 -->
     <!-- 列表 -->
-    <view class="list">
+    <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="getNav(item)">
         <img class="logo" :src="item.audioPic" />
         <img class="logo" :src="item.audioPic" />
         <view class="title">
         <view class="title">
@@ -31,6 +31,10 @@
         <img class="play" src="@/static/share/playbtn.png" @click.stop="open" />
         <img class="play" src="@/static/share/playbtn.png" @click.stop="open" />
       </view>
       </view>
     </view>
     </view>
+    <view class="no-data" v-else>
+      <img src="@/static/share/empty.png" style="width: 240rpx; height:240rpx" />
+      <view style="">暂无频道内容哦</view>
+    </view>
   </view>
   </view>
 </template>
 </template>
 
 
@@ -51,7 +55,7 @@ export default {
   onLoad(e) {
   onLoad(e) {
     if (e.userId) {
     if (e.userId) {
       this.form.userId = e.userId,
       this.form.userId = e.userId,
-      this.form.channelId = e.channelId
+        this.form.channelId = e.channelId
       // 频道详情
       // 频道详情
       channelDetail({
       channelDetail({
         channelId: e.channelId,
         channelId: e.channelId,
@@ -232,4 +236,11 @@ export default {
     }
     }
   }
   }
 }
 }
+
+.no-data{
+  text-align: center;
+  margin-top: 200rpx;
+  color: rgba(255, 255, 255, 0.7);
+  font-size: 24rpx;
+}
 </style>
 </style>

BIN
src/static/share/empty.png


+ 0 - 2
src/utils/request.js

@@ -1,6 +1,4 @@
-// const baseUrl = 'https://o3tapi.radio1964.com/web' // 测试
 const baseUrl = 'https://client.ohplay.radio1964.net/web' //生产
 const baseUrl = 'https://client.ohplay.radio1964.net/web' //生产
-// const baseUrl = 'http://192.168.0.217:8011/web' // 付新保本地'
 
 
 function request(e) {
 function request(e) {
   if (!e.data) {
   if (!e.data) {