Commit c4b137429af9896de599f97f2d5f39f0835613e8
1 parent
cad074fd
忘记提交的美容师评级显示bug
Showing
3 changed files
with
21 additions
and
18 deletions
pages/user/my_service/cosmetology_list.wxml
| ... | ... | @@ -2,9 +2,9 @@ |
| 2 | 2 | <image class="appointment" src="{{iurl}}/miniapp/images/yyservice/Cosm_appo.png"></image> |
| 3 | 3 | |
| 4 | 4 | <!-- 总预约 --> |
| 5 | - <view wx:if="{{true}}"> | |
| 5 | + <view wx:if="{{cosmetology_list.length>0}}"> | |
| 6 | 6 | <!-- 当个预约 --> |
| 7 | - <view class="single" wx:for="{{cosmetology_list}}"> | |
| 7 | + <view class="single" wx:for="{{cosmetology_list}}" wx:for-item="item"> | |
| 8 | 8 | <!-- 个人属性 --> |
| 9 | 9 | <view class="flex-vertical-between"> |
| 10 | 10 | <view class="flex-vertical"> |
| ... | ... | @@ -14,21 +14,20 @@ |
| 14 | 14 | <view class="UserName ellipsis-1 fs32">{{item.StaffName}}</view> |
| 15 | 15 | <!-- 评价星数 --> |
| 16 | 16 | <view class="flex" style="margin-top:10rpx;"> |
| 17 | - <image class="Stars" src="{{iurl}}{{key<item.Star || item.Star==''?'/miniapp/images/StarsredCk.png':'/miniapp/images/StarswhiteUnCk.png'}}" wx:for="{{item.Star==''?5:it.Star}}" wx:for-index="key" wx:for-item="it"></image> | |
| 17 | + <image class="Stars" src="{{iurl}}{{key<item.Star || item.Star==''?'/miniapp/images/StarsredCk.png':'/miniapp/images/StarswhiteUnCk.png'}}" wx:for="{{item.Star==''?5:5}}" wx:for-index="key" wx:for-item="it"></image> | |
| 18 | 18 | <!-- images/StarswhiteUnCk.png//白色星星地址 --> |
| 19 | 19 | </view> |
| 20 | 20 | <!-- 个人标签 --> |
| 21 | - <view class="Label fs22 flex" wx:if="{{item.EvaluationLabel!=''?true:false}} " wx:for="{{item.EvaluationLabel.split('|')}}"> | |
| 22 | - <view wx:if="{{index==0}}" class="flex-center Labelitem itone"> | |
| 23 | - <view>{{item}}</view> | |
| 21 | + <view class="Labels fs22 flex" wx:if="{{item.EvaluationLabel!=''?true:false}} "> | |
| 22 | + <view wx:if="{{lab<3}}" class="flex-center Labelitem itone {{lab==1?'itwo':''}} {{lab==2?ith:''}}" wx:for="{{item.EvaluationLabel}}" wx:for-item="it" wx:for-index="lab"> | |
| 23 | + <view class="ellipsis-1">{{it.LabelName}}</view> | |
| 24 | 24 | </view> |
| 25 | - <view wx:if="{{index==1}}" class="flex-center Labelitem itwo"> | |
| 26 | - <view>{{item}}</view> | |
| 25 | + <!-- <view wx:if="{{lab==1}}" class="flex-center Labelitem itwo"> | |
| 26 | + <view class="ellipsis-1">{{it.LabelName}}</view> | |
| 27 | 27 | </view> |
| 28 | - <view wx:if="{{index==2}}" class="flex-center Labelitem ith"> | |
| 29 | - <view>{{item}}</view> | |
| 30 | - </view> | |
| 31 | - | |
| 28 | + <view wx:if="{{lab==2}}" class="flex-center Labelitem ith"> | |
| 29 | + <view class="ellipsis-1">{{it.LabelName}}</view> | |
| 30 | + </view> --> | |
| 32 | 31 | </view> |
| 33 | 32 | </view> |
| 34 | 33 | </view> |
| ... | ... | @@ -50,7 +49,7 @@ |
| 50 | 49 | </view> |
| 51 | 50 | <!-- 没有数据 --> |
| 52 | 51 | <!-- 加载完毕并且数据大于=页大小 --> |
| 53 | - <view class="After_all flex-center" wx:if="{{ismore && service_List.length>=4}}"> | |
| 52 | + <view class="After_all flex-center" wx:if="{{ismore && cosmetology_list.length>=4}}"> | |
| 54 | 53 | <view class="Line"></view> |
| 55 | 54 | <view class="end fs26 xc-black">到底了</view> |
| 56 | 55 | <view class="Line"></view> | ... | ... |
pages/user/my_service/cosmetology_list.wxss
| ... | ... | @@ -32,7 +32,10 @@ page{ |
| 32 | 32 | height: 25rpx; |
| 33 | 33 | margin-right: 7rpx; |
| 34 | 34 | } |
| 35 | - | |
| 35 | +.Labels{ | |
| 36 | + width: 100%; | |
| 37 | + margin-top: 15rpx; | |
| 38 | +} | |
| 36 | 39 | .Label { |
| 37 | 40 | margin-top: 25rpx; |
| 38 | 41 | } |
| ... | ... | @@ -43,6 +46,7 @@ page{ |
| 43 | 46 | border-radius: 20rpx; |
| 44 | 47 | line-height: 30rpx; |
| 45 | 48 | margin-right: 14rpx; |
| 49 | + padding:0rpx 10rpx; | |
| 46 | 50 | } |
| 47 | 51 | |
| 48 | 52 | .itone { | ... | ... |
pages/user/my_service/tment_eval.js
| ... | ... | @@ -179,14 +179,14 @@ Page({ |
| 179 | 179 | }, // 设置请求的 header |
| 180 | 180 | success: function(res) { |
| 181 | 181 | if (res.data.code == 0) { |
| 182 | + th.setData({ | |
| 183 | + sub_evaluate: 1 | |
| 184 | + }) | |
| 182 | 185 | setTimeout(function() { |
| 183 | - th.setData({ | |
| 184 | - sub_evaluate: 1 | |
| 185 | - }) | |
| 186 | 186 | wx.redirectTo({ |
| 187 | 187 | url: "/pages/user/my_service/tment_order_list" |
| 188 | 188 | }); |
| 189 | - }, 2000); | |
| 189 | + }, 2500); | |
| 190 | 190 | } else { |
| 191 | 191 | getApp().my_warnning(res.data.msg, 0, th); |
| 192 | 192 | } | ... | ... |