修改:部分页面的空图片修改为读取远程,本地不在存储该图片

This commit is contained in:
wuhui_zzw 2024-03-06 17:41:51 +08:00
parent 4cc4ae1c35
commit 2dcd6012d0
6 changed files with 96 additions and 79 deletions

View File

@ -147,7 +147,7 @@
</view>
<Loading :loaded="loaded" :loading="loading"></Loading>
<view v-if="!loading && list.length <= 0" class="nothing">
<image src="/static/images/no_thing.png" mode="widthFix"></image>
<image :src="no_thing" mode="widthFix"></image>
<view class="nothing_text">暂无订单~</view>
</view>
<PriceChange :change="change" :orderInfo="orderInfo" v-on:closechange="changeclose($event)" v-on:savePrice="savePrice"
@ -212,7 +212,8 @@
refundInfo: {},
orderInfo: {},
status: "",
merId: ''
merId: '',
no_thing: '',
};
},
watch: {
@ -233,6 +234,9 @@
this.merId = option.merId;
this.getIndex();
},
onReady() {
this.no_thing = `${HTTP_REQUEST_URL}/static/images/mer/no_thing.png`;
},
methods: {
handleSearch() {
this.loaded = false;

View File

@ -32,7 +32,7 @@
</view>
</view>
<view v-else class="empty">
<image src="/static/images/no_thing.png"></image>
<image :src="no_thing"></image>
<text>暂无内容哦~</text>
</view>
</block>
@ -53,7 +53,7 @@
</view>
</view>
<view v-else class="empty">
<image src="/static/images/no_thing.png"></image>
<image :src="no_thing"></image>
<text>暂无内容哦~</text>
</view>
</block>
@ -74,7 +74,7 @@
</view>
</view>
<view v-else class="empty">
<image src="/static/images/no_thing.png"></image>
<image :src="no_thing"></image>
<text>暂无内容哦~</text>
</view>
</block>
@ -102,6 +102,7 @@
components: { Loading },
data() {
return {
no_thing: '',
isActive: 0,
loadedb: false,
loadingb: false,
@ -143,6 +144,9 @@
// deep: true
// }
},
onReady() {
this.no_thing = `${HTTP_REQUEST_URL}/static/images/mer/no_thing.png`;
},
mounted(){
this.checkedArr = this.checkedObj
this.getBounht();

View File

@ -48,7 +48,7 @@
</view>
</view>
<view v-if="goods.length == 0 && !loading" class="empty">
<image src="/static/images/no_thing.png"></image>
<image :src="no_thing"></image>
<text>暂无内容哦~</text>
</view>
<view class='loadingicon acea-row row-center-wrapper'>
@ -91,7 +91,8 @@
limit: 30
},
tab: 0,
current_uid: ''
current_uid: '',
no_thing: '',
}
},
created() {},
@ -115,7 +116,9 @@
if(options.spread) spread(options.spread, this.isLogin)
},
onShow() {},
onReady() {},
onReady() {
this.no_thing = `${HTTP_REQUEST_URL}/static/images/mer/no_thing.png`;
},
mounted: function() {},
methods: {
//

View File

@ -103,7 +103,7 @@
</block>
</view>
<view v-if="followList.length == 0 && !focusLoading && isLogin" class="empty">
<image src="/static/images/no_thing.png"></image>
<image :src="no_thing"></image>
<text>暂无内容~</text>
</view>
<view v-if="!isLogin" class="empty no_login">
@ -133,7 +133,7 @@
<text class="iconfont icon-jiazai loading"></text>{{!cateGoods[item.category_id] ? 0 : cateGoods[item.category_id].goodsLoading}}
</view>
<view v-if="cateGoods[item.category_id] && cateGoods[item.category_id].goods.length == 0 && !cateGoods[item.category_id].goodsLoading" class="empty">
<image src="/static/images/no_thing.png"></image>
<image :src="no_thing"></image>
<text>{{item.category_id == -1 ? '暂无视频' : '暂无文章'}}~</text>
</view>
@ -184,6 +184,7 @@
},
data() {
return {
no_thing: '',
domain: HTTP_REQUEST_URL,
// #ifdef MP
menuButtonInfo: uni.getMenuButtonBoundingClientRect(),
@ -276,6 +277,9 @@
...mapGetters(['isLogin', 'uid', 'viewColor']),
...configMap({community_reply_status: 0,community_app_switch: [],community_status: 0,navigation: {}})
},
onReady() {
this.no_thing = `${HTTP_REQUEST_URL}/static/images/mer/no_thing.png`;
},
watch: {},
onLoad: function(options) {
let that = this;

View File

@ -58,7 +58,7 @@
</view>
</view>
<view v-else class="nothing">
<image src="/static/images/no_thing.png" mode="widthFix"></image>
<image :src="no_thing" mode="widthFix"></image>
<view class="nothing_text">暂无订单~</view>
</view>
</view>
@ -94,12 +94,14 @@
isScroll:true,
page:1,
limit:15,
no_thing: '',
}
},
onLoad() {
this.getList();
},
onReady(){
this.no_thing = `${HTTP_REQUEST_URL}/static/images/mer/no_thing.png`;
},
mounted: function() {
},

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB