guo vor 2 Jahren
Ursprung
Commit
0e043f14c9
2 geänderte Dateien mit 13 neuen und 7 gelöschten Zeilen
  1. 6 3
      pages/index/onlineBooking.vue
  2. 7 4
      pages/user/user.vue

+ 6 - 3
pages/index/onlineBooking.vue

@@ -18,12 +18,12 @@
 					<view class="newshopDname">{{shopInfo.shopName}}</view>
 
 					<view v-if="(data.isShowScore == 1) || (data.isShowEvaluate == 1)" class="appraiseBox">
-						<view v-if="data.isShowScore == 1" class="appraise">{{data.shopInfo.miniV2ShopScore}}
+						<view v-if="data.isShowScore == 1" class="appraise">{{data.shopInfo.miniV2ShopScore?data.shopInfo.miniV2ShopScore:0}}
 							<span style='font-size: 26rpx; margin-left: 3rpx;'>分</span>
 						</view>
 						<view v-if="data.isShowScore == 1" class="line"></view>
 						<view @click="goShopAppraiseList()" v-if="data.isShowEvaluate == 1" class="appraiseCount">评价数
-							{{data.evaluateCount}}
+							{{data.evaluateCount?data.evaluateCount:0}}
 
 						</view>
 						<image v-if="data.isShowEvaluate == 1" class="rightArrow" src="../../static/timg/icon_arrow_right.png" mode=""></image>
@@ -204,7 +204,8 @@
 					shopId: this.naShopId,
 				}, 'GET').then(res => {
 					this.shopInfo = res.data.shopInfo;
-					this.data = res.data;
+					this.data = res.data;
+					
 					uni.setStorage({
 						key: 'yyshopInfo',
 						data: that.shopInfo,
@@ -212,6 +213,8 @@
 
 						}
 					});
+					
+					
 					this.listBigTags()
 				})
 			},

+ 7 - 4
pages/user/user.vue

@@ -93,12 +93,12 @@
 
 			</view>
 			<view v-if="(numList.isShowScore == 1) || (numList.isShowEvaluate == 1)" class="appraiseBox">
-				<view v-if="numList.isShowScore == 1" class="appraise">{{numList.shopInfo.miniV2ShopScore}}
+				<view v-if="numList.isShowScore == 1" class="appraise">{{numList.shopInfo.miniV2ShopScore?numList.shopInfo.miniV2ShopScore:0}}
 					<span style='font-size: 26rpx; margin-left: 3rpx;'>分</span>
 				</view>
 				<view  v-if="numList.isShowScore == 1" class="line"></view>
 				<view @click="goShopAppraiseList()" v-if="numList.isShowEvaluate == 1" class="appraiseCount">评价数
-					{{numList.evaluateCount}}
+					{{numList.evaluateCount?numList.evaluateCount:0}}
 				</view>
 				<image v-if="numList.isShowEvaluate == 1" class="rightArrow" src="../../static/timg/icon_arrow_right.png" mode=""></image>
 			</view>
@@ -259,7 +259,8 @@
 				release_version: '',
 			}
 		},
-		onLoad(opt) {
+		onLoad(opt) {
+			
 
 			this.ext = this.$common.getExtStoreId();
 			this.themeColor = uni.getStorageSync("themeColor");
@@ -427,7 +428,9 @@
 					this.numList = res.data
 					this.headImg = res.data.openUser.headImg;
 					this.nickName = res.data.openUser.nickName;
-					this.phone = res.data.openUser.mobilePhone;
+					this.phone = res.data.openUser.mobilePhone;
+					
+					
 				})
 			},
 			gonavigateTo(url) {