|
...
|
...
|
@@ -17,13 +17,14 @@ Component({ |
|
|
|
*/
|
|
|
|
data: {
|
|
|
|
disp:false,
|
|
|
|
animation:'',
|
|
|
|
background:[{
|
|
|
|
url:'http://nosqn.colorcun.com/boots/1.png',
|
|
|
|
txt:'1.戳选地图上的商家,开始预订',
|
|
|
|
},{
|
|
|
|
url:'http://nosqn.colorcun.com/boots/3.png',
|
|
|
|
txt:'2.搜索商家或位置,开始预订',
|
|
|
|
}]
|
|
|
|
}],
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
...
|
...
|
@@ -37,6 +38,11 @@ Component({ |
|
|
|
this.setData({
|
|
|
|
disp:true,
|
|
|
|
})
|
|
|
|
setTimeout(()=>{
|
|
|
|
this.setData({
|
|
|
|
animation:'discountShow',
|
|
|
|
})
|
|
|
|
},300)
|
|
|
|
this.triggerEvent('event',{act:'show',txt:'新用户'})
|
|
|
|
//wx.setStorage({key:cacheKey, data:new Date().toISOString()})
|
|
|
|
},
|
|
...
|
...
|
@@ -47,9 +53,29 @@ Component({ |
|
|
|
},
|
|
|
|
hide(){
|
|
|
|
this.setData({
|
|
|
|
disp:false,
|
|
|
|
animation:'discountHide',
|
|
|
|
})
|
|
|
|
this.triggerEvent('event',{act:'hide',txt:'新用户'})
|
|
|
|
setTimeout(()=>{
|
|
|
|
this.setData({
|
|
|
|
disp:false,
|
|
|
|
})
|
|
|
|
},300)
|
|
|
|
},
|
|
|
|
hasGoto:false,
|
|
|
|
bindtransition(e){
|
|
|
|
console.log(e)
|
|
|
|
if('change'==e.type){
|
|
|
|
this.hasGoto=false
|
|
|
|
}
|
|
|
|
if('animationfinish'==e.type){
|
|
|
|
if(this.hasGoto && (e.detail.current+1)==2){
|
|
|
|
this.hide()
|
|
|
|
return;
|
|
|
|
}else{
|
|
|
|
this.hasGoto=true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}) |
...
|
...
|
|