[..缺省图片处理..]
This commit is contained in:
@@ -9,8 +9,8 @@ import store from '@/store'
|
||||
|
||||
// 基础配置
|
||||
const config = {
|
||||
apiUrl : 'https://oapi.lianshang.vip/api/',
|
||||
apiUrls : 'https://oapi.lianshang.vip/',
|
||||
apiUrl : 'https://oapi.lianshang.vip/api/', // 正式环境
|
||||
apiUrls : 'https://storage.lianshang.vip/', // 图片路径(测试/正式)
|
||||
timeout : 60000
|
||||
}
|
||||
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
<template>
|
||||
<view class="NOList">
|
||||
<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}}
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {config} from '@/apis/index.js'
|
||||
import {
|
||||
config
|
||||
} from '@/apis/index.js'
|
||||
export default {
|
||||
name: "NOList",
|
||||
/**
|
||||
@@ -39,13 +41,11 @@
|
||||
name: String,
|
||||
txt: String
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
webUrl:''
|
||||
webUrl: config.apiUrls
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.webUrl = config.apiUrls
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user