mirror of
https://github.com/chowa/ejyy.git
synced 2026-01-21 05:07:48 +08:00
fix app.js getUserInfo & update chooseMedia
This commit is contained in:
@@ -299,12 +299,13 @@ Component({
|
||||
*/
|
||||
upload() {
|
||||
let that = this;
|
||||
wx.chooseImage({
|
||||
wx.chooseMedia({
|
||||
count: 1,
|
||||
mediaType: ['image'],
|
||||
sizeType: ['original', 'compressed'],
|
||||
sourceType: ['album', 'camera'],
|
||||
success: res => {
|
||||
const tempFilePaths = res.tempFilePaths[0];
|
||||
const tempFilePaths = res.tempFiles[0].tempFilePath;
|
||||
that.pushImg(tempFilePaths);
|
||||
},
|
||||
fail: () => {
|
||||
|
||||
Reference in New Issue
Block a user