This commit is contained in:
Vinjor 2025-01-22 14:30:50 +08:00
parent afe1959390
commit 0a6e180643
11 changed files with 74 additions and 5 deletions

View File

@ -1,17 +1,17 @@
// 应用全局配置
module.exports = {
//生产
baseUrl: 'https://www.nuoyunr.com',
// baseUrl: 'https://www.nuoyunr.com',
//开发
// baseUrl: "http://192.168.1.17:48080",
baseUrl: "http://192.168.1.17:48080",
// baseUrl: "http://rzqhb7.natappfree.cc",
imagesUrl: 'http://shequ.0315e.com/static/images/pages/',
baseImageUrl: 'https://www.nuoyunr.com/minio/',
shareUrl: 'https://www.lighting-it.cn/share?inviteId=',
//生产
wsUrl: 'ws://122.51.230.86:48080',
// wsUrl: 'ws://122.51.230.86:48080',
//本地
// wsUrl: 'ws://192.168.1.17:48080',
wsUrl: 'ws://192.168.1.17.48080',
//com.carService.qx
// 应用信息
appInfo: {

View File

@ -589,6 +589,10 @@ export default {
})
},
afterRead(file) {
uni.showLoading({
title: '正在上传中...',
mask:true
});
for (let i = 0; i < file.tempFilePaths.length; i++) {
upload({
url:'/admin-api/infra/file/upload',
@ -597,6 +601,9 @@ export default {
this.fileList.push({
url: config.baseImageUrl+res.data
})
if(i==file.tempFilePaths.length-1){
uni.hideLoading()
}
console.log(this.fileList)
})
}

View File

@ -634,6 +634,10 @@ export default {
}
},
afterRead(file) {
uni.showLoading({
title: '正在上传中...',
mask:true
});
for (let i = 0; i < file.tempFilePaths.length; i++) {
upload({
url:'/admin-api/infra/file/upload',
@ -642,6 +646,9 @@ export default {
this.fileList.push({
url: config.baseImageUrl+res.data
})
if(i==file.tempFilePaths.length-1){
uni.hideLoading()
}
console.log(this.fileList)
})
}

View File

@ -225,6 +225,8 @@ export default {
busiFromIndex:0,
partDisposals:[],
partDisposalIndex:0,
//
canClick:true,
formData:{
userName: "",
userMobile: "",
@ -287,6 +289,10 @@ export default {
},
methods: {
afterRead(file) {
uni.showLoading({
title: '正在上传中...',
mask:true
});
for (let i = 0; i < file.tempFilePaths.length; i++) {
upload({
url:'/admin-api/infra/file/upload',
@ -295,6 +301,9 @@ export default {
this.fileList.push({
url: config.baseImageUrl+res.data
})
if(i==file.tempFilePaths.length-1){
uni.hideLoading()
}
console.log(this.fileList)
})
}
@ -467,6 +476,10 @@ export default {
this.$refs.popup.open("bottom")
},
applyData(){
if(!this.canClick){
return
}
this.canClick = false
let fileStr = this.fileList.map(item=>item.url.replace(config.baseImageUrl,"")).join(",")
let dataObj = this.formData
dataObj.image=fileStr
@ -478,6 +491,7 @@ export default {
method: 'POST',
data: this.formData
}).then(res => {
this.canClick =true
this.$refs.popup.close()
uni.showToast({
title: '修改成功',

View File

@ -164,6 +164,10 @@ export default {
},
afterRead(file) {
uni.showLoading({
title: '正在上传中...',
mask:true
});
for (let i = 0; i < file.tempFilePaths.length; i++) {
upload({
url:'/admin-api/infra/file/upload',
@ -172,6 +176,9 @@ export default {
this.fileList.push({
url: config.baseImageUrl+res.data
})
if(i==file.tempFilePaths.length-1){
uni.hideLoading()
}
console.log(this.fileList)
})
}

View File

@ -708,6 +708,10 @@ export default {
}
},
afterRead(file) {
uni.showLoading({
title: '正在上传中...',
mask:true
});
for (let i = 0; i < file.tempFilePaths.length; i++) {
upload({
url:'/admin-api/infra/file/upload',
@ -716,6 +720,9 @@ export default {
this.fileList.push({
url: config.baseImageUrl+res.data
})
if(i==file.tempFilePaths.length-1){
uni.hideLoading()
}
console.log(this.fileList)
})
}

View File

@ -202,6 +202,10 @@
this.$refs.popup.open("bottom")
},
afterRead(file) {
uni.showLoading({
title: '正在上传中...',
mask:true
});
for (let i = 0; i < file.tempFilePaths.length; i++) {
upload({
url: '/admin-api/infra/file/upload',
@ -210,6 +214,9 @@
this.fileList.push({
url: config.baseImageUrl + res.data
})
if(i==file.tempFilePaths.length-1){
uni.hideLoading()
}
console.log(this.fileList)
})
}

View File

@ -127,6 +127,10 @@ export default {
afterRead(file) {
uni.showLoading({
title: '正在上传中...',
mask:true
});
for (let i = 0; i < file.tempFilePaths.length; i++) {
upload({
url:'/admin-api/infra/file/upload',
@ -135,6 +139,9 @@ export default {
this.fileList.push({
url: config.baseImageUrl+res.data
})
if(i==file.tempFilePaths.length-1){
uni.hideLoading()
}
console.log(this.fileList)
})
}

View File

@ -42,6 +42,7 @@
data() {
return {
data:{},
canClick:true,
showPickerColor: false,
ctx: '',
canvasWidth: 0,
@ -409,6 +410,10 @@
});
return
}
if(!this.canClick){
return
}
this.canClick=false
console.log(this.data,'uploa')
const newData = this.data
uni.canvasToTempFilePath({
@ -437,6 +442,7 @@
method: 'POST',
data: newData
}).then(res => {
this.canClick=true
uni.showToast({
title: '创建工单成功',
icon: 'success'

View File

@ -178,6 +178,10 @@ export default {
})
},
afterRead(file) {
uni.showLoading({
title: '正在上传中...',
mask:true
});
for (let i = 0; i < file.tempFilePaths.length; i++) {
upload({
url: '/admin-api/infra/file/upload',
@ -186,6 +190,9 @@ export default {
this.fileList.push({
url: config.baseImageUrl + res.data
})
if(i==file.tempFilePaths.length-1){
uni.hideLoading()
}
console.log(this.fileList)
})
}

View File

@ -177,7 +177,7 @@
sizeType: {
type: Array,
default () {
return ['original', 'compressed']
return ['compressed']
}
},
sourceType: {