Commit f45afa43440a98c8096a0226299f198b12d18b3d

Authored by wangfan
1 parent e0469fb5

增加公司

... ... @@ -34,7 +34,11 @@ Component({
})
}
item.rname_mask=item.rname.substr(0,3)+(item.sex==1?'先生':'女士')
if(item.sex==3){
item.rname_mask=item.rname.substr(0,10)
}else{
item.rname_mask=item.rname.substr(0,3)+(item.sex==1?'先生':'女士')
}
item.order_time=util.unixtoTime(item.ddate,'HH:II')
item.status_str=reserveStatus[item.status]||'';
this.setData({vitem:item})
... ...
... ... @@ -38,6 +38,11 @@ Page({
sex:2,
grand_title:'女士',
isselect:false
},
{
sex:3,
grand_title:'公司',
isselect:false
}
],
buttonhide:true,
... ...
... ... @@ -167,7 +167,8 @@
</block>
</view>
<view class="book-info-single flex-lr" style="align-items:flex-start;">
<input placeholder="预订人姓名(必填)" placeholder-class="gray-font font34r" class="black-font font34r" maxlength="5" style="width:450rpx;" value="{{form.rname}}"
<input placeholder="预订人姓名(必填)" placeholder-class="gray-font font34r" class="black-font font34r"
maxlength="12" style="width:450rpx;" value="{{form.rname}}"
bindinput="selectedValue"
bindconfirm="selectedValue"
bindfocus="inputFocus"
... ... @@ -175,7 +176,7 @@
data-key="rname"/>
<view class="book-info-grand flex-rr font28r gray-deep-font">
<block wx:for="{{grand}}" wx:key="grand.key">
<view class="book-grand flex-cc {{index==0 ? 'book-grand-border' : ''}} {{form.sex==item.sex ? 'book-grand-active white-font' : ''}}"
<view class="book-grand flex-cc book-grand-border {{form.sex==item.sex ? 'book-grand-active white-font' : ''}}"
bindtap="selectedValue"
data-value="{{item.sex}}"
data-key="sex">{{item.grand_title}}</view>
... ...
... ... @@ -198,6 +198,9 @@
.book-grand-border{
border-right:1px solid #199095;
}
.book-grand-border:last-child{
border-width: 0;
}
.phone-reminder{
width:32rpx;
height:32rpx;
... ...
... ... @@ -24,7 +24,7 @@
</view>
<view class="flex-lr order-detail">
<text class="gray-deep-font font30r" space="true" decode="true">预&ensp;订&ensp;人</text>
<view class="black-font font34r">{{bookInfo.rname}} {{bookInfo.sex==1?'先生':'女士'}}</view>
<view class="black-font font34r">{{bookInfo.rname}} {{bookInfo.sex==1?'先生':(bookInfo.sex==2?'女士':'')}}</view>
</view>
<view class="flex-lr order-detail">
<view class="gray-deep-font font30r">手机号码</view>
... ...
... ... @@ -85,8 +85,14 @@ Page({
},
smsData:{},
getTplMsg(){
let guest='';
if(this.bookInfo.sex==3){
guest='贵宾'
}else{
guest=this.bookInfo.rname.substr(0,1)+(this.bookInfo.sex==1?'先生':'女士')
}
let smsData={
guest:this.bookInfo.rname.substr(0,1)+(this.bookInfo.sex==1?'先生':'女士'),
guest:guest,
seller_name:this.bookInfo.seller.sellername.substr(0,20),
date:this.bookInfo.rdateStr,
region_room_name:this.getTableName(this.bookInfo.tables),
... ...