|
|
@@ -97,7 +97,7 @@
|
|
|
<div class="font_size18">需付金额:</div>
|
|
|
<div class="font_size24 bold color_price">¥239.2</div>
|
|
|
</div>
|
|
|
- <div style="display: inline-block;" class="mt20">
|
|
|
+ <div style="display: inline-block;" class="mt20" @click="payNowFn">
|
|
|
<div class="gap5 gradient border_radius_4 cursor-pointer zhifu">
|
|
|
<img :src="qianbaoIcon" alt="" style="width:13px;height:15px">
|
|
|
<div>{{$t('common.payNow')}}</div>
|
|
|
@@ -121,10 +121,11 @@ import qianbaoIcon from '@/assets/imgs/pay/qianbao.png'
|
|
|
|
|
|
|
|
|
import { ref } from 'vue'
|
|
|
-import { useRoute } from 'vue-router'
|
|
|
+import { useRoute, useRouter } from 'vue-router'
|
|
|
import DGTMessage from '@/utils/message'
|
|
|
//获取参数
|
|
|
const route = useRoute()
|
|
|
+const router = useRouter()
|
|
|
const query = route.query;
|
|
|
const id = ref(query.id || '');
|
|
|
|
|
|
@@ -135,6 +136,18 @@ const payWay = ref(1);//支付方式 1:支付宝支付 2:对公支付
|
|
|
// 协议
|
|
|
const agreement = ref(false);//是否同意协议
|
|
|
|
|
|
+// 立即支付
|
|
|
+const payNowFn = () => {
|
|
|
+ if(!agreement.value){
|
|
|
+ DGTMessage.warning('请先同意协议')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ // 调用支付接口
|
|
|
+ DGTMessage.success('支付成功')
|
|
|
+ //回退
|
|
|
+ router.back()
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
|
|
|
</script>
|