Commit 27471549fa572cce7d95a6f78c82a0d3e60c153a
1 parent
dd37e385
提交评价提示
Showing
3 changed files
with
10 additions
and
6 deletions
pages/user/my_service/beauty_deta.js
pages/user/my_service/tment_eval.js
... | ... | @@ -149,6 +149,9 @@ Page({ |
149 | 149 | getApp().my_warnning("给点建议呗", 0, th); |
150 | 150 | return false; |
151 | 151 | } |
152 | + wx.showLoading({ | |
153 | + title: '加载中', | |
154 | + }) | |
152 | 155 | var labels = th.data.labels; //星级标签数组 |
153 | 156 | var evaLabList = []; //用户选择的评价标签 |
154 | 157 | // 查询评价标签 |
... | ... | @@ -178,15 +181,14 @@ Page({ |
178 | 181 | 'content-type': 'application/json' |
179 | 182 | }, // 设置请求的 header |
180 | 183 | success: function(res) { |
184 | + wx.hideLoading(); | |
181 | 185 | if (res.data.code == 0) { |
182 | - th.setData({ | |
183 | - sub_evaluate: 1 | |
184 | - }) | |
186 | + getApp().my_warnning("评价成功", 1, th); | |
185 | 187 | setTimeout(function() { |
186 | 188 | wx.redirectTo({ |
187 | 189 | url: "/pages/user/my_service/tment_order_list" |
188 | 190 | }); |
189 | - }, 2500); | |
191 | + }, 2000); | |
190 | 192 | } else { |
191 | 193 | getApp().my_warnning(res.data.msg, 0, th); |
192 | 194 | } | ... | ... |
pages/user/my_service/tment_eval.wxml
... | ... | @@ -2,7 +2,7 @@ |
2 | 2 | |
3 | 3 | <!-- 头像 --> |
4 | 4 | <view class="flex-center head"> |
5 | - <image class="headimg" src="{{beautician.PhotoUrl==''?iurl+defimgurl:beautician.PhotoUrl}}" lazy-load="true" data-errorimg="beautician.PhotoUrl" binderror="bind_bnerr1" data-img="{{beautician.PhotoUrl}}"></image> | |
5 | + <image class="headimg" src="{{beautician.PhotoUrl==''?iurl+defimgurl:beautician.PhotoUrl}}" lazy-load="true" data-errorimg="{{beautician.PhotoUrl}}" binderror="bind_bnerr1" data-img="{{beautician.PhotoUrl}}"></image> | |
6 | 6 | </view> |
7 | 7 | |
8 | 8 | <!-- 姓名 --> | ... | ... |