Commit c3fa14fdbe8867850bb695b9ff402b7d5a58bd96

Authored by wangfan
1 parent 4eb446d8

录入调整

@@ -6,6 +6,7 @@ @@ -6,6 +6,7 @@
6 <view class="desk-mask {{item.isselect==true ? 'desk-mask-active white-font flex-vc font24r' : ''}}"> 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> 7 <icon type="success_no_circle" class="icon-success" color="#fff" size="13"></icon>
8 </view> 8 </view>
  9 + <view class="order-desk-type flex-cc white-font" wx:if="{{item.tid==2}}">包间</view>
9 </view> 10 </view>
10 </block> 11 </block>
11 </view> 12 </view>
1 @import '../common.wxss'; 1 @import '../common.wxss';
2 .desk-list{ 2 .desk-list{
3 - width:740rpx; 3 + width:640rpx;
4 height:auto; 4 height:auto;
5 margin:0 auto; 5 margin:0 auto;
6 } 6 }
7 .desk-single{ 7 .desk-single{
8 - width:200rpx;  
9 - height:200rpx; 8 + width:210rpx;
  9 + height:210rpx;
10 box-sizing:border-box; 10 box-sizing:border-box;
11 border-radius:10rpx; 11 border-radius:10rpx;
12 margin-left:35rpx; 12 margin-left:35rpx;
@@ -38,8 +38,8 @@ @@ -38,8 +38,8 @@
38 border-radius:50%; 38 border-radius:50%;
39 border:1px solid #fff; 39 border:1px solid #fff;
40 position:absolute; 40 position:absolute;
41 - right:10rpx;  
42 - top:10rpx; 41 + right:0rpx;
  42 + top:0rpx;
43 } 43 }
44 .desk-mask-active{ 44 .desk-mask-active{
45 border:1px solid #199095; 45 border:1px solid #199095;
@@ -52,7 +52,7 @@ @@ -52,7 +52,7 @@
52 top:6rpx; 52 top:6rpx;
53 } 53 }
54 .green-deep-bg{ 54 .green-deep-bg{
55 - border:1px solid #199095; 55 + border:1px solid #A9E3E6;
56 background:#A9E3E6; 56 background:#A9E3E6;
57 } 57 }
58 .gray-deep-bg{ 58 .gray-deep-bg{
@@ -75,4 +75,15 @@ @@ -75,4 +75,15 @@
75 width:100%; 75 width:100%;
76 height:55rpx; 76 height:55rpx;
77 background:#777; 77 background:#777;
  78 +}
  79 +.order-desk-type{
  80 + height:30rpx;
  81 + line-height: 30rpx;
  82 + background:#61A5D1;
  83 + position:absolute;
  84 + left:0;
  85 + top:0;
  86 + font-size: 26rpx;
  87 + padding: 0 12rpx 4rpx 8rpx;
  88 + border-radius: 0 16rpx 16rpx 0;
78 } 89 }
@@ -4,7 +4,7 @@ import App from '../../utils/api'; @@ -4,7 +4,7 @@ import App from '../../utils/api';
4 const {regeneratorRuntime} = global 4 const {regeneratorRuntime} = global
5 Page({ 5 Page({
6 data:{ 6 data:{
7 - 7 + menu_active_id:''
8 }, 8 },
9 checked_tids:[], 9 checked_tids:[],
10 onLoad:function(opt){ 10 onLoad:function(opt){
@@ -27,6 +27,9 @@ Page({ @@ -27,6 +27,9 @@ Page({
27 this.getdesklist(); 27 this.getdesklist();
28 }, 28 },
29 onShow:function(){ 29 onShow:function(){
  30 + this.setData({
  31 + height:getApp().system.windowHeight-55
  32 + })
30 }, 33 },
31 changedesk:function(e){ 34 changedesk:function(e){
32 let tableid=util.cache('tableid'); 35 let tableid=util.cache('tableid');
@@ -60,9 +63,15 @@ Page({ @@ -60,9 +63,15 @@ Page({
60 }) 63 })
61 } 64 }
62 that.setData({ 65 that.setData({
63 - desklist:json.data 66 + desklist:json.data,
  67 + menu_active_id:json.data[0].name
64 }) 68 })
65 } 69 }
66 }) 70 })
67 }, 71 },
  72 + switchMenu(e){
  73 + this.setData({
  74 + menu_active_id:util.attr(e,'id')
  75 + })
  76 + },
68 }) 77 })
1 <nav>选择桌位</nav> 1 <nav>选择桌位</nav>
2 <!--桌位状态--> 2 <!--桌位状态-->
3 -<view class="desk-list" style="padding-bottom:180rpx;">  
4 - <block wx:for="{{desklist}}">  
5 - <view class="desk-region black-font font34r font-bold">{{item.name}}</view>  
6 - <orderDesk list="{{item.list}}" bind:changedesk="changedesk"></orderDesk>  
7 - </block> 3 +<view class="flex-lr" style="border-top:2rpx solid #E0E0E0">
  4 + <view class="menus" style="height: {{height}}px; overflow-y: auto;overflow-x: hidden;">
  5 + <view class="menus-item flex-cc {{item.name==menu_active_id?'active':''}}"
  6 + wx:for="{{desklist}}" bindtap="switchMenu" data-id="{{item.name}}">
  7 + <view class="name">{{item.name}}</view>
  8 + <view class="hip" wx:if="{{item.chenkNum>0}}">{{item.chenkNum}}</view>
  9 + </view>
  10 + </view>
  11 + <view style="height: {{height-80}}px;overflow-y: auto;padding-bottom: 160rpx;overflow-x: hidden">
  12 + <block wx:for="{{desklist}}">
  13 + <orderDesk list="{{item.list}}" bind:changedesk="changedesk" wx:if="{{item.name==menu_active_id}}"></orderDesk>
  14 + </block>
  15 +
  16 + </view>
  17 +</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>
8 </view> 30 </view>
  31 +-->
9 32
10 -<view class="confirm-button white-font flex-vc font34r {{hasCheckedTable ? 'confirm-button-active' : ''}}" bindtap="back">确定</view>  
@@ -50,16 +50,54 @@ view{ @@ -50,16 +50,54 @@ view{
50 } 50 }
51 51
52 .confirm-button{ 52 .confirm-button{
53 - width:680rpx; 53 + width:460rpx;
54 height:85rpx; 54 height:85rpx;
55 background:#74BBBE; 55 background:#74BBBE;
56 position:fixed; 56 position:fixed;
57 - left:0;  
58 - right:0;  
59 - bottom:60rpx; 57 + left:250rpx;
  58 + bottom:40rpx;
60 margin:0 auto; 59 margin:0 auto;
61 border-radius:10rpx; 60 border-radius:10rpx;
62 } 61 }
63 .confirm-button-active{ 62 .confirm-button-active{
64 background:#199095; 63 background:#199095;
  64 +}
  65 +
  66 +.menus{
  67 + width: 220rpx;
  68 + min-width: 220rpx;
  69 + background-color: #F5F5F5;
  70 +}
  71 +.menus-item{
  72 + width: 220rpx;
  73 + height: 158rpx;
  74 + line-height: 158rpx;
  75 + font-size: 34rpx;
  76 + border: 2rpx solid #E0E0E0;
  77 + border-top-width: 0;
  78 + border-left-width: 0;
  79 + position: relative;
  80 +}
  81 +.menus-item.active{
  82 + background-color: #FEFEFE;
  83 +}
  84 +.menus-item .name{
  85 + width: 140rpx;
  86 + height: 48rpx;
  87 + line-height: 48rpx;
  88 + overflow: hidden;
  89 + text-align: center;
  90 +}
  91 +.menus-item .hip{
  92 + background-color: #f00;
  93 + width: 40rpx;
  94 + height: 40rpx;
  95 + position: absolute;
  96 + border-radius: 50%;
  97 + color: #fefefe;
  98 + text-align: center;
  99 + line-height: 40rpx;
  100 + font-size: 22rpx;
  101 + top:10rpx;
  102 + right: 10rpx;
65 } 103 }
@@ -30,7 +30,7 @@ @@ -30,7 +30,7 @@
30 "list": [] 30 "list": []
31 }, 31 },
32 "miniprogram": { 32 "miniprogram": {
33 - "current": 17, 33 + "current": 19,
34 "list": [ 34 "list": [
35 { 35 {
36 "id": 0, 36 "id": 0,
@@ -181,6 +181,13 @@ @@ -181,6 +181,13 @@
181 "shareName": "8DEbIRpK4pa9mH_QY2vU4ZUKYPuI97WoQ4BQoFej-Q8@cr4dev", 181 "shareName": "8DEbIRpK4pa9mH_QY2vU4ZUKYPuI97WoQ4BQoFej-Q8@cr4dev",
182 "shareKey": "PZhnqMlY2TnRuHhATyGeSamVmBQUDXXr_WtjRSddeeFK17UAiOP-HNOdhxiEN7PFub5S1DjAeUl0IXOdW-VDqg~~" 182 "shareKey": "PZhnqMlY2TnRuHhATyGeSamVmBQUDXXr_WtjRSddeeFK17UAiOP-HNOdhxiEN7PFub5S1DjAeUl0IXOdW-VDqg~~"
183 } 183 }
  184 + },
  185 + {
  186 + "id": -1,
  187 + "name": "预定本-选择桌子",
  188 + "pathName": "pages/book/b_desk",
  189 + "query": "rdate=1540339200-1540346400&tid=0&pnum=6&checked_tids=&rid=",
  190 + "scene": "1001"
184 } 191 }
185 ] 192 ]
186 } 193 }