|
@@ -38,11 +38,11 @@
|
|
|
</view>
|
|
|
<view class="cell-item-info-weight">
|
|
|
<view class="cell-item-weight-bar">
|
|
|
- {{ (item.totalWeight/1000).toFixed(2) }}kg
|
|
|
+ {{ item.totalWeight }}kg
|
|
|
<u-badge class="badge" type="primary" bgColor="#01c9b2" count="总" :offset="[0,0]"></u-badge>
|
|
|
</view>
|
|
|
<view class="cell-item-weight-bar">
|
|
|
- {{ (item.maxWeight/1000).toFixed(2) }}kg
|
|
|
+ {{ item.maxWeight }}kg
|
|
|
<u-badge class="badge" type="warning" bgColor="#05695d" count="最大" :offset="[0,0]"></u-badge>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -176,6 +176,8 @@
|
|
|
if (res.status == 200) {
|
|
|
res.data.list.map(item => {
|
|
|
item.checked = false
|
|
|
+ item.totalWeight = (item.totalWeight/1000).toFixed(2)
|
|
|
+ item.maxWeight = (item.maxWeight/1000).toFixed(2)
|
|
|
})
|
|
|
if(this.pageNo>1){
|
|
|
this.listdata = this.listdata.concat(res.data.list || [])
|