1.
Some checks failed
Uniapp 自动化打包 CI/CD / 打包 Uniapp 项目 (push) Has been cancelled

This commit is contained in:
2025-09-05 16:54:53 +08:00
parent 8e23e63b3a
commit c7ff9a5234
22 changed files with 2849 additions and 591 deletions

View File

@@ -108,7 +108,9 @@
this.realSubmit();
return;
}
uni.showLoading({
title: '加载中...'
});
const result = await uploadFiles({
files: images,
url: this.vuex_config.baseUrl + '/resource/oss/upload',
@@ -120,7 +122,8 @@
uni.showToast({
title: '上传失败',
icon: 'none'
});
});
uni.hideLoading();
return;
}
@@ -133,11 +136,17 @@
async realSubmit() {
let res = await this.$u.api.addOrder2(this.repairInfo);
if (res.code == '200') {
if (res.code == '200') {
uni.hideLoading();
// 关闭页面前发送事件通知前页面刷新
uni.$emit('refreshData', '');
// 返回上一页
uni.navigateBack();
}else{
uni.showToast({
title: res.msg,
icon: 'none'
});
}
},