const that =
this;
wx.chooseImage({
count:
9,
success:
function (res) {
var tempFilePaths = res.tempFilePaths;
const newImgList = [...that.data.image, ...res.tempFilePaths];
that.setData({
image: newImgList
})
for (
var i =
0; i < res.tempFilePaths.length; i++) {
wx.uploadFile({
url: tempFilePaths[i],
//换成服务器url
filePath: tempFilePaths[i],
name:
'',
sucess:
function(res) {
if(res){
console.log(res);
}
}
})
}
},
})
that.triggerEvent(
"onCamera");