Commit 320d4396bea1befd5048c3156dc98980ea509949

Authored by vking
1 parent 7427dfa7

到店时间显示

@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 <nav hasHome>订座详情</nav> 2 <nav hasHome>订座详情</nav>
3 <a2l bindshow="a2lshow" bindhide="a2lshow" key="BOOK-DETAIL" type="black" hitStr="通知客户"></a2l> 3 <a2l bindshow="a2lshow" bindhide="a2lshow" key="BOOK-DETAIL" type="black" hitStr="通知客户"></a2l>
4 <!--订单信息--> 4 <!--订单信息-->
5 -<view class="order-info"> 5 +<view class="order-info" wx:if="{{bookInfo}}" >
6 <view class="flex-lr order-detail"> 6 <view class="flex-lr order-detail">
7 <view class="gray-deep-font font30r">用餐时段</view> 7 <view class="gray-deep-font font30r">用餐时段</view>
8 <view class="black-font font34r"> 8 <view class="black-font font34r">
@@ -124,7 +124,7 @@ view{ @@ -124,7 +124,7 @@ view{
124 } 124 }
125 .reserve-status-tip{ 125 .reserve-status-tip{
126 position: absolute; 126 position: absolute;
127 - top:150rpx; 127 + top:220rpx;
128 right:240rpx; 128 right:240rpx;
129 width: 82rpx; 129 width: 82rpx;
130 height: 52rpx; 130 height: 52rpx;
@@ -2,6 +2,7 @@ @@ -2,6 +2,7 @@
2 import util from '../../../utils/util'; 2 import util from '../../../utils/util';
3 import App from '../../../utils/api'; 3 import App from '../../../utils/api';
4 import TP from '../../../utils/tpls'; 4 import TP from '../../../utils/tpls';
  5 +import RS from '../../../utils/reserveStatus'
5 const {regeneratorRuntime} = global 6 const {regeneratorRuntime} = global
6 Page({ 7 Page({
7 8
@@ -44,11 +45,24 @@ Page({ @@ -44,11 +45,24 @@ Page({
44 res.data.tables.forEach(t=>{ 45 res.data.tables.forEach(t=>{
45 tables.push(t.name); 46 tables.push(t.name);
46 }) 47 })
  48 + let reserev=RS.reserve(res.data)
  49 + console.log('reserev',reserev)
  50 + let dateSmart
  51 + if(res.data.type==1){
  52 + dateSmart=util.unixtoTime(reserev.ddate,this.data.tpls[this.data.current].timeStrSmart[0])
  53 + if(res.data.is_set_ddate==1){
  54 + dateSmart+=' '+util.unixtoTime(reserev.ddate,this.data.tpls[this.data.current].timeStrSmart[1])
  55 + }else{
  56 + dateSmart+=' '+reserev.soltName
  57 + }
  58 + }else{
  59 + dateSmart=util.unixtoTime(reserev.ddate,this.data.tpls[this.data.current].timeStr)
  60 + }
47 this.setData({ 61 this.setData({
48 seller:{ 62 seller:{
49 name:res.data.seller.sellername, 63 name:res.data.seller.sellername,
50 room:tables.join('、'), 64 room:tables.join('、'),
51 - date:util.unixtoTime(res.data.ddate,this.data.tpls[this.data.current].timeStr), 65 + date:dateSmart,
52 addr:res.data.seller.real_address||res.data.seller.map_address, 66 addr:res.data.seller.real_address||res.data.seller.map_address,
53 image:res.data.image_url, 67 image:res.data.image_url,
54 hasOwner:true, 68 hasOwner:true,
@@ -600,6 +600,7 @@ Page({ @@ -600,6 +600,7 @@ Page({
600 form.ddate = util.timetouUnix(ddateStr); 600 form.ddate = util.timetouUnix(ddateStr);
601 } 601 }
602 //App.Customer.SetReserveInfoById 602 //App.Customer.SetReserveInfoById
  603 + form.ddate_solt=form.time+1
603 App.Customer.SetReserveInfoById(form).then(res => { 604 App.Customer.SetReserveInfoById(form).then(res => {
604 if (res.ret == 200) { 605 if (res.ret == 200) {
605 this.getCustomRemark() 606 this.getCustomRemark()