Commit f27623aaa095fceca87c8859e43ef31251bf3eee

Authored by fengtao
1 parent 6b6130b7

fix:修改通知详情标题加粗,修改通知分页返回回到顶部问题

... ... @@ -13,7 +13,7 @@
13 13 </u-list>
14 14 <view class="bottom-text">
15 15 <view class="u-flex column">
16   - <text class="text">{{ notifyList.title }}</text>
  16 + <text class="text" style="font-weight: bold;">{{ notifyList.title }}</text>
17 17 </view>
18 18 <view style="margin-top: 20rpx;">
19 19 <!-- 富文本解析 -->
... ...
... ... @@ -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 //联网加载数据
... ...