Commit b01ac09a authored by wangxuelai's avatar wangxuelai

'打卡时上传图片不能有其他操作'

parent 610ef17f
......@@ -425,8 +425,12 @@ Page({
})
},
singleUploadFile(access) {
wx.showLoading({
title: '图片上传中...'
})
let imageBox = this.data.imageBox;
if (this.data.currentIndex == (imageBox.length)) {
wx.hideLoading();
this.setData({
imageUploaded: true
})
......@@ -846,6 +850,7 @@ Page({
success (res) {
const {data} = res;
if (data == '{"status":"ok"}') {
console.log(videoInsertIndex, 'videoInsertIndex');
let imageBox = that.data.imageBox;
imageBox[videoInsertIndex].src = filename;
imageBox[videoInsertIndex].status = 'fullfilled';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment