Commit 1a2154c7943da6ed1aadbf1db95b417c77701b57

Authored by wangfan
1 parent e08376b6

录入调整

@@ -22,6 +22,10 @@ Component({ @@ -22,6 +22,10 @@ Component({
22 event:{ 22 event:{
23 type:String, 23 type:String,
24 value:'', 24 value:'',
  25 + },
  26 + className:{
  27 + type:String,
  28 + value:'',
25 } 29 }
26 }, 30 },
27 31
1 <!--components/book/board/board.wxml--> 1 <!--components/book/board/board.wxml-->
2 -<view class="board flex-cc {{board.status_classname}} {{board.isselect?'border':''}} {{event}}" 2 +<view class="board flex-cc {{board.status_classname}} {{board.isselect?'border':''}} {{className}}"
3 style="width: {{width}}rpx;height: {{height}}rpx; " 3 style="width: {{width}}rpx;height: {{height}}rpx; "
4 bindtap="boardClick"> 4 bindtap="boardClick">
5 <view class="info"> 5 <view class="info">
@@ -39,17 +39,19 @@ @@ -39,17 +39,19 @@
39 .board .info{ 39 .board .info{
40 text-align: center; 40 text-align: center;
41 width: 80%; 41 width: 80%;
42 - margin: 0 10%; 42 + margin: -10rpx 10% 0;
43 color: #353535; 43 color: #353535;
44 } 44 }
45 .board .name{ 45 .board .name{
46 font-size: 28rpx; 46 font-size: 28rpx;
47 max-height: 60rpx; 47 max-height: 60rpx;
48 overflow: hidden; 48 overflow: hidden;
49 - line-height: 28rpx; 49 + line-height: 30rpx;
50 } 50 }
51 .board .pnum{ 51 .board .pnum{
52 font-size: 26rpx; 52 font-size: 26rpx;
  53 + height: 30rpx;
  54 + overflow: hidden;
53 } 55 }
54 56
55 .board.highlight .status,.board.disabled-highlight .status{ 57 .board.highlight .status,.board.disabled-highlight .status{
@@ -67,9 +69,9 @@ @@ -67,9 +69,9 @@
67 top: -2rpx; 69 top: -2rpx;
68 right: -2rpx; 70 right: -2rpx;
69 } 71 }
70 -.board.boardChoose .info{ 72 +.board.noBottom .info{
71 margin-top: 10rpx; 73 margin-top: 10rpx;
72 } 74 }
73 -.board.boardChoose .pnum{ 75 +.board.noBottom .pnum{
74 margin-top: 20rpx; 76 margin-top: 20rpx;
75 } 77 }
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 <block wx:for="{{list}}"> 2 <block wx:for="{{list}}">
3 <board width="160" height="180" board="{{item}}" 3 <board width="160" height="180" board="{{item}}"
4 style="margin: 20rpx 0 0 20rpx" 4 style="margin: 20rpx 0 0 20rpx"
5 - event="boardChoose" 5 + event="boardChoose" className="noBottom"
6 data-id="{{item.id}}" bindtap="selectdesk"></board> 6 data-id="{{item.id}}" bindtap="selectdesk"></board>
7 </block> 7 </block>
8 </view> 8 </view>
@@ -31,6 +31,7 @@ Component({ @@ -31,6 +31,7 @@ Component({
31 item.phone_mask=item.phone.replace(/(\d{2})(.{5})(\d{3})/,function($0,$1,$2,$3){ 31 item.phone_mask=item.phone.replace(/(\d{2})(.{5})(\d{3})/,function($0,$1,$2,$3){
32 return $1+'**'+$3; 32 return $1+'**'+$3;
33 }) 33 })
  34 + item.rname_mask=item.rname.substr(0,3)+(item.sex==1?'先生':'女士')
34 } 35 }
35 this.setData({vitem:item}) 36 this.setData({vitem:item})
36 }, 37 },
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 <view class="Medium" style="font-size: 28rpx;width: 100%;text-align: left" wx:if="{{vitem.table_ids.length>1}}">等{{vitem.table_ids.length}}桌</view> 4 <view class="Medium" style="font-size: 28rpx;width: 100%;text-align: left" wx:if="{{vitem.table_ids.length>1}}">等{{vitem.table_ids.length}}桌</view>
5 </view> 5 </view>
6 <view class="book-list-td flex-vc" catchtap="callPhone" data-phone="{{vitem.phone}}"> 6 <view class="book-list-td flex-vc" catchtap="callPhone" data-phone="{{vitem.phone}}">
7 - <view class="Medium">{{vitem.rname}}</view> 7 + <view class="Medium">{{vitem.rname_mask}}</view>
8 <view class="Medium" style="margin-top:10rpx;">{{vitem.phone_mask||''}}</view> 8 <view class="Medium" style="margin-top:10rpx;">{{vitem.phone_mask||''}}</view>
9 </view> 9 </view>
10 <view class="book-list-td flex-cc">{{vitem.order_time}}</view> 10 <view class="book-list-td flex-cc">{{vitem.order_time}}</view>
@@ -135,7 +135,7 @@ @@ -135,7 +135,7 @@
135 <block wx:for="{{tablesed||tables}}" wx:key="tables.key"> 135 <block wx:for="{{tablesed||tables}}" wx:key="tables.key">
136 <board width="160" height="180" board="{{item}}" 136 <board width="160" height="180" board="{{item}}"
137 style="margin: 20rpx 0 0 20rpx" 137 style="margin: 20rpx 0 0 20rpx"
138 - event="boardChoose" 138 + event="boardChoose" className="noBottom"
139 data-value="{{index}}" 139 data-value="{{index}}"
140 bindtap="selectedValue" 140 bindtap="selectedValue"
141 data-key="tid"></board> 141 data-key="tid"></board>
@@ -17,7 +17,7 @@ @@ -17,7 +17,7 @@
17 <view class="gray-deep-font font30r"></view> 17 <view class="gray-deep-font font30r"></view>
18 <view class="flex-re" style="width:80%;flex-wrap:wrap;"> 18 <view class="flex-re" style="width:80%;flex-wrap:wrap;">
19 <block wx:for="{{tables}}"> 19 <block wx:for="{{tables}}">
20 - <board width="160" height="180" board="{{item}}" 20 + <board width="160" height="180" board="{{item}}" className="noBottom"
21 style="margin-left:20rpx;zoom: 0.8"></board> 21 style="margin-left:20rpx;zoom: 0.8"></board>
22 </block> 22 </block>
23 </view> 23 </view>
@@ -134,7 +134,7 @@ Page({ @@ -134,7 +134,7 @@ Page({
134 rdate:r.rdate, 134 rdate:r.rdate,
135 id:r.id, 135 id:r.id,
136 status:r.status, 136 status:r.status,
137 - rname:r.rname+(r.sex==1?'先生':'女士'), 137 + rname:r.rname.substr(0,1)+(r.sex==1?'先生':'女士'),
138 } 138 }
139 }) 139 })
140 }) 140 })