Commit ea72eafe94599d247bcf96273685fa8165dc1552
1 parent
47b55b0c
提交预约bug修改
Showing
1 changed file
with
7 additions
and
7 deletions
pages/user/my_service/appment_main.js
@@ -228,17 +228,18 @@ Page({ | @@ -228,17 +228,18 @@ Page({ | ||
228 | typeid: "1011" | 228 | typeid: "1011" |
229 | } | 229 | } |
230 | }).then(res => { | 230 | }).then(res => { |
231 | - if (res.data.code == 0) { | 231 | + if (res.data.code == 0 && res.data.data.pageData.length>0) { |
232 | template_id = res.data.data.pageData[0].template_id; | 232 | template_id = res.data.data.pageData[0].template_id; |
233 | // //授权订阅 | 233 | // //授权订阅 |
234 | wx.requestSubscribeMessage({ | 234 | wx.requestSubscribeMessage({ |
235 | tmplIds: [template_id], | 235 | tmplIds: [template_id], |
236 | - success(res) {}, | ||
237 | - fail(res) {} | 236 | + success(res) { th.success();}, |
237 | + fail(res) { th.success();} | ||
238 | }) | 238 | }) |
239 | - } else {} | 239 | + } else { |
240 | + th.success(); | ||
241 | + } | ||
240 | }) | 242 | }) |
241 | - th.success(); | ||
242 | }, | 243 | }, |
243 | goto: function(e) { | 244 | goto: function(e) { |
244 | var th = this; | 245 | var th = this; |
@@ -269,8 +270,7 @@ Page({ | @@ -269,8 +270,7 @@ Page({ | ||
269 | fir_pick_index: index_c, | 270 | fir_pick_index: index_c, |
270 | beautician_name: "", | 271 | beautician_name: "", |
271 | time: "", | 272 | time: "", |
272 | - tment_count: "", | ||
273 | - is_textea: 1 | 273 | + tment_count: "" |
274 | }) | 274 | }) |
275 | } | 275 | } |
276 | }, | 276 | }, |