Commit df1848395c1df3ee587bc46ea2946ed873d715aa

Authored by wangfan
1 parent 69aa9f54

快速预定

@@ -40,6 +40,14 @@ @@ -40,6 +40,14 @@
40 ] 40 ]
41 } 41 }
42 ], 42 ],
  43 + "preloadRule": {
  44 + "pages/customer/detail_owner": {
  45 + "network": "all",
  46 + "packages": [
  47 + "pack-cookbook"
  48 + ]
  49 + }
  50 + },
43 "window": { 51 "window": {
44 "navigationStyle": "custom", 52 "navigationStyle": "custom",
45 "backgroundTextStyle": "light", 53 "backgroundTextStyle": "light",
@@ -161,7 +161,7 @@ Page({ @@ -161,7 +161,7 @@ Page({
161 if(orderid){ 161 if(orderid){
162 param.orderid=orderid; 162 param.orderid=orderid;
163 } 163 }
164 - App.Cookbook.GetCookbookByClass(param).then(json=>{ 164 + App.Advance.GetCookbookByClass(param).then(json=>{
165 //菜单分类添加修饰 165 //菜单分类添加修饰
166 let cookbooklist = this.formatCookList(json.data[0].list); 166 let cookbooklist = this.formatCookList(json.data[0].list);
167 setTimeout(()=>{ 167 setTimeout(()=>{
@@ -133,7 +133,9 @@ Page({ @@ -133,7 +133,9 @@ Page({
133 if(res.ret!=200){ 133 if(res.ret!=200){
134 return util.toast(res.msg,'none') 134 return util.toast(res.msg,'none')
135 } 135 }
136 - 136 + wx.navigateTo({
  137 + url:'/pack-cookbook/pages/index'
  138 + });
137 }) 139 })
138 }, 140 },
139 }) 141 })
@@ -47,7 +47,7 @@ @@ -47,7 +47,7 @@
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 flex-cc" wx:if="{{!detail.orderid}}"> 50 + <view class="share-but Regular flex-cc" wx:if="{{detail.order && detail.order.cookbooklist.length>0}}">
51 <view>查看菜品</view> 51 <view>查看菜品</view>
52 <image class="order-cook" src="http://qn.colorcun.com/custom/lite-yd-cook/image/order-cook.png"></image> 52 <image class="order-cook" src="http://qn.colorcun.com/custom/lite-yd-cook/image/order-cook.png"></image>
53 </view> 53 </view>