Commit 27471549fa572cce7d95a6f78c82a0d3e60c153a

Authored by DESKTOP-QHAFKU5\iceling
1 parent dd37e385

提交评价提示

pages/user/my_service/beauty_deta.js
... ... @@ -65,7 +65,9 @@ Page({
65 65 })
66 66 }
67 67 if (options.StaffName!=undefined){
68   - StaffName: options.StaffName
  68 + th.setData({
  69 + StaffName: options.StaffName
  70 + })
69 71 }
70 72 th.query_beatea();
71 73 th.query_aweek();
... ...
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 <!-- 姓名 -->
... ...