修改:部分页面的空图片修改为读取远程,本地不在存储该图片
This commit is contained in:
parent
4cc4ae1c35
commit
2dcd6012d0
|
|
@ -31,7 +31,7 @@
|
|||
退款
|
||||
</view>
|
||||
</scroll-view>
|
||||
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="where.status == 6" class="list">
|
||||
|
|
@ -122,7 +122,7 @@
|
|||
<text class="cancelled">1件退款中</text>
|
||||
</view> -->
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
<view class="public-total">
|
||||
共{{ item.total_num }}件商品,
|
||||
|
|
@ -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: {
|
||||
|
|
@ -232,7 +233,10 @@
|
|||
this.current = "";
|
||||
this.merId = option.merId;
|
||||
this.getIndex();
|
||||
},
|
||||
},
|
||||
onReady() {
|
||||
this.no_thing = `${HTTP_REQUEST_URL}/static/images/mer/no_thing.png`;
|
||||
},
|
||||
methods: {
|
||||
handleSearch() {
|
||||
this.loaded = false;
|
||||
|
|
@ -374,7 +378,7 @@
|
|||
uni.navigateTo({
|
||||
url:`/pages/admin/delivery/index?id=${item.order_id}&merId=${that.merId}`
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
async savePrice(opt) {
|
||||
let that = this,
|
||||
|
|
@ -411,7 +415,7 @@
|
|||
})
|
||||
}
|
||||
);
|
||||
} else {
|
||||
} else {
|
||||
if(!remark){
|
||||
return this.$util.Tips({
|
||||
title:'请输入备注'
|
||||
|
|
@ -478,7 +482,7 @@
|
|||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.pos-order-list .nav .item.on {
|
||||
color: #2291f8;
|
||||
}
|
||||
|
|
@ -629,8 +633,8 @@
|
|||
margin-left: 26rpx;
|
||||
}
|
||||
}
|
||||
.pos-order-goods .cancelled{
|
||||
color: #FF9600;
|
||||
.pos-order-goods .cancelled{
|
||||
color: #FF9600;
|
||||
}
|
||||
.pos-order-goods .goods .uncancell{
|
||||
color: #999999;
|
||||
|
|
@ -679,7 +683,7 @@
|
|||
.num{
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
.refund-num{
|
||||
font-size: 24rpx;
|
||||
|
|
@ -715,7 +719,7 @@
|
|||
}
|
||||
.nothing {
|
||||
margin-top: 200rpx;
|
||||
text-align: center;
|
||||
text-align: center;
|
||||
}
|
||||
.nothing_text{
|
||||
margin-top: 20rpx;
|
||||
|
|
@ -740,27 +744,27 @@
|
|||
}
|
||||
.search {
|
||||
padding: 17rpx 30rpx;
|
||||
|
||||
|
||||
.search-content {
|
||||
width: 100%;
|
||||
height: 60rpx;
|
||||
padding: 0 30rpx;
|
||||
border-radius: 30rpx;
|
||||
background-color: #F5F5F5;
|
||||
font-size: 26rpx;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
|
||||
|
||||
.iconfont {
|
||||
margin-right: 10rpx;
|
||||
font-size: 26rpx;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
|
||||
.input-placeholder {
|
||||
font-size: 26rpx;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
|
||||
.input {
|
||||
flex: 1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,62 +19,62 @@
|
|||
<view v-if="bought.length" @touchmove="onTouchmove" id="goods">
|
||||
<view class="picTxt acea-row" v-for="(item, index) in bought" :key="index">
|
||||
<view class="checkbox">
|
||||
<text v-if="item.check" @click.stop="goodsCheck(item,index)" class="iconfont icon-xuanzhong1"></text>
|
||||
<text v-if="item.check" @click.stop="goodsCheck(item,index)" class="iconfont icon-xuanzhong1"></text>
|
||||
<text v-else @click.stop="goodsCheck(item,index)" :class="{'disabled':disabled}" class="iconfont icon-weixuanzhong"></text>
|
||||
</view>
|
||||
<view class='pictrue'>
|
||||
<image :src='item.image'></image>
|
||||
</view>
|
||||
<view class='text'>
|
||||
<view class='line2 name'>{{item.store_name}}</view>
|
||||
<view class='line2 name'>{{item.store_name}}</view>
|
||||
<view class='money'>¥<text>{{item.price}}</text></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-else class="empty">
|
||||
<image src="/static/images/no_thing.png"></image>
|
||||
<image :src="no_thing"></image>
|
||||
<text>暂无内容哦~</text>
|
||||
</view>
|
||||
</block>
|
||||
<block v-if="isActive == 1">
|
||||
<view v-if="collect.length" id="collect" @touchmove="onTouchmove1">
|
||||
<view class="picTxt acea-row" v-for="(item, index) in collect" :key="index">
|
||||
<view class="checkbox">
|
||||
<text v-if="item.check" @click.stop="goodsCheck(item,index)" class="iconfont icon-xuanzhong1"></text>
|
||||
<text v-else @click.stop="goodsCheck(item,index)" :class="{'disabled':disabled}" class="iconfont icon-weixuanzhong"></text>
|
||||
</view>
|
||||
<view class='pictrue'>
|
||||
<image :src='item.image'></image>
|
||||
</view>
|
||||
<view class='text'>
|
||||
<view class='line2 name'>{{item.store_name}}</view>
|
||||
<view class='money'>¥<text>{{item.price}}</text></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-else class="empty">
|
||||
<image src="/static/images/no_thing.png"></image>
|
||||
<text>暂无内容哦~</text>
|
||||
</view>
|
||||
</block>
|
||||
<block v-if="isActive == 2">
|
||||
<view v-if="browse.length" id="browse" @touchmove="onTouchmove2">
|
||||
<view class="picTxt acea-row" v-for="(item, index) in browse" :key="index">
|
||||
<view class="checkbox">
|
||||
<text v-if="item.check" @click.stop="goodsCheck(item,index)" class="iconfont icon-xuanzhong1"></text>
|
||||
<view class="picTxt acea-row" v-for="(item, index) in collect" :key="index">
|
||||
<view class="checkbox">
|
||||
<text v-if="item.check" @click.stop="goodsCheck(item,index)" class="iconfont icon-xuanzhong1"></text>
|
||||
<text v-else @click.stop="goodsCheck(item,index)" :class="{'disabled':disabled}" class="iconfont icon-weixuanzhong"></text>
|
||||
</view>
|
||||
<view class='pictrue'>
|
||||
<image :src='item.image'></image>
|
||||
</view>
|
||||
<view class='text'>
|
||||
<view class='line2 name'>{{item.store_name}}</view>
|
||||
<view class='line2 name'>{{item.store_name}}</view>
|
||||
<view class='money'>¥<text>{{item.price}}</text></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-else class="empty">
|
||||
<image src="/static/images/no_thing.png"></image>
|
||||
<image :src="no_thing"></image>
|
||||
<text>暂无内容哦~</text>
|
||||
</view>
|
||||
</block>
|
||||
<block v-if="isActive == 2">
|
||||
<view v-if="browse.length" id="browse" @touchmove="onTouchmove2">
|
||||
<view class="picTxt acea-row" v-for="(item, index) in browse" :key="index">
|
||||
<view class="checkbox">
|
||||
<text v-if="item.check" @click.stop="goodsCheck(item,index)" class="iconfont icon-xuanzhong1"></text>
|
||||
<text v-else @click.stop="goodsCheck(item,index)" :class="{'disabled':disabled}" class="iconfont icon-weixuanzhong"></text>
|
||||
</view>
|
||||
<view class='pictrue'>
|
||||
<image :src='item.image'></image>
|
||||
</view>
|
||||
<view class='text'>
|
||||
<view class='line2 name'>{{item.store_name}}</view>
|
||||
<view class='money'>¥<text>{{item.price}}</text></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-else class="empty">
|
||||
<image :src="no_thing"></image>
|
||||
<text>暂无内容哦~</text>
|
||||
</view>
|
||||
</block>
|
||||
|
|
@ -82,7 +82,7 @@
|
|||
<view class="foot_bar">
|
||||
<button class="confirm_btn" @click="submit">确定({{checkedArr.length}})</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
|
@ -102,6 +102,7 @@
|
|||
components: { Loading },
|
||||
data() {
|
||||
return {
|
||||
no_thing: '',
|
||||
isActive: 0,
|
||||
loadedb: false,
|
||||
loadingb: false,
|
||||
|
|
@ -143,13 +144,16 @@
|
|||
// deep: true
|
||||
// }
|
||||
},
|
||||
onReady() {
|
||||
this.no_thing = `${HTTP_REQUEST_URL}/static/images/mer/no_thing.png`;
|
||||
},
|
||||
mounted(){
|
||||
this.checkedArr = this.checkedObj
|
||||
this.getBounht();
|
||||
this.getCollect();
|
||||
this.getBrowse();
|
||||
},
|
||||
methods: {
|
||||
methods: {
|
||||
// 点击关闭按钮
|
||||
close() {
|
||||
this.$emit('close');
|
||||
|
|
@ -168,7 +172,7 @@
|
|||
const query = uni.createSelectorQuery().in(this);
|
||||
query.select('#goods').boundingClientRect(data => {
|
||||
if(data.bottom < 1500 && data.top < 0) {
|
||||
this.getBounht();
|
||||
this.getBounht();
|
||||
}
|
||||
}).exec();
|
||||
// 模拟触底刷新
|
||||
|
|
@ -179,7 +183,7 @@
|
|||
const query = uni.createSelectorQuery().in(this);
|
||||
query.select('#collect').boundingClientRect(data => {
|
||||
if(data.bottom < 1500 && data.top < 0) {
|
||||
this.getCollect();
|
||||
this.getCollect();
|
||||
}
|
||||
}).exec();
|
||||
// 模拟触底刷新
|
||||
|
|
@ -190,7 +194,7 @@
|
|||
const query = uni.createSelectorQuery().in(this);
|
||||
query.select('#browse').boundingClientRect(data => {
|
||||
if(data.bottom < 1500 && data.top < 0) {
|
||||
this.getBrowse();
|
||||
this.getBrowse();
|
||||
}
|
||||
}).exec();
|
||||
// 模拟触底刷新
|
||||
|
|
@ -272,7 +276,7 @@
|
|||
}
|
||||
);
|
||||
},
|
||||
|
||||
|
||||
/*获取初始化选中的数据*/
|
||||
getInitchecked(arr){
|
||||
let that = this;
|
||||
|
|
@ -281,7 +285,7 @@
|
|||
that.checkedArr.forEach((val, i) =>{
|
||||
if((item.spu_id == (val.spu&&val.spu.spu_id)) || (item.spu_id == val.spu_id)){
|
||||
that.$set(item, 'check', true);
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
|
|
@ -296,12 +300,12 @@
|
|||
}else{
|
||||
this.$set(item, 'check', false);
|
||||
let idx = this.checkedArr.findIndex(itemn => (itemn.spu_id == item.spu_id))
|
||||
this.checkedArr.splice(idx, 1)
|
||||
this.checkedArr.splice(idx, 1)
|
||||
}
|
||||
this.disabled = this.checkedArr.length > 4
|
||||
},
|
||||
},
|
||||
/*确定提交*/
|
||||
submit(){
|
||||
submit(){
|
||||
this.$emit('getProduct',this.checkedArr);
|
||||
},
|
||||
}
|
||||
|
|
@ -340,7 +344,7 @@
|
|||
left: 10rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.search{
|
||||
margin-top: 44rpx;
|
||||
|
|
@ -418,7 +422,7 @@
|
|||
margin-left: 30rpx;
|
||||
font-size: 28rpx;
|
||||
color: #282828;
|
||||
position: relative;
|
||||
position: relative;
|
||||
height: 160rpx;
|
||||
.name{
|
||||
color: #282828;
|
||||
|
|
|
|||
|
|
@ -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: {
|
||||
// 授权回调
|
||||
|
|
|
|||
|
|
@ -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,19 +133,19 @@
|
|||
<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>
|
||||
|
||||
|
||||
</scroll-view>
|
||||
</swiper-item>
|
||||
</block>
|
||||
</swiper>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
</scroll-view>
|
||||
|
||||
|
||||
</view>
|
||||
<!-- 他提到的宝贝弹窗 -->
|
||||
<mentioned ref="mentioned" :isHome="true" @close="closePopup" :list="moreList" :uid="authorUid"></mentioned>
|
||||
|
|
@ -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;
|
||||
|
|
@ -418,7 +422,7 @@
|
|||
let data = [{cate_name: "推荐",category_id: 0,children: []}]
|
||||
if(this.community_app_switch.length == 2 || this.community_app_switch[0]==2){
|
||||
data = [{cate_name: "推荐",category_id: 0,children: []},{cate_name: "视频",category_id: -1,children: []}]
|
||||
}
|
||||
}
|
||||
this.menuList = Array.from(new Set([...data,...res.data]));
|
||||
})
|
||||
},
|
||||
|
|
@ -457,7 +461,7 @@
|
|||
},
|
||||
scrollLeft: function(e){
|
||||
uni.$emit('scroll');
|
||||
this.scrollTop = e.detail.scrollTop
|
||||
this.scrollTop = e.detail.scrollTop
|
||||
this.navShow = e.detail.scrollTop >= this.storeHeight - 200;
|
||||
if(this.navShow){
|
||||
this.$set(this, 'swiperHeight', this.windowHeight-50);
|
||||
|
|
@ -636,7 +640,7 @@
|
|||
this.showTab = false;
|
||||
uni.hideTabBar()
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
goVideo(item) {
|
||||
uni.navigateTo({
|
||||
|
|
@ -1203,4 +1207,4 @@ page{
|
|||
font-size: 24rpx;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
},
|
||||
|
|
@ -109,7 +111,7 @@
|
|||
uni.navigateTo({
|
||||
url:`/pages/store/home/index?id=${item.merchant.mer_id}`
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
goPage(id){
|
||||
uni.navigateTo({
|
||||
|
|
@ -166,7 +168,7 @@
|
|||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
},
|
||||
onReachBottom() {
|
||||
|
|
@ -204,7 +206,7 @@
|
|||
position: relative;
|
||||
margin-top: 12rpx;
|
||||
background-color: #fff;
|
||||
|
||||
|
||||
.title{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
@ -266,9 +268,9 @@
|
|||
color: #fff;
|
||||
font-size: 20rpx;
|
||||
padding: 0 8rpx;
|
||||
line-height: 30rpx;
|
||||
line-height: 30rpx;
|
||||
text-align: center;
|
||||
border-radius: 6rpx;
|
||||
border-radius: 6rpx;
|
||||
}
|
||||
}
|
||||
.btn-box{
|
||||
|
|
@ -311,7 +313,7 @@
|
|||
}
|
||||
.nothing {
|
||||
margin-top: 200rpx;
|
||||
text-align: center;
|
||||
text-align: center;
|
||||
}
|
||||
.nothing_text{
|
||||
margin-top: 20rpx;
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 21 KiB |
Loading…
Reference in New Issue