|
|
|
@ -87,14 +87,15 @@ setChecked: function() {
|
|
|
|
|
good_one1.food_shop=good[i].food_shop
|
|
|
|
|
good_one1.price=good[i].price
|
|
|
|
|
good_one1.num=good[i].num
|
|
|
|
|
var all=this.data.total_all_price
|
|
|
|
|
Selection.push(good_one1)
|
|
|
|
|
this.setData({
|
|
|
|
|
Selection:Selection
|
|
|
|
|
})
|
|
|
|
|
//将数据添加到数组里边
|
|
|
|
|
|
|
|
|
|
this.getTotalPrice()
|
|
|
|
|
wx.navigateTo({
|
|
|
|
|
url:'/pages/paying/paying?info='+JSON.stringify(Selection),
|
|
|
|
|
url:'/pages/paying/paying?info='+JSON.stringify(Selection)+'&totalprice='+this.data.total_all_price
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}}},
|
|
|
|
|