|
@@ -2,7 +2,7 @@
|
|
<div class="cashier-wrapper">
|
|
<div class="cashier-wrapper">
|
|
<form ref="formDom" :action="pageData.formData.actionUrl" method="post" id="submitForm">
|
|
<form ref="formDom" :action="pageData.formData.actionUrl" method="post" id="submitForm">
|
|
<input type="hidden" name="merchantNo" :value="pageData.formData.merchantNo">
|
|
<input type="hidden" name="merchantNo" :value="pageData.formData.merchantNo">
|
|
- <input type="hidden" name="language" :value="pageData.formData.language">
|
|
|
|
|
|
+ <input type="hidden" name="merType" :value="pageData.formData.merType">
|
|
<input type="hidden" name="timeStamp" :value="pageData.formData.timeStamp">
|
|
<input type="hidden" name="timeStamp" :value="pageData.formData.timeStamp">
|
|
<input type="hidden" name="version" :value="pageData.formData.version">
|
|
<input type="hidden" name="version" :value="pageData.formData.version">
|
|
<input type="hidden" name="merchantOrderNo" :value="pageData.formData.merchantOrderNo">
|
|
<input type="hidden" name="merchantOrderNo" :value="pageData.formData.merchantOrderNo">
|
|
@@ -18,7 +18,7 @@
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
import { onMounted, ref, reactive, nextTick } from "vue";
|
|
import { onMounted, ref, reactive, nextTick } from "vue";
|
|
-
|
|
|
|
|
|
+import {usdRechargeRequestByAchpay} from "@/http/account"
|
|
import {setChromeStorage, getChromeStorage} from "@/uilts/chromeExtension"
|
|
import {setChromeStorage, getChromeStorage} from "@/uilts/chromeExtension"
|
|
|
|
|
|
let formDom = ref(null);
|
|
let formDom = ref(null);
|
|
@@ -26,17 +26,17 @@ let formDom = ref(null);
|
|
let pageData = reactive({
|
|
let pageData = reactive({
|
|
formData: {
|
|
formData: {
|
|
actionUrl: '',
|
|
actionUrl: '',
|
|
|
|
+ callbackUrl: '',
|
|
|
|
+ currency: '',
|
|
|
|
+ merType: '',
|
|
merchantNo: '',
|
|
merchantNo: '',
|
|
- language: '',
|
|
|
|
- timeStamp: '',
|
|
|
|
- version: '',
|
|
|
|
merchantOrderNo: '',
|
|
merchantOrderNo: '',
|
|
|
|
+ noticeUrl: '',
|
|
orderAmount: '',
|
|
orderAmount: '',
|
|
- currency: '',
|
|
|
|
productDetail: '',
|
|
productDetail: '',
|
|
- callbackUrl: '',
|
|
|
|
- noticeUrl: '',
|
|
|
|
- sign: ''
|
|
|
|
|
|
+ sign: '',
|
|
|
|
+ timeStamp: '',
|
|
|
|
+ version: '',
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|
|
@@ -46,16 +46,25 @@ const getLocalPayInfo = async () => {
|
|
console.log(payInfo,'payInfo');
|
|
console.log(payInfo,'payInfo');
|
|
if(payInfo) {
|
|
if(payInfo) {
|
|
chrome.storage.local.remove("achPayInfo");
|
|
chrome.storage.local.remove("achPayInfo");
|
|
|
|
+ usdRechargeRequestByAchpay({
|
|
|
|
+ params: {
|
|
|
|
+ amountValue: payInfo.amountValue
|
|
|
|
+ }
|
|
|
|
+ }).then(res => {
|
|
|
|
+ if(res.code == 0) {
|
|
|
|
+ pageData.formData = res.data;
|
|
|
|
+ nextTick(() => {
|
|
|
|
+ console.log('form', formDom.value, pageData.formData);
|
|
|
|
+ formDom.value && formDom.value.submit();
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
getLocalPayInfo();
|
|
getLocalPayInfo();
|
|
- // setTimeout(() => {
|
|
|
|
- // console.log('form', formDom.value);
|
|
|
|
- // formDom.value && formDom.value.submit();
|
|
|
|
- // }, 600)
|
|
|
|
})
|
|
})
|
|
|
|
|
|
</script>
|
|
</script>
|