Commit a7434664aea69225d521fa42221808d8cfcae9be

Authored by wangfan
1 parent f261951b

测试接口 & 增加推荐区域

... ... @@ -161,9 +161,9 @@ Page({
*/
onShow: function () {
//if(!this.reserve_id || util.cache('tableid').length>0){
if (util.cache('tableid').length > 0) {
//if (util.cache('tableid').length > 0) {
this.getTables();
}
//}
setTimeout(() => {
this.setData({
calendarMaskLoad: true,
... ... @@ -332,7 +332,9 @@ Page({
let tablesLength = 0;
if (tableid.length > 0) {
let toastTables={...this.checkedTables}
res.data.forEach(p => {
let resData=res.data.slice(1,res.data.length);
console.log('resData',resData)
resData.forEach(p => {
//if(tables.length>=3) return true;
p.list.forEach(t => {
delete toastTables[t.id]
... ... @@ -363,6 +365,7 @@ Page({
}
wx.removeStorage({key: 'tableid'})
}
console.log('tables',tables);
if(tables.length<1){
tablesLength=0;
tables_tmp = [];
... ...
... ... @@ -13,7 +13,7 @@
<image src="http://qn.colorcun.com/custom/lite-yd/image/reserve-status-{{bookInfo.status}}.png"></image>
</view>
<view class="flex-lr order-detail">
<view class="gray-deep-font font30r">预定座位</view>
<view class="gray-deep-font font30r">预订座位</view>
<view class="black-font font34r">{{tables.length}}个</view>
</view>
<view class="flex-lr order-desk">
... ... @@ -87,10 +87,10 @@
</view>
<view class="notice-button-border font34r flex-lr">
<view>
<formids bindclick="gotoModify">变更预定</formids>
<formids bindclick="gotoModify">变更预订</formids>
</view>
<view >
<formids bindclick="cancelReserve">取消预定</formids>
<formids bindclick="cancelReserve">取消预订</formids>
</view>
<view>
<formids bindclick="startDinner" data-status="2">确认到店</formids>
... ...
... ... @@ -46,7 +46,7 @@
<view class="book-list-thead flex-lr font34r black-font">
<view>桌号</view>
<view class="flex-cc">预定人</view>
<view class="flex-cc">预订人</view>
<view class="flex-cc" bindtap="timeorder">时间<image src="http://qn.colorcun.com/custom/lite-yd/image/direction.png" class="icon22-26" background-size="cover"></image></view>
<view class="flex-rr">操作</view>
</view>
... ...
... ... @@ -4,7 +4,7 @@
<view class="tip">在这里维护你的常用预订信息</view>
<view class="card">
<view class="item flex-lr">
<view class="item-label">预 定 人</view>
<view class="item-label">预 订 人</view>
<view class="Medium flex-rr">
<input class="name input" placeholder="请输入姓名"
bindinput="changeInput"
... ...
//正式
var uri={
HOST__LINE:'https://xt04.colorcun.com/?s=',
HOST__LINE:'https://xt05.colorcun.com/?s=',
//获取商家信息
CGI__USER_GETSELLERBYID: 'App.Seller.GetSellerById',
... ...