Skip to content

Commit

Permalink
优化体验
Browse files Browse the repository at this point in the history
  • Loading branch information
wei authored and wei committed Aug 19, 2017
1 parent 274a6aa commit c8b68b0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 1 addition & 3 deletions server/server/index/busData/busDetails.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
"img": [
"/static/images/15.png",
"/static/images/5.png",
"/static/images/7.png",
"/static/images/9.png",
"/static/images/8.png"
"/static/images/7.png"
]
},
"intro_info": {
Expand Down
7 changes: 2 additions & 5 deletions src/components/bigImg.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<template>
<div class="left_zoom" :style="{width:width+'px'}">
<div class="big_img">
<img v-lazy="imgs[currentIndex]" :width="width" :height="height">
<img v-lazy="imgs[currentIndex]" :height="height">
</div>
<div class="small_img">
<transition-group tag="ul" name="list">
<li v-for="(item,index) in imgs" :key="index" v-show="currentIndex-index<4" :class="{'active':index===currentIndex}" @click="currentShow(index)">
<img v-lazy="item" :width="paginaWidth" :height="paginaHeight">
</li>
<li v-for="(item,index) in imgs" :key="index" v-show="currentIndex-index>1" :class="{'active':index===currentIndex}" @click="currentShow(index)">
<li v-for="(item,index) in imgs" :key="index" v-if="currentIndex-index<4" :class="{'active':index===currentIndex}" @click="currentShow(index)">
<img v-lazy="item" :width="paginaWidth" :height="paginaHeight">
</li>
</transition-group>
Expand Down
3 changes: 3 additions & 0 deletions src/page/busSample.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
</li>
</ul>
</div>
<div v-if="!busSampleList || busSampleList.length == 0" class="no-data">
<img src="/static/images/icon-no-data-1.png">
</div>
<com-photoModal v-model="show" :value="show" :photoModal="photoModal" :order="orderNum"></com-photoModal>
</div>
</template>
Expand Down

0 comments on commit c8b68b0

Please sign in to comment.