Selaa lähdekoodia

qpp2.2.0新生登录

西昌缴费二期
杨晓琪 2 vuotta sitten
vanhempi
commit
42c9054e10
6 muutettua tiedostoa jossa 51 lisäystä ja 12 poistoa
  1. +1
    -1
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js
  2. +11
    -0
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json
  3. +13
    -0
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/login.vue
  4. +1
    -1
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/my/newpassword.vue
  5. +23
    -8
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/my/password.vue
  6. +2
    -2
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/weixinLogin.vue

+ 1
- 1
Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js Näytä tiedosto

@@ -21,7 +21,7 @@ export default {
// "http://192.168.2.98:8088/"
// ],
"apiHost": [
"http://localhost:31173/"
"http://192.168.10.68:8002/"
// "http://192.168.10.85:8088/"
],
"webHost":"http://localhost:20472/",


+ 11
- 0
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json Näytä tiedosto

@@ -54,6 +54,12 @@
"disableScroll": true
}
},
{ "path": "pages/weixinLogin",
"style": {
"navigationStyle": "custom",
"disableScroll": true
}
},

// 消息(tabBar #2)
{
@@ -116,6 +122,11 @@
"navigationBarTitleText": "更改密码"
}
},
{ "path": "pages/my/newpassword",
"style": {
"navigationBarTitleText": "设置密码"
}
},
{
"path": "pages/my/learun",
"style": {


+ 13
- 0
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/login.vue Näytä tiedosto

@@ -32,6 +32,10 @@
<l-icon slot="title" type="lock" />
</l-input>
<l-button @click="login(null)" size="lg" color="blue" class="margin-top-sm block" block>登 录</l-button>
<view class="otherLogin">
<navigator url="/pages/weixinLogin" class="textBtn">新生首次登录</text></navigator>
</view>
<!-- <l-button v-if="enableSignUp" @click="signUp" size="lg" line="blue" class="margin-top-sm block" block>
教师注册
</l-button> -->
@@ -266,6 +270,15 @@ page {
margin-top: 20rpx;
}
}
.otherLogin{
display: flex;
justify-content: right;
.textBtn{
width: 100px;
color: #606266;
}
}

.more {
margin-top: 30rpx;


+ 1
- 1
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/my/newpassword.vue Näytä tiedosto

@@ -46,7 +46,7 @@ export default {
}

const success = await this.HTTP_POST(
'/user/modifypw',
'learun/adms/user/modifypw',
{
newpassword: this.MD5(newPwd),
// oldpassword: this.MD5(oldPwd)


+ 23
- 8
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/my/password.vue Näytä tiedosto

@@ -4,7 +4,9 @@
<l-input v-model="oldPwd" title="旧密码" placeholder="请输入旧密码" password></l-input>
<l-input v-model="newPwd" title="新的密码" placeholder="请输入新密码" password></l-input>
<l-input v-model="confirmPwd" title="确认输入" placeholder="请再次输入新密码" password></l-input>

<view class="passwordDes">
<text>新密码必须8-20位同时包含1.[大小写字母]、2.[数字]、3.[特殊符号!@#$%^&*]</text>
</view>
<view class="padding">
<l-button @click="submit" size="lg" color="blue" class="block" block>确认修改</l-button>
</view>
@@ -29,10 +31,15 @@ export default {
this.CONFIRM('操作失败', '旧密码输入不正确,请重新确认')
return
}
if (newPwd.length < 6 || newPwd.length > 16) {
this.CONFIRM('操作失败', '新密码不符合要求,请修改后重试')
return
}
// if (newPwd.length < 6 || newPwd.length > 16) {
// this.CONFIRM('操作失败', '新密码不符合要求,请修改后重试')
// return
// }
var reg = /^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%^&*,\.])[0-9a-zA-Z!@#$%^&*,\.]{8,20}$/;
if( !reg.test(newPwd) ){
this.CONFIRM('操作失败', '新密码不符合要求,请修改后重试')
return
}
if (newPwd !== confirmPwd) {
this.CONFIRM('操作失败', '新密码和确认密码输入不一致,请修改')
return
@@ -41,12 +48,12 @@ export default {
const success = await this.HTTP_POST(
'learun/adms/user/modifypw',
{
newpassword: this.md5(newPwd),
oldpassword: this.md5(oldPwd)
newpassword: this.MD5(newPwd),
oldpassword: this.MD5(oldPwd)
},
'未能成功修改密码'
)
console.log(success)
if (!success) {
return
}
@@ -57,3 +64,11 @@ export default {
}
}
</script>
<style lang="scss">
.passwordDes{
color: #606266;
font-size: 14px;
padding: 8px;
text-indent:2em;
}
</style>

+ 2
- 2
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/weixinLogin.vue Näytä tiedosto

@@ -141,7 +141,7 @@ export default {
// 不是小程序,则提交用户名、密码登录
// 是小程序,则申请授权码登录
if (!type) {
let postResult = await this.POST('/user/login', { username, password: this.MD5(password) })
let postResult = await this.POST('learun/adms/user/login', { username, password: this.MD5(password) })
if(postResult[1].data.code=='200'){
loginResult=postResult[1].data.data;
}else{
@@ -155,7 +155,7 @@ export default {
return
}

loginResult = await this.HTTP_POST('/user/openid_login', { code, type }, '登录时发生错误')
loginResult = await this.HTTP_POST('learun/adms/user/openid_login', { code, type }, '登录时发生错误')
}

if (!loginResult) {


Ladataan…
Peruuta
Tallenna