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
42f2ec43
Commit
42f2ec43
authored
Jul 08, 2022
by
程恺文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 广州登陆页
parent
8c85c645
Pipeline
#54986
waiting for manual action with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
base.js
src/api/service/base.js
+6
-0
index.js
src/pages/user/login/template/energy_GZ/index.js
+27
-0
No files found.
src/api/service/base.js
View file @
42f2ec43
...
...
@@ -53,9 +53,15 @@ export const API = {
'/CityInterface/rest/services/CountyProduct.svc/AccountManage/SaveHomePage'
,
GET_TOKEN_QYWX
:
'/CityInterface/rest/services/portal.svc/OMManage/WeChatScanQRCode'
,
VALID_DEFAULT_PWD
:
'/PandaCore/GCK/BussinessAuth/ValidToken'
,
// 校验是否是默认密码
GET_InOnLine
:
'/PandaEnergy/GZshuiwuju/GuangZhou/InOnLine'
,
//广州登陆接口
};
const
services
=
{
getInOnLine
:{
url
:
API
.
GET_InOnLine
,
method
:
constants
.
REQUEST_METHOD_GET
,
type
:
constants
.
REQUEST_HTTP
,
},
authorizationToken
:
{
url
:
API
.
AUTHORIZATION_TOKEN
,
method
:
constants
.
REQUEST_METHOD_GET
,
...
...
src/pages/user/login/template/energy_GZ/index.js
View file @
42f2ec43
...
...
@@ -4,6 +4,7 @@
* @Date: 2022-7-8
* @Description: 广州登录页;
*/
import
{
appService
}
from
'@/api'
;
import
React
,
{
Component
}
from
'react'
;
import
{
connect
}
from
'react-redux'
;
import
{
withRouter
}
from
'@wisdom-utils/runtime'
;
...
...
@@ -45,6 +46,14 @@ class HuaNongLogin extends Component {
this
.
setSubmitting
(
true
);
this
.
props
.
updateCurrentIndex
(
-
1
);
console
.
log
(
'登陆'
);
appService
.
getInOnLine
({
UserID
:
58
,
SatrtDate
:
'2022-07-08 17:48:51'
,
Port
:
location
.
port
,
Oid
:
'83A3F3E9-96D3-4430-B90D-6E903BFF8D04'
,
})
};
onActinoChange
=
action
=>
{
action
&&
...
...
@@ -136,6 +145,24 @@ class HuaNongLogin extends Component {
console
.
log
(
this
);
this
.
onActinoChange
(
this
.
state
.
action
);
this
.
getCurrentTime
(
this
.
showTime
);
/* request(urlUtils.getUrl(
"/PandaEnergy/GZshuiwuju"
) + '/GuangZhou/InOnLine', {
query: {
UserID: _config.userInfo.OID,
SatrtDate: SatrtDate,
Port: location.port,
Oid,
}
}) */
console
.
log
(
'在线时长服务'
);
appService
.
getInOnLine
({
UserID
:
58
,
SatrtDate
:
'2022-07-08 17:48:51'
,
Port
:
location
.
port
,
Oid
:
'83A3F3E9-96D3-4430-B90D-6E903BFF8D04'
,
})
}
componentWillUnmount
()
{
this
.
clearTime
();
...
...
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