增加新模块
This commit is contained in:
@@ -36,8 +36,8 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="price_zq_warp">
|
||||
<view class="price_lj_warp">专区立省{{item.adPrice - item.price}}元</view>
|
||||
<view class="price_ds_warp">到手¥<text style="font-size: 31rpx;">{{item.price}}</text></view>
|
||||
<view class="price_lj_warp">专区立省{{(item.adPrice - item.priceN).toFixed(2)}}元</view>
|
||||
<view class="price_ds_warp">到手¥<text style="font-size: 31rpx;">{{item.priceN}}</text></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -85,7 +85,14 @@
|
||||
}
|
||||
const resp = await searchList(params);
|
||||
if(resp && resp.bizcode === 100){
|
||||
this.productList = resp.data;
|
||||
const data = resp.data || [];
|
||||
if(data && data.length !==0){
|
||||
data.map(item=>{
|
||||
const priceN = item.price.split("-");
|
||||
item.priceN = priceN[0];
|
||||
})
|
||||
}
|
||||
this.productList = data;
|
||||
}
|
||||
this.productListLoading = false;
|
||||
},
|
||||
@@ -128,4 +135,8 @@
|
||||
background: #CE2300FF;
|
||||
color: #FFF6ED;
|
||||
}
|
||||
.price_ds_warp{
|
||||
color: #FFFFFF;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user