upSingleImg: function () {
var that = this;
wx.uploadFile({
url: url,
filePath: that.data.arrImg[i],
name: "image",
formData: {
...
},
success: function (res) {
},
complete: function (complete) {
iPP
if (i == that.data.arrImg.length) {
i = 0;
wx.showModal({
content: "",
showCancel: false,
success:function(){
that.data.arrImg =[];
wx.navigateBack({
delta: 1
})
}
});
} else if (i < that.data.arrImg.length) {//
console.log(`${i}`)
that.upSingleImg()
}
}
})
},