Commit 55c53d81e2cd36e417decc8248535c2a7a225061
Merge branch 'ft_local_dev' into 'main'
fix:修改url地址 See merge request huang/thingskit-app!79
Showing
5 changed files
with
19 additions
and
18 deletions
| ... | ... | @@ -8,12 +8,12 @@ |
| 8 | 8 | <view class="u-flex u-p-l-30 u-p-r-20 u-p-t-75 u-p-b-30"> |
| 9 | 9 | <block v-if="userInfo.isToken || userInfo.isThirdLogin"> |
| 10 | 10 | <view @click.top="openPersonalInfo" class="u-m-r-20"> |
| 11 | - <image class="avatar" mode="aspectFill" :src="mpOwnConfig.logo || userInfo.avatar || thirdObj.avatarUrl || '../../static/logo.png'"></image> | |
| 11 | + <image class="avatar" mode="aspectFill" :src="userInfo.avatar || thirdObj.avatarUrl || '../../static/logo.png'"></image> | |
| 12 | 12 | </view> |
| 13 | 13 | <view class="u-flex-1" @click.top="openPersonalInfo"> |
| 14 | 14 | <view class="nickName u-flex"> |
| 15 | - <view class="name u-m-r-10" v-if="mpOwnConfig.name || userInfo.realName || userInfo.nickName"> | |
| 16 | - <text style="#FFFFFF;font-size: 18px;">{{ mpOwnConfig.name || userInfo.realName || userInfo.nickName }}</text> | |
| 15 | + <view class="name u-m-r-10" v-if="userInfo.realName || userInfo.nickName"> | |
| 16 | + <text style="#FFFFFF;font-size: 18px;">{{ userInfo.realName || userInfo.nickName }}</text> | |
| 17 | 17 | </view> |
| 18 | 18 | <view v-if="userInfo.isThirdLogin" @click.stop="clickAccountFunc" class="detail"><text class="text">绑定账号</text></view> |
| 19 | 19 | </view> |
| ... | ... | @@ -244,10 +244,10 @@ export default { |
| 244 | 244 | }); |
| 245 | 245 | return; |
| 246 | 246 | } else if (!passReg.test(this.bindAccountObj.appUserSecret)) { |
| 247 | - uni.showToast({ | |
| 248 | - title: '密码格式不正确(至少一个大写英文字母、至少一个小写英文字母、至少一位数字、至少一个特殊字符、最少八个字符)~', | |
| 249 | - icon: 'none', | |
| 250 | - duration: 3000 | |
| 247 | + uni.showModal({ | |
| 248 | + title: '提示', | |
| 249 | + content: '密码格式不正确(至少一个大写英文字母、至少一个小写英文字母、至少一位数字、至少一个特殊字符、最少八个字符)~', | |
| 250 | + showCancel: false | |
| 251 | 251 | }); |
| 252 | 252 | return; |
| 253 | 253 | } | ... | ... |
| ... | ... | @@ -87,6 +87,9 @@ export default { |
| 87 | 87 | mounted() { |
| 88 | 88 | this.getPlateForm(); |
| 89 | 89 | }, |
| 90 | + onShow() { | |
| 91 | + this.getPlateForm(); | |
| 92 | + }, | |
| 90 | 93 | methods: { |
| 91 | 94 | //获取平台定制信息 |
| 92 | 95 | getPlateForm() { |
| ... | ... | @@ -213,14 +216,12 @@ export default { |
| 213 | 216 | }); |
| 214 | 217 | return; |
| 215 | 218 | } else if (!passReg.test(this.loginForm.password)) { |
| 216 | - uni.showToast({ | |
| 217 | - title: '密码格式不正确(至少一个大写英文字母、至少一个小写英文字母、至少一位数字、至少一个特殊字符、最少八个字符)~', | |
| 218 | - | |
| 219 | - icon: 'none', | |
| 220 | - | |
| 221 | - duration: 3000 | |
| 219 | + //uni.showToast,字数过长,会造成手机上显示不完全,官方bug,采用uni.showModal | |
| 220 | + uni.showModal({ | |
| 221 | + title: '提示', | |
| 222 | + content: '密码格式不正确(至少一个大写英文字母、至少一个小写英文字母、至少一位数字、至少一个特殊字符、最少八个字符)~', | |
| 223 | + showCancel: false | |
| 222 | 224 | }); |
| 223 | - | |
| 224 | 225 | return; |
| 225 | 226 | } |
| 226 | 227 | uni.$u.http | ... | ... |
| ... | ... | @@ -145,7 +145,7 @@ export default { |
| 145 | 145 | type: t |
| 146 | 146 | }; |
| 147 | 147 | uni.$u.http |
| 148 | - .get('/yt/noticeUser/page', { params: httpData, custom: { load: false } }) | |
| 148 | + .get('/yt/notice_user/page', { params: httpData, custom: { load: false } }) | |
| 149 | 149 | .then(res => { |
| 150 | 150 | uni.stopPullDownRefresh(); |
| 151 | 151 | this.mescroll.endByPage(res.items.length, res.total); |
| ... | ... | @@ -162,7 +162,7 @@ export default { |
| 162 | 162 | clickNotifyDetail(e, i) { |
| 163 | 163 | this.list[i].readStatus = 1; |
| 164 | 164 | uni.$u.http |
| 165 | - .get(`/yt/noticeUser/${e.sysNotice.id}`) | |
| 165 | + .get(`/yt/notice_user/${e.sysNotice.id}`) | |
| 166 | 166 | .then(res => {}) |
| 167 | 167 | .catch(e => {}); |
| 168 | 168 | uni.navigateTo({ | ... | ... |