Commit 246996fe59c6ee36d622cf86068006912cd2d991

Authored by wangfan
1 parent 73a464a2

快速预定

@@ -103,6 +103,7 @@ Component({ @@ -103,6 +103,7 @@ Component({
103 orderid: this.data.orderid, 103 orderid: this.data.orderid,
104 cookbookid: this.data.item.id, 104 cookbookid: this.data.item.id,
105 status: this.data.fromSoucre != '' ? 2 : '',//只查没有下单的 105 status: this.data.fromSoucre != '' ? 2 : '',//只查没有下单的
  106 + identity: this.data.identity
106 }).then(res => { 107 }).then(res => {
107 this.setData({ 108 this.setData({
108 selectKind: res.data[0], 109 selectKind: res.data[0],
@@ -139,6 +140,7 @@ Component({ @@ -139,6 +140,7 @@ Component({
139 orderid: this.data.orderid, 140 orderid: this.data.orderid,
140 cookbookid: this.data.item.id, 141 cookbookid: this.data.item.id,
141 status: this.data.fromSoucre != '' ? 2 : '',//只查没有下单的 142 status: this.data.fromSoucre != '' ? 2 : '',//只查没有下单的
  143 + identity: this.data.identity
142 }).then(res => { 144 }).then(res => {
143 this.setData({ 145 this.setData({
144 selectKind: res.data[0], 146 selectKind: res.data[0],
@@ -283,6 +285,7 @@ Component({ @@ -283,6 +285,7 @@ Component({
283 request_uri: this.data.request_uri == true ? 1 : '',//服务员通过消息通知进来 又加菜的标识 285 request_uri: this.data.request_uri == true ? 1 : '',//服务员通过消息通知进来 又加菜的标识
284 status: this.data.fromSoucre != '' ? 2 : '',//只查没有下单的 286 status: this.data.fromSoucre != '' ? 2 : '',//只查没有下单的
285 source: 2, 287 source: 2,
  288 + identity: this.data.identity
286 }); 289 });
287 }); 290 });
288 }, 291 },
@@ -348,6 +351,7 @@ Component({ @@ -348,6 +351,7 @@ Component({
348 status: this.data.fromSoucre ? 2 : '',//只查没有下单的 351 status: this.data.fromSoucre ? 2 : '',//只查没有下单的
349 request_uri: this.data.request_uri == true ? 1 : '',//服务员通过消息通知进来 又加菜的标识 352 request_uri: this.data.request_uri == true ? 1 : '',//服务员通过消息通知进来 又加菜的标识
350 source: 2, 353 source: 2,
  354 + identity: this.data.identity
351 }; 355 };
352 if (specid > 0) { 356 if (specid > 0) {
353 params.specid = specid; 357 params.specid = specid;
@@ -248,4 +248,7 @@ Page({ @@ -248,4 +248,7 @@ Page({
248 url: util.http_build_query(this.data.options,'./cart') 248 url: util.http_build_query(this.data.options,'./cart')
249 }) 249 })
250 }, 250 },
  251 + bindscroll(e){
  252 + console.log(e);
  253 + }
251 }) 254 })
@@ -8,6 +8,7 @@ @@ -8,6 +8,7 @@
8 style = "height:{{totalHeight}}px;width:100%;z-index:{{scrollZindex}}; position: fixed;" 8 style = "height:{{totalHeight}}px;width:100%;z-index:{{scrollZindex}}; position: fixed;"
9 scroll-into-view = "{{toView}}" 9 scroll-into-view = "{{toView}}"
10 scroll-with-animation 10 scroll-with-animation
  11 + bindscroll="bindscroll"
11 > 12 >
12 <view style = "padding-left:180rpx;"> 13 <view style = "padding-left:180rpx;">
13 <view class="section" wx:for="{{cookbooklist}}" wx:key="cookbooklist-key"> 14 <view class="section" wx:for="{{cookbooklist}}" wx:key="cookbooklist-key">
@@ -9,6 +9,7 @@ Page({ @@ -9,6 +9,7 @@ Page({
9 */ 9 */
10 data: { 10 data: {
11 moreDisplay:false, 11 moreDisplay:false,
  12 + detail:{},
12 }, 13 },
13 14
14 /** 15 /**
@@ -19,6 +20,7 @@ Page({ @@ -19,6 +20,7 @@ Page({
19 options:options 20 options:options
20 }) 21 })
21 this.initOrder() 22 this.initOrder()
  23 + this.getDetail()
22 }, 24 },
23 25
24 /** 26 /**
@@ -113,5 +115,24 @@ Page({ @@ -113,5 +115,24 @@ Page({
113 wx.redirectTo({ 115 wx.redirectTo({
114 url: util.http_build_query(options,'./index') 116 url: util.http_build_query(options,'./index')
115 }) 117 })
116 - } 118 + },
  119 + getDetail(fouce=false){
  120 + App.Reserve.Detail({
  121 + rid: this.data.options.rid,
  122 + openid: getApp().openid
  123 + },fouce).then(res => {
  124 + this.setData({
  125 + detail:this.formatDatail(res.data)
  126 + })
  127 + })
  128 + },
  129 + formatDatail(detail){
  130 + detail.rdateStr=util.unixtoTime(detail.ddate,'MM月DD日 WW HH:II');
  131 + detail.tableSubInfo=[];
  132 + detail.tables.forEach(t=>{
  133 + detail.tableSubInfo.push(t.name);
  134 + })
  135 + detail.tableSubInfo=detail.tableSubInfo.join('、')
  136 + return detail;
  137 + },
117 }) 138 })
@@ -55,6 +55,10 @@ @@ -55,6 +55,10 @@
55 <view>人数:</view> 55 <view>人数:</view>
56 <view class="">{{order.pnum||''}}</view> 56 <view class="">{{order.pnum||''}}</view>
57 </view> 57 </view>
  58 + <view class="flex-lr item">
  59 + <view>桌位:</view>
  60 + <view class="" style="max-width: 85%;line-height: 40rpx; ">{{detail.tableSubInfo}}</view>
  61 + </view>
58 </view> 62 </view>
59 </view> 63 </view>
60 <view class="hr"></view> 64 <view class="hr"></view>
@@ -70,10 +70,12 @@ @@ -70,10 +70,12 @@
70 .infos{ 70 .infos{
71 background-color: #fefefe; 71 background-color: #fefefe;
72 font-size: 28rpx; 72 font-size: 28rpx;
  73 + padding-bottom: 20rpx;
73 } 74 }
74 .infos .item{ 75 .infos .item{
75 height: 80rpx; 76 height: 80rpx;
76 line-height: 80rpx; 77 line-height: 80rpx;
  78 + border-bottom: 2rpx solid #F5F5F5;
77 } 79 }
78 .infos input{ 80 .infos input{
79 text-align: right; 81 text-align: right;
@@ -85,10 +87,8 @@ @@ -85,10 +87,8 @@
85 max-width: 95%; 87 max-width: 95%;
86 color: #999999; 88 color: #999999;
87 } 89 }
88 -.infos .item:first-child{  
89 - border-bottom: 2rpx solid #F5F5F5;  
90 - height: 100rpx;  
91 - line-height: 100rpx; 90 +.infos .item:last-child{
  91 + border-bottom-width:0;
92 } 92 }
93 93
94 .optx{ 94 .optx{