flx:提交

This commit is contained in:
Rain_ 2025-12-02 11:27:06 +08:00
parent e5cf6a6291
commit b3da962641
5 changed files with 56 additions and 50 deletions

View File

@ -7,7 +7,7 @@
<view class="loginBox">
<view class="loginTitle">
<image class="loginLogo" src="@/static/login/logo.pic.jpg" mode="heightFix"></image>
华润智慧电站
智慧安全
</view>
<view class="btns">
<view class="user feedback" @click="goto('user')">用户登录</view>

View File

@ -1520,10 +1520,10 @@
count: 5 - that.imgFileList.length,
success(res) {
const tempFilePaths = res.tempFilePaths;
// #ifdef APP-PLUS
that.canversList(tempFilePaths[0]);
return
// #endif
// // #ifdef APP-PLUS
// that.canversList(tempFilePaths[0]);
// return
// // #endif
uni.uploadFile({
url: that.url_config + 'upload/image', //
filePath: tempFilePaths[0],

View File

@ -1613,10 +1613,10 @@
count: 5 - that.imgFileList.length,
success(res) {
const tempFilePaths = res.tempFilePaths;
// #ifdef APP-PLUS
that.canversList(tempFilePaths[0]);
return
// #endif
// // #ifdef APP-PLUS
// that.canversList(tempFilePaths[0]);
// return
// // #endif
uni.uploadFile({
url: that.url_config + 'upload/image', //
filePath: tempFilePaths[0],

View File

@ -207,19 +207,22 @@
success(res) {
const tempFilePaths = res.tempFilePaths;
console.log(222, tempFilePaths[0])
that.canversList(tempFilePaths[0]);
// uni.uploadFile({
// url: that.url_config + 'upload/image', //
// filePath: tempFilePaths[0],
// name: 'files',
// success: (uploadFileRes) => {
// let data = {
// name: JSON.parse(uploadFileRes.data).data[0].filename,
// url: JSON.parse(uploadFileRes.data).data[0].imageUrl
// };
// that.imgFileList.push(data)
// }
// });
// // #ifdef APP-PLUS
// that.canversList(tempFilePaths[0]);
// return
// // #endif
uni.uploadFile({
url: that.url_config + 'upload/image', //
filePath: tempFilePaths[0],
name: 'files',
success: (uploadFileRes) => {
let data = {
name: JSON.parse(uploadFileRes.data).data[0].filename,
url: JSON.parse(uploadFileRes.data).data[0].imageUrl
};
that.imgFileList.push(data)
}
});
}
})
} else if (type == 2) {

View File

@ -380,34 +380,37 @@
count: 5 - that.fileList.length,
success(res) {
const tempFilePaths = res.tempFilePaths;
that.canversList(tempFilePaths[0]);
// uni.uploadFile({
// url: that.url_config + 'upload/image', //
// filePath: tempFilePaths[0],
// name: 'files',
// success: (uploadFileRes) => {
// let data = {
// name: JSON.parse(uploadFileRes.data).data[0].filename,
// url: JSON.parse(uploadFileRes.data).data[0].imageUrl
// };
// that.fileList.push(data)
// uni.getImageInfo({
// src: tempFilePaths[0],
// success: (resInfo) => {
// console.log(' resInfo', resInfo)
// that.imgList = {
// imgUrl: tempFilePaths[0],
// imgWidth: resInfo.width,
// imgHeight: resInfo.height,
// // team:'',
// // name: ''
// }
// that.openImg = true
// }
// })
// that.openImg = false
// }
// });
// // #ifdef APP-PLUS
// that.canversList(tempFilePaths[0]);
// return
// // #endif
uni.uploadFile({
url: that.url_config + 'upload/image', //
filePath: tempFilePaths[0],
name: 'files',
success: (uploadFileRes) => {
let data = {
name: JSON.parse(uploadFileRes.data).data[0].filename,
url: JSON.parse(uploadFileRes.data).data[0].imageUrl
};
that.fileList.push(data)
// uni.getImageInfo({
// src: tempFilePaths[0],
// success: (resInfo) => {
// console.log(' resInfo', resInfo)
// that.imgList = {
// imgUrl: tempFilePaths[0],
// imgWidth: resInfo.width,
// imgHeight: resInfo.height,
// // team:'',
// // name: ''
// }
// that.openImg = true
// }
// })
// that.openImg = false
}
});
}
})
},