flx:提交
This commit is contained in:
parent
e5cf6a6291
commit
b3da962641
@ -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>
|
||||
|
||||
@ -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],
|
||||
|
||||
@ -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],
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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
|
||||
}
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user