|
@@ -25,15 +25,8 @@ Component({ |
|
@@ -25,15 +25,8 @@ Component({ |
|
25
|
'date,section': function(newdate,newsection) {
|
25
|
'date,section': function(newdate,newsection) {
|
|
26
|
console.log('room',newdate,newsection)
|
26
|
console.log('room',newdate,newsection)
|
|
27
|
if(newdate && newsection){
|
27
|
if(newdate && newsection){
|
|
28
|
- if(this.data.roomlist.length>0){
|
|
|
|
29
|
- this.data.roomlist.forEach((v,i)=>{
|
|
|
|
30
|
- if(v.selectnum>0){
|
|
|
|
31
|
- v.selectnum=0;
|
|
|
|
32
|
- }
|
|
|
|
33
|
- })
|
|
|
|
34
|
- }
|
|
|
|
35
|
this.setData({
|
28
|
this.setData({
|
|
36
|
- roomlist:this.data.roomlist
|
29
|
+ roomlist:[]
|
|
37
|
})
|
30
|
})
|
|
38
|
this.getroomtype();
|
31
|
this.getroomtype();
|
|
39
|
}else{
|
32
|
}else{
|
|
@@ -50,7 +43,7 @@ Component({ |
|
@@ -50,7 +43,7 @@ Component({ |
|
50
|
day:util.timetouUnix(this.data.date+' 00:00:00'),
|
43
|
day:util.timetouUnix(this.data.date+' 00:00:00'),
|
|
51
|
interval:dur.indexOf(this.data.section)+1
|
44
|
interval:dur.indexOf(this.data.section)+1
|
|
52
|
}
|
45
|
}
|
|
53
|
- console.log('参数',this.data.date,parmdata)
|
46
|
+ console.log('参数',this.data.date,parmdata);
|
|
54
|
App.Seller.GetSellerTableClass(parmdata).then((json)=>{
|
47
|
App.Seller.GetSellerTableClass(parmdata).then((json)=>{
|
|
55
|
console.log('roomlist',json)
|
48
|
console.log('roomlist',json)
|
|
56
|
if(json.ret==200){
|
49
|
if(json.ret==200){
|