梁沛聪 6 anni fa
parent
commit
239e26139e

+ 2
- 1
miniapp/app/pages/bookService/index.js Vedi File

38
             phone,
38
             phone,
39
             address,
39
             address,
40
             notes,
40
             notes,
41
-            options
41
+            options,
42
+            api
42
         } = this.data;
43
         } = this.data;
43
         if (!name || !phone || !address) {
44
         if (!name || !phone || !address) {
44
             return $.wx.showToast({
45
             return $.wx.showToast({

+ 2
- 1
miniapp/app/pages/order/index.js Vedi File

35
         });
35
         });
36
     },
36
     },
37
     toPay(e) {
37
     toPay(e) {
38
+        const _this = this;
38
         const {
39
         const {
39
             id,
40
             id,
40
             type
41
             type
63
                         success(res) {
64
                         success(res) {
64
                             console.log('支付成功', res);
65
                             console.log('支付成功', res);
65
                             $.wx.hideToast('loading');
66
                             $.wx.hideToast('loading');
66
-
67
+                            _this.init();
67
                         },
68
                         },
68
                         fail() {
69
                         fail() {
69
                             $.wx.showToast({
70
                             $.wx.showToast({

Loading…
Annulla
Salva