|
@@ -438,7 +438,7 @@
|
|
|
<script>
|
|
|
import { onMounted, reactive, toRefs, ref } from "vue";
|
|
|
import sHeader from "../../components/SimpleHeader";
|
|
|
-import { showFailToast, showSuccessToast, showToast, showLoadingToast, closeToast } from "vant";
|
|
|
+import { showFailToast, showSuccessToast, showToast, showLoadingToast } from "vant";
|
|
|
import { areaList } from "@vant/area-data";
|
|
|
import {
|
|
|
getOneJoinPayMch, updateJoinPayMchCheck, altMchSign, updateConStat,
|
|
@@ -970,7 +970,7 @@ export default {
|
|
|
}
|
|
|
// 图片上传表单提交
|
|
|
const sentImageFun = async () => {
|
|
|
- showLoadingToast({
|
|
|
+ const loadingUp = showLoadingToast({
|
|
|
message: '上传中...',
|
|
|
forbidClick: true,
|
|
|
duration: 0,
|
|
@@ -1002,17 +1002,19 @@ export default {
|
|
|
response = await openAccount({ id: huifuMchID.value });
|
|
|
if (response.data.code === "00000") {
|
|
|
console.log("response", response);
|
|
|
- closeToast();
|
|
|
+ loadingUp.close();
|
|
|
showSuccessToast(t('joinpayMch.uploadSucceeded'));
|
|
|
setTimeout(() => {
|
|
|
location.reload();
|
|
|
}, 1500);
|
|
|
} else {
|
|
|
console.log("response", response);
|
|
|
+ loadingUp.close();
|
|
|
showFailToast(`${response.message}`);
|
|
|
}
|
|
|
} else { showFailToast(t('joinpayMch.submitFailed')); }
|
|
|
} catch (error) {
|
|
|
+ loadingUp.close();
|
|
|
console.error('请求发生错误:', error);
|
|
|
showFailToast(t('joinpayMch.submitFailed'));
|
|
|
}
|