Commit 55c53d81e2cd36e417decc8248535c2a7a225061

Authored by xp.Huang
2 parents 421f6b91 55663458

Merge branch 'ft_local_dev' into 'main'

fix:修改url地址

See merge request huang/thingskit-app!79
@@ -8,12 +8,12 @@ @@ -8,12 +8,12 @@
8 <view class="u-flex u-p-l-30 u-p-r-20 u-p-t-75 u-p-b-30"> 8 <view class="u-flex u-p-l-30 u-p-r-20 u-p-t-75 u-p-b-30">
9 <block v-if="userInfo.isToken || userInfo.isThirdLogin"> 9 <block v-if="userInfo.isToken || userInfo.isThirdLogin">
10 <view @click.top="openPersonalInfo" class="u-m-r-20"> 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 </view> 12 </view>
13 <view class="u-flex-1" @click.top="openPersonalInfo"> 13 <view class="u-flex-1" @click.top="openPersonalInfo">
14 <view class="nickName u-flex"> 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 </view> 17 </view>
18 <view v-if="userInfo.isThirdLogin" @click.stop="clickAccountFunc" class="detail"><text class="text">绑定账号</text></view> 18 <view v-if="userInfo.isThirdLogin" @click.stop="clickAccountFunc" class="detail"><text class="text">绑定账号</text></view>
19 </view> 19 </view>
@@ -244,10 +244,10 @@ export default { @@ -244,10 +244,10 @@ export default {
244 }); 244 });
245 return; 245 return;
246 } else if (!passReg.test(this.bindAccountObj.appUserSecret)) { 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 return; 252 return;
253 } 253 }
@@ -80,7 +80,7 @@ export default { @@ -80,7 +80,7 @@ export default {
80 } 80 }
81 // 获取验证码接口 81 // 获取验证码接口
82 uni.$u.http 82 uni.$u.http
83 - .post(`/yt/noauth/sendLoginSmsCode/${this.phone}`) 83 + .post(`/yt/noauth/send_login_code/${this.phone}`)
84 .then(res => { 84 .then(res => {
85 if (res) { 85 if (res) {
86 this.getCodeState(); //开始倒计时 86 this.getCodeState(); //开始倒计时
@@ -100,7 +100,7 @@ export default { @@ -100,7 +100,7 @@ export default {
100 let httpData = {}; 100 let httpData = {};
101 // 获取验证码接口 101 // 获取验证码接口
102 uni.$u.http 102 uni.$u.http
103 - .post(`/yt/noauth/resetCode/${this.phone}`) 103 + .post(`/yt/noauth/reset_code/${this.phone}`)
104 .then(res => { 104 .then(res => {
105 this.getCodeState(); //开始倒计时 105 this.getCodeState(); //开始倒计时
106 }) 106 })
@@ -87,6 +87,9 @@ export default { @@ -87,6 +87,9 @@ export default {
87 mounted() { 87 mounted() {
88 this.getPlateForm(); 88 this.getPlateForm();
89 }, 89 },
  90 + onShow() {
  91 + this.getPlateForm();
  92 + },
90 methods: { 93 methods: {
91 //获取平台定制信息 94 //获取平台定制信息
92 getPlateForm() { 95 getPlateForm() {
@@ -213,14 +216,12 @@ export default { @@ -213,14 +216,12 @@ export default {
213 }); 216 });
214 return; 217 return;
215 } else if (!passReg.test(this.loginForm.password)) { 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 return; 225 return;
225 } 226 }
226 uni.$u.http 227 uni.$u.http
@@ -145,7 +145,7 @@ export default { @@ -145,7 +145,7 @@ export default {
145 type: t 145 type: t
146 }; 146 };
147 uni.$u.http 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 .then(res => { 149 .then(res => {
150 uni.stopPullDownRefresh(); 150 uni.stopPullDownRefresh();
151 this.mescroll.endByPage(res.items.length, res.total); 151 this.mescroll.endByPage(res.items.length, res.total);
@@ -162,7 +162,7 @@ export default { @@ -162,7 +162,7 @@ export default {
162 clickNotifyDetail(e, i) { 162 clickNotifyDetail(e, i) {
163 this.list[i].readStatus = 1; 163 this.list[i].readStatus = 1;
164 uni.$u.http 164 uni.$u.http
165 - .get(`/yt/noticeUser/${e.sysNotice.id}`) 165 + .get(`/yt/notice_user/${e.sysNotice.id}`)
166 .then(res => {}) 166 .then(res => {})
167 .catch(e => {}); 167 .catch(e => {});
168 uni.navigateTo({ 168 uni.navigateTo({