修改图片显示
parent
8ee585f3f3
commit
f7ad0d2203
|
@ -2,8 +2,8 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
timeout: 60000,
|
timeout: 60000,
|
||||||
appId: "wx46466c7828eede2b",
|
appId: "wx46466c7828eede2b",
|
||||||
//baseUrl: "https://xiangguan.sxyanzhu.com/wechat",
|
baseUrl: "https://xiangguan.sxyanzhu.com/wechat",
|
||||||
baseUrl: 'http://127.0.0.1:8080',
|
//baseUrl: 'http://127.0.0.1:8080',
|
||||||
baseImgUrl: "https://xiangguan.sxyanzhu.com",
|
baseImgUrl: "https://xiangguan.sxyanzhu.com",
|
||||||
//baseImgUrl: 'http://127.0.0.1:9300',
|
//baseImgUrl: 'http://127.0.0.1:9300',
|
||||||
noSecuritys: [
|
noSecuritys: [
|
||||||
|
|
|
@ -272,7 +272,7 @@ Page({
|
||||||
form.task = task;
|
form.task = task;
|
||||||
form.taskName = task.full;
|
form.taskName = task.full;
|
||||||
form.taskId = task.id;
|
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);
|
let user = this.data.technicianUserOptions.find(it => it.userPhone == data.technicianUser);
|
||||||
form.technician = user?.userId || '';
|
form.technician = user?.userId || '';
|
||||||
user = this.data.superviseUserOptions.find(it => it.userPhone == data.superviseUser);
|
user = this.data.superviseUserOptions.find(it => it.userPhone == data.superviseUser);
|
||||||
|
|
|
@ -90,7 +90,7 @@ class FileUploader {
|
||||||
|
|
||||||
for (const filePath of filePaths) {
|
for (const filePath of filePaths) {
|
||||||
try {
|
try {
|
||||||
if (filePath.indexOf("http://tmp/") === -1) {
|
if (filePath.indexOf(config.baseImgUrl) === 0) {
|
||||||
fileUrls.push(filePath);
|
fileUrls.push(filePath);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue