|
|
@@ -13,6 +13,15 @@
|
|
|
<img :src="require('@assets/more@3x.png')" alt="" class="gift_confirmation_top_three_img" />
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <!-- <div class="payment_method">
|
|
|
+ <div class="payment_method_con" @click="payType = item.type" v-for="(item, index) in payInfos" :key="index">
|
|
|
+ <div class="payment_method_con_left">
|
|
|
+ <van-image :src="item.icon" width="24px" height="24px" fit="cover" class="payment_method_img" />
|
|
|
+ <div class="payment_method_title">{{ item.name }}</div>
|
|
|
+ </div>
|
|
|
+ <img class="choose-icon" :src="payType === item.type ? icons[1] : icons[0]" alt="" />
|
|
|
+ </div>
|
|
|
+ </div> -->
|
|
|
<div class="payment_method">
|
|
|
<div class="payment_method_all">
|
|
|
<div
|
|
|
@@ -26,20 +35,17 @@
|
|
|
<img :src="item.icon" alt="" class="payment_method_img" />
|
|
|
<div class="payment_method_title">{{ item.name }}</div>
|
|
|
</div>
|
|
|
- <!-- <van-radio-group v-model="payType">
|
|
|
- <van-radio :name="item.type" icon-size="24px" checked-color="#28B6FF"></van-radio>
|
|
|
- </van-radio-group> -->
|
|
|
<img class="choose-icon" :src="payType === item.type ? icons[1] : icons[0]" alt="" />
|
|
|
</div>
|
|
|
- <van-divider />
|
|
|
+ <van-divider v-if="item.type == 'ALIPAY'"/>
|
|
|
</div>
|
|
|
- <div class="add_bank_card">
|
|
|
+ <!-- <div class="add_bank_card">
|
|
|
<div class="add_bank_card_con">
|
|
|
<img :src="require('@assets/tianjia@3x.png')" alt="" class="add_bank_card_img_one" />
|
|
|
<div class="add_bank_card_con_title">添加银行卡付款</div>
|
|
|
</div>
|
|
|
<img :src="require('@assets/gengduo@3x.png')" alt="" class="add_bank_card_img_two" />
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- <div class="confirm_order">
|
|
|
@@ -126,24 +132,36 @@ export default {
|
|
|
return {
|
|
|
info: {},
|
|
|
message: '',
|
|
|
- payType: inWeixin ? 'WEIXIN' : 'ALIPAY',
|
|
|
+ payType: 'ALIPAY',
|
|
|
payChannel: null,
|
|
|
payInfos: [
|
|
|
{
|
|
|
- icon: require('@assets/zhifubao@3x.png'),
|
|
|
+ icon: require('@assets/svgs/zhifubao.svg'),
|
|
|
name: '支付宝',
|
|
|
type: 'ALIPAY'
|
|
|
},
|
|
|
{
|
|
|
- icon: require('@assets/weixin@3x.png'),
|
|
|
- name: '微信',
|
|
|
- type: 'WEIXIN'
|
|
|
+ icon: require('@assets/icon_yinlian.png'),
|
|
|
+ name: '银联快捷付',
|
|
|
+ type: 'H5PAY'
|
|
|
}
|
|
|
- // {
|
|
|
- // icon: require("@assets/svgs/png-decp.svg"),
|
|
|
- // name: "DCEP",
|
|
|
- // },
|
|
|
],
|
|
|
+ // payInfos: [
|
|
|
+ // {
|
|
|
+ // icon: require('@assets/zhifubao@3x.png'),
|
|
|
+ // name: '支付宝',
|
|
|
+ // type: 'ALIPAY'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // icon: require('@assets/weixin@3x.png'),
|
|
|
+ // name: '微信',
|
|
|
+ // type: 'WEIXIN'
|
|
|
+ // }
|
|
|
+ // {
|
|
|
+ // icon: require("@assets/svgs/png-decp.svg"),
|
|
|
+ // name: "DCEP",
|
|
|
+ // },
|
|
|
+ // ],
|
|
|
icons: [require('@assets/weixuanzhong@3.png'), require('@assets/xuanzhong@3x.png')],
|
|
|
bottom: null,
|
|
|
orderId: 0,
|
|
|
@@ -212,14 +230,14 @@ export default {
|
|
|
return Promise.resolve();
|
|
|
})
|
|
|
]).then(() => {
|
|
|
- if (!(this.enable_wx_lite || this.enable_wx_pub)) {
|
|
|
- this.payInfos.splice(1, 1);
|
|
|
- this.payType = 'ALIPAY';
|
|
|
- } else if (this.enable_wx_pub) {
|
|
|
- this.payChannel = 'wx_pub';
|
|
|
- } else {
|
|
|
- this.payChannel = 'wx_lite';
|
|
|
- }
|
|
|
+ // if (!(this.enable_wx_lite || this.enable_wx_pub)) {
|
|
|
+ // this.payInfos.splice(1, 1);
|
|
|
+ // this.payType = 'ALIPAY';
|
|
|
+ // } else if (this.enable_wx_pub) {
|
|
|
+ // this.payChannel = 'wx_pub';
|
|
|
+ // } else {
|
|
|
+ // this.payChannel = 'wx_lite';
|
|
|
+ // }
|
|
|
});
|
|
|
this.$toast.loading({
|
|
|
message: '加载中...',
|
|
|
@@ -459,11 +477,11 @@ export default {
|
|
|
});
|
|
|
this.getOrder(true);
|
|
|
}
|
|
|
- }else if (this.payType === 'H5PAY'){
|
|
|
- document.location.href = resolveUrl(
|
|
|
+ } else if (this.payType === 'H5PAY') {
|
|
|
+ document.location.href = resolveUrl(
|
|
|
this.$baseUrl,
|
|
|
'/payOrder/sandQuick?id=' + this.orderId
|
|
|
- )
|
|
|
+ );
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
@@ -558,7 +576,7 @@ export default {
|
|
|
});
|
|
|
reject();
|
|
|
});
|
|
|
- }else if (this.payType === 'H5PAY') {
|
|
|
+ } else if (this.payType === 'H5PAY') {
|
|
|
this.$router.replace({
|
|
|
path: '/submit',
|
|
|
query: {
|
|
|
@@ -671,9 +689,9 @@ export default {
|
|
|
padding: 0px 15px;
|
|
|
box-sizing: border-box;
|
|
|
// margin-top: 10px;
|
|
|
- .payment_method_all{
|
|
|
+ .payment_method_all {
|
|
|
padding: 20px 0px;
|
|
|
- background: #1E222C;
|
|
|
+ background: #1e222c;
|
|
|
border-radius: 12px;
|
|
|
}
|
|
|
.add_bank_card {
|
|
|
@@ -1076,7 +1094,7 @@ export default {
|
|
|
font-weight: 500;
|
|
|
color: #ffffff;
|
|
|
border-bottom: 1px solid rgba(94, 99, 110, 0.2);
|
|
|
- padding-bottom: 10px;
|
|
|
+ padding-bottom: 19px;
|
|
|
margin-bottom: 10px;
|
|
|
box-sizing: border-box;
|
|
|
.payment_method_con_left {
|