Commit 9ffb0d8a3a7606550d665feb5fa2d863e9fb1fd9

Authored by vking
1 parent a92ed781

filter 人均

@@ -82,9 +82,19 @@ Component({ @@ -82,9 +82,19 @@ Component({
82 obj.consumeStr=filterParams.consumeStr||'' 82 obj.consumeStr=filterParams.consumeStr||''
83 } 83 }
84 this.setData(obj) 84 this.setData(obj)
85 - setTimeout(()=>{  
86 - this.selectComponent('#consume').changeVal(this.min,this.max);  
87 - },0) 85 + if(filterParams){
  86 + setTimeout(()=>{
  87 + this.selectComponent('#consume').changeVal(this.min,this.max);
  88 + },0)
  89 + }else{
  90 + setTimeout(()=>{
  91 + this.selectComponent('#consume').changeVal(0,300);
  92 + this.setData({
  93 + active:'',
  94 + consumeStr:'',
  95 + })
  96 + },0)
  97 + }
88 }, 98 },
89 submit(){ 99 submit(){
90 this.triggerEvent('event',{ 100 this.triggerEvent('event',{
@@ -37,7 +37,7 @@ Page({ @@ -37,7 +37,7 @@ Page({
37 hasSubscribeFail:options.hasSubscribeFail, 37 hasSubscribeFail:options.hasSubscribeFail,
38 } 38 }
39 if(options.firstShowMsg){//从提交预订页进入 39 if(options.firstShowMsg){//从提交预订页进入
40 - obj.reserveSubmitInfo='预定提交成功,等待餐厅确认' 40 + obj.reserveSubmitInfo='预订提交成功,等待餐厅确认'
41 } 41 }
42 this.setData(obj) 42 this.setData(obj)
43 PubSub.on('detailPub',(res)=>{ 43 PubSub.on('detailPub',(res)=>{