Skip to content

Commit e864d9b

Browse files
committed
add back svg
1 parent 026c4ec commit e864d9b

File tree

5 files changed

+21
-3
lines changed

5 files changed

+21
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ vue2 + vuex + vue-router + webpack + ES6/7 + fetch + sass + flex + svg
2424

2525
### 2017-05-30
2626

27-
由于一些原因,官网数据接口无法使用,导致项目无法正常运行。今天开始改用nodejs构建的后台接口,并且保持了和官网的一致。感兴趣的朋友可以去看看。[后台项目地址](https://github.com/bailicangdu/node-elm)
27+
由于一些原因,以前的数据接口无法使用,导致项目无法正常运行。今天开始改用nodejs构建的[后台系统](https://github.com/bailicangdu/node-elm)接口,数据接口的格式保持了和官网的一致。并提供对应的[后台管理系统](https://github.com/bailicangdu/vue2-manage)
2828

2929

3030

src/components/common/shoplist.vue

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="shoplist_container">
3-
<ul v-load-more="loaderMore" v-if="shopListArr.length" type="1">
3+
<ul v-load-more="loaderMore" v-if="!shopListArr.length" type="1">
44
<router-link :to="{path: 'shop', query:{geohash, id: item.id}}" v-for="item in shopListArr" tag='li' :key="item.id" class="shop_li">
55
<section>
66
<img :src="imgBaseUrl + item.image_path" class="shop_img">
@@ -45,6 +45,11 @@
4545
</hgroup>
4646
</router-link>
4747
</ul>
48+
<ul v-else>
49+
<li class="list_back_li" v-for="item in 10" :key="item">
50+
<img src="../../images/shopback.svg" class="list_back_svg">
51+
</li>
52+
</ul>
4853
<p v-if="touchend" class="empty_data">没有更多了</p>
4954
<aside class="return_top" @click="backTop" v-if="showBackStatus">
5055
<svg class="back_top_svg">
@@ -200,6 +205,12 @@ export default {
200205
display: block;
201206
margin-right: 0.4rem;
202207
}
208+
.list_back_li{
209+
height: 5.85rem;
210+
.list_back_svg{
211+
@include wh(100%, 100%)
212+
}
213+
}
203214
.shop_right{
204215
flex: auto;
205216
.shop_detail_header{

src/images/fl.svg

Lines changed: 1 addition & 0 deletions
Loading

src/images/shopback.svg

Lines changed: 1 addition & 0 deletions
Loading

src/page/msite/msite.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</router-link>
1313
</head-top>
1414
<nav class="msite_nav">
15-
<div class="swiper-container">
15+
<div class="swiper-container" v-if="foodTypes.length">
1616
<div class="swiper-wrapper">
1717
<div class="swiper-slide food_types_container" v-for="(item, index) in foodTypes" :key="index">
1818
<router-link :to="{path: '/food', query: {geohash, title: foodItem.title, restaurant_category_id: getCategoryId(foodItem.link)}}" v-for="foodItem in item" :key="foodItem.id" class="link_to_food">
@@ -25,6 +25,7 @@
2525
</div>
2626
<div class="swiper-pagination"></div>
2727
</div>
28+
<img src="../../images/fl.svg" class="fl_back" v-else>
2829
</nav>
2930
<div class="shop_list_container">
3031
<header class="shop_header">
@@ -146,13 +147,17 @@ export default {
146147
padding-top: 2.1rem;
147148
background-color: #fff;
148149
border-bottom: 0.025rem solid $bc;
150+
height: 10.6rem;
149151
.swiper-container{
150152
@include wh(100%, auto);
151153
padding-bottom: 0.6rem;
152154
.swiper-pagination{
153155
bottom: 0.2rem;
154156
}
155157
}
158+
.fl_back{
159+
@include wh(100%, 100%);
160+
}
156161
}
157162
.food_types_container{
158163
display:flex;

0 commit comments

Comments
 (0)