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