...
|
...
|
@@ -2,9 +2,11 @@ |
2
|
2
|
<view class="notify-page">
|
3
|
3
|
<!-- 公共组件-每个页面必须引入 -->
|
4
|
4
|
<public-module></public-module>
|
5
|
|
- <view @click="openTypeClick" style="width: 700rpx;position: fixed;top: 0;z-index: 1;">
|
6
|
|
- <u--input suffixIcon="arrow-down" shape="circle" disabled v-model="model1.userInfo.type" placeholder="请选择类型" border="surround"></u--input>
|
7
|
|
- <u-action-sheet :show="showType" :actions="actions" title="请选择类型" @close="showType = false" @select="typeSelect"></u-action-sheet>
|
|
5
|
+ <view style="width: 750rpx;background-color: #f8f9fa;">
|
|
6
|
+ <view @click="openTypeClick" style="background-color: #f8f9fa;width: 700rpx;position: fixed;top: 17rpx;z-index: 1;">
|
|
7
|
+ <u--input suffixIcon="arrow-down" shape="circle" disabled v-model="model1.userInfo.type" placeholder="请选择类型" border="surround"></u--input>
|
|
8
|
+ <u-action-sheet :show="showType" :actions="actions" title="请选择类型" @close="showType = false" @select="typeSelect"></u-action-sheet>
|
|
9
|
+ </view>
|
8
|
10
|
</view>
|
9
|
11
|
<view style="height: 76rpx;"></view>
|
10
|
12
|
<view class="notify-main">
|
...
|
...
|
@@ -82,7 +84,8 @@ export default { |
82
|
84
|
onShow() {
|
83
|
85
|
this.pre = uni.getStorageSync('storagePre');
|
84
|
86
|
if (this.pre) {
|
85
|
|
- this.loadData(1);
|
|
87
|
+ this.page.num = 1;
|
|
88
|
+ this.loadData(this.page.num);
|
86
|
89
|
}
|
87
|
90
|
},
|
88
|
91
|
onHide() {
|
...
|
...
|
@@ -97,19 +100,11 @@ export default { |
97
|
100
|
uni.hideKeyboard();
|
98
|
101
|
},
|
99
|
102
|
typeSelect(e) {
|
100
|
|
- this.topBack();
|
101
|
103
|
this.isJudgeNextPage = e.value;
|
102
|
104
|
this.page.num = 1;
|
103
|
105
|
this.model1.userInfo.type = e.name;
|
104
|
106
|
this.loadData(1, this.isJudgeNextPage == '' ? null : this.isJudgeNextPage);
|
105
|
107
|
},
|
106
|
|
- //筛选数据让它回到顶部
|
107
|
|
- topBack() {
|
108
|
|
- uni.pageScrollTo({
|
109
|
|
- scrollTop: 0, // 滚动到页面的目标位置 这个是滚动到顶部, 0
|
110
|
|
- duration: 300 // 滚动动画的时长
|
111
|
|
- });
|
112
|
|
- },
|
113
|
108
|
/*下拉刷新的回调 */
|
114
|
109
|
downCallback() {
|
115
|
110
|
//联网加载数据
|
...
|
...
|
|