|
|
@@ -44,7 +44,8 @@ Page({
|
|
|
pickid:0,
|
|
|
has_unuse_quan:false,
|
|
|
use_silver:0,
|
|
|
- pay_cash:0//佣金抵扣
|
|
|
+ pay_cash:0,//佣金抵扣
|
|
|
+ freight_limit:9900
|
|
|
},
|
|
|
onLoad: function (options) {
|
|
|
this.data.orderId = options.orderId;
|
|
|
@@ -151,8 +152,8 @@ Page({
|
|
|
payData: val.data,
|
|
|
project: val.data.product_list,
|
|
|
total:total,
|
|
|
- yunfei:that.data.receivetype == 0 ? total<9900?val.data.freight:0 : 0,
|
|
|
- _yunfei:total<9900?val.data.freight:0,
|
|
|
+ yunfei:that.data.receivetype == 0 ? total<that.data.freight_limit?val.data.freight:0 : 0,
|
|
|
+ _yunfei:total<that.data.freight_limit?val.data.freight:0,
|
|
|
canusebalance:canusebalance,
|
|
|
nousebalance:nousebalance,
|
|
|
has_unuse_quan:check_has_unuse_quan,
|
|
|
@@ -360,8 +361,8 @@ Page({
|
|
|
|
|
|
var minus_cash = 0;
|
|
|
var trueafter = afterdec - that.data.payData.dis_amount;
|
|
|
- if(that.data.cashInfo.total > 0 && trueafter > 0){
|
|
|
- minus_cash = that.data.cashInfo.total < trueafter ? that.data.cashInfo.total : trueafter;
|
|
|
+ if(that.data.cashInfo.available > 0 && trueafter > 0){
|
|
|
+ minus_cash = that.data.cashInfo.available < trueafter ? that.data.cashInfo.available : trueafter;
|
|
|
}
|
|
|
console.log('minus_cash',minus_cash);
|
|
|
|
|
|
@@ -378,7 +379,8 @@ Page({
|
|
|
minusTotal: sour_total,
|
|
|
discountBl: val.data.discount_bl,
|
|
|
sourceAfterdec: source_afterdec,
|
|
|
- pay_cash: minus_cash
|
|
|
+ pay_cash: minus_cash,
|
|
|
+ freight_limit:val.data.freight_limit
|
|
|
// disAmount:dis_amount
|
|
|
});
|
|
|
}
|