Showing
6 changed files
with
35 additions
and
7 deletions
| @@ -218,6 +218,7 @@ Page({ | @@ -218,6 +218,7 @@ Page({ | ||
| 218 | } | 218 | } |
| 219 | App.Reserve.SetReserveStatus(params).then(()=>{ | 219 | App.Reserve.SetReserveStatus(params).then(()=>{ |
| 220 | this.getDetail(this.data.bookInfo.id,true); | 220 | this.getDetail(this.data.bookInfo.id,true); |
| 221 | + PubSub.emit('fulshReseveList') | ||
| 221 | }) | 222 | }) |
| 222 | }else{//分配 | 223 | }else{//分配 |
| 223 | this.arrangeOrder() | 224 | this.arrangeOrder() |
| @@ -250,6 +251,7 @@ Page({ | @@ -250,6 +251,7 @@ Page({ | ||
| 250 | } | 251 | } |
| 251 | App.Reserve.SetReserveStatus(params).then(()=>{ | 252 | App.Reserve.SetReserveStatus(params).then(()=>{ |
| 252 | this.getDetail(this.data.bookInfo.id,true); | 253 | this.getDetail(this.data.bookInfo.id,true); |
| 254 | + PubSub.emit('fulshReseveList') | ||
| 253 | }) | 255 | }) |
| 254 | }, | 256 | }, |
| 255 | easyCall(e){ | 257 | easyCall(e){ |
| @@ -27,6 +27,15 @@ Page({ | @@ -27,6 +27,15 @@ Page({ | ||
| 27 | this.enter_params = util.cache('enter_params'); | 27 | this.enter_params = util.cache('enter_params'); |
| 28 | this.seller_id=options.seller_id||this.enter_params.seller_id; | 28 | this.seller_id=options.seller_id||this.enter_params.seller_id; |
| 29 | this.getMembers(); | 29 | this.getMembers(); |
| 30 | + PubSub.on('fulshReseveList',()=>{ | ||
| 31 | + this.switchTab({ | ||
| 32 | + currentTarget:{ | ||
| 33 | + dataset:{ | ||
| 34 | + type:this.data.activeType | ||
| 35 | + } | ||
| 36 | + } | ||
| 37 | + }); | ||
| 38 | + }) | ||
| 30 | }, | 39 | }, |
| 31 | 40 | ||
| 32 | /** | 41 | /** |
| @@ -3,6 +3,7 @@ | @@ -3,6 +3,7 @@ | ||
| 3 | "navigationBarBackgroundColor": "#fff", | 3 | "navigationBarBackgroundColor": "#fff", |
| 4 | "navigationBarTextStyle":"white", | 4 | "navigationBarTextStyle":"white", |
| 5 | "usingComponents": { | 5 | "usingComponents": { |
| 6 | - "nav":"/components/nav/nav" | 6 | + "nav":"/components/nav/nav", |
| 7 | + "tabBar":"../../components/book/tabBar/tabBar" | ||
| 7 | } | 8 | } |
| 8 | } | 9 | } |
| @@ -8,9 +8,12 @@ | @@ -8,9 +8,12 @@ | ||
| 8 | <view class="pages"> | 8 | <view class="pages"> |
| 9 | <block wx:if="{{list.length>0}}"> | 9 | <block wx:if="{{list.length>0}}"> |
| 10 | <view class="row" wx:for="{{list}}" wx:key="list.key" data-id="{{item.id}}" bindtap="gotoDetail"> | 10 | <view class="row" wx:for="{{list}}" wx:key="list.key" data-id="{{item.id}}" bindtap="gotoDetail"> |
| 11 | - <view class="flex-ll"> | ||
| 12 | - <view class="label">包间需求:</view> | ||
| 13 | - <view class="content">{{item.room_demand_str||''}}</view> | 11 | + <view class="flex-lr"> |
| 12 | + <view class="flex-ll"> | ||
| 13 | + <view class="label">包间需求:</view> | ||
| 14 | + <view class="content">{{item.room_demand_str||''}}</view> | ||
| 15 | + </view> | ||
| 16 | + <view class="buttonStatus" wx:if="{{activeType==2}}">{{item.getStatusStr}}</view> | ||
| 14 | </view> | 17 | </view> |
| 15 | <view class="flex-ll"> | 18 | <view class="flex-ll"> |
| 16 | <view class="label">就餐时间:</view> | 19 | <view class="label">就餐时间:</view> |
| @@ -21,13 +24,14 @@ | @@ -21,13 +24,14 @@ | ||
| 21 | <view class="label">预订客户:</view> | 24 | <view class="label">预订客户:</view> |
| 22 | <view class="content">{{item.rname}}</view> | 25 | <view class="content">{{item.rname}}</view> |
| 23 | </view> | 26 | </view> |
| 24 | - <view class="button">立即处理</view> | 27 | + <view class="button" wx:if="{{activeType==1}}">立即处理</view> |
| 25 | </view> | 28 | </view> |
| 26 | </view> | 29 | </view> |
| 27 | </block> | 30 | </block> |
| 28 | <view wx:else="" class="history-is-empty flex-vc Medium"> | 31 | <view wx:else="" class="history-is-empty flex-vc Medium"> |
| 29 | <image src="http://qn.colorcun.com/custom/lite-yd/image/history-is-empty.png"></image> | 32 | <image src="http://qn.colorcun.com/custom/lite-yd/image/history-is-empty.png"></image> |
| 30 | - <view>暂时还没有客户</view> | 33 | + <view>暂时还没订单</view> |
| 31 | </view> | 34 | </view> |
| 32 | <view wx:if="{{!hasMore}}" class="flex-vc hasMore">已经到底了</view> | 35 | <view wx:if="{{!hasMore}}" class="flex-vc hasMore">已经到底了</view> |
| 33 | </view> | 36 | </view> |
| 37 | +<tabBar></tabBar> |
| 1 | /* pack-book/pages/book/b_reserve.wxss */ | 1 | /* pack-book/pages/book/b_reserve.wxss */ |
| 2 | .pages{ | 2 | .pages{ |
| 3 | width: 90%; | 3 | width: 90%; |
| 4 | - margin: 80rpx auto 50rpx; | 4 | + margin: 80rpx auto 0; |
| 5 | color: #353535; | 5 | color: #353535; |
| 6 | overflow-y: auto; | 6 | overflow-y: auto; |
| 7 | + padding-bottom: 150rpx; | ||
| 7 | } | 8 | } |
| 8 | .row{ | 9 | .row{ |
| 9 | font-size: 34rpx; | 10 | font-size: 34rpx; |
| @@ -32,12 +33,22 @@ | @@ -32,12 +33,22 @@ | ||
| 32 | color: #fefefe; | 33 | color: #fefefe; |
| 33 | border-radius: 10rpx; | 34 | border-radius: 10rpx; |
| 34 | padding: 2rpx 10rpx; | 35 | padding: 2rpx 10rpx; |
| 36 | + white-space:nowrap; | ||
| 37 | +} | ||
| 38 | +.buttonStatus{ | ||
| 39 | + border: solid 2rpx #199095; | ||
| 40 | + color: #199095; | ||
| 41 | + border-radius: 10rpx; | ||
| 42 | + padding: 2rpx 10rpx; | ||
| 43 | + white-space:nowrap; | ||
| 44 | + transform: rotate(-15deg); | ||
| 35 | } | 45 | } |
| 36 | .tabs{ | 46 | .tabs{ |
| 37 | background-color: #199095; | 47 | background-color: #199095; |
| 38 | margin-top: -2rpx; | 48 | margin-top: -2rpx; |
| 39 | position: fixed; | 49 | position: fixed; |
| 40 | width: 100%; | 50 | width: 100%; |
| 51 | + z-index: 9; | ||
| 41 | } | 52 | } |
| 42 | .tabs .item{ | 53 | .tabs .item{ |
| 43 | height: 80rpx; | 54 | height: 80rpx; |
| @@ -115,6 +115,7 @@ module.exports ={ | @@ -115,6 +115,7 @@ module.exports ={ | ||
| 115 | seller_phone: bookInfo.seller.phone.substr(0, 20), | 115 | seller_phone: bookInfo.seller.phone.substr(0, 20), |
| 116 | } | 116 | } |
| 117 | break; | 117 | break; |
| 118 | + //【周到安排】已为您预订陕西风味面馆的春满大地、福寿同乐包房,用餐时间为9月12日晚餐,祝您用餐愉快!订包间享优惠,微信搜索“周到安排”。 | ||
| 118 | case 'SMS_173950289'://运营安排包间 | 119 | case 'SMS_173950289'://运营安排包间 |
| 119 | smsData = { | 120 | smsData = { |
| 120 | seller_name: bookInfo.seller.sellername.substr(0, 20), | 121 | seller_name: bookInfo.seller.sellername.substr(0, 20), |
-
Please register or login to post a comment