4 Commits abd367e0b8 ... 363d87f26d

Author SHA1 Message Date
  wxd 363d87f26d wxd 3 months ago
  杜迪迪 20b74928e0 16:52 3 months ago
  杜迪迪 ac8135b9eb Merge branch 'master' of http://121.28.134.38:2039/wxd/jiliangxiaochengxu into dudidi 3 months ago
  杜迪迪 af9c45a84e 15:07 3 months ago
2 changed files with 29 additions and 4 deletions
  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() {