Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cxerpapp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李苏
cxerpapp
Commits
8eefc076
Commit
8eefc076
authored
Feb 21, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录页面变更
parent
828f743e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
6 deletions
+28
-6
pages.json
pages.json
+6
-5
cusmerLogin.vue
pages/login/cusmerLogin.vue
+22
-1
No files found.
pages.json
View file @
8eefc076
{
"pages"
:
[
//
云erp
{
"path"
:
"pages/login/l
ogin"
,
"path"
:
"pages/login/cusmerL
ogin"
,
"style"
:
{}
},
//
云erp
{
"path"
:
"pages/login/cusmerL
ogin"
,
"path"
:
"pages/login/l
ogin"
,
"style"
:
{}
},
//pages数组中第一项表示应用启动页,参考:https
:
//uniapp.dcloud.io/collocation/pages
{
"path"
:
"pages/index/index"
,
...
...
pages/login/cusmerLogin.vue
View file @
8eefc076
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment