Showing
4 changed files
with
21 additions
and
5 deletions
| @@ -57,6 +57,11 @@ Page({ | @@ -57,6 +57,11 @@ Page({ | ||
| 57 | }) | 57 | }) |
| 58 | } | 58 | } |
| 59 | }); | 59 | }); |
| 60 | + App.Customer.GetCountCommentLabel({sid:options.id}).then(res=>{ | ||
| 61 | + this.setData({ | ||
| 62 | + commentLabel:res.data, | ||
| 63 | + }) | ||
| 64 | + }) | ||
| 60 | }, | 65 | }, |
| 61 | GetSellerDetail(){ | 66 | GetSellerDetail(){ |
| 62 | let options=this.options | 67 | let options=this.options |
| @@ -207,11 +207,9 @@ | @@ -207,11 +207,9 @@ | ||
| 207 | </view> | 207 | </view> |
| 208 | </navigator> | 208 | </navigator> |
| 209 | <view class="view padding-bottom-xl"> | 209 | <view class="view padding-bottom-xl"> |
| 210 | - <view class="view flex flex-wrap"> | ||
| 211 | - <view class="view tab-item round solids padding">的范德萨发</view> | ||
| 212 | - <view class="view tab-item round solids padding">的范德萨发</view> | ||
| 213 | - <view class="view tab-item round solids padding">的范德萨发</view> | ||
| 214 | - <view class="view tab-item round solids padding margin-bottom-sm">的范德萨发</view> | 210 | + <view class="view flex flex-wrap" wx:if="{{commentLabel.length>0}}"> |
| 211 | + <block wx:for="{{commentLabel}}" wx:key="commentLabel"></block> | ||
| 212 | + <view class="view commentLabel padding-lr-sm margin-bottom-sm">{{item.name}}</view> | ||
| 215 | </view> | 213 | </view> |
| 216 | <view class="margin-top-lg"> | 214 | <view class="margin-top-lg"> |
| 217 | <plcard post="{{seller.comment_info}}"></plcard> | 215 | <plcard post="{{seller.comment_info}}"></plcard> |
| @@ -636,5 +636,16 @@ | @@ -636,5 +636,16 @@ | ||
| 636 | white-space:nowrap; | 636 | white-space:nowrap; |
| 637 | text-overflow: ellipsis; | 637 | text-overflow: ellipsis; |
| 638 | overflow: hidden; | 638 | overflow: hidden; |
| 639 | +} | ||
| 640 | +.commentLabel{ | ||
| 641 | + height: 52rpx; | ||
| 642 | + background: #F1F1F1; | ||
| 643 | + border-radius: 26rpx; | ||
| 639 | 644 | ||
| 645 | + font-size: 26rpx; | ||
| 646 | + font-family: PingFangSC-Regular, PingFang SC; | ||
| 647 | + font-weight: 400; | ||
| 648 | + color: #666666; | ||
| 649 | + line-height: 52rpx; | ||
| 650 | + text-align: center; | ||
| 640 | } | 651 | } |
| @@ -548,6 +548,8 @@ export default { | @@ -548,6 +548,8 @@ export default { | ||
| 548 | 'App.Customer.CheckIsComment':{ | 548 | 'App.Customer.CheckIsComment':{ |
| 549 | openid:'openid', | 549 | openid:'openid', |
| 550 | }, | 550 | }, |
| 551 | + //获取商家评价的每个标签的统计 | ||
| 552 | + 'App.Customer.GetCountCommentLabel':null, | ||
| 551 | 553 | ||
| 552 | //获取商家优惠对接人信息 | 554 | //获取商家优惠对接人信息 |
| 553 | 'App.Customer.GetSellerPreferentialDocking':null, | 555 | 'App.Customer.GetSellerPreferentialDocking':null, |
-
Please register or login to post a comment