Showing
5 changed files
with
30 additions
and
14 deletions
| @@ -125,5 +125,15 @@ Page({ | @@ -125,5 +125,15 @@ Page({ | ||
| 125 | obj.path=obj.path+'&hasInvitation=1'; | 125 | obj.path=obj.path+'&hasInvitation=1'; |
| 126 | } | 126 | } |
| 127 | return obj; | 127 | return obj; |
| 128 | - } | 128 | + }, |
| 129 | + cookbook(){ | ||
| 130 | + App.Advance.CreateOrder({ | ||
| 131 | + rid:this.id | ||
| 132 | + }).then(res=>{ | ||
| 133 | + if(res.ret!=200){ | ||
| 134 | + return util.toast(res.msg,'none') | ||
| 135 | + } | ||
| 136 | + | ||
| 137 | + }) | ||
| 138 | + }, | ||
| 129 | }) | 139 | }) |
| @@ -4,6 +4,7 @@ | @@ -4,6 +4,7 @@ | ||
| 4 | "navigationBarTitleText":"订座详情", | 4 | "navigationBarTitleText":"订座详情", |
| 5 | "usingComponents": { | 5 | "usingComponents": { |
| 6 | "userinfo-share": "/components/userinfo/share", | 6 | "userinfo-share": "/components/userinfo/share", |
| 7 | + "userinfo": "/components/userinfo/userinfo", | ||
| 7 | "manager": "/components/manager/manager", | 8 | "manager": "/components/manager/manager", |
| 8 | "nav":"/components/nav/nav", | 9 | "nav":"/components/nav/nav", |
| 9 | "card":"/components/seller-card/seller-card" | 10 | "card":"/components/seller-card/seller-card" |
| @@ -33,22 +33,22 @@ | @@ -33,22 +33,22 @@ | ||
| 33 | </userinfo-share> | 33 | </userinfo-share> |
| 34 | </view> | 34 | </view> |
| 35 | <view class="flex-lr share-view-cookbook"> | 35 | <view class="flex-lr share-view-cookbook"> |
| 36 | - <userinfo-share | ||
| 37 | - binduserinfo="userinfo" | 36 | + <userinfo |
| 37 | + binduserinfo="userinfodemo" | ||
| 38 | bindshare="share" | 38 | bindshare="share" |
| 39 | share="{{detail}}" | 39 | share="{{detail}}" |
| 40 | share-act="invitation" | 40 | share-act="invitation" |
| 41 | class="share-but-view"> | 41 | class="share-but-view"> |
| 42 | - <view class="share-but Regular">发邀请函</view> | ||
| 43 | - </userinfo-share> | ||
| 44 | - <userinfo-share | ||
| 45 | - binduserinfo="userinfo" | 42 | + <view class="share-but Regular">自带酒水</view> |
| 43 | + </userinfo> | ||
| 44 | + <userinfo | ||
| 45 | + binduserinfo="cookbook" | ||
| 46 | bindshare="share" | 46 | bindshare="share" |
| 47 | share="{{detail}}" | 47 | share="{{detail}}" |
| 48 | share-act="invitation" | 48 | share-act="invitation" |
| 49 | class="share-but-view"> | 49 | class="share-but-view"> |
| 50 | - <view class="share-but Regular">发邀请函</view> | ||
| 51 | - </userinfo-share> | 50 | + <view class="share-but Regular">提前点餐</view> |
| 51 | + </userinfo> | ||
| 52 | </view> | 52 | </view> |
| 53 | <view style="height: 40rpx;"></view> | 53 | <view style="height: 40rpx;"></view> |
| 54 | <card seller="{{detail.seller}}" detail="{{detail}}"></card> | 54 | <card seller="{{detail.seller}}" detail="{{detail}}"></card> |
| @@ -118,14 +118,19 @@ export default { | @@ -118,14 +118,19 @@ export default { | ||
| 118 | }, | 118 | }, |
| 119 | 119 | ||
| 120 | /**提前点餐**/ | 120 | /**提前点餐**/ |
| 121 | + 'App.Advance.CreateOrder':{ | ||
| 122 | + silence: false, | ||
| 123 | + }, | ||
| 121 | //菜品列表 | 124 | //菜品列表 |
| 122 | - 'App.Cookbook.GetCookbookByClass': null, | 125 | + 'App.Advance.GetCookbookByClass': null, |
| 123 | //菜品规格 | 126 | //菜品规格 |
| 124 | - 'App.Cookbook.GetCookbookSelBySpecsId': null, | 127 | + ' App.Advance.GetCookbookSelBySpecsId': null, |
| 125 | //添加到购物车 | 128 | //添加到购物车 |
| 126 | - 'App.Orders.AddCart': null, | 129 | + 'App.Advance.AddCart': null, |
| 127 | //减菜 | 130 | //减菜 |
| 128 | - 'App.Orders.ReduceOrder': null, | 131 | + 'App.Advance.ReduceOrder': null, |
| 132 | + //设置人数,设置备注 | ||
| 133 | + 'App.Advance.SetOrderById':null, | ||
| 129 | //清空购物车 | 134 | //清空购物车 |
| 130 | 'App.Orders.ClearCookById': null, | 135 | 'App.Orders.ClearCookById': null, |
| 131 | //购物车 | 136 | //购物车 |
-
Please register or login to post a comment