Browse Source

fix order bug

account
刘嘉炜 4 years ago
parent
commit
f5b608affb
  1. 11
      src/subpackage/order/pages/mall/check_logistic/check_logistic.vue
  2. 11
      src/subpackage/order/pages/mall/refund_operate/refund_operate.vue
  3. 17
      src/subpackage/order/pages/mall/send_out/send_out.vue

11
src/subpackage/order/pages/mall/check_logistic/check_logistic.vue

@ -13,7 +13,7 @@
<view>{{ k.product_name || '-' }}</view>
</view>
</view>
<view class="pi-total">{{ e.logistics_product_lite_list.length || 0 }}件商品</view>
<view class="pi-total">{{ totalGoodsNum || 0 }}件商品</view>
</view>
</view>
</view>
@ -32,6 +32,15 @@ export default {
}
return []
},
totalGoodsNum(){
let { orderInfo } = this;
if(!orderInfo)return 0;
let _ls = orderInfo.product_order_goods || [];
return _ls.reduce((total, item)=>{
total += +item.product_nums || 0;
return total
}, 0)
}
},
onLoad(options){
this.getInfo(options.order_no);

11
src/subpackage/order/pages/mall/refund_operate/refund_operate.vue

@ -17,7 +17,7 @@
</view>
<view class="rgi-total">
<text>{{ refundLs.length || 0 }}</text>
<text>{{ totalGoodsNum || 0 }}</text>
<!-- <image v-if="refundLs.length > 1" mode="aspectFit" src="/subpackage/order/static/images/arrow.png"></image> -->
</view>
</view>
@ -69,6 +69,15 @@ export default {
// return _selectedArr.includes((ele.product_id + ''));
// })
},
totalGoodsNum(){
let { orderInfo } = this;
if(!orderInfo)return 0;
let _ls = orderInfo.product_order_goods || [];
return _ls.reduce((total, item)=>{
total += +item.product_nums || 0;
return total
}, 0)
}
},
data(){
return {

17
src/subpackage/order/pages/mall/send_out/send_out.vue

@ -47,11 +47,14 @@
<image mode="aspecfFill" :src="e.product_imgs"></image>
<view class="oi-info">
<view class="oi-tit">{{ e.product_name || '-' }}</view>
<view class="oi-spec" v-if="e.product_spec_multi_info&&e.product_spec_multi_info.spec_info&&e.product_spec_multi_info.spec_info.length">
<view class="oi-spec">
<block v-if="e.product_spec_multi_info&&e.product_spec_multi_info.spec_info&&e.product_spec_multi_info.spec_info.length">
<block v-for="(k, j) in e.product_spec_multi_info.spec_info" :key="j">
{{ k + ';' }}
</block>
</block>
</view>
<view class="oi-amount">×{{ e.product_nums || 0 }}</view>
</view>
</view>
</view>
@ -141,7 +144,7 @@
<view>{{ k.product_name || '-' }}</view>
</view>
</view>
<view class="pi-total">{{ e.logistics_product_lite_list.length || 0 }}件商品</view>
<view class="pi-total">{{ e.logistics_product_total || 0 }}件商品</view>
</view>
</view>
@ -495,6 +498,7 @@ export default {
}
.oi-info{
align-self: flex-start;
flex-grow: 1;
.oi-tit{
margin-bottom: 12upx;
line-height: 40upx;
@ -503,12 +507,21 @@ export default {
@include textHide(2);
}
.oi-spec{
height: 34upx;
line-height: 34upx;
font-size: 24upx;
color: #1a1a1a;
@include textHide(1);
}
.oi-amount{
line-height: 34upx;
font-size: 24upx;
color: #9a9a9d;
text-align: right;
@include textHide(1);
}
}
}
}
}

Loading…
Cancel
Save