zqwang 1 年之前
父节点
当前提交
a3626394df
共有 2 个文件被更改,包括 12 次插入6 次删除
  1. 1 1
      manifest.json
  2. 11 5
      pages/client/zui.vue

+ 1 - 1
manifest.json

@@ -1,6 +1,6 @@
 {
     "name" : "追书云短剧",
-    "appid" : "__UNI__61FC527",
+    "appid" : "__UNI__A930F39",
     "description" : "",
     "versionName" : "1.0.0",
     "versionCode" : "100",

+ 11 - 5
pages/client/zui.vue

@@ -49,10 +49,10 @@
 							
 						</block>
 					</view>
-					<view v-if="zhuijuList.length <  1" class="mt16 zuiju-box-kong">
+					<view v-if="is_show" class="mt16 zuiju-box-kong">
 						<image src="../../static/img/zhuiju/kong.png"></image>
 						<text class="ft14">暂无追剧</text>
-						<label class="ft16">去追剧</label>
+						<label class="ft16" @click="goToJuYuan()">去追剧</label>
 					</view>
 				</view>
 			</view>
@@ -84,8 +84,8 @@
 				historyList: [],
 				zhuijuList: [],
 				mbgColor: this.$mbgColor,
-
-				is_show_more: false,
+				is_show_more: false,
+				is_show:false
 			}
 		},
 		computed: {
@@ -115,7 +115,10 @@
 			},
 			async getList() {
 				this.historyList = await watchRecord();
-				this.zhuijuList = await shelfList();
+				this.zhuijuList = await shelfList();
+				if(this.zhuijuList.length <  1){
+					this.is_show = 0;
+				}
 			},
 			saoma() {
 				//#ifdef APP-PLUS  
@@ -159,6 +162,9 @@
 				}
 			},async delzj(id){
 				let res =  await delShelf(id);
+				uni.showToast({ title: "删除成功",icon:"none" });	
+				// 更新最近列表数据
+				this.zhuijuList = await shelfList();
 				console.log(res);
 			},
 			exchange(e) {