Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
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
黄媛媛
ElectricitySheep
Commits
807ec55c
Commit
807ec55c
authored
May 26, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
b8e5c6a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
Login.vue
src/components/Login.vue
+9
-9
index.js
src/plug/index.js
+1
-1
No files found.
src/components/Login.vue
View file @
807ec55c
...
@@ -171,7 +171,7 @@
...
@@ -171,7 +171,7 @@
<el-form-item
label=
""
prop=
"Password"
>
<el-form-item
label=
""
prop=
"Password"
>
<el-input
type=
"password"
v-model=
"msg.Password"
placeholder=
"请输入密码"
maxlength=
"25"
/>
<el-input
type=
"password"
v-model=
"msg.Password"
placeholder=
"请输入密码"
maxlength=
"25"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
""
prop=
"ValidataCode"
style=
"display:none;"
>
<el-form-item
label=
""
style=
"display:none;"
>
<el-input
v-model=
"msg.ValidataCode"
style=
"width:140px;"
placeholder=
"验证码"
maxlength=
"25"
/>
<el-input
v-model=
"msg.ValidataCode"
style=
"width:140px;"
placeholder=
"验证码"
maxlength=
"25"
/>
<img
class=
"pic-captcha"
src=
""
/>
<img
class=
"pic-captcha"
src=
""
/>
</el-form-item>
</el-form-item>
...
@@ -232,11 +232,11 @@
...
@@ -232,11 +232,11 @@
message
:
"请输入密码"
,
message
:
"请输入密码"
,
trigger
:
"blur"
trigger
:
"blur"
}],
}],
ValidataCode
:
[{
//
ValidataCode: [{
required
:
true
,
//
required: true,
message
:
"请输入右侧图片上的文字"
,
//
message: "请输入右侧图片上的文字",
trigger
:
"blur"
//
trigger: "blur"
}]
//
}]
},
},
};
};
},
},
...
@@ -254,9 +254,9 @@
...
@@ -254,9 +254,9 @@
if
(
this
.
msg
.
Password
==
""
)
{
if
(
this
.
msg
.
Password
==
""
)
{
this
.
Info
(
"请输入密码!"
)
this
.
Info
(
"请输入密码!"
)
}
}
if
(
this
.
msg
.
ValidataCode
==
""
)
{
//
if (this.msg.ValidataCode == "") {
this
.
Info
(
"请输入验证码!"
)
//
this.Info("请输入验证码!")
}
//
}
this
.
apipost
(
"/api/Tenant/Login"
,
this
.
msg
,
res
=>
{
this
.
apipost
(
"/api/Tenant/Login"
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
var
userData
=
res
.
data
.
data
;
var
userData
=
res
.
data
.
data
;
...
...
src/plug/index.js
View file @
807ec55c
...
@@ -59,7 +59,7 @@ export default {
...
@@ -59,7 +59,7 @@ export default {
domainUrl
=
"http://mallapi.oytour.com"
;
domainUrl
=
"http://mallapi.oytour.com"
;
let
locationName
=
window
.
location
.
hostname
;
let
locationName
=
window
.
location
.
hostname
;
if
(
locationName
.
indexOf
(
'test
erp
.oytour'
)
!==
-
1
)
{
if
(
locationName
.
indexOf
(
'test
mall
.oytour'
)
!==
-
1
)
{
domainUrl
=
"http://mallapi.oytour.com"
;
domainUrl
=
"http://mallapi.oytour.com"
;
}
else
if
(
locationName
.
indexOf
(
'oytour'
)
!==
-
1
)
{
}
else
if
(
locationName
.
indexOf
(
'oytour'
)
!==
-
1
)
{
domainUrl
=
"http://mallapi.oytour.com"
;
domainUrl
=
"http://mallapi.oytour.com"
;
...
...
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