Commit 496cf94baadccc48ee871c0f410dc37353bb2e87

Authored by wangfan
1 parent 758c96dd

录入调整

... ... @@ -4,7 +4,9 @@
bindtap="boardClick">
<view class="info">
<view class="name">{{board.name}}</view>
<view class="pnum">{{board.table_pnum}}人</view>
<view class="pnum">
{{board.reserve_name?board.reserve_name:board.table_pnum+'人'}}
</view>
</view>
<view class="tid" wx:if="{{board.tid==2}}">包间</view>
<view class="status" wx:if="{{board.status_str}}" style="width: {{width}}rpx;">{{board.status_str}}</view>
... ...
... ... @@ -33,7 +33,12 @@ Component({
})
}
this.setData({vitem:item})
}
},
callPhone(e){
wx.makePhoneCall({
phoneNumber: util.attr(e,'phone'), //仅为示例,并非真实的电话号码
})
},
}
})
\ No newline at end of file
... ...
... ... @@ -3,7 +3,7 @@
<view class="Medium" style="font-size: 30rpx; width: 100%;text-align: left">{{vitem.name}}</view>
<view class="Medium" style="font-size: 28rpx;width: 100%;text-align: left" wx:if="{{vitem.table_ids.length>1}}">等{{vitem.table_ids.length}}桌</view>
</view>
<view class="book-list-td flex-vc">
<view class="book-list-td flex-vc" catchtap="callPhone" data-phone="{{vitem.phone}}">
<view class="Medium">{{vitem.rname}}</view>
<view class="Medium" style="margin-top:10rpx;">{{vitem.phone_mask||''}}</view>
</view>
... ...
... ... @@ -52,7 +52,7 @@ Page({
},
getcall:function(){
wx.makePhoneCall({
phoneNumber: this.data.phoneNumber, //仅为示例,并非真实的电话号码
phoneNumber: this.data.bookInfo.phone, //仅为示例,并非真实的电话号码
complete:()=>{
this.selectComponent('#notice').close();
}
... ...
... ... @@ -19,17 +19,6 @@
<block wx:for="{{tables}}">
<board width="160" height="160" board="{{item}}"
style="margin-left:20rpx;zoom: 0.8"></board>
<!--
<view class="order-desk-info">
<view class="flex-vc order-desk-detail" style="height:{{item.tid==2 ? '90' : '120'}}rpx;">
<view class="font28r black-font smooth font-more" style="width:100%;text-align:center;">{{item.name}}</view>
<view class="font26r black-font" style="margin-top:6rpx;">{{item.table_pnum}}人</view>
</view>
<block wx:if="{{item.tid==2}}">
<view class="order-desk-type flex-cc white-font font20r">包间</view>
</block>
</view>
-->
</block>
</view>
</view>
... ...
... ... @@ -134,6 +134,7 @@ Page({
rdate:r.rdate,
id:r.id,
status:r.status,
rname:r.rname+(r.sex==1?'先生':'女士'),
}
})
})
... ... @@ -150,6 +151,7 @@ Page({
tb.status_str=tids[tb.id].status==2?'用餐中':'已预订';
tb.status_classname='highlight';
tb.reserve_id=tids[tb.id].id;
tb.reserve_name=tids[tb.id].rname;
}
if(tb.enable!=1){
if(tb.status_str){
... ...