Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
Project
Project
Details
Activity
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
ReactWeb5
CivWeb
Commits
661996ca
Commit
661996ca
authored
Sep 05, 2022
by
程恺文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 优化
parent
5ed15f09
Pipeline
#59303
passed with stages
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
8 deletions
+27
-8
proxy.js
config/proxy.js
+1
-1
商学院.jpg
src/assets/images/login/节水/商学院.jpg
+0
-0
index.js
src/pages/user/login/index.js
+14
-6
index.js
src/pages/user/login/template/energy_JS2/index.js
+12
-1
No files found.
config/proxy.js
View file @
661996ca
/* eslint-disable */
/* eslint-disable */
// const proxyURL = process.env.NODE_ENV !== 'production' ? 'http://192.168.10.150:8777' : window.location.origin;
// const proxyURL = process.env.NODE_ENV !== 'production' ? 'http://192.168.10.150:8777' : window.location.origin;
// const proxyURL = 'https://work.panda-water.cn';
// const proxyURL = 'https://work.panda-water.cn';
const
proxyURL
=
'http://192.168.1
2.3:8082
'
;
const
proxyURL
=
'http://192.168.1
0.179:8095
'
;
// const proxyURL = 'https://panda-water.cn'
// const proxyURL = 'https://panda-water.cn'
module
.
exports
=
{
module
.
exports
=
{
...
...
src/assets/images/login/节水/商学院.jpg
0 → 100644
View file @
661996ca
This diff was suppressed by a .gitattributes entry.
src/pages/user/login/index.js
View file @
661996ca
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 634665781 634665781@qq.com
* @Author: 634665781 634665781@qq.com
* @Date: 2022-07-08 14:28:01
* @Date: 2022-07-08 14:28:01
* @LastEditors: 634665781 634665781@qq.com
* @LastEditors: 634665781 634665781@qq.com
* @LastEditTime: 2022-0
8-18 11:45:07
* @LastEditTime: 2022-0
9-05 17:38:26
* @FilePath: \CivWeb\src\pages\user\login\index.js
* @FilePath: \CivWeb\src\pages\user\login\index.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -25,14 +25,15 @@ const LoginTemplate = {
...
@@ -25,14 +25,15 @@ const LoginTemplate = {
'新春 - 智联.html'
:
NewYear
,
'新春 - 智联.html'
:
NewYear
,
'Dark - IOTMultiLogin.html'
:
BaseLogin
,
'Dark - IOTMultiLogin.html'
:
BaseLogin
,
'Dark.html'
:
BaseLogin
,
'Dark.html'
:
BaseLogin
,
'DarkCloud.html'
:
window
.
location
.
origin
.
replace
(
/^
(
http|https
)
:
\/\/
/
,
''
)
===
'panda-water.cn'
?
CloudLogin
:
BaseLogin
,
'DarkCloud.html'
:
window
.
location
.
origin
.
replace
(
/^
(
http|https
)
:
\/\/
/
,
''
)
===
'panda-water.cn'
?
CloudLogin
:
BaseLogin
,
'信息化.html'
:
InfoLogin
,
'信息化.html'
:
InfoLogin
,
'项目 - 榆林.html'
:
Yulin
,
'项目 - 榆林.html'
:
Yulin
,
'能源-定额平台.html'
:
EnergyQuota
,
'能源-定额平台.html'
:
EnergyQuota
,
'节水主题一.html'
:
EnergGz
,
'节水主题一.html'
:
EnergGz
,
'Water.html'
:
WaterLogin
,
'Water.html'
:
WaterLogin
,
'项目 - 江水置换.html'
:
JSZHLogin
,
'项目 - 江水置换.html'
:
JSZHLogin
,
'节水主题二.html'
:
EnergJS2
,
'节水主题二.html'
:
EnergJS2
,
'项目 - 澄迈.html'
:
ChengmaiLogin
,
'项目 - 澄迈.html'
:
ChengmaiLogin
,
'项目 - 呼和浩特.html'
:
HuhehaoteLogin
,
'项目 - 呼和浩特.html'
:
HuhehaoteLogin
,
default
:
BaseLogin
,
default
:
BaseLogin
,
...
@@ -46,8 +47,15 @@ export default (props) => {
...
@@ -46,8 +47,15 @@ export default (props) => {
}
}
},
[]);
},
[]);
if
(
Object
.
keys
(
window
.
globalConfig
||
{}).
length
===
0
)
return
null
;
if
(
Object
.
keys
(
window
.
globalConfig
||
{}).
length
===
0
)
return
null
;
const
template
=
window
.
globalConfig
&&
window
.
globalConfig
.
loginTemplate
;
let
template
=
window
.
globalConfig
&&
window
.
globalConfig
.
loginTemplate
;
let
arr
=
template
.
split
(
'|'
)
let
loginParams
=
[]
if
(
arr
.
length
>
1
){
template
=
arr
[
0
]
loginParams
=
arr
[
1
].
split
(
'&'
)
}
const
RenderComponent
=
LoginTemplate
[
template
]
?
LoginTemplate
[
template
]:
LoginTemplate
[
'default'
];
const
RenderComponent
=
LoginTemplate
[
template
]
?
LoginTemplate
[
template
]:
LoginTemplate
[
'default'
];
return
<
RenderComponent
{...
props
}
/
>
return
<
RenderComponent
{...
props
}
loginParams
=
{
loginParams
}
/
>
};
};
src/pages/user/login/template/energy_JS2/index.js
View file @
661996ca
...
@@ -16,9 +16,11 @@ import LoginAction from '../../login';
...
@@ -16,9 +16,11 @@ import LoginAction from '../../login';
import
styles
from
'./index.less'
;
import
styles
from
'./index.less'
;
import
{
defaultApp
}
from
'@/micro'
;
import
{
defaultApp
}
from
'@/micro'
;
import
{
log
}
from
'kit_utils'
;
import
{
log
}
from
'kit_utils'
;
let
smallBg
=
'建桥图片.png'
class
HuaNongLogin
extends
Component
{
class
HuaNongLogin
extends
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
super
(
props
);
super
(
props
);
this
.
state
=
{
this
.
state
=
{
time
:
'16:00'
,
time
:
'16:00'
,
week
:
'星期一'
,
week
:
'星期一'
,
...
@@ -33,6 +35,15 @@ class HuaNongLogin extends Component {
...
@@ -33,6 +35,15 @@ class HuaNongLogin extends Component {
};
};
this
.
fromRef
=
React
.
createRef
();
this
.
fromRef
=
React
.
createRef
();
this
.
sliVerify
=
React
.
createRef
();
this
.
sliVerify
=
React
.
createRef
();
props
.
loginParams
.
map
(
v
=>
{
let
item
=
v
.
split
(
'='
)
if
(
item
.
length
>
0
){
if
(
item
[
0
]
==
'smallBg'
){
smallBg
=
item
[
1
]
}
}
})
}
}
handleSubmit
=
values
=>
{
handleSubmit
=
values
=>
{
const
{
action
,
type
,
autoLogin
}
=
this
.
state
;
const
{
action
,
type
,
autoLogin
}
=
this
.
state
;
...
@@ -215,7 +226,7 @@ _createGuid() {
...
@@ -215,7 +226,7 @@ _createGuid() {
<
/div
>
<
/div
>
<
div
className
=
{
styles
.
wrap_content
}
>
<
div
className
=
{
styles
.
wrap_content
}
>
<
div
>
<
div
>
<
img
className
=
{
styles
.
from_img
}
src
=
{
require
(
'@/assets/images/login/节水/建桥图片.jpg'
)}
alt
=
""
/>
<
img
className
=
{
styles
.
from_img
}
src
=
{
require
(
`@/assets/images/login/节水/
${
smallBg
}
`
)}
alt
=
""
/>
<
div
className
=
{
styles
.
from
}
>
<
div
className
=
{
styles
.
from
}
>
<
div
className
=
{
styles
.
slogan
}
>
<
div
className
=
{
styles
.
slogan
}
>
<
div
className
=
{
styles
.
slogan_back
}
/
>
<
div
className
=
{
styles
.
slogan_back
}
/
>
...
...
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