修改图片显示
parent
8ee585f3f3
commit
f7ad0d2203
|
@ -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: [
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue