Commit f27623aaa095fceca87c8859e43ef31251bf3eee

Authored by fengtao
1 parent 6b6130b7

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

@@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
13 </u-list> 13 </u-list>
14 <view class="bottom-text"> 14 <view class="bottom-text">
15 <view class="u-flex column"> 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 </view> 17 </view>
18 <view style="margin-top: 20rpx;"> 18 <view style="margin-top: 20rpx;">
19 <!-- 富文本解析 --> 19 <!-- 富文本解析 -->
@@ -2,9 +2,11 @@ @@ -2,9 +2,11 @@
2 <view class="notify-page"> 2 <view class="notify-page">
3 <!-- 公共组件-每个页面必须引入 --> 3 <!-- 公共组件-每个页面必须引入 -->
4 <public-module></public-module> 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 </view> 10 </view>
9 <view style="height: 76rpx;"></view> 11 <view style="height: 76rpx;"></view>
10 <view class="notify-main"> 12 <view class="notify-main">
@@ -82,7 +84,8 @@ export default { @@ -82,7 +84,8 @@ export default {
82 onShow() { 84 onShow() {
83 this.pre = uni.getStorageSync('storagePre'); 85 this.pre = uni.getStorageSync('storagePre');
84 if (this.pre) { 86 if (this.pre) {
85 - this.loadData(1); 87 + this.page.num = 1;
  88 + this.loadData(this.page.num);
86 } 89 }
87 }, 90 },
88 onHide() { 91 onHide() {
@@ -97,19 +100,11 @@ export default { @@ -97,19 +100,11 @@ export default {
97 uni.hideKeyboard(); 100 uni.hideKeyboard();
98 }, 101 },
99 typeSelect(e) { 102 typeSelect(e) {
100 - this.topBack();  
101 this.isJudgeNextPage = e.value; 103 this.isJudgeNextPage = e.value;
102 this.page.num = 1; 104 this.page.num = 1;
103 this.model1.userInfo.type = e.name; 105 this.model1.userInfo.type = e.name;
104 this.loadData(1, this.isJudgeNextPage == '' ? null : this.isJudgeNextPage); 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 downCallback() { 109 downCallback() {
115 //联网加载数据 110 //联网加载数据