浏览代码

点赞页面无数据显示

wkyy 3 年之前
父节点
当前提交
b4f4a863eb
共有 1 个文件被更改,包括 16 次插入1 次删除
  1. 16 1
      pages/praise/index.vue

+ 16 - 1
pages/praise/index.vue

@@ -16,7 +16,7 @@
 				</view>
 			</view>
 			<view class="title">互相点赞联系双方</view>
-			<view class="praiseMain">
+			<view class="praiseMain" v-if="homePageList.length > 0">
 				<view class="praiseMain-item" v-for="(item ,index) in homePageList" :key="item.id">
 					<view class="praiseMain-tit">恭喜配对成功!</view>
 					<view class="praiseMain-pic">
@@ -39,6 +39,10 @@
 					</view>
 				</view>
 			</view>
+			<view class="jpDefault" v-else>
+				<u-image width="179px" height="126px" src="/static/img/default1.png"></u-image>
+				<p>暂无配对成功记录</p>
+			</view>
 		</view>
  	</view>
 </template>
@@ -106,6 +110,17 @@
 	}
 </style>
 <style lang="scss" scoped>
+	.jpDefault{
+		padding-top:90px;
+		display: flex;
+		flex-direction: column;
+		align-items: center;
+		p{
+			color: #A69F9F;
+			font-size: 16px;
+			margin-top: 12px;
+		}
+	}
 	.newsList-img{
 		z-index: -1;
 	}