Commit 20de73b6 by shijiuyan

1

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