Commit b9a66700 authored by lijiongliang's avatar lijiongliang

头像优化

parent b18869e7
......@@ -239,15 +239,16 @@ export default {
},
select() {
let that = this
uni.showLoading({
title:"加载中",
mask:true
})
uni.chooseImage({
count: 1, //默认9
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
sourceType: ['album'], //从相册选择
success: function (res) {
uni.showLoading({
title:"加载中",
mask:true
})
const tempFilePaths = res.tempFilePaths;
uni.uploadFile({
url: that.http.baseUrl + '/app/user/upload',
......@@ -295,10 +296,7 @@ export default {
});
}
});
},
fail() {
uni.hideLoading()
}
}
});
},
......
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