wxd 1 месяц назад
Родитель
Сommit
363d87f26d
2 измененных файлов с 29 добавлено и 4 удалено
  1. 20 1
      pages.json
  2. 9 3
      pages/work/index.vue

+ 20 - 1
pages.json

@@ -191,7 +191,26 @@
     {
       "path": "pages/assay/deptList",
       "style": {
-        "navigationBarTitleText": "备案新增"
+        "navigationBarTitleText": "备案新增",
+        "enablePullDownRefresh": true,
+        "app-plus": {
+          "bounce": "none",
+          "titleNView": {
+            "buttons": [
+              {
+                "fontSize": "16px",
+                "text": "新增",
+                "color": "#23a9f2"
+              }
+            ]
+          }
+        }
+      }
+    },
+    {
+      "path": "pages/work/detailInfo",
+      "style": {
+        "navigationBarTitleText": "详情"
       }
     },
     {

+ 9 - 3
pages/work/index.vue

@@ -1,5 +1,3 @@
-<!-- @format -->
-
 <template>
   <view
     style="height: 100%; background-color: #f3f4f9; padding: 20rpx"
@@ -85,11 +83,19 @@ export default {
     // 	this.read = res;
     // });
     this.getList();
+    uni.startPullDownRefresh();
+  },
+  onPullDownRefresh() {
+    this.getList();
+    console.log("refresh");
+    setTimeout(function () {
+      uni.stopPullDownRefresh();
+    }, 800);
   },
   methods: {
     detailInfo(item) {
       uni.navigateTo({
-        url: "/pages/work/detailInfo?id=" + item.id,
+        url: "/pages/work/detailInfo?contents=" + item.contents,
       });
     },
     getList() {