Thank you for your help. Finally, the implementation code is released, and the @ sheep method is also fine, but I have a problem on the mobile end, and I am still looking into the cause
.var wxSdk = {
uploadImage (localIds,call){
let that =this
if (!wxSdk.ua.isWeiXin()) {
//Toast("");
return false;
}else {
return new Promise(function(resolve, reject) {
if(localIds.length == 0){
//
resolve(serverIds);
call && call(serverIds);
}else{
wx.uploadImage({
localId: localId, // IDchooseImage
isShowProgressTips: 1, // 1
success: function (res) {
serverIds.push(res.serverId);//// ID
that.uploadImage(localIds,call);
}
});
}
});
}
}
}