|
@@ -237,7 +237,7 @@ Component({ |
|
@@ -237,7 +237,7 @@ Component({ |
|
237
|
type: 1,
|
237
|
type: 1,
|
|
238
|
});
|
238
|
});
|
|
239
|
//this.matchArray(cookbookid,1,countTotal,countPirce)
|
239
|
//this.matchArray(cookbookid,1,countTotal,countPirce)
|
|
240
|
- App.Advance.AddCart({
|
240
|
+ let params={
|
|
241
|
orderid: this.data.orderid,
|
241
|
orderid: this.data.orderid,
|
|
242
|
openid: util.cache('openid'),
|
242
|
openid: util.cache('openid'),
|
|
243
|
cookbookid: cookbookid,
|
243
|
cookbookid: cookbookid,
|
|
@@ -246,12 +246,19 @@ Component({ |
|
@@ -246,12 +246,19 @@ Component({ |
|
246
|
request_uri: this.data.request_uri == true ? 1 : '',//服务员通过消息通知进来 又加菜的标识
|
246
|
request_uri: this.data.request_uri == true ? 1 : '',//服务员通过消息通知进来 又加菜的标识
|
|
247
|
fromSoucre: this.data.fromSoucre ? this.data.fromSoucre : '',
|
247
|
fromSoucre: this.data.fromSoucre ? this.data.fromSoucre : '',
|
|
248
|
identity: this.data.identity
|
248
|
identity: this.data.identity
|
|
249
|
- });
|
249
|
+ }
|
|
|
|
250
|
+ if(this.data.item.specid>0){
|
|
|
|
251
|
+ params.specid=this.data.item.specid;
|
|
|
|
252
|
+ }
|
|
|
|
253
|
+ if(this.data.item.practiceid>0){
|
|
|
|
254
|
+ params.practiceid=this.data.item.practiceid;
|
|
|
|
255
|
+ }
|
|
|
|
256
|
+ App.Advance.AddCart(params);
|
|
250
|
});
|
257
|
});
|
|
251
|
},
|
258
|
},
|
|
252
|
//减菜面板
|
259
|
//减菜面板
|
|
253
|
subtractCook(){
|
260
|
subtractCook(){
|
|
254
|
- console.log('addFunction', this.data.item);
|
261
|
+ console.log('subtractCook', this.data.item);
|
|
255
|
var cookbookid = this.data.item.identity>=0?this.data.item.cookbookid:this.data.item.id
|
262
|
var cookbookid = this.data.item.identity>=0?this.data.item.cookbookid:this.data.item.id
|
|
256
|
var price = this.data.item.price;
|
263
|
var price = this.data.item.price;
|
|
257
|
this.initKindMenu().then(res => {
|
264
|
this.initKindMenu().then(res => {
|
|
@@ -266,8 +273,7 @@ Component({ |
|
@@ -266,8 +273,7 @@ Component({ |
|
266
|
cookbookid: cookbookid,
|
273
|
cookbookid: cookbookid,
|
|
267
|
type: -1,
|
274
|
type: -1,
|
|
268
|
});
|
275
|
});
|
|
269
|
-
|
|
|
|
270
|
- App.Advance.ReduceOrder({
|
276
|
+ let params={
|
|
271
|
orderid: this.data.orderid,
|
277
|
orderid: this.data.orderid,
|
|
272
|
openid: getApp().openid,
|
278
|
openid: getApp().openid,
|
|
273
|
cookbookid: cookbookid,
|
279
|
cookbookid: cookbookid,
|
|
@@ -278,7 +284,14 @@ Component({ |
|
@@ -278,7 +284,14 @@ Component({ |
|
278
|
status: this.data.fromSoucre != '' ? 2 : '',//只查没有下单的
|
284
|
status: this.data.fromSoucre != '' ? 2 : '',//只查没有下单的
|
|
279
|
source: 2,
|
285
|
source: 2,
|
|
280
|
identity: this.data.identity
|
286
|
identity: this.data.identity
|
|
281
|
- });
|
287
|
+ }
|
|
|
|
288
|
+ if(this.data.item.specid>0){
|
|
|
|
289
|
+ params.specid=this.data.item.specid;
|
|
|
|
290
|
+ }
|
|
|
|
291
|
+ if(this.data.item.practiceid>0){
|
|
|
|
292
|
+ params.practiceid=this.data.item.practiceid;
|
|
|
|
293
|
+ }
|
|
|
|
294
|
+ App.Advance.ReduceOrder(params);
|
|
282
|
});
|
295
|
});
|
|
283
|
},
|
296
|
},
|
|
284
|
//减菜面板加菜按钮
|
297
|
//减菜面板加菜按钮
|