wkyy 3 년 전
부모
커밋
42a462bbcd
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      pages/praise/index.vue

+ 3 - 3
pages/praise/index.vue

@@ -12,7 +12,7 @@
 					<view class="praiseLink-tit">
 						<h4>谁点赞了我</h4><span v-if="newLike">+{{newLike}}</span>
 					</view>
-					<p>{{peopleNum}}人点赞了我</p>
+					<p>{{likeINum}}人点赞了我</p>
 				</view>
 			</view>
 			<view class="title">互相点赞联系双方</view>
@@ -47,7 +47,7 @@
 		data() {
 			return {
 				newLike: '',
-				peopleNum: '',
+				likeINum: '',
 				homePageList: [],
 				customStyle: {
 					background: '#FF5E5E'
@@ -78,7 +78,7 @@
 				}
 				likesApi.homePage().then((res) => {
 					this.newLike = res.data.likeINotReadNum;
-					this.peopleNum = res.data.eachOtherPage.data.length;
+					this.likeINum = res.data.likeINum;
 					this.homePageList = res.data.eachOtherPage.data;
 					uni.hideLoading();
 				}).catch(error => {