Browse Source

数字车间下拉刷新

devlop
mo-bai 3 years ago
parent
commit
e4c7d2b5f8
2 changed files with 7 additions and 2 deletions
  1. 2
      pages.json
  2. 7
      pages/digital-workshops/index.vue

2
pages.json

@ -15,7 +15,7 @@
"path": "pages/digital-workshops/index",
"style": {
"navigationBarTitleText": "数字车间",
"enablePullDownRefresh": false,
"enablePullDownRefresh": true,
"navigationStyle": "custom"
}
},

7
pages/digital-workshops/index.vue

@ -119,9 +119,14 @@ export default {
cameraList: []
}
},
onShow() {
onLoad() {
this.getFactoryList()
},
onPullDownRefresh() {
console.log('下拉刷新')
this.getFactoryList()
uni.stopPullDownRefresh()
},
watch: {
factoryId(val) {
if (val === -1) {

Loading…
Cancel
Save