Commit 320d4396bea1befd5048c3156dc98980ea509949

Authored by vking
1 parent 7427dfa7

到店时间显示

... ... @@ -2,7 +2,7 @@
<nav hasHome>订座详情</nav>
<a2l bindshow="a2lshow" bindhide="a2lshow" key="BOOK-DETAIL" type="black" hitStr="通知客户"></a2l>
<!--订单信息-->
<view class="order-info">
<view class="order-info" wx:if="{{bookInfo}}" >
<view class="flex-lr order-detail">
<view class="gray-deep-font font30r">用餐时段</view>
<view class="black-font font34r">
... ...
... ... @@ -124,7 +124,7 @@ view{
}
.reserve-status-tip{
position: absolute;
top:150rpx;
top:220rpx;
right:240rpx;
width: 82rpx;
height: 52rpx;
... ...
... ... @@ -2,6 +2,7 @@
import util from '../../../utils/util';
import App from '../../../utils/api';
import TP from '../../../utils/tpls';
import RS from '../../../utils/reserveStatus'
const {regeneratorRuntime} = global
Page({
... ... @@ -44,11 +45,24 @@ Page({
res.data.tables.forEach(t=>{
tables.push(t.name);
})
let reserev=RS.reserve(res.data)
console.log('reserev',reserev)
let dateSmart
if(res.data.type==1){
dateSmart=util.unixtoTime(reserev.ddate,this.data.tpls[this.data.current].timeStrSmart[0])
if(res.data.is_set_ddate==1){
dateSmart+=' '+util.unixtoTime(reserev.ddate,this.data.tpls[this.data.current].timeStrSmart[1])
}else{
dateSmart+=' '+reserev.soltName
}
}else{
dateSmart=util.unixtoTime(reserev.ddate,this.data.tpls[this.data.current].timeStr)
}
this.setData({
seller:{
name:res.data.seller.sellername,
room:tables.join('、'),
date:util.unixtoTime(res.data.ddate,this.data.tpls[this.data.current].timeStr),
date:dateSmart,
addr:res.data.seller.real_address||res.data.seller.map_address,
image:res.data.image_url,
hasOwner:true,
... ...
... ... @@ -600,6 +600,7 @@ Page({
form.ddate = util.timetouUnix(ddateStr);
}
//App.Customer.SetReserveInfoById
form.ddate_solt=form.time+1
App.Customer.SetReserveInfoById(form).then(res => {
if (res.ret == 200) {
this.getCustomRemark()
... ...