http请求修改
This commit is contained in:
@@ -124,12 +124,12 @@ Component({
|
||||
success: function (res) {
|
||||
imgids.push(JSON.parse(res.data).result.id)
|
||||
count++;
|
||||
//如果是最后一张,则隐藏等待中
|
||||
//如果是最后一张,则隐藏等待中
|
||||
if (count == tempFilePaths.length) {
|
||||
wx.hideToast();
|
||||
that.triggerEvent("getIds",imgids)
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
fail: function (res) {
|
||||
wx.hideToast();
|
||||
@@ -144,7 +144,6 @@ Component({
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
fail(err) {
|
||||
console.log("失败", err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user