Commit ef1054c53a4fa4223eef572754c1d3e3e4c4cbce

Authored by fengtao
1 parent 91e34c7f

fix:修改url地址

... ... @@ -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 }
... ...
... ... @@ -80,7 +80,7 @@ export default {
80 80 }
81 81 // 获取验证码接口
82 82 uni.$u.http
83   - .post(`/yt/noauth/sendLoginSmsCode/${this.phone}`)
  83 + .post(`/yt/noauth/send_login_code/${this.phone}`)
84 84 .then(res => {
85 85 if (res) {
86 86 this.getCodeState(); //开始倒计时
... ...
... ... @@ -100,7 +100,7 @@ export default {
100 100 let httpData = {};
101 101 // 获取验证码接口
102 102 uni.$u.http
103   - .post(`/yt/noauth/resetCode/${this.phone}`)
  103 + .post(`/yt/noauth/reset_code/${this.phone}`)
104 104 .then(res => {
105 105 this.getCodeState(); //开始倒计时
106 106 })
... ...
... ... @@ -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
... ...