Commit 8eefc076 authored by 李苏's avatar 李苏 💬

登录页面变更

parent 828f743e
{
"pages": [
// 云erp
{
"path": "pages/login/login",
"path": "pages/login/cusmerLogin",
"style": {}
},
// 云erp
{
"path": "pages/login/cusmerLogin",
"path": "pages/login/login",
"style": {}
},
//pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path": "pages/index/index",
......
......@@ -7,6 +7,10 @@
</view>
<view class="box padding-lr-xl login-paddingtop" :style="[{animation: 'show ' + 0.6+ 's 1'}]">
<block v-if="loginWay==1">
<view style="border-radius: 5px;" class="cu-form-group margin-top shadow-warp" :class="[shape=='round'?'round':'']">
<view class="title"><text class="cuIcon-people margin-right-xs"></text>企业号:</view>
<input placeholder="请输入企业号" name="input" v-model="code"></input>
</view>
<view style="border-radius: 5px;" class="cu-form-group margin-top shadow-warp" :class="[shape=='round'?'round':'']">
<view class="title"><text class="cuIcon-people margin-right-xs"></text>账号:</view>
<input placeholder="请输入账号" name="input" v-model="userName"></input>
......@@ -83,9 +87,10 @@
export default {
data() {
return {
code:"",
// 固定服务器资源地址
imgsrc:"http://119.3.92.249:18080/dmg/images/logo.ico",
firurl:"http://clouderp.gavelinfo.com/login",
firurl:"http://clouderp.gavelinfo.com/door",
sedyrl:"http://clouderp.gavelinfo.com/hderp",
// 服务器——端口号
fwq:"",
......@@ -132,6 +137,15 @@
console.log("获取失败,请手动输入")
}
})
uni.getStorage({
key:'code',
success:function(e){
that.code=e.data
},
fail() {
console.log("获取失败,请手动输入")
}
})
uni.getStorage({
key:'password',
success:function(e){
......@@ -263,6 +277,7 @@
encodePWD:md5(this.userName.toLowerCase() + "USER" + this.password + "PASSWORD")
}
let params={
code:this.code,
userid: loginParams.username,
password: loginParams.encodePWD,
newPassword:md5(this.password),
......@@ -277,6 +292,12 @@
},3000)
this.$http.post("/clouderp/cusmer/login",params).then((resp) => {
if(resp.data.success){
uni.setStorage({
key: 'code',
data: _this.code,
success: function () {
}
})
this.loading=false;
this.loginurl =resp.data.data.records+"&&tp='1'";
this.loginT()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment