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

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,72 +1,72 @@
<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 {
export default { config
name: "NOList", } from '@/apis/index.js'
/** export default {
* name 携带过来的图片名称 (与本地问图片文件相对应) name: "NOList",
* /**
* no-address没有地址 * name 携带过来的图片名称 (与本地问图片文件相对应)
* no-counpon没有优惠券 *
* no-goods没有商品 * no-address没有地址
* no-list没有订单列表 * no-counpon没有优惠券
* no-news没有任何消息 * no-goods没有商品
* no-new1没有任何消息1 * no-list没有订单列表
* no-chain (没有区块链信息) * no-news没有任何消息)
* no-collection(没有任何收藏信息 * no-new1(没有任何消息1
* no-foot (没有足迹信息) * no-chain (没有区块链信息)
* no-in没有收入信息) * no-collection没有任何收藏信息)
* no-out (没有任何支出信息) * no-foot (没有足迹信息)
* no-order (没有任何订单信息) * no-in没有收入信息)
* no-order-list (没有任何订单信息) * no-out (没有任何支出信息)
* no-record (没有任何收益信息) * no-order (没有任何订单信息)
* no-records (没有任何收益信息2 * no-order-list (没有任何订单信息)
* no-search (没有任何搜索信息) * no-record (没有任何收益信息)
* no-shop (没有任何店铺信息) * no-records (没有任何收益信息2
* * no-search (没有任何搜索信息)
* * no-shop (没有任何店铺信息)
* txt 携带过来的提示语 *
*/ *
props: { * txt 携带过来的提示语
name: String, */
txt: String props: {
}, name: String,
data() { txt: String
return { },
webUrl:''
}; data() {
}, return {
mounted() { webUrl: config.apiUrls
this.webUrl = config.apiUrls };
}
} }
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
// 无地址 // 无地址
.no-addr { .no-addr {
padding-top: $padding*4; padding-top: $padding*4;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
box-sizing: border-box; box-sizing: border-box;
color: #999; color: #999;
font-size: $title-size*0.9; font-size: $title-size*0.9;
image { image {
margin-bottom: $margin*2; margin-bottom: $margin*2;
margin-top: $margin*1; margin-top: $margin*1;
width: 400rpx; width: 400rpx;
opacity: .4; opacity: .4;
} }
} }
</style> </style>