Showing
9 changed files
with
28 additions
and
13 deletions
| @@ -108,7 +108,7 @@ Page({ | @@ -108,7 +108,7 @@ Page({ | ||
| 108 | onShareAppMessage: function () { | 108 | onShareAppMessage: function () { |
| 109 | return { | 109 | return { |
| 110 | title:'一起来点菜啦!', | 110 | title:'一起来点菜啦!', |
| 111 | - imageUrl:'http://qn.colorcun.com/custom/lite-yd-cook/image/share-show.jpg', | 111 | + imageUrl:'http://qn.colorcun.com/custom/lite-yd-cook/image/share-go.jpg', |
| 112 | } | 112 | } |
| 113 | }, | 113 | }, |
| 114 | formatCookList(list){ | 114 | formatCookList(list){ |
| @@ -51,15 +51,15 @@ | @@ -51,15 +51,15 @@ | ||
| 51 | <view class="pages"> | 51 | <view class="pages"> |
| 52 | <view class="infos"> | 52 | <view class="infos"> |
| 53 | <view class="flex-lr item" wx:if="{{order.remark}}"> | 53 | <view class="flex-lr item" wx:if="{{order.remark}}"> |
| 54 | - <view>备注:</view> | 54 | + <view class="item-label">备注:</view> |
| 55 | <view class="" style="max-width: 85%;line-height: 40rpx; ">{{order.remark||''}}</view> | 55 | <view class="" style="max-width: 85%;line-height: 40rpx; ">{{order.remark||''}}</view> |
| 56 | </view> | 56 | </view> |
| 57 | <view class="flex-lr item"> | 57 | <view class="flex-lr item"> |
| 58 | - <view>人数:</view> | 58 | + <view class="item-label">人数:</view> |
| 59 | <view class="">{{order.pnum||''}}</view> | 59 | <view class="">{{order.pnum||''}}</view> |
| 60 | </view> | 60 | </view> |
| 61 | <view class="flex-lr item"> | 61 | <view class="flex-lr item"> |
| 62 | - <view>桌位:</view> | 62 | + <view class="item-label">桌位:</view> |
| 63 | <view class="" style="max-width: 85%;line-height: 40rpx; ">{{detail.tableSubInfo}}</view> | 63 | <view class="" style="max-width: 85%;line-height: 40rpx; ">{{detail.tableSubInfo}}</view> |
| 64 | </view> | 64 | </view> |
| 65 | </view> | 65 | </view> |
| @@ -94,7 +94,11 @@ | @@ -94,7 +94,11 @@ | ||
| 94 | .infos .item:last-child{ | 94 | .infos .item:last-child{ |
| 95 | border-bottom-width:0; | 95 | border-bottom-width:0; |
| 96 | } | 96 | } |
| 97 | - | 97 | +.infos .item-label{ |
| 98 | + min-width: 100rpx; | ||
| 99 | + overflow: hidden; | ||
| 100 | + white-space:nowrap; | ||
| 101 | +} | ||
| 98 | .optx{ | 102 | .optx{ |
| 99 | height: 96rpx; | 103 | height: 96rpx; |
| 100 | line-height: 96rpx; | 104 | line-height: 96rpx; |
| @@ -175,5 +175,10 @@ Page({ | @@ -175,5 +175,10 @@ Page({ | ||
| 175 | }).then(()=>{ | 175 | }).then(()=>{ |
| 176 | this.getDetail(this.data.bookInfo.id,true); | 176 | this.getDetail(this.data.bookInfo.id,true); |
| 177 | }); | 177 | }); |
| 178 | - } | 178 | + }, |
| 179 | + showOrder(){ | ||
| 180 | + wx.navigateTo({ | ||
| 181 | + url:util.http_build_query({rid:this.data.bookInfo.id,oid:this.data.bookInfo.orderid,identity:2},'/pack-cookbook/pages/success') | ||
| 182 | + }); | ||
| 183 | + }, | ||
| 179 | }) | 184 | }) |
| @@ -7,6 +7,7 @@ | @@ -7,6 +7,7 @@ | ||
| 7 | "step":"/components/book/step/step", | 7 | "step":"/components/book/step/step", |
| 8 | "board":"/components/book/board/board", | 8 | "board":"/components/book/board/board", |
| 9 | "cancel":"/components/book/reserveCancel/cancel", | 9 | "cancel":"/components/book/reserveCancel/cancel", |
| 10 | - "nav":"/components/nav/nav" | 10 | + "nav":"/components/nav/nav", |
| 11 | + "formids":"/components/formids/formids" | ||
| 11 | } | 12 | } |
| 12 | } | 13 | } |
| @@ -77,7 +77,12 @@ | @@ -77,7 +77,12 @@ | ||
| 77 | 77 | ||
| 78 | <!--通知预订人--> | 78 | <!--通知预订人--> |
| 79 | <view class="notice-opt" wx:if="{{bookInfo.status==1}}"> | 79 | <view class="notice-opt" wx:if="{{bookInfo.status==1}}"> |
| 80 | - <view class="notice-button white-font font34r flex-cc" bindtap="noticeCall">通知预订人</view> | 80 | + <view class="notice-button-border font34r flex-lr"> |
| 81 | + <view bindtap="noticeCall">通知预订人</view> | ||
| 82 | + <view wx:if="{{bookInfo.order && bookInfo.order.cookbooklist.length>0}}"> | ||
| 83 | + <formids bindclick="showOrder">查看菜品</formids> | ||
| 84 | + </view> | ||
| 85 | + </view> | ||
| 81 | <view class="notice-button-border font34r flex-lr"> | 86 | <view class="notice-button-border font34r flex-lr"> |
| 82 | <view bindtap="gotoModify">变更预定</view> | 87 | <view bindtap="gotoModify">变更预定</view> |
| 83 | <view bindtap="cancelReserve">取消预定</view> | 88 | <view bindtap="cancelReserve">取消预定</view> |
| @@ -112,7 +112,7 @@ view{ | @@ -112,7 +112,7 @@ view{ | ||
| 112 | color: #199095; | 112 | color: #199095; |
| 113 | } | 113 | } |
| 114 | .notice-button-border view{ | 114 | .notice-button-border view{ |
| 115 | - width: 49%; | 115 | + width: 100%; |
| 116 | border-right: 2rpx solid #199095; | 116 | border-right: 2rpx solid #199095; |
| 117 | text-align: center; | 117 | text-align: center; |
| 118 | height: 50rpx; | 118 | height: 50rpx; |
| @@ -50,7 +50,7 @@ | @@ -50,7 +50,7 @@ | ||
| 50 | </view> | 50 | </view> |
| 51 | <view class="book-list" style="padding-bottom:118rpx;"> | 51 | <view class="book-list" style="padding-bottom:118rpx;"> |
| 52 | <view class="book-list-body"> | 52 | <view class="book-list-body"> |
| 53 | - <block wx:for="{{bookList}}"> | 53 | + <block wx:for="{{bookList}}" wx:key="bookList.key"> |
| 54 | <bookList item="{{item}}" class="orderbook"></bookList> | 54 | <bookList item="{{item}}" class="orderbook"></bookList> |
| 55 | </block> | 55 | </block> |
| 56 | </view> | 56 | </view> |
| @@ -31,7 +31,7 @@ | @@ -31,7 +31,7 @@ | ||
| 31 | "list": [] | 31 | "list": [] |
| 32 | }, | 32 | }, |
| 33 | "miniprogram": { | 33 | "miniprogram": { |
| 34 | - "current": 25, | 34 | + "current": 15, |
| 35 | "list": [ | 35 | "list": [ |
| 36 | { | 36 | { |
| 37 | "id": 0, | 37 | "id": 0, |
| @@ -74,7 +74,7 @@ | @@ -74,7 +74,7 @@ | ||
| 74 | "id": 6, | 74 | "id": 6, |
| 75 | "name": "pages/customer/index", | 75 | "name": "pages/customer/index", |
| 76 | "pathName": "pages/customer/index", | 76 | "pathName": "pages/customer/index", |
| 77 | - "query": "id=1196&fromid=1111&hasInvitation=1", | 77 | + "query": "id=1762&fromid=1111&hasInvitation=1", |
| 78 | "scene": "1044", | 78 | "scene": "1044", |
| 79 | "shareInfo": { | 79 | "shareInfo": { |
| 80 | "groupName": "测试模拟群1", | 80 | "groupName": "测试模拟群1", |
| @@ -156,7 +156,7 @@ | @@ -156,7 +156,7 @@ | ||
| 156 | "id": 15, | 156 | "id": 15, |
| 157 | "name": "预定本详情", | 157 | "name": "预定本详情", |
| 158 | "pathName": "pages/book/b_detail", | 158 | "pathName": "pages/book/b_detail", |
| 159 | - "query": "id=1465", | 159 | + "query": "id=1762", |
| 160 | "scene": "1001" | 160 | "scene": "1001" |
| 161 | }, | 161 | }, |
| 162 | { | 162 | { |
-
Please register or login to post a comment