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 | 228 | typeid: "1011" |
229 | 229 | } |
230 | 230 | }).then(res => { |
231 | - if (res.data.code == 0) { | |
231 | + if (res.data.code == 0 && res.data.data.pageData.length>0) { | |
232 | 232 | template_id = res.data.data.pageData[0].template_id; |
233 | 233 | // //授权订阅 |
234 | 234 | wx.requestSubscribeMessage({ |
235 | 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 | 244 | goto: function(e) { |
244 | 245 | var th = this; |
... | ... | @@ -269,8 +270,7 @@ Page({ |
269 | 270 | fir_pick_index: index_c, |
270 | 271 | beautician_name: "", |
271 | 272 | time: "", |
272 | - tment_count: "", | |
273 | - is_textea: 1 | |
273 | + tment_count: "" | |
274 | 274 | }) |
275 | 275 | } |
276 | 276 | }, | ... | ... |