Commit dd58b8b4ed66877c4007aab68be5a3f8937e5555

Authored by wangfan
1 parent aeab56e5

快速预定

... ... @@ -125,5 +125,15 @@ Page({
obj.path=obj.path+'&hasInvitation=1';
}
return obj;
}
},
cookbook(){
App.Advance.CreateOrder({
rid:this.id
}).then(res=>{
if(res.ret!=200){
return util.toast(res.msg,'none')
}
})
},
})
\ No newline at end of file
... ...
... ... @@ -4,6 +4,7 @@
"navigationBarTitleText":"订座详情",
"usingComponents": {
"userinfo-share": "/components/userinfo/share",
"userinfo": "/components/userinfo/userinfo",
"manager": "/components/manager/manager",
"nav":"/components/nav/nav",
"card":"/components/seller-card/seller-card"
... ...
... ... @@ -33,22 +33,22 @@
</userinfo-share>
</view>
<view class="flex-lr share-view-cookbook">
<userinfo-share
binduserinfo="userinfo"
<userinfo
binduserinfo="userinfodemo"
bindshare="share"
share="{{detail}}"
share-act="invitation"
class="share-but-view">
<view class="share-but Regular">发邀请函</view>
</userinfo-share>
<userinfo-share
binduserinfo="userinfo"
<view class="share-but Regular">自带酒水</view>
</userinfo>
<userinfo
binduserinfo="cookbook"
bindshare="share"
share="{{detail}}"
share-act="invitation"
class="share-but-view">
<view class="share-but Regular">发邀请函</view>
</userinfo-share>
<view class="share-but Regular">提前点餐</view>
</userinfo>
</view>
<view style="height: 40rpx;"></view>
<card seller="{{detail.seller}}" detail="{{detail}}"></card>
... ...
... ... @@ -58,7 +58,7 @@
}
.share-but{
width: 100%;
text-align: center;
}
.seller{
... ...
... ... @@ -118,14 +118,19 @@ export default {
},
/**提前点餐**/
'App.Advance.CreateOrder':{
silence: false,
},
//菜品列表
'App.Cookbook.GetCookbookByClass': null,
'App.Advance.GetCookbookByClass': null,
//菜品规格
'App.Cookbook.GetCookbookSelBySpecsId': null,
' App.Advance.GetCookbookSelBySpecsId': null,
//添加到购物车
'App.Orders.AddCart': null,
'App.Advance.AddCart': null,
//减菜
'App.Orders.ReduceOrder': null,
'App.Advance.ReduceOrder': null,
//设置人数,设置备注
'App.Advance.SetOrderById':null,
//清空购物车
'App.Orders.ClearCookById': null,
//购物车
... ...