Browse Source

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

chenxiqiang 4 years ago
parent
commit
86aa795f7b

+ 5
- 2
miniapp/app/pages/bookService/index.js View File

7
         api: ''
7
         api: ''
8
     },
8
     },
9
     onLoad(options) {
9
     onLoad(options) {
10
+        this.setData({
11
+            id: options.id
12
+        });
10
         if (!options.id) {
13
         if (!options.id) {
11
             return $.wx.showToast({
14
             return $.wx.showToast({
12
                 title: '找不到对应id'
15
                 title: '找不到对应id'
98
         let that = this;
101
         let that = this;
99
         return {
102
         return {
100
             title: '玥子轩母婴家政',
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 View File

132
         let that = this;
132
         let that = this;
133
         return {
133
         return {
134
             title: '玥子轩母婴家政',
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 View File

51
         return {
51
         return {
52
             title: '玥子轩母婴家政',
52
             title: '玥子轩母婴家政',
53
             desc: '介绍',
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 View File

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

Loading…
Cancel
Save