Commit be20514940216c57af08e65db472621676441f3f

Authored by liuxuqinfhp1220
1 parent 18f0207e

no message

@@ -73,8 +73,10 @@ Component({ @@ -73,8 +73,10 @@ Component({
73 let _target=e.currentTarget.dataset; 73 let _target=e.currentTarget.dataset;
74 console.log(typeof _target.selectnum,this.data.usecondition) 74 console.log(typeof _target.selectnum,this.data.usecondition)
75 if(this.data.usecondition=='custom'){ 75 if(this.data.usecondition=='custom'){
  76 + console.log('custom:true为点击了订满的包间类型',this.data.roomlist[_target.index].isorderFull==1 || this.data.roomlist[_target.index].isFull==1)
76 if(this.data.roomlist[_target.index].isorderFull==1 || this.data.roomlist[_target.index].isFull==1){ 77 if(this.data.roomlist[_target.index].isorderFull==1 || this.data.roomlist[_target.index].isFull==1){
77 }else{ 78 }else{
  79 + console.log('执行了选中包间类型');
78 if((this.data.seletroomlist && this.data.seletroomlist.length<3) || !this.data.seletroomlist){ 80 if((this.data.seletroomlist && this.data.seletroomlist.length<3) || !this.data.seletroomlist){
79 let setkey='roomlist['+_target.index+'].selectnum'; 81 let setkey='roomlist['+_target.index+'].selectnum';
80 this.setData({ 82 this.setData({
@@ -139,6 +139,7 @@ Page({ @@ -139,6 +139,7 @@ Page({
139 this.options.room_demand.forEach((v,i)=>{ 139 this.options.room_demand.forEach((v,i)=>{
140 roomids.push(v.id) 140 roomids.push(v.id)
141 }) 141 })
  142 + console.log('ceshi',roomids);
142 App.Customer.SetReserveInfo({ 143 App.Customer.SetReserveInfo({
143 sid:this.options.sid, 144 sid:this.options.sid,
144 ddate:this.options.ddate, 145 ddate:this.options.ddate,
@@ -150,6 +151,7 @@ Page({ @@ -150,6 +151,7 @@ Page({
150 ddate_solt:dur.indexOf(this.options.section)+1, 151 ddate_solt:dur.indexOf(this.options.section)+1,
151 roomids:roomids.toString(), 152 roomids:roomids.toString(),
152 }).then(res=>{ 153 }).then(res=>{
  154 + console.log('ceshi',this.hasSubmit,res);
153 if(res.ret!=200){ 155 if(res.ret!=200){
154 this.hasSubmit=true; 156 this.hasSubmit=true;
155 return util.toast(res.msg,'none'); 157 return util.toast(res.msg,'none');
@@ -167,7 +169,9 @@ Page({ @@ -167,7 +169,9 @@ Page({
167 firstShowMsg:firstShowMsg, 169 firstShowMsg:firstShowMsg,
168 },'/pages/customer/detail_owner') 170 },'/pages/customer/detail_owner')
169 }) 171 })
170 - }) 172 + },()=>{
  173 + this.hasSubmit=true;
  174 + })
171 }, 175 },
172 getRdate(){ 176 getRdate(){
173 let daily=this.data.seller.daily; 177 let daily=this.data.seller.daily;