Commit 42f2ec43 authored by 程恺文's avatar 程恺文

feat: 广州登陆页

parent 8c85c645
Pipeline #54986 waiting for manual action with stages
......@@ -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,
......
......@@ -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();
......
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