Commit a71a14209ea992364ac6edc53ed34cd834e2b7d9
Merge branch 'f-dev' into 'main'
fix:修改个人资料用户账号不能编辑,fix:修改通知分页停留在滚动位置 See merge request huang/thingskit-app!50
Showing
2 changed files
with
20 additions
and
11 deletions
@@ -16,7 +16,7 @@ | @@ -16,7 +16,7 @@ | ||
16 | <u--input placeholder="请输入手机号码" v-model="myInfoModel.userInfo.phoneNumber" border="none"></u--input> | 16 | <u--input placeholder="请输入手机号码" v-model="myInfoModel.userInfo.phoneNumber" border="none"></u--input> |
17 | </u-form-item> | 17 | </u-form-item> |
18 | <u-form-item labelWidth="80px" label="用户账号 " prop="userInfo.username" borderBottom ref="item1"> | 18 | <u-form-item labelWidth="80px" label="用户账号 " prop="userInfo.username" borderBottom ref="item1"> |
19 | - <u--input placeholder="请输入用户账号 " v-model="myInfoModel.userInfo.username" border="none"></u--input> | 19 | + <u--input disabled placeholder="请输入用户账号 " v-model="myInfoModel.userInfo.username" border="none"></u--input> |
20 | </u-form-item> | 20 | </u-form-item> |
21 | <u-form-item labelWidth="80px" label="邮箱地址" prop="userInfo.email" borderBottom ref="item1"> | 21 | <u-form-item labelWidth="80px" label="邮箱地址" prop="userInfo.email" borderBottom ref="item1"> |
22 | <u--input placeholder="请输入邮箱地址" v-model="myInfoModel.userInfo.email" border="none"></u--input> | 22 | <u--input placeholder="请输入邮箱地址" v-model="myInfoModel.userInfo.email" border="none"></u--input> |
@@ -282,4 +282,10 @@ export default { | @@ -282,4 +282,10 @@ export default { | ||
282 | /deep/ .u-form-item { | 282 | /deep/ .u-form-item { |
283 | height: 100rpx !important; | 283 | height: 100rpx !important; |
284 | } | 284 | } |
285 | +/deep/ .u-form-item:nth-child(3) { | ||
286 | + .u-form-item__body { | ||
287 | + background: #f5f7fa !important; | ||
288 | + width: 663rpx !important ; | ||
289 | + } | ||
290 | +} | ||
285 | </style> | 291 | </style> |
@@ -79,7 +79,8 @@ export default { | @@ -79,7 +79,8 @@ export default { | ||
79 | list: [], | 79 | list: [], |
80 | pre: false, | 80 | pre: false, |
81 | isJudgeNextPage: '', | 81 | isJudgeNextPage: '', |
82 | - distance: 0 | 82 | + distance: 0, |
83 | + scrollDistance: 0 | ||
83 | }; | 84 | }; |
84 | }, | 85 | }, |
85 | onLoad(e) { | 86 | onLoad(e) { |
@@ -91,20 +92,12 @@ export default { | @@ -91,20 +92,12 @@ export default { | ||
91 | onShow() { | 92 | onShow() { |
92 | this.pre = uni.getStorageSync('storagePre'); | 93 | this.pre = uni.getStorageSync('storagePre'); |
93 | if (this.pre) { | 94 | if (this.pre) { |
94 | - // this.page.num = 1; | ||
95 | - // this.loadData(this.page.num); | ||
96 | } | 95 | } |
97 | }, | 96 | }, |
98 | onHide() { | 97 | onHide() { |
99 | uni.removeStorageSync('storagePre'); | 98 | uni.removeStorageSync('storagePre'); |
100 | }, | 99 | }, |
101 | methods: { | 100 | methods: { |
102 | - // topBack(num) { | ||
103 | - // uni.pageScrollTo({ | ||
104 | - // scrollTop: 0, // 滚动到页面的目标位置 这个是滚动到顶部, 0 | ||
105 | - // duration: 10 // 滚动动画的时长 | ||
106 | - // }); | ||
107 | - // }, | ||
108 | formatType(e) { | 101 | formatType(e) { |
109 | return e?.type == 'OTHER' ? '其他' : e?.type == 'MEETING' ? '会议' : '公告'; | 102 | return e?.type == 'OTHER' ? '其他' : e?.type == 'MEETING' ? '会议' : '公告'; |
110 | }, | 103 | }, |
@@ -117,6 +110,17 @@ export default { | @@ -117,6 +110,17 @@ export default { | ||
117 | this.page.num = 1; | 110 | this.page.num = 1; |
118 | this.model1.userInfo.type = e.name; | 111 | this.model1.userInfo.type = e.name; |
119 | this.loadData(1, this.isJudgeNextPage == '' ? null : this.isJudgeNextPage); | 112 | this.loadData(1, this.isJudgeNextPage == '' ? null : this.isJudgeNextPage); |
113 | + uni.pageScrollTo({ | ||
114 | + scrollTop: this.scrollDistance + 20, | ||
115 | + duration: 50 | ||
116 | + }); | ||
117 | + uni.pageScrollTo({ | ||
118 | + scrollTop: this.scrollDistance - 20, | ||
119 | + duration: 50 | ||
120 | + }); | ||
121 | + }, | ||
122 | + onPageScroll(e) { | ||
123 | + this.scrollDistance = e.scrollTop; | ||
120 | }, | 124 | }, |
121 | /*下拉刷新的回调 */ | 125 | /*下拉刷新的回调 */ |
122 | downCallback() { | 126 | downCallback() { |
@@ -158,7 +162,6 @@ export default { | @@ -158,7 +162,6 @@ export default { | ||
158 | } | 162 | } |
159 | }) | 163 | }) |
160 | .catch(e => { | 164 | .catch(e => { |
161 | - // uni.$u.toast(e.data?.message); | ||
162 | this.mescroll.endErr(); | 165 | this.mescroll.endErr(); |
163 | }); | 166 | }); |
164 | }, | 167 | }, |