[..缺省图片处理..]

This commit is contained in:
2021-09-30 09:34:16 +08:00
parent f91145d132
commit fb966d9222
2 changed files with 64 additions and 64 deletions

View File

@@ -9,8 +9,8 @@ import store from '@/store'
// 基础配置 // 基础配置
const config = { const config = {
apiUrl : 'https://oapi.lianshang.vip/api/', apiUrl : 'https://oapi.lianshang.vip/api/', // 正式环境
apiUrls : 'https://oapi.lianshang.vip/', apiUrls : 'https://storage.lianshang.vip/', // 图片路径(测试/正式)
timeout : 60000 timeout : 60000
} }

View File

@@ -1,14 +1,16 @@
<template> <template>
<view class="NOList"> <view class="NOList">
<view class="no-addr"> <view class="no-addr">
<image :src="`${webUrl}/storage/imageresource/no-image/${name}.png`" mode="widthFix" /> <image :src="`${webUrl}/no-list/${name}.png`" mode="widthFix" />
{{txt}} {{txt}}
</view> </view>
</view> </view>
</template> </template>
<script> <script>
import {config} from '@/apis/index.js' import {
config
} from '@/apis/index.js'
export default { export default {
name: "NOList", name: "NOList",
/** /**
@@ -39,13 +41,11 @@
name: String, name: String,
txt: String txt: String
}, },
data() { data() {
return { return {
webUrl:'' webUrl: config.apiUrls
}; };
},
mounted() {
this.webUrl = config.apiUrls
} }
} }
</script> </script>