Bläddra i källkod

修复部分页面无法发送问题

chenxiqiang 4 år sedan
förälder
incheckning
86aa795f7b

+ 5
- 2
miniapp/app/pages/bookService/index.js Visa fil

@@ -7,6 +7,9 @@ new $.Page({
7 7
         api: ''
8 8
     },
9 9
     onLoad(options) {
10
+        this.setData({
11
+            id: options.id
12
+        });
10 13
         if (!options.id) {
11 14
             return $.wx.showToast({
12 15
                 title: '找不到对应id'
@@ -98,8 +101,8 @@ new $.Page({
98 101
         let that = this;
99 102
         return {
100 103
             title: '玥子轩母婴家政',
101
-        desc: '预约服务',
102
-        path: '/pages/bookService/index'
104
+            desc: '预约服务',
105
+            path: '/pages/bookService/index?id=' + that.data.id
103 106
         }
104 107
     }
105 108
 });

+ 2
- 2
miniapp/app/pages/goodsDetail/index.js Visa fil

@@ -132,8 +132,8 @@ new $.Page({
132 132
         let that = this;
133 133
         return {
134 134
             title: '玥子轩母婴家政',
135
-        desc: that.data.name,
136
-        path: '/pages/goodsDetail/index'
135
+            desc: that.data.detail.name,
136
+            path: '/pages/goodsDetail/index?id=' + that.data.detail.id
137 137
         }
138 138
     }
139 139
 });

+ 1
- 1
miniapp/app/pages/introduce/index.js Visa fil

@@ -51,7 +51,7 @@ new $.Page({
51 51
         return {
52 52
             title: '玥子轩母婴家政',
53 53
             desc: '介绍',
54
-            path: '/pages/introduce/index'
54
+            path: '/pages/introduce/index?id=' + that.data.id 
55 55
         }
56 56
     }
57 57
 })

+ 4
- 1
miniapp/app/pages/yuesao/index.js Visa fil

@@ -7,6 +7,9 @@ new $.Page({
7 7
         api: ''
8 8
     },
9 9
     onLoad(options) {
10
+        this.setData({
11
+            id: options.id
12
+        });
10 13
         if (!options.id) {
11 14
             return $.wx.showToast({
12 15
                 title: '找不到对应id'
@@ -102,7 +105,7 @@ new $.Page({
102 105
         return {
103 106
             title: '玥子轩母婴家政',
104 107
             desc: '月嫂预约',
105
-            path: '/pages/yuesao/index'
108
+            path: '/pages/yuesao/index?id=' + that.data.id
106 109
         }
107 110
     }
108 111
 });

Loading…
Avbryt
Spara