1231
This commit is contained in:
parent
f01d711d55
commit
ff90f4a3a1
@ -4,14 +4,14 @@ import { contractView, signOffline } from "~/api/goods/index.js"
|
|||||||
import { codeAuthStore } from "~/stores-collect-code/auth/index.js"
|
import { codeAuthStore } from "~/stores-collect-code/auth/index.js"
|
||||||
import { useI18n } from "vue-i18n"
|
import { useI18n } from "vue-i18n"
|
||||||
import { fddInfo } from "@/api-collect-code/goods/index.js"
|
import { fddInfo } from "@/api-collect-code/goods/index.js"
|
||||||
|
import { showLoadingToast } from 'vant';
|
||||||
definePageMeta({
|
definePageMeta({
|
||||||
i18n: 'signature.protocol.title'
|
i18n: 'signature.protocol.title'
|
||||||
})
|
})
|
||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
const { formData, number, qrData } = codeAuthStore()
|
const { formData, number, qrData } = codeAuthStore()
|
||||||
const activeNames = ref([])
|
const activeNames = ref('')
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const pmblUrl = ref('')
|
const pmblUrl = ref('')
|
||||||
|
|
||||||
@ -74,6 +74,11 @@ const handleCollapseChange = (name) => {
|
|||||||
* - 其他用户: 走非大陆签署流程
|
* - 其他用户: 走非大陆签署流程
|
||||||
*/
|
*/
|
||||||
const confirm = async () => {
|
const confirm = async () => {
|
||||||
|
const toast= showLoadingToast({
|
||||||
|
message: '加载中...',
|
||||||
|
forbidClick: true,
|
||||||
|
});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const fddResponse = await fddInfo({ phone: formData.value.phone })
|
const fddResponse = await fddInfo({ phone: formData.value.phone })
|
||||||
|
|
||||||
@ -100,6 +105,8 @@ const confirm = async () => {
|
|||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('签署确认失败:', error)
|
console.error('签署确认失败:', error)
|
||||||
|
}finally{
|
||||||
|
toast1.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user