Commit e08376b67d1ca55de2b4dc38c6276646d0d4cfb5

Authored by wangfan
1 parent 705a4fd6

录入调整

@@ -66,8 +66,10 @@ Component({ @@ -66,8 +66,10 @@ Component({
66 } 66 }
67 }, 67 },
68 }) 68 })
69 -  
70 - 69 + },
  70 + //桌位选择
  71 + boardChoose(){
  72 + //this.triggerEvent('boardEvent',{type:'boardChoose',id:this.data.board.id})
71 }, 73 },
72 //启停座位 74 //启停座位
73 boardEnable(status){ 75 boardEnable(status){
1 <!--components/book/board/board.wxml--> 1 <!--components/book/board/board.wxml-->
2 -<view class="board flex-cc {{board.status_classname}}"  
3 - style="width: {{width}}rpx;height: {{height}}rpx;" 2 +<view class="board flex-cc {{board.status_classname}} {{board.isselect?'border':''}} {{event}}"
  3 + style="width: {{width}}rpx;height: {{height}}rpx; "
4 bindtap="boardClick"> 4 bindtap="boardClick">
5 <view class="info"> 5 <view class="info">
6 <view class="name">{{board.name}}</view> 6 <view class="name">{{board.name}}</view>
@@ -10,4 +10,5 @@ @@ -10,4 +10,5 @@
10 </view> 10 </view>
11 <view class="tid" wx:if="{{board.tid==2}}">包间</view> 11 <view class="tid" wx:if="{{board.tid==2}}">包间</view>
12 <view class="status" wx:if="{{board.status_str}}" style="width: {{width}}rpx;">{{board.status_str}}</view> 12 <view class="status" wx:if="{{board.status_str}}" style="width: {{width}}rpx;">{{board.status_str}}</view>
  13 + <icon type="success" size="20" color="#199095" class="desk-active" wx:if="{{board.isselect==true}}"/>
13 </view> 14 </view>
@@ -5,6 +5,10 @@ @@ -5,6 +5,10 @@
5 border-radius: 10rpx; 5 border-radius: 10rpx;
6 position: relative; 6 position: relative;
7 overflow: hidden; 7 overflow: hidden;
  8 + border: 2rpx solid rgba(0,0,0,0)
  9 +}
  10 +.board.border{
  11 + border: 2rpx solid #199095;
8 } 12 }
9 .board .tid{ 13 .board .tid{
10 width: 72rpx; 14 width: 72rpx;
@@ -57,4 +61,15 @@ @@ -57,4 +61,15 @@
57 } 61 }
58 .board.disabled .tid,.board.disabled-highlight .tid{ 62 .board.disabled .tid,.board.disabled-highlight .tid{
59 background-color: #94BCD6; 63 background-color: #94BCD6;
  64 +}
  65 +.desk-active{
  66 + position: absolute;
  67 + top: -2rpx;
  68 + right: -2rpx;
  69 +}
  70 +.board.boardChoose .info{
  71 + margin-top: 10rpx;
  72 +}
  73 +.board.boardChoose .pnum{
  74 + margin-top: 20rpx;
60 } 75 }
1 { 1 {
2 - "component": true 2 + "component": true,
  3 + "usingComponents": {
  4 + "board":"/components/book/board/board"
  5 + }
3 } 6 }
1 <view class="desk-list flex-rs"> 1 <view class="desk-list flex-rs">
2 <block wx:for="{{list}}"> 2 <block wx:for="{{list}}">
3 - <view class="desk-single flex-vc green-deep-bg desk-can black-font" data-id="{{item.id}}" bindtap="selectdesk">  
4 - <view class="font38r font-bold desk-name flex-cc font-more">{{item.name}}</view>  
5 - <view class="font34r desk-pnum flex-cc">{{item.table_pnum}}人桌</view>  
6 - <view class="desk-mask {{item.isselect==true ? 'desk-mask-active white-font flex-vc font24r' : ''}}">  
7 - <icon type="success_no_circle" class="icon-success" color="#fff" size="13"></icon>  
8 - </view>  
9 - <view class="order-desk-type flex-cc white-font" wx:if="{{item.tid==2}}">包间</view>  
10 - </view> 3 + <board width="160" height="180" board="{{item}}"
  4 + style="margin: 20rpx 0 0 20rpx"
  5 + event="boardChoose"
  6 + data-id="{{item.id}}" bindtap="selectdesk"></board>
11 </block> 7 </block>
12 </view> 8 </view>
1 @import '../common.wxss'; 1 @import '../common.wxss';
2 .desk-list{ 2 .desk-list{
3 - width:640rpx; 3 + width: 570rpx;
4 height:auto; 4 height:auto;
5 margin:0 auto; 5 margin:0 auto;
6 } 6 }
@@ -514,5 +514,5 @@ Page({ @@ -514,5 +514,5 @@ Page({
514 scrollTop: rect.bottom 514 scrollTop: rect.bottom
515 }) 515 })
516 }).exec() 516 }).exec()
517 - }, 517 + }
518 }) 518 })
@@ -8,6 +8,7 @@ @@ -8,6 +8,7 @@
8 "nav":"/components/nav/nav", 8 "nav":"/components/nav/nav",
9 "tabBar":"/components/book/tabBar/tabBar", 9 "tabBar":"/components/book/tabBar/tabBar",
10 "searchList":"/components/searchlist/searchlist", 10 "searchList":"/components/searchlist/searchlist",
11 - "calendar": "plugin://calendar/calendar" 11 + "calendar": "plugin://calendar/calendar",
  12 + "board":"/components/book/board/board"
12 } 13 }
13 } 14 }
@@ -133,25 +133,12 @@ @@ -133,25 +133,12 @@
133 </view> 133 </view>
134 <view class="advice-desk-detail flex-rr" wx:if="{{tables.length>0}}"> 134 <view class="advice-desk-detail flex-rr" wx:if="{{tables.length>0}}">
135 <block wx:for="{{tablesed||tables}}" wx:key="tables.key"> 135 <block wx:for="{{tablesed||tables}}" wx:key="tables.key">
136 - <view class="order-desk-info {{item.isselect?'desk-checked':''}}"  
137 - bindtap="selectedValue"  
138 - data-value="{{index}}"  
139 - data-key="tid">  
140 - <block wx:if="{{item.tid==2}}">  
141 - <view class="flex-vc order-desk-detail" style="height:100%;">  
142 - <view class="font28r black-font smooth">{{item.name}}</view>  
143 - <view class="font26r black-font" style="margin-top:6rpx;">{{item.table_pnum}}人</view>  
144 - </view>  
145 - <view class="order-desk-type flex-cc white-font">包间</view>  
146 - </block>  
147 - <block wx:else>  
148 - <view class="flex-vc order-desk-detail" style="height:100%;">  
149 - <view class="font28r black-font smooth">{{item.name}}</view>  
150 - <view class="font26r black-font" style="margin-top:6rpx;">{{item.table_pnum}}人</view>  
151 - </view>  
152 - </block>  
153 - <icon type="success" size="20" color="#199095" class="desk-active" wx:if="{{item.isselect==true}}"/>  
154 - </view> 136 + <board width="160" height="180" board="{{item}}"
  137 + style="margin: 20rpx 0 0 20rpx"
  138 + event="boardChoose"
  139 + data-value="{{index}}"
  140 + bindtap="selectedValue"
  141 + data-key="tid"></board>
155 </block> 142 </block>
156 </view> 143 </view>
157 <view class="advice-desk-detail flex-cc" wx:else=""> 144 <view class="advice-desk-detail flex-cc" wx:else="">
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 <view class="hip" wx:if="{{item.chenkNum>0}}">{{item.chenkNum}}</view> 8 <view class="hip" wx:if="{{item.chenkNum>0}}">{{item.chenkNum}}</view>
9 </view> 9 </view>
10 </view> 10 </view>
11 - <view style="height: {{height-80}}px;overflow-y: auto;padding-bottom: 160rpx;overflow-x: hidden"> 11 + <view style="height: {{height-80}}px;overflow-y: auto;padding-bottom: 160rpx;overflow-x: hidden;width: 100%;">
12 <block wx:for="{{desklist}}"> 12 <block wx:for="{{desklist}}">
13 <orderDesk list="{{item.list}}" bind:changedesk="changedesk" wx:if="{{item.name==menu_active_id}}"></orderDesk> 13 <orderDesk list="{{item.list}}" bind:changedesk="changedesk" wx:if="{{item.name==menu_active_id}}"></orderDesk>
14 </block> 14 </block>
@@ -16,17 +16,5 @@ @@ -16,17 +16,5 @@
16 </view> 16 </view>
17 </view> 17 </view>
18 <view class="confirm-button white-font flex-vc font34r {{hasCheckedTable ? 'confirm-button-active' : ''}}" bindtap="back">确定</view> 18 <view class="confirm-button white-font flex-vc font34r {{hasCheckedTable ? 'confirm-button-active' : ''}}" bindtap="back">确定</view>
19 -<!--  
20 -<view class="desk-list flex-ll" style="padding-bottom:180rpx;">  
21 - <view class="menus">  
22 - <view class="menus-item" wx:for="{{desklist}}" >{{item.name}}</view>  
23 - </view>  
24 - <view>  
25 - <block wx:for="{{desklist}}">  
26 - <orderDesk list="{{item.list}}" bind:changedesk="changedesk"></orderDesk>  
27 - </block>  
28 - <view class="confirm-button white-font flex-vc font34r {{hasCheckedTable ? 'confirm-button-active' : ''}}" bindtap="back">确定</view>  
29 - </view>  
30 -</view>  
31 ---> 19 +
32 20
@@ -64,12 +64,12 @@ view{ @@ -64,12 +64,12 @@ view{
64 } 64 }
65 65
66 .menus{ 66 .menus{
67 - width: 220rpx;  
68 - min-width: 220rpx; 67 + width: 168rpx;
  68 + min-width: 168rpx;
69 background-color: #F5F5F5; 69 background-color: #F5F5F5;
70 } 70 }
71 .menus-item{ 71 .menus-item{
72 - width: 220rpx; 72 + width: 168rpx;
73 height: 158rpx; 73 height: 158rpx;
74 line-height: 158rpx; 74 line-height: 158rpx;
75 font-size: 34rpx; 75 font-size: 34rpx;
@@ -83,7 +83,7 @@ view{ @@ -83,7 +83,7 @@ view{
83 } 83 }
84 .menus-item .name{ 84 .menus-item .name{
85 width: 140rpx; 85 width: 140rpx;
86 - height: 48rpx; 86 + max-height: 96rpx;
87 line-height: 48rpx; 87 line-height: 48rpx;
88 overflow: hidden; 88 overflow: hidden;
89 text-align: center; 89 text-align: center;
@@ -30,7 +30,7 @@ @@ -30,7 +30,7 @@
30 "list": [] 30 "list": []
31 }, 31 },
32 "miniprogram": { 32 "miniprogram": {
33 - "current": 15, 33 + "current": 21,
34 "list": [ 34 "list": [
35 { 35 {
36 "id": 0, 36 "id": 0,
@@ -194,6 +194,13 @@ @@ -194,6 +194,13 @@
194 "name": "桌位", 194 "name": "桌位",
195 "pathName": "pages/book/b_setting", 195 "pathName": "pages/book/b_setting",
196 "query": "" 196 "query": ""
  197 + },
  198 + {
  199 + "id": -1,
  200 + "name": "预定本-80商家",
  201 + "pathName": "pages/book/b_index",
  202 + "query": "seller_id=80&seller_openid=oGefL4qKBWIh5xwyg3LVfkMbDumA&manager_id=",
  203 + "scene": "1001"
197 } 204 }
198 ] 205 ]
199 } 206 }