Commit 20de73b6 by shijiuyan

1

parent d8f4ae9f
......@@ -231,23 +231,21 @@ Page({
for (var i in that.data.imageList) {
var file = that.data.imageList[i];
if (file.path !== undefined) {
setTimeout(function () {
wx.uploadFile({
url: app.url + 'ajax_circle_edit2.php?unionId=' + config.unionId + '&circleId=' + that.data.circleId+'&clear=false',
filePath: file.path,
name: 'image',
success: function (resp2) {
that.deleteImg();
setTimeout(function(){
that.setData({
uploadCount: that.data.uploadCount + 1
}, function () {
that.finish();
})
},300)
}
})
}, 500);
wx.uploadFile({
url: app.url + 'ajax_circle_edit2.php?unionId=' + config.unionId + '&circleId=' + that.data.circleId + '&clear=false',
filePath: file.path,
name: 'image',
success: function (resp2) {
that.deleteImg();
setTimeout(function () {
that.setData({
uploadCount: that.data.uploadCount + 1
}, function () {
that.finish();
})
}, 300)
}
})
}
}
} else {
......
......@@ -165,20 +165,18 @@ Page({
if(that.data.fileList1.length>0){
for(var i in that.data.fileList1){
var file = that.data.fileList1[i];
setTimeout(function(){
wx.uploadFile({
url: app.url + 'ajax_circle_new2.php?unionId=' + res.data.unionId + '&circleId=' + that.data.circleId,
filePath: file.path,
name: 'image',
success: function (resp2) {
that.setData({
uploadCount: that.data.uploadCount + 1
}, function () {
that.finish();
})
}
})
},500);
wx.uploadFile({
url: app.url + 'ajax_circle_new2.php?unionId=' + res.data.unionId + '&circleId=' + that.data.circleId,
filePath: file.path,
name: 'image',
success: function (resp2) {
that.setData({
uploadCount: that.data.uploadCount + 1
}, function () {
that.finish();
})
}
})
}
}else{
wx.showToast({
......
......@@ -14,6 +14,8 @@ const formatNumber = n => {
return n[1] ? n : '0' + n
}
module.exports = {
formatTime: formatTime
}
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