Showing
4 changed files
with
14 additions
and
4 deletions
@@ -33,6 +33,7 @@ module.exports = { | @@ -33,6 +33,7 @@ module.exports = { | ||
33 | params: [ | 33 | params: [ |
34 | {name: "shopId", type: "Number"}, | 34 | {name: "shopId", type: "Number"}, |
35 | {name: "platform", type: "Number"}, | 35 | {name: "platform", type: "Number"}, |
36 | + {name: 'platformType', type: 'Number'}, | ||
36 | {name: "appType", type: "Number"} | 37 | {name: "appType", type: "Number"} |
37 | ] | 38 | ] |
38 | }, | 39 | }, |
@@ -18,7 +18,8 @@ | @@ -18,7 +18,8 @@ | ||
18 | title:"店铺装修详情", | 18 | title:"店铺装修详情", |
19 | url:"/ShopsDecoratorRest/findShopsDecoratorDetail", | 19 | url:"/ShopsDecoratorRest/findShopsDecoratorDetail", |
20 | params:[ | 20 | params:[ |
21 | - {name: 'shopsId', type: 'Number'} | 21 | + {name: 'shopsId', type: 'Number'}, |
22 | + {name: 'platformType', type: 'Number'} | ||
22 | ] | 23 | ] |
23 | }, | 24 | }, |
24 | 25 |
@@ -262,16 +262,19 @@ function getDialogOption(title) { | @@ -262,16 +262,19 @@ function getDialogOption(title) { | ||
262 | 262 | ||
263 | //Ajax查询 | 263 | //Ajax查询 |
264 | function findDecoration(){ | 264 | function findDecoration(){ |
265 | - console.log('1'); | ||
266 | common.util.__ajax( | 265 | common.util.__ajax( |
267 | { | 266 | { |
268 | url:'/shop/ShopsDecoratorRest/findShopsDecoratorDetail', | 267 | url:'/shop/ShopsDecoratorRest/findShopsDecoratorDetail', |
269 | data: { | 268 | data: { |
270 | - "shopsId": shopsId | 269 | + "shopsId": shopsId, |
270 | + "platformType": 2 | ||
271 | } | 271 | } |
272 | }, | 272 | }, |
273 | function(rs) { | 273 | function(rs) { |
274 | - console.log(rs.data); | 274 | + if(rs.data == 500){ |
275 | + common.util.__tip(rs.message); | ||
276 | + return; | ||
277 | + } | ||
275 | if(rs.data){ | 278 | if(rs.data){ |
276 | jsonMain = rs.data; | 279 | jsonMain = rs.data; |
277 | } | 280 | } |
@@ -161,10 +161,15 @@ var Bll = { | @@ -161,10 +161,15 @@ var Bll = { | ||
161 | data: { | 161 | data: { |
162 | shopId: Bll.shopId, | 162 | shopId: Bll.shopId, |
163 | platform: +t.active ? 0 : 1, | 163 | platform: +t.active ? 0 : 1, |
164 | + platformType: 2, | ||
164 | appType: Bll.appType | 165 | appType: Bll.appType |
165 | }, | 166 | }, |
166 | async: false | 167 | async: false |
167 | }, function(res) { | 168 | }, function(res) { |
169 | + if(res.data == 500){ | ||
170 | + common.util.__tip(res.message); | ||
171 | + return; | ||
172 | + } | ||
168 | if(res && res.data) { | 173 | if(res && res.data) { |
169 | shopTemplates = res.data; | 174 | shopTemplates = res.data; |
170 | $.each(shopTemplates, function(index, template) { | 175 | $.each(shopTemplates, function(index, template) { |
-
Please register or login to post a comment