Commit 788879e6795a002f7754f397f2528b288d67b7c0
1 parent
4df2b4fe
预约服务的跳转
Showing
4 changed files
with
55 additions
and
1 deletions
pages/user/my_service/tment_eval.js
... | ... | @@ -231,4 +231,38 @@ Page({ |
231 | 231 | th.evaluate_get(); |
232 | 232 | } |
233 | 233 | }, |
234 | + //评价其他跳转 | |
235 | + evaluate_qt:function(){ | |
236 | + | |
237 | + wx.redirectTo({ | |
238 | + url: "/pages/user/my_service/tment_order_list?state="+2 | |
239 | + }); | |
240 | + }, | |
241 | + //点击领取礼包 | |
242 | + clike_lb:function(){ | |
243 | + | |
244 | + var dd=this.data.number; | |
245 | + var url = "/api/weshop/marketing/comment/act/judge"; | |
246 | + getApp().request.promiseGet(url, { | |
247 | + data: { | |
248 | + userId: d.user_id, | |
249 | + storeId: a.stoid, | |
250 | + orderType: 2,//评价类型 1=商城订单评价 2=美容师评价 | |
251 | + orderNumber: dd | |
252 | + } | |
253 | + }).then(res => { | |
254 | + | |
255 | + if (res.data.code==0){ | |
256 | + var data=res.data.data; | |
257 | + var id=data.id; | |
258 | + var gifbagid = data.gifbagid; | |
259 | + var type= data.type | |
260 | + | |
261 | + wx.redirectTo({ | |
262 | + url: "/pages/giftpack/evaluategift/evaluategift?actId=" + id + "&gifbagid=" + gifbagid + "&orderType=" + type | |
263 | + }); | |
264 | + } | |
265 | + }) | |
266 | + } | |
267 | + | |
234 | 268 | }) |
235 | 269 | \ No newline at end of file | ... | ... |
pages/user/my_service/tment_eval.wxml
... | ... | @@ -91,4 +91,16 @@ |
91 | 91 | <view>确认提交</view> |
92 | 92 | </view> |
93 | 93 | </navigator> |
94 | +<view wx:else> | |
95 | + | |
96 | + | |
97 | +<view style="margin: auto;margin-bottom: 30rpx;" class="Submission flex-center" bindtap="evaluate_qt"> | |
98 | + <view>评价其他</view> | |
99 | + </view> | |
100 | + | |
101 | + | |
102 | + <view style="margin: auto;margin-bottom: 30rpx;" class="Submission flex-center yellow-b" bindtap="clike_lb"> | |
103 | + <view>点击领取礼品</view> | |
104 | + </view> | |
105 | + </view> | |
94 | 106 | <warn id="warn"></warn> |
95 | 107 | \ No newline at end of file | ... | ... |
pages/user/my_service/tment_eval.wxss
pages/user/my_service/tment_order_list.js
... | ... | @@ -39,7 +39,11 @@ Page({ |
39 | 39 | * 生命周期函数--监听页面加载 |
40 | 40 | */ |
41 | 41 | onLoad: function(options) { |
42 | - | |
42 | + var state=options.state; | |
43 | + if (state != null && state != undefined && state!=""){ | |
44 | + this.setData({ activeCategoryId: state }); | |
45 | + } | |
46 | + | |
43 | 47 | }, |
44 | 48 | changeTab: function(e) { |
45 | 49 | var th = this; | ... | ... |