修改头像

This commit is contained in:
张凯 2025-06-12 17:30:59 +08:00
parent 1602e1da54
commit f090f05749

View File

@ -382,31 +382,31 @@
}, },
upload() { upload() {
// //
// uni.chooseImage({ uni.chooseImage({
// success: (chooseImageRes) => { success: (chooseImageRes) => {
// const tempFilePaths = chooseImageRes.tempFilePaths; const tempFilePaths = chooseImageRes.tempFilePaths;
// const that = this const that = this
// uni.uploadFile({ uni.uploadFile({
// url: 'https://testy.hschool.com.cn//api/common/upload', // url: 'https://naweigetetest2.hschool.com.cn/api/common/upload', //
// filePath: tempFilePaths[0], filePath: tempFilePaths[0],
// name: 'file', name: 'file',
// header: { header: {
// "token": uni.getStorageSync("token") "token": uni.getStorageSync("token")
// }, },
// formData: { formData: {
// 'user': 'test' 'user': 'test'
// }, },
// success: (res) => { success: (res) => {
// let group = JSON.parse(res.data) let group = JSON.parse(res.data)
// that.upAvatar = group.data.url that.upAvatar = group.data.url
// that.avatar = group.data.fullurl that.avatar = group.data.fullurl
// console.log(group.data) console.log(group.data)
// console.log(that.avata) console.log(that.avata)
// } }
// }); });
// } }
// }); });
this.show5 = true // this.show5 = true
}, },
close() { close() {
this.show5 = false this.show5 = false