|
|
|
@ -364,7 +364,7 @@ |
|
|
|
|
<view class='list'> |
|
|
|
|
<!-- #ifdef H5 --> |
|
|
|
|
<view class='payItem acea-row row-middle' :class='active==index ?"on":""' @tap='payItem(index)' |
|
|
|
|
v-for="(item,index) in cartArr" :key='index' v-if="item.payStatus==1"> |
|
|
|
|
v-for="(item,index) in cartArrNew" :key='index' v-if="item.payStatus==1"> |
|
|
|
|
<view class='name acea-row row-center-wrapper'> |
|
|
|
|
<view class='iconfont animated' |
|
|
|
|
:class='(item.icon) + " " + (animated==true&&active==index ?"bounceIn":"")'></view> |
|
|
|
@ -554,6 +554,7 @@ |
|
|
|
|
textareaStatus: true, |
|
|
|
|
deliveryName: '快递配送', |
|
|
|
|
//支付方式 |
|
|
|
|
cartArrNew:[], |
|
|
|
|
cartArr: [{ |
|
|
|
|
"name": "微信支付", |
|
|
|
|
"icon": "icon-weixin2", |
|
|
|
@ -561,6 +562,13 @@ |
|
|
|
|
title: '微信快捷支付', |
|
|
|
|
payStatus: 1, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "余额支付", |
|
|
|
|
"icon": "icon-icon-test", |
|
|
|
|
value: 'balance', |
|
|
|
|
title: '可用余额:', |
|
|
|
|
payStatus: this.$store.getters.globalData.yue_pay_status, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: "支付宝支付", |
|
|
|
|
icon: "icon-icon34", |
|
|
|
@ -573,13 +581,7 @@ |
|
|
|
|
title: '支付宝支付', |
|
|
|
|
payStatus: this.$store.getters.globalData.alipay_open |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"name": "余额支付", |
|
|
|
|
"icon": "icon-icon-test", |
|
|
|
|
value: 'balance', |
|
|
|
|
title: '可用余额:', |
|
|
|
|
payStatus: this.$store.getters.globalData.yue_pay_status, |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
"name": "线下支付", |
|
|
|
|
"icon": "icon-yinhangqia", |
|
|
|
@ -1184,6 +1186,17 @@ |
|
|
|
|
that.$set(that, 'order_form', (that.order_form && that.order_form.length>0) ? that.order_form : formData); |
|
|
|
|
} |
|
|
|
|
that.totalPrice = res.data.order_price; |
|
|
|
|
if(Number(that.totalPrice)==0){ |
|
|
|
|
that.cartArrNew = that.cartArr.filter((c,i)=>{ |
|
|
|
|
return c.value!='weixin' |
|
|
|
|
}) |
|
|
|
|
that.cartArr = that.cartArrNew; |
|
|
|
|
|
|
|
|
|
that.payType='balance'; |
|
|
|
|
}else{ |
|
|
|
|
that.cartArrNew = that.cartArr; |
|
|
|
|
} |
|
|
|
|
console.log(that.cartArr) |
|
|
|
|
that.totalPoint = 0 |
|
|
|
|
res.data.order.forEach(item => { |
|
|
|
|
item.list.forEach(i=>{ |
|
|
|
|