@@ -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(
@@ -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