diff --git a/package2/shop/merchantCenter.vue b/package2/shop/merchantCenter.vue index 1cbedbf..23eb119 100644 --- a/package2/shop/merchantCenter.vue +++ b/package2/shop/merchantCenter.vue @@ -105,7 +105,7 @@ - {{shopData.orderRevenueAndCount.amount}} + {{shopData.orderRevenueAndCount.amount == undefined?0:shopData.orderRevenueAndCount.amount}} 营业额 diff --git a/package2/shop/orderDetail.vue b/package2/shop/orderDetail.vue index bfe5fb3..cf10ad6 100644 --- a/package2/shop/orderDetail.vue +++ b/package2/shop/orderDetail.vue @@ -180,6 +180,16 @@ if (res.code == 200) { that.data = res.result + //商家预计收入的计算 + let price = that.data.goodsAmount+that.data.packageFee + if(that.data.orderType == 1){ + that.data.chouyong = price * uni.getStorageSync('shopTakeaway').commissionRateOne + that.data.yujishouru = price - that.data.chouyong + }else{ + that.data.chouyong = price * uni.getStorageSync('shopTakeaway').commissionRateMore + that.data.yujishouru = price - that.data.chouyong + } + that.data.goodsNum = 0 for(let m=0;m