Ver código fonte

供货商 订单 详情页 需要下拉刷新

wangn 5 anos atrás
pai
commit
9d36ff9baf
2 arquivos alterados com 6 adições e 1 exclusões
  1. 1 1
      ghsApp/src/pages.json
  2. 5 0
      ghsApp/src/pagesOrder/detail.vue

+ 1 - 1
ghsApp/src/pages.json

@@ -176,7 +176,7 @@
 		{
 			"root": "pagesOrder",
 			"pages": [
-				{"path": "detail","style": {"navigationBarTitleText": "订单详情"}},
+				{"path": "detail","style": {"navigationBarTitleText": "订单详情", "enablePullDownRefresh": true}},
 				{"path": "ship","style": {"navigationBarTitleText": "发货"}},
 				{"path": "shipInfo","style": {"navigationBarTitleText": "发货"}},
 				{"path": "select","style": {"navigationBarTitleText": "重选花材"}},

+ 5 - 0
ghsApp/src/pagesOrder/detail.vue

@@ -196,6 +196,11 @@ export default {
 			loading: false
 		};
 	},
+  onPullDownRefresh() {
+    this.init().then(res => {
+      uni.stopPullDownRefresh()
+    })
+  },
 	onShow() {
 		this.init();
 	},