|
...
|
...
|
@@ -135,26 +135,18 @@ Component({ |
|
|
|
var foodMenuPrice = foodMenu[0].price;
|
|
|
|
var practice_id = foodMenu[0].id;
|
|
|
|
}
|
|
|
|
App.Advance.GetCookbookSelBySpecsId({
|
|
|
|
sellerid: this.data.sellerid,
|
|
|
|
orderid: this.data.orderid,
|
|
|
|
cookbookid: this.data.item.id,
|
|
|
|
status: this.data.fromSoucre != '' ? 2 : '',//只查没有下单的
|
|
|
|
identity: this.data.identity
|
|
|
|
}).then(res => {
|
|
|
|
this.setData({
|
|
|
|
selectKind: res.data,
|
|
|
|
hiddenFoodSpec: false,
|
|
|
|
kind: kind,
|
|
|
|
foodMenu: foodMenu,
|
|
|
|
showSpecsPrice: false,
|
|
|
|
cookbook_name: this.data.item.name,
|
|
|
|
cookbook_id: this.data.item.id,
|
|
|
|
specs_id: specs_id ? specs_id : '',
|
|
|
|
practice_id: practice_id ? practice_id : '',
|
|
|
|
selectPrice: kindPrice > 0 ? kindPrice : foodMenuPrice,
|
|
|
|
add_target: ''
|
|
|
|
})
|
|
|
|
this.setData({
|
|
|
|
selectKind: [],
|
|
|
|
hiddenFoodSpec: false,
|
|
|
|
kind: kind,
|
|
|
|
foodMenu: foodMenu,
|
|
|
|
showSpecsPrice: false,
|
|
|
|
cookbook_name: this.data.item.name,
|
|
|
|
cookbook_id: this.data.item.id,
|
|
|
|
specs_id: specs_id ? specs_id : '',
|
|
|
|
practice_id: practice_id ? practice_id : '',
|
|
|
|
selectPrice: kindPrice > 0 ? kindPrice : foodMenuPrice,
|
|
|
|
add_target: ''
|
|
|
|
})
|
|
|
|
}
|
|
|
|
success();
|
...
|
...
|
|