修改图片显示

dev_xd
lj7788@126.com 2025-08-06 09:56:34 +08:00
parent 8ee585f3f3
commit f7ad0d2203
3 changed files with 4 additions and 4 deletions

View File

@ -2,8 +2,8 @@
module.exports = {
timeout: 60000,
appId: "wx46466c7828eede2b",
//baseUrl: "https://xiangguan.sxyanzhu.com/wechat",
baseUrl: 'http://127.0.0.1:8080',
baseUrl: "https://xiangguan.sxyanzhu.com/wechat",
//baseUrl: 'http://127.0.0.1:8080',
baseImgUrl: "https://xiangguan.sxyanzhu.com",
//baseImgUrl: 'http://127.0.0.1:9300',
noSecuritys: [

View File

@ -272,7 +272,7 @@ Page({
form.task = task;
form.taskName = task.full;
form.taskId = task.id;
let imgs = data.imageUrls ? data.imageUrls.split(",") : [];
let imgs = (data.imageUrls ? data.imageUrls.split(",") : []).map(img => config.baseImgUrl + img);
let user = this.data.technicianUserOptions.find(it => it.userPhone == data.technicianUser);
form.technician = user?.userId || '';
user = this.data.superviseUserOptions.find(it => it.userPhone == data.superviseUser);

View File

@ -90,7 +90,7 @@ class FileUploader {
for (const filePath of filePaths) {
try {
if (filePath.indexOf("http://tmp/") === -1) {
if (filePath.indexOf(config.baseImgUrl) === 0) {
fileUrls.push(filePath);
continue;
}