Commit 8cf6cd836d4e9514c9b512e161681b927865b1ad

Authored by zhangyan
2 parents 20f3c71a 20287fd6

Merge branch 'master' of http://123.56.79.57/xt/xcx-book

... ... @@ -9,6 +9,7 @@
</view>
</view>
<view class="tid" wx:if="{{board.tid==2}}">包间</view>
<view class="tid" wx:if="{{board.tid==3}}">卡座</view>
<view class="status" wx:if="{{board.status_str}}" style="width: {{width}}rpx;">{{board.status_str}}</view>
<icon type="success" size="20" color="#199095" class="desk-active" wx:if="{{board.isselect==true}}"/>
</view>
... ...
... ... @@ -716,8 +716,14 @@ Page({
App.User.GetCustomRemark({
uid:util.cache('enter_params')['manager_id'],
}).then(res=>{
let CustomRemark=[];
res.data.forEach(r=>{
if(r.often_use){
CustomRemark.push(r);
}
})
this.setData({
CustomRemark:res.data,
CustomRemark:CustomRemark,
})
})
},
... ... @@ -741,6 +747,7 @@ Page({
CustomRemark:CustomRemark,
form:form,
})
this.conditionInfo()
},
CustomRemarkMore(){
this.setData({
... ...
... ... @@ -190,12 +190,12 @@
bindblur="inputFocus"
data-key="cusdem"/>
</view>
<view wx:if="{{CustomRemark.length>0}}" class="book-info-single" style="padding-top: 14rpx; height: 60rpx;">
<view wx:if="{{CustomRemark.length>0}}" class="book-info-single last" style="padding-top: 14rpx; height: 60rpx;">
<view class="flex-lr CustomRemark">
<view class="CustomRemarks">
<view class="CustomRemarksView">
<view class="CustomRemarkItem {{item.active?'active':''}}" wx:for="{{CustomRemark}}"
wx:if="{{item.often_use}}" bindtap="oftenUse"
bindtap="oftenUse"
data-id="{{item.id}}"
data-value="{{item.often_use}}">{{item.often_use}}</view>
</view>
... ...
... ... @@ -308,7 +308,7 @@
.CustomRemarkMore .CustomRemarkItem{
padding: 4rpx 24rpx;
}
.book-info-single:last-child{
.book-info-single.last{
border-width: 0;
}
.CustomRemarkItem.active{
... ...
... ... @@ -7,6 +7,7 @@ Page({
menu_active_id:''
},
checked_tids:[],
desks:[],
onLoad:function(opt){
console.log('onLoad',opt)
util.setBarTitle('选择桌位');
... ... @@ -52,24 +53,35 @@ Page({
App.Reserve.GetTableList(formdata).then(function (json) {
if(json.ret==200){
console.log('this.checked_tids',that.checked_tids);
if(json.data.length>0){
json.data.forEach(function(v,i){
v.list.forEach(function(r,n){
r.isselect=false
if(that.checked_tids._indexOf(r.id)>-1){
r.isselect=true;
}
})
})
}
that.setData({
desklist:json.data,
menu_active_id:json.data[0].name
})
that.desks=json.data
that.formatDesklist(true)
}
})
},
formatDesklist(hasFirst=true){
let desks=this.desks;
if(desks.length>0){
desks.forEach((v,i)=>{
v.list.forEach((r,n)=>{
r.isselect=false
if(this.checked_tids._indexOf(r.id)>-1){
r.isselect=true;
}
})
})
let param={
desklist:desks,
}
if(hasFirst){
param.menu_active_id=desks[0].name
}
this.setData(param)
}
return desks;
},
switchMenu(e){
this.formatDesklist(false)
this.setData({
menu_active_id:util.attr(e,'id')
})
... ...
//正式
var uri={
HOST__LINE:'https://xt05.colorcun.com/?s=',
HOST__LINE:'https://xt04.colorcun.com/?s=',
//获取商家信息
CGI__USER_GETSELLERBYID: 'App.Seller.GetSellerById',
... ...