Browse Source

搜索关联详情

y595705120 2 years ago
parent
commit
6dd9d76f52
1 changed files with 12 additions and 0 deletions
  1. 12 0
      pages/search/index.js

+ 12 - 0
pages/search/index.js

@@ -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;