梁沛聪 6 роки тому
джерело
коміт
01ecbac533

+ 6
- 3
miniapp/app/pages/bookService/index.js Переглянути файл

28
                 banner: res.data.photo || '',
28
                 banner: res.data.photo || '',
29
                 fields,
29
                 fields,
30
                 options,
30
                 options,
31
-                api: res.data.api
31
+                api: res.data.api,
32
+                type: res.data.type
32
             });
33
             });
33
         });
34
         });
34
     },
35
     },
39
             address,
40
             address,
40
             notes,
41
             notes,
41
             options,
42
             options,
42
-            api
43
+            api,
44
+            type
43
         } = this.data;
45
         } = this.data;
44
         if (!name || !phone || !address) {
46
         if (!name || !phone || !address) {
45
             return $.wx.showToast({
47
             return $.wx.showToast({
58
             contact: name,
60
             contact: name,
59
             phone,
61
             phone,
60
             address,
62
             address,
61
-            notes
63
+            notes,
64
+            type
62
         }
65
         }
63
         for (let option of options) {
66
         for (let option of options) {
64
             data[`${option.key}`] = option.value;
67
             data[`${option.key}`] = option.value;

+ 6
- 3
miniapp/app/pages/yuesao/index.js Переглянути файл

28
                 banner: res.data.photo || '',
28
                 banner: res.data.photo || '',
29
                 fields,
29
                 fields,
30
                 options,
30
                 options,
31
-                api: res.data.api
31
+                api: res.data.api,
32
+                type: res.data.type
32
             });
33
             });
33
         });
34
         });
34
     },
35
     },
40
             notes,
41
             notes,
41
             expectedDate,
42
             expectedDate,
42
             serviceDate,
43
             serviceDate,
43
-            options
44
+            options,
45
+            type
44
         } = this.data;
46
         } = this.data;
45
         if (!name || !phone || !address || !expectedDate || !serviceDate) {
47
         if (!name || !phone || !address || !expectedDate || !serviceDate) {
46
             return $.wx.showToast({
48
             return $.wx.showToast({
61
             server_time: serviceDate,
63
             server_time: serviceDate,
62
             address,
64
             address,
63
             contact: name,
65
             contact: name,
64
-            phone
66
+            phone,
67
+            type
65
         };
68
         };
66
         for (let option of options) {
69
         for (let option of options) {
67
             data[`${option.key}`] = option.value;
70
             data[`${option.key}`] = option.value;

Loading…
Відмінити
Зберегти