|
|
@@ -450,6 +450,7 @@ import NewYear24Popup from './components/NewYear24Popup.vue'
|
|
|
import DigitalPayConfirmPopup from './components/digitalPayConfirmPopup.vue'
|
|
|
// 假设原有导入路径保持不变
|
|
|
import tool from "@/global/tool"
|
|
|
+import { userToken } from '@/composables/config'
|
|
|
// import { createUploadRequest } from "@/lib/upload"
|
|
|
// 常量
|
|
|
const countries = [
|
|
|
@@ -1042,7 +1043,7 @@ const handleAvatarError = (err) => {
|
|
|
// 上传凭证
|
|
|
const handleUploadDeposit = (options) => {
|
|
|
const originalUrl = actionAdd1.value || Config.Host80 + "/common/upload"
|
|
|
- return createUploadRequest(originalUrl, AccessToken.value, 1)(options)
|
|
|
+ return createUploadRequest(originalUrl, userToken.value, 1)(options)
|
|
|
}
|
|
|
// 上传凭证成功
|
|
|
const handleAvatarSuccess = (res) => {
|
|
|
@@ -1343,7 +1344,7 @@ const submit = async () => {
|
|
|
goPayLink.value = res.data.result
|
|
|
window.open(res.data.result)
|
|
|
} else if (res.data.type == 2) {
|
|
|
- let token = AccessToken.value["Access-Token"]
|
|
|
+ let token = userToken.value
|
|
|
token = tool.tokenReplace(token)
|
|
|
goPayLink.value = `${Host04}/finance/deposit/get?serial=${res.data.result}&Access-Token=${token}`
|
|
|
window.open(goPayLink.value)
|
|
|
@@ -1393,7 +1394,7 @@ const submit = async () => {
|
|
|
}
|
|
|
}
|
|
|
const setCardUrl = (serial) => {
|
|
|
- let params = `${AccessToken.value["Access-Token"]}/${locale.value}/${serial}/1/pay`
|
|
|
+ let params = `${userToken.value}/${locale.value}/${serial}/1/pay`
|
|
|
return initLink({ link: imgUrl.value + '/pay/paycard.html', params })
|
|
|
}
|
|
|
//处理申请返回result
|
|
|
@@ -1447,7 +1448,7 @@ const submitDealResult = async () => {
|
|
|
goPayLink.value = res.data.result
|
|
|
window.open(res.data.result)
|
|
|
} else if (res.data.type == 2) {
|
|
|
- let token = AccessToken.value["Access-Token"]
|
|
|
+ let token = userToken.value
|
|
|
token = tool.tokenReplace(token)
|
|
|
goPayLink.value = `${Host04}/finance/deposit/get?serial=${res.data.result}&Access-Token=${token}`
|
|
|
window.open(goPayLink.value)
|