Showing
1 changed file
with
12 additions
and
20 deletions
| @@ -135,26 +135,18 @@ Component({ | @@ -135,26 +135,18 @@ Component({ | ||
| 135 | var foodMenuPrice = foodMenu[0].price; | 135 | var foodMenuPrice = foodMenu[0].price; |
| 136 | var practice_id = foodMenu[0].id; | 136 | var practice_id = foodMenu[0].id; |
| 137 | } | 137 | } |
| 138 | - App.Advance.GetCookbookSelBySpecsId({ | ||
| 139 | - sellerid: this.data.sellerid, | ||
| 140 | - orderid: this.data.orderid, | ||
| 141 | - cookbookid: this.data.item.id, | ||
| 142 | - status: this.data.fromSoucre != '' ? 2 : '',//只查没有下单的 | ||
| 143 | - identity: this.data.identity | ||
| 144 | - }).then(res => { | ||
| 145 | - this.setData({ | ||
| 146 | - selectKind: res.data, | ||
| 147 | - hiddenFoodSpec: false, | ||
| 148 | - kind: kind, | ||
| 149 | - foodMenu: foodMenu, | ||
| 150 | - showSpecsPrice: false, | ||
| 151 | - cookbook_name: this.data.item.name, | ||
| 152 | - cookbook_id: this.data.item.id, | ||
| 153 | - specs_id: specs_id ? specs_id : '', | ||
| 154 | - practice_id: practice_id ? practice_id : '', | ||
| 155 | - selectPrice: kindPrice > 0 ? kindPrice : foodMenuPrice, | ||
| 156 | - add_target: '' | ||
| 157 | - }) | 138 | + this.setData({ |
| 139 | + selectKind: [], | ||
| 140 | + hiddenFoodSpec: false, | ||
| 141 | + kind: kind, | ||
| 142 | + foodMenu: foodMenu, | ||
| 143 | + showSpecsPrice: false, | ||
| 144 | + cookbook_name: this.data.item.name, | ||
| 145 | + cookbook_id: this.data.item.id, | ||
| 146 | + specs_id: specs_id ? specs_id : '', | ||
| 147 | + practice_id: practice_id ? practice_id : '', | ||
| 148 | + selectPrice: kindPrice > 0 ? kindPrice : foodMenuPrice, | ||
| 149 | + add_target: '' | ||
| 158 | }) | 150 | }) |
| 159 | } | 151 | } |
| 160 | success(); | 152 | success(); |
-
Please register or login to post a comment