1
0
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:
AYKM
2022-05-07 14:39:31 +08:00
parent cb622ca880
commit 17be5362bc
3 changed files with 15 additions and 10 deletions

View File

@@ -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: () => {