|
@@ -26,6 +26,18 @@ Page({
|
|
|
this.search(false)
|
|
|
}
|
|
|
},
|
|
|
+ gotoDetail( e ){
|
|
|
+ let {id,out} = e.currentTarget.dataset;
|
|
|
+ if( out ){
|
|
|
+ wx.navigateTo({
|
|
|
+ url: `/pages/detail/out/index?id=${id}`,
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ wx.navigateTo({
|
|
|
+ url: `/pages/detail/visit/index?id=${id}`,
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
onInputEvent(e){
|
|
|
let {value} = e.detail;
|
|
|
if( this.data.keyword == value) return;
|