Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
frontend
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
Schedules
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
h5-communicate
frontend
Commits
4508ae30
Commit
4508ae30
authored
Jun 09, 2020
by
熊成伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
8b4e576c
Pipeline
#15214
passed with stages
in 1 minute and 3 seconds
Changes
6
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
23 deletions
+17
-23
workspace.xml
.idea/workspace.xml
+0
-0
Backlog.jsx
src/pages/Backlog/Backlog.jsx
+1
-1
Communicate.jsx
src/pages/Communicate/Communicate.jsx
+2
-10
Option.jsx
src/pages/EventProcessing/Option.jsx
+1
-1
Process.jsx
src/pages/EventProcessing/Process.jsx
+11
-9
Notice.jsx
src/pages/Notice/Notice.jsx
+2
-2
No files found.
.idea/workspace.xml
View file @
4508ae30
This diff is collapsed.
Click to expand it.
src/pages/Backlog/Backlog.jsx
View file @
4508ae30
...
@@ -21,7 +21,7 @@ const Backlog = (props) => {
...
@@ -21,7 +21,7 @@ const Backlog = (props) => {
setLoading
(
true
)
setLoading
(
true
)
axiosRequest
({
axiosRequest
({
method
:
'post'
,
method
:
'post'
,
url
:
'/idtAppServiceV6/
getWaitDealList&tableids=1
'
,
url
:
'/idtAppServiceV6/
oApp/getUnDone
'
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
setLoading
(
false
);
setLoading
(
false
);
let
result
=
res
.
rows
?
data
.
concat
(
res
.
rows
)
:
data
;
let
result
=
res
.
rows
?
data
.
concat
(
res
.
rows
)
:
data
;
...
...
src/pages/Communicate/Communicate.jsx
View file @
4508ae30
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
AddressList
from
'../../components/AddressList'
;
import
AddressUser
from
'../../components/AddressList/AddressUser'
;
import
AddressUser
from
'../../components/AddressList/AddressUser'
;
import
axiosRequest
from
'../../utils/request'
;
import
axiosRequest
from
'../../utils/request'
;
import
{
ActivityIndicator
}
from
"antd-mobile"
;
import
{
ActivityIndicator
}
from
"antd-mobile"
;
...
@@ -8,7 +7,7 @@ import {ActivityIndicator} from "antd-mobile";
...
@@ -8,7 +7,7 @@ import {ActivityIndicator} from "antd-mobile";
const
Communicate
=
(
props
)
=>
{
const
Communicate
=
(
props
)
=>
{
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
data
,
setData
]
=
useState
([]);
const
[
data
,
setData
]
=
useState
([]);
const
[
type
,
setType
]
=
useState
(
'basic'
)
//
const [type, setType] = useState('basic')
// const {id} = props.match.params;
// const {id} = props.match.params;
...
@@ -16,6 +15,7 @@ const Communicate = (props) => {
...
@@ -16,6 +15,7 @@ const Communicate = (props) => {
const
getData
=
()
=>
{
const
getData
=
()
=>
{
setLoading
(
true
);
setLoading
(
true
);
console
.
log
(
data
)
axiosRequest
({
axiosRequest
({
method
:
'post'
,
method
:
'post'
,
url
:
'/idtAppServiceV6/oApp/getSearchAddressBook'
,
url
:
'/idtAppServiceV6/oApp/getSearchAddressBook'
,
...
@@ -25,18 +25,10 @@ const Communicate = (props) => {
...
@@ -25,18 +25,10 @@ const Communicate = (props) => {
});
});
};
};
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
props
.
location
.
query
&&
props
.
location
.
query
.
parent
)
{
const
{
parent
}
=
props
.
location
.
query
;
}
// const {parent} = props.location.query;
console
.
log
(
props
.
location
.
query
)
getData
()
getData
()
},
[]);
},
[]);
const
getCurrent
=
()
=>
{
}
return
(
return
(
<
div
>
<
div
>
<
ActivityIndicator
<
ActivityIndicator
...
...
src/pages/EventProcessing/Option.jsx
View file @
4508ae30
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
React
,
{
useEffect
}
from
'react'
;
import
{
Modal
}
from
'antd-mobile'
import
{
Modal
}
from
'antd-mobile'
import
'./index.less'
;
import
'./index.less'
;
import
axiosRequest
from
'../../utils/request'
;
import
axiosRequest
from
'../../utils/request'
;
...
...
src/pages/EventProcessing/Process.jsx
View file @
4508ae30
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
{
WingBlank
,
WhiteSpace
,
ActionSheet
,
ActivityIndicator
}
from
'antd-mobile'
import
{
WingBlank
,
WhiteSpace
,
ActionSheet
,
ActivityIndicator
}
from
'antd-mobile'
import
axiosRequest
from
'../../utils/request'
;
//
import axiosRequest from '../../utils/request';
import
'./index.less'
import
'./index.less'
import
TopTabs
from
'../../components/BlankTabs'
import
TopTabs
from
'../../components/BlankTabs'
import
Basic
from
'./Basic'
import
Basic
from
'./Basic'
...
@@ -23,6 +23,8 @@ const Pro = (props) => {
...
@@ -23,6 +23,8 @@ const Pro = (props) => {
setFootStatus
(
true
)
setFootStatus
(
true
)
};
};
useEffect
(()
=>
{
useEffect
(()
=>
{
setTableId
();
console
.
log
(
tableId
)
setLoading
(
false
);
setLoading
(
false
);
const
option
=
document
.
getElementsByClassName
(
"option-text"
)[
0
]
const
option
=
document
.
getElementsByClassName
(
"option-text"
)[
0
]
option
.
addEventListener
(
'focus'
,
optionBlur
,
true
);
option
.
addEventListener
(
'focus'
,
optionBlur
,
true
);
...
@@ -75,14 +77,14 @@ const Pro = (props) => {
...
@@ -75,14 +77,14 @@ const Pro = (props) => {
console
.
log
(
buttonIndex
)
console
.
log
(
buttonIndex
)
});
});
};
};
const
processEnd
=
()
=>
{
//
const processEnd = () => {
axiosRequest
({
//
axiosRequest({
method
:
'post'
,
//
method: 'post',
url
:
`/dgbg/MobileGetFlowsByTabId.view?userName=2012012099&clientFlag=123456&tableId=
${
tableId
}
`
,
//
url: `/dgbg/MobileGetFlowsByTabId.view?userName=2012012099&clientFlag=123456&tableId=${tableId}`,
}).
then
(
res
=>
{
//
}).then(res => {
console
.
log
(
res
)
//
console.log(res)
});
//
});
}
//
}
const
handleScroll
=
()
=>
{
const
handleScroll
=
()
=>
{
const
adjunct
=
document
.
getElementById
(
"event-adjunct"
).
offsetTop
;
const
adjunct
=
document
.
getElementById
(
"event-adjunct"
).
offsetTop
;
...
...
src/pages/Notice/Notice.jsx
View file @
4508ae30
...
@@ -36,8 +36,8 @@ const Notice = (props) => {
...
@@ -36,8 +36,8 @@ const Notice = (props) => {
}
}
};
};
useEffect
(()
=>
{
useEffect
(()
=>
{
//
window.addEventListener('scroll', handleScroll, true);
window
.
addEventListener
(
'scroll'
,
handleScroll
,
true
);
//
return () => window.removeEventListener('scroll', handleScroll, true);
return
()
=>
window
.
removeEventListener
(
'scroll'
,
handleScroll
,
true
);
},
[
data
]);
},
[
data
]);
const
checkLog
=
()
=>
{
const
checkLog
=
()
=>
{
...
...
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