报工页面的项目选择器
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="media_message_container" @click="clickMediaItem">
|
||||
<u--image
|
||||
<u-image
|
||||
@load="onLoaded"
|
||||
:showLoading="true"
|
||||
width="120"
|
||||
@@ -21,7 +21,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
</u--image>
|
||||
</u-image>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -39,7 +39,7 @@ export default {
|
||||
computed: {
|
||||
|
||||
|
||||
getImgUrl() {
|
||||
getImgUrl() {
|
||||
if (!this.message || !this.message.pictureElem) {
|
||||
return '';
|
||||
}
|
||||
@@ -61,8 +61,12 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
getFixedSourceUrl(url) {
|
||||
if (typeof url === 'string' && url.startsWith('http://47.117.71.33/api/object/')) {
|
||||
return url.replace('http://47.117.71.33/api/object/', 'http://47.117.71.33:15219/api/object/');
|
||||
// 如果 url 以 http://49.232.154.205/api/object/ 开头,则替换为带端口的
|
||||
if (typeof url === 'string' && url.startsWith('http://49.232.154.205/api/object/')) {
|
||||
return url.replace('http://49.232.154.205/api/object/', 'http://49.232.154.205:10006/api/object/');
|
||||
}
|
||||
else if (typeof url === 'string' && url.startsWith('http://47.117.71.33/api/object/')) {
|
||||
return url.replace('http://47.117.71.33/api/object/', 'http://49.232.154.205:10006/api/object/');
|
||||
}
|
||||
return url;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user