Commit cdaa540a by 陈玉桐

fix

parent 58cb5eed
...@@ -375,7 +375,11 @@ export default { ...@@ -375,7 +375,11 @@ export default {
wx.getLocalImgData({ wx.getLocalImgData({
localId: res.localIds[0], // 图片的localID localId: res.localIds[0], // 图片的localID
success: function (res) { success: function (res) {
me.uploadPic = res.localData; // localData是图片的base64数据,可以用img标签显示 if (res.localData.substr(0, 5) != 'data:') {
me.uploadPic = 'data:image;base64,' + res.localData
}else{
me.uploadPic = res.localData // localData是图片的base64数据,可以用img标签显示
}
} }
}) })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment