Browse Source

2023-5-10

cmy 1 year ago
parent
commit
9f79bf75e2
2 changed files with 7 additions and 6 deletions
  1. 6 2
      pages/index/index.vue
  2. 1 4
      pages/user/model/model.vue

+ 6 - 2
pages/index/index.vue

@@ -30,7 +30,7 @@
 					<view class="hot-title clamp">
 						{{item.title}}
 					</view>
-					<view class="hot-money clamp">
+					<view class="hot-money flex clamp">
 						<text class="money">
 							¥{{item.price}}
 						</text>
@@ -212,7 +212,11 @@
 					pageSize: 3
 				}).then(
 					(res) => {
-						that.rmList = res.data.list
+						that.rmList = res.data.list.map((res)=>{
+							res.price = +res.price
+							res.old_price = +res.old_price
+							return res
+						})
 						console.log(res);
 					}
 				).catch(

+ 1 - 4
pages/user/model/model.vue

@@ -71,7 +71,7 @@
 				// 默认显示数据
 				cardInfo: {},
 				// 是否显示默认
-				isDefault: false,
+				isDefault: true,
 				shareNumber: 0, //浏览量
 				userTemplate: {}, //用户展示数据
 				modelInfo: {}, //当前模板信息
@@ -112,9 +112,6 @@
 				this.getShowTemplateItem();
 				if (this.userInfo.uid) {
 					this.getCommonUserCardInfo(this.userInfo.uid);
-				}else{
-					// 展示默认数据
-					this.isDefault = true;
 				}
 				return
 			}