|
|
|
@ -60,25 +60,34 @@ |
|
|
|
|
|
|
|
<view class="lf-p-r-32 lf-p-l-32 lf-m-t-30"> |
|
|
|
<button class="cu-btn bg-white margin-self" :class="pay_type==1?'border-green':'border'" @tap="payStatus(1)"> |
|
|
|
<text class="lf-font-32" :class="pay_type==1?'text-green':'lf-color-333'">定金支付</text> |
|
|
|
<text class="lf-font-32" :class="pay_type==1?'text-green':'lf-color-333'">线下支付</text> |
|
|
|
<text class="lf-iconfont lf-icon-dui lf-font-44 lf-color-primary" v-if="pay_type==1" style="position: absolute;right: 22rpx;"></text> |
|
|
|
</button> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="lf-p-r-32 lf-p-l-32 lf-m-t-30"> |
|
|
|
<button class="cu-btn bg-white margin-self" :class="pay_type==2?'border-green':'border'" @tap="payStatus(2)"> |
|
|
|
<text class="lf-font-32" :class="pay_type==2?'text-green':'lf-color-333'">首款支付</text> |
|
|
|
<text class="lf-font-32" :class="pay_type==2?'text-green':'lf-color-333'">订金支付</text> |
|
|
|
<text class="lf-iconfont lf-icon-dui lf-font-44 lf-color-primary" v-if="pay_type==2" style="position: absolute;right: 22rpx;"></text> |
|
|
|
</button> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="lf-p-r-32 lf-p-l-32 lf-m-t-30"> |
|
|
|
<button class="cu-btn bg-white margin-self" :class="pay_type==3?'border-green':'border'" @tap="payStatus(3)"> |
|
|
|
<text class="lf-font-32" :class="pay_type==3?'text-green':'lf-color-333'">线下支付</text> |
|
|
|
<text class="lf-font-32" :class="pay_type==3?'text-green':'lf-color-333'">定金支付</text> |
|
|
|
<text class="lf-iconfont lf-icon-dui lf-font-44 lf-color-primary" v-if="pay_type==3" style="position: absolute;right: 22rpx;"></text> |
|
|
|
</button> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="lf-p-r-32 lf-p-l-32 lf-m-t-30"> |
|
|
|
<button class="cu-btn bg-white margin-self" :class="pay_type==4?'border-green':'border'" @tap="payStatus(4)"> |
|
|
|
<text class="lf-font-32" :class="pay_type==4?'text-green':'lf-color-333'">首款支付</text> |
|
|
|
<text class="lf-iconfont lf-icon-dui lf-font-44 lf-color-primary" v-if="pay_type==4" style="position: absolute;right: 22rpx;"></text> |
|
|
|
</button> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="btn-bottom solid-top1"> |
|
|
|
@ -153,10 +162,7 @@ |
|
|
|
this.ifPay = false; |
|
|
|
this.$http(this.API.API_CREATEORDER,{id: this.goods_id,num: 1,pay_type: this.pay_type,name:this.contact,mobile:this.phone}).then(res => { |
|
|
|
this.order_id = res.data.id |
|
|
|
console.log(res) |
|
|
|
|
|
|
|
|
|
|
|
if(this.pay_type == 3) { |
|
|
|
if(this.pay_type == 1) { |
|
|
|
this.ifPay = true |
|
|
|
this.$url('/pages/payState/paystate?ifSuccess=1&order_id='+this.order_id,{type: 'redirect'}) |
|
|
|
}else { |
|
|
|
|