|
...
|
...
|
@@ -43,6 +43,21 @@ Page({ |
|
|
|
});
|
|
|
|
this.getCheckCookList()
|
|
|
|
this.getDetail()
|
|
|
|
this.initOrder()
|
|
|
|
},
|
|
|
|
// 获取备注信息
|
|
|
|
initOrder(){
|
|
|
|
App.Advance.CreateOrder({
|
|
|
|
rid: this.data.options.rid,
|
|
|
|
identity: this.data.options.identity,
|
|
|
|
status: '0,1',
|
|
|
|
openid: getApp().openid,
|
|
|
|
}).then(res => {
|
|
|
|
console.log(res.data.remark);
|
|
|
|
this.setData({
|
|
|
|
notes:res.data.remark
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
// 过滤数据
|
|
|
|
formatCookList(list) {
|
|
...
|
...
|
@@ -321,6 +336,7 @@ Page({ |
|
|
|
url
|
|
|
|
})
|
|
|
|
},
|
|
|
|
// 获取订单信息
|
|
|
|
getDetail() {
|
|
|
|
App.Reserve.Detail({
|
|
|
|
openid: getApp().openid,
|
|
...
|
...
|
@@ -364,6 +380,7 @@ Page({ |
|
|
|
console.log(res, '详情请求失败');
|
|
|
|
})
|
|
|
|
},
|
|
|
|
// 获取券 充值信息
|
|
|
|
getSellerTemplateConfFun() {
|
|
|
|
App.Seller.GetSellerTemplateConf({
|
|
|
|
sid: this.data.options.sid
|
|
...
|
...
|
@@ -420,7 +437,8 @@ Page({ |
|
|
|
...this.data.options,
|
|
|
|
hasOnlyShow: 1
|
|
|
|
};
|
|
|
|
delete cookbookObj.hasSuccess
|
|
|
|
console.log(cookbookObj);
|
|
|
|
delete cozokbookObj.hasSuccess
|
|
|
|
return {
|
|
|
|
title: '菜品已点好,快来看看都点了什么~',
|
|
|
|
path: `/pack-cookbook/pages/success_new?cookbookObj=${JSON.stringify(cookbookObj)}`,
|
...
|
...
|
|