Commit 90d8928af50b025c78b453ff73ff7699d9121ffa

Authored by liuxuqinfhp1220
1 parent 09726eb7

no message

... ... @@ -21,10 +21,9 @@ Component({
let today=util.unixtoTime(new Date()/1000,'YYYY-MM-DD');
this.getsectionlist();
if(today==newdate){
this.markoversection();
if(this.data.section){
this.changesectionstyle(this.data.section);
}else{
this.markoversection();
}
}else{
if(this.data.section){
... ... @@ -34,7 +33,7 @@ Component({
}
let obj={
section:this.data.section ? this.data.section : this.data.sectionlist[0].section,
action:'defalut',
action:this.data.section ? 'click' :'defalut',
time:this.data.sectionlist[0].sectiondur.split('-')[0]
}
this.triggerEvent('selectsection',obj)
... ... @@ -85,9 +84,11 @@ Component({
}
})
console.log(interval)
if(interval.length>0){
sectionlist[interval[0].index].isselected=true;
this.tellsection(sectionlist[interval[0].index].section,'defalut',interval[0].index)
if(!this.data.section){
if(interval.length>0){
sectionlist[interval[0].index].isselected=true;
this.tellsection(sectionlist[interval[0].index].section,'defalut',interval[0].index)
}
}
this.setData({
sectionlist:sectionlist
... ...
... ... @@ -15,6 +15,7 @@ Page({
console.log('selectdate',e);
this.setData({
reserveDate:e.detail.date,
reserveSection:e.detail.action=='click' ? null : this.data.reserveSection
})
},
//时段改变
... ...
... ... @@ -49,13 +49,13 @@
"list": []
},
"miniprogram": {
"current": 56,
"current": 0,
"list": [
{
"id": 0,
"name": "预订本-商家1",
"pathName": "pack-book/pages/book/b_index",
"query": "seller_id=80&seller_openid=o9pcQ0cbjRKnRWczcOJaaSRGP1lE&manager_id=500",
"query": "seller_id=154&seller_openid=o9pcQ0cbjRKnRWczcOJaaSRGP1lE&manager_id=500",
"scene": 1001
},
{
... ...