wyrz.js这个文件中,找到这段代码,问题在哪里呢?
wx.chooseImage({
count: 1,
sizeType: [ “compressed” ],
sourceType: [ “album”, “camera” ],
success: function(e) {
wx.showToast({
icon: “loading”,
title: “正在上传”
});
var a = e.tempFilePaths;
console.log(a), wx.uploadFile({
url: getApp().imglink + “app/index.php?i=” + getApp().getuniacid + “&c=entry&a=wxapp&do=upload&m=zh_zbkq”,
filePath: e.tempFilePaths[0],
name: “upfile”,
success: function(e) {
console.log(e), imglogo = e.data, “” != e.data ? (t.data.isbj && t.setData({
url1: “”
}), t.setData({
logo: a[0]
})) : wx.showModal({
title: “提示”,
content: “上传失败”,
showCancel: !1
});
},
app.js 里面的代码