mirror of
https://gitee.com/elegant_wings/dbd-meeting-wx-small.git
synced 2025-06-22 00:49:37 +08:00
加入上传图片等待
加入上传图片等待
This commit is contained in:
parent
3c4e6da8ae
commit
7f61f124de
@ -1,6 +1,7 @@
|
||||
const app = getApp()
|
||||
|
||||
import Notify from '@vant/weapp/notify/notify';
|
||||
import Toast from '@vant/weapp/toast/toast';
|
||||
|
||||
import {
|
||||
selfFormatTimeYMDHMS,
|
||||
@ -264,6 +265,11 @@ Page({
|
||||
|
||||
// 文件-上传后
|
||||
async fileAfterRead(event) {
|
||||
Toast.loading({
|
||||
message: '上传中...',
|
||||
forbidClick: true,
|
||||
duration: 0
|
||||
})
|
||||
let _this = this;
|
||||
console.log('fileAfterRead', event);
|
||||
// 上传完成需要更新 fileList
|
||||
@ -280,6 +286,7 @@ Page({
|
||||
repairId: _this.data.id,
|
||||
operate: 'feedback',
|
||||
}).then(res => {
|
||||
Toast.clear()
|
||||
console.log('upload file ', res);
|
||||
fileList.push({
|
||||
id: res.id,
|
||||
|
@ -6,6 +6,7 @@
|
||||
"van-uploader": "@vant/weapp/uploader/index",
|
||||
"van-checkbox": "@vant/weapp/checkbox/index",
|
||||
"van-checkbox-group": "@vant/weapp/checkbox-group/index",
|
||||
"van-notify": "@vant/weapp/notify/index"
|
||||
"van-notify": "@vant/weapp/notify/index",
|
||||
"van-toast": "@vant/weapp/toast/index"
|
||||
}
|
||||
}
|
@ -141,4 +141,5 @@
|
||||
|
||||
</view>
|
||||
<!-- 消息通知 -->
|
||||
<van-notify id="van-notify" />
|
||||
<van-notify id="van-notify" />
|
||||
<van-toast id="van-toast" />
|
Loading…
x
Reference in New Issue
Block a user