Browse Source

搜索 页面串起来

y595705120 3 years ago
parent
commit
5ed2448176
4 changed files with 8 additions and 3 deletions
  1. 1 1
      app.json
  2. 5 0
      component/v2/index.js
  3. 1 1
      component/v2/index.wxml
  4. 1 1
      pages/search/index.wxss

+ 1 - 1
app.json

@@ -1,7 +1,7 @@
 {
   "pages": [
-    "pages/search/index",
     "pages/rili/index",
+    "pages/search/index",
     "pages/detail/visit/index",
     "pages/detail/out/index",
     "pages/index/index",

+ 5 - 0
component/v2/index.js

@@ -229,6 +229,11 @@ Component({
         })
       })
     },
+    gotoSearch(){
+      wx.navigateTo({
+        url: '/pages/search/index',
+      })
+    },
     doubleClickJumpToToday() {
       const { multi, weekMode } = this.calendar.getCalendarConfig() || {}
       if (multi || weekMode) return

+ 1 - 1
component/v2/index.wxml

@@ -11,7 +11,7 @@
       <view class="flex date-in-handle b lr cc fsnd" bindtap="doubleClickJumpToToday">
         {{calendar.curYear || "--"}} 年 {{calendar.curMonth || "--"}} 月 
       </view>
-      <view class="flex" bindtap="doubleClickJumpToToday">
+      <view class="flex" bindtap="gotoSearch">
          <i-icon type="search"  size="25" style="color: blue"></i-icon>
       </view>
       <view class="next fsnd" wx:if="{{!config.weekMode}}">

+ 1 - 1
pages/search/index.wxss

@@ -12,7 +12,7 @@
   width: 650rpx;
   text-align: center;
   z-index: 9999;
-  background-color: #acacac;
+  background-color: #fefefe;
   padding: 15rpx;
 }
 .search-navigator{