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

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

View File

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

View File

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

View File

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

View File

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB