Kaynağa Gözat

fix: create file router change

wangyuan 2 yıl önce
ebeveyn
işleme
aac2acf21f

+ 0 - 3
pages/allFile/allFile.js

@@ -47,9 +47,6 @@ Page({
    */
   handleAddFile() {
     // this.setData({ vanoverlayshow: true })
-    wx.navigateTo({
-      url: '/pages/createFile/createFile',
-    })
   },
 
   /**

+ 1 - 1
pages/allFile/allFile.wxml

@@ -23,7 +23,7 @@
     </view>
     <view class="actions ittflex-jcb">
       <view class="handle-btn manage-btn ittflex" bindtap="handleFile">管理</view>
-      <view class="handle-btn itt-btn" bindtap="handleAddFile">新建档案</view>
+      <view class="handle-btn itt-btn">新建档案</view>
     </view>
   </view>
   <van-overlay show="{{ vanoverlayshow }}">

+ 6 - 0
pages/index/index.js

@@ -71,5 +71,11 @@ Page({
     wx.navigateTo({
       url: '/pages/allFile/allFile',
     })
+  },
+  // 添加检测人
+  handleAddCheck () {
+    wx.navigateTo({
+      url: '/pages/createFile/createFile',
+    })
   }
 })

+ 1 - 1
pages/index/index.wxml

@@ -57,6 +57,6 @@
         </view>
       </block>
     </view>
-    <view class="add-btn absolute-btn ittflex">添加检测人</view>
+    <view class="add-btn absolute-btn ittflex" bindtap="handleAddCheck">添加检测人</view>
   </view>
 </view>