Compare commits

..

2 Commits

Author SHA1 Message Date
985edee594 Merge branch 'main' of http://49.235.147.88:3000/zhangkai/dyqc_hdapp 2025-06-12 17:31:08 +08:00
f090f05749 修改头像 2025-06-12 17:30:59 +08:00

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