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 81e187b commit edf9021
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 20 deletions.
4 changes: 2 additions & 2 deletions src/assets/css/busDetails.scss
Original file line number Diff line number Diff line change
Expand Up @@ -429,11 +429,11 @@ background-color: #fff;
li {
display: inline-block;
margin-right: 15px;
margin-bottom: 15px;
margin-bottom: 7px;
}
}
.item {
margin-bottom: 25px;
margin-bottom: 15px;
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/page/user.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
</ul>
</div>
</div>

</waterfall-slot>
</waterfall>
</div>
Expand Down Expand Up @@ -125,7 +126,7 @@ export default {
orderNum: null,
uid: null,
page: 1,
grow: [2, 2, 3],
grow: [2, 2, 2],
line: 'v'
}
},
Expand Down
17 changes: 0 additions & 17 deletions src/store/modules/viewPhoto.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,6 @@ const mutations = {
state.photoList[data.order].fav_num++
state.photoList.splice(data.order, 1, obj)
}
//TODO:
if(state.photoListFill[data.order]){
const obj = state.photoListFill[data.order]
obj.is_fav = !obj.is_fav
state.photoListFill[data.order].is_fav = obj.is_fav
state.photoListFill[data.order].fav_num++
state.photoListFill.splice(data.order, 1, obj)
}

if(state.list[data.index]){
const objModal = state.list[data.index]
Expand All @@ -63,15 +55,6 @@ const mutations = {
state.photoList.splice(data.order, 1, obj)
}

//TODO:
if(state.photoListFill[data.order]){
const obj = state.photoListFill[data.order]
obj.is_fav = !obj.is_fav
state.photoListFill[data.order].is_fav = obj.is_fav
state.photoListFill[data.order].fav_num--
state.photoListFill.splice(data.order, 1, obj)
}

if(state.list[data.index]){
const objModal = state.list[data.index]
objModal.is_fav = !objModal.is_fav
Expand Down

0 comments on commit edf9021

Please sign in to comment.