|
@@ -356,8 +356,9 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
<div class="base64" style="margin-left: 160px" >
|
|
|
- <div class="code_right" v-if="payIndex==5">
|
|
|
+ <div class="code_right" v-if="payIndex==4">
|
|
|
<div class="left">
|
|
|
<div class="title">线下支付</div>
|
|
|
<div class="pay">应付金额<span class="money">{{ payOrder.arr.amount_pay ||0}}</span>元</div>
|
|
@@ -378,10 +379,27 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="code_right" v-if="payIndex==0">
|
|
|
+ <div class="left">
|
|
|
+ <div class="title">企业网银</div>
|
|
|
+ <div class="pay">应付金额<span class="money"> {{ payOrder.arr.amount_pay }}</span>元</div>
|
|
|
+ </div>
|
|
|
+ <div class="center">
|
|
|
+ <div class="info">订单提交成功,请尽快付款!</div>
|
|
|
+ <div class="box">
|
|
|
+ <div class="view">
|
|
|
+ <el-radio-group v-model="radio1" class="ml-4" @change="changeRadio">
|
|
|
+ <el-radio :label="1" size="large">直接支付</el-radio>
|
|
|
+ <el-radio :label="2" size="large">保留支付</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div v-if="payIndex==3 || payIndex==0" class="pay-s" @click="paySubmit()">立即支付</div>
|
|
|
- <div v-if="payIndex==4" class="pay-s" @click="copyUrl()">复制链接</div>
|
|
|
- <div v-if="payIndex==5">
|
|
|
+ <div v-if="payIndex==0" class="pay-s" @click="paySubmit()">立即支付</div>
|
|
|
+ <div v-if="payIndex==3" class="pay-s" @click="copyUrl()">复制链接</div>
|
|
|
+ <div v-if="payIndex==4">
|
|
|
|
|
|
<div style="display: flex">
|
|
|
<div class="submits" v-if="!flags" @click="submit_s()">提交</div>
|
|
@@ -465,6 +483,8 @@ const addressFlags=ref(false)
|
|
|
const loginFormRefss=ref('')
|
|
|
const timer=ref(null)
|
|
|
const m1=mitt();
|
|
|
+const radio1 = ref(1)
|
|
|
+const set_radio = ref(1)
|
|
|
onUnmounted(()=>{
|
|
|
clears()
|
|
|
})
|
|
@@ -541,6 +561,10 @@ const addressTap=()=>{
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+const changeRadio=(e)=> {
|
|
|
+ console.log(e)
|
|
|
+ set_radio = e
|
|
|
+}
|
|
|
const paySubmit=()=>{
|
|
|
window.location.href=urlTap.value.url
|
|
|
}
|
|
@@ -579,13 +603,19 @@ const orderInfo=()=>{
|
|
|
}
|
|
|
orderDetail({"id":url.id}).then((res)=>{
|
|
|
payOrder.arr=res.data
|
|
|
- pay_order(res.data.id,1);
|
|
|
+ pay_order(res.data.id,0);
|
|
|
})
|
|
|
|
|
|
}
|
|
|
let info=ref('')
|
|
|
|
|
|
const pay_order=(id,indexs)=>{
|
|
|
+ if(indexs == 1) {
|
|
|
+ indexs = 7
|
|
|
+ }
|
|
|
+ if(indexs == 5) {
|
|
|
+ indexs = 6
|
|
|
+ }
|
|
|
let data={
|
|
|
id:id||payOrder.arr.id,
|
|
|
pay_type:indexs
|
|
@@ -595,7 +625,11 @@ const pay_order=(id,indexs)=>{
|
|
|
console.error(res)
|
|
|
if(res.code==1 &&res.data!=null){
|
|
|
qrCode.qr=res.data
|
|
|
- urlTap.value=res.data
|
|
|
+ if(set_radio == 1) {
|
|
|
+ urlTap.value=res.data
|
|
|
+ } else {
|
|
|
+ urlTap.value=res.data
|
|
|
+ }
|
|
|
info.value=res.data
|
|
|
}else if(res.code==1 &&res.data==null){
|
|
|
qrCode.value=null
|
|
@@ -603,7 +637,7 @@ const pay_order=(id,indexs)=>{
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
-const payIndex=ref(0)
|
|
|
+const payIndex=ref(-1)
|
|
|
const FormState = reactive({
|
|
|
name: '',
|
|
|
cardName:'',
|