Skip to content

Commit

Permalink
update this project
Browse files Browse the repository at this point in the history
  • Loading branch information
waihoyu committed Jul 31, 2018
1 parent 292ac04 commit daf6cdb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,4 @@
color rgb(77, 85, 93)
&.active
color rgb(240, 20, 20)
.tab2
</style>
15 changes: 15 additions & 0 deletions src/components/food/food.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,21 @@
<div class="rating">
<h1 class="title">商品评价</h1>
<ratingselect :select-type="selectType" :only-content="onlyContent" :desc="desc" :ratings="food.ratings"></ratingselect>
<div class="rating-wrapper">
<ul v-show="food.ratings && food.ratings.length">
<li class="rating-item" v-for="(rating,index) in food.ratings" :key="index">
<div class="user">
<span class="name">{{ratings.username}}</span>
<img width="12" height="12" src="rating.avatar" alt="" class="avatar">
</div>
<div class="time">{{rating.rateTime}}</div>
<p class="text">
<span :class="{'icon-thumb_up':rating.rateType === 0,'icon-thumb_down':rating.rateType === 1}"></span>
</p>
</li>
</ul>
<div class="no-rati" v-show="!food.ratings || ! food.ratings.length"></div>
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit daf6cdb

Please sign in to comment.