Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wecom-sidebar
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
wanghuihui
wecom-sidebar
Commits
67f6a9e4
Commit
67f6a9e4
authored
Feb 22, 2022
by
Aivs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:样式修改
parent
8882ed40
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
12 deletions
+16
-12
home.css
src/css/home.css
+2
-1
Home.tsx
src/pages/Home.tsx
+3
-3
Order.tsx
src/pages/Order.tsx
+3
-1
findCustom.tsx
src/pages/findCustom.tsx
+5
-4
person.tsx
src/pages/person.tsx
+3
-3
No files found.
src/css/home.css
View file @
67f6a9e4
...
@@ -221,12 +221,13 @@
...
@@ -221,12 +221,13 @@
.cancel
{
.cancel
{
font-size
:
17px
;
font-size
:
17px
;
font-weight
:
400
;
font-weight
:
400
;
color
:
#
467DB9
;
color
:
#
8E8E93
;
line-height
:
24px
;
line-height
:
24px
;
margin-left
:
20px
;
margin-left
:
20px
;
}
}
.searchInt
{
.searchInt
{
width
:
80%
!important
;
width
:
80%
!important
;
margin-left
:
10px
;
}
}
.content
{
.content
{
padding
:
10px
20px
;
padding
:
10px
20px
;
...
...
src/pages/Home.tsx
View file @
67f6a9e4
...
@@ -55,15 +55,15 @@ const [orderList,setOrderList] = useState<any>(
...
@@ -55,15 +55,15 @@ const [orderList,setOrderList] = useState<any>(
[
[
{
{
name
:
'戈有好物'
,
name
:
'戈有好物'
,
price
:
"
2345.23
"
price
:
""
},
},
{
{
name
:
'纷享销客'
,
name
:
'纷享销客'
,
price
:
"
12.09万
"
price
:
""
},
},
{
{
name
:
'客户中心'
,
name
:
'客户中心'
,
price
:
"
12.09万
"
price
:
""
}
}
]
]
)
)
...
...
src/pages/Order.tsx
View file @
67f6a9e4
...
@@ -11,6 +11,7 @@ const Order: React.FC = () => {
...
@@ -11,6 +11,7 @@ const Order: React.FC = () => {
const
[
openFlag
,
setOpenFlag
]
=
useState
<
any
>
([
true
,
false
,
false
,
false
])
const
[
openFlag
,
setOpenFlag
]
=
useState
<
any
>
([
true
,
false
,
false
,
false
])
const
[
customData
,
setCustomData
]
=
useState
<
any
>
([])
const
[
customData
,
setCustomData
]
=
useState
<
any
>
([])
const
[
orderInfo
,
setOrderInfo
]
=
useState
<
any
>
([])
const
[
orderInfo
,
setOrderInfo
]
=
useState
<
any
>
([])
const
[
userId
,
setUserId
]
=
useState
<
any
>
(
''
);
const
open
=
async
(
index
:
any
)
=>
{
const
open
=
async
(
index
:
any
)
=>
{
let
arr
=
[...
openFlag
]
let
arr
=
[...
openFlag
]
arr
[
index
]
=
!
arr
[
index
]
arr
[
index
]
=
!
arr
[
index
]
...
@@ -23,6 +24,7 @@ const Order: React.FC = () => {
...
@@ -23,6 +24,7 @@ const Order: React.FC = () => {
// setOrderInfo(history.location.state.orderInfo)
// setOrderInfo(history.location.state.orderInfo)
// setCustomData(history.location.state.orderInfo.clientOrderInfos)
// setCustomData(history.location.state.orderInfo.clientOrderInfos)
let
userId
=
history
.
location
.
state
.
userId
let
userId
=
history
.
location
.
state
.
userId
setUserId
(
userId
)
getorderInfo
(
userId
)
getorderInfo
(
userId
)
}
}
//获取订单信息
//获取订单信息
...
@@ -38,7 +40,7 @@ const Order: React.FC = () => {
...
@@ -38,7 +40,7 @@ const Order: React.FC = () => {
}
}
const
Goto
=
async
(
userItem
:
any
)
=>
{
const
Goto
=
async
(
userItem
:
any
)
=>
{
// // 页面跳转方法
// // 页面跳转方法
history
.
push
({
pathname
:
'/Person'
,
state
:
{
userItem
,
orderInfo
}})
history
.
push
({
pathname
:
'/Person'
,
state
:
{
userItem
,
userId
}})
}
}
const
back
=
async
()
=>
{
const
back
=
async
()
=>
{
// history.back()
// history.back()
...
...
src/pages/findCustom.tsx
View file @
67f6a9e4
...
@@ -2,9 +2,10 @@ import * as React from 'react'
...
@@ -2,9 +2,10 @@ import * as React from 'react'
import
{
useCallback
,
useEffect
,
useState
}
from
'react'
import
{
useCallback
,
useEffect
,
useState
}
from
'react'
import
{
jsSdk
}
from
"../index"
;
import
{
jsSdk
}
from
"../index"
;
import
{
Button
,
Input
,
Table
,
Tabs
,
Space
}
from
"antd"
;
import
{
Button
,
Input
,
Table
,
Tabs
,
Space
}
from
"antd"
;
import
{
SearchOutlined
}
from
'@ant-design/icons'
;
import
{
SearchOutlined
,
LeftOutlined
,
CloseCircleOutlined
}
from
'@ant-design/icons'
;
import
{
selectUserBase
,
linkData
,
unlinkData
}
from
"../api"
;
import
{
selectUserBase
,
linkData
,
unlinkData
}
from
"../api"
;
import
creatHistory
from
'history/createHashHistory'
//返回上一页这段代码
import
creatHistory
from
'history/createHashHistory'
//返回上一页这段代码
const
history
=
creatHistory
();
const
history
=
creatHistory
();
const
{
TextArea
}
=
Input
const
{
TextArea
}
=
Input
...
@@ -140,11 +141,11 @@ const Actions: React.FC = () => {
...
@@ -140,11 +141,11 @@ const Actions: React.FC = () => {
return
(
return
(
<
div
>
<
div
>
<
Button
type=
'primary'
className=
'back'
onClick=
{
back
.
bind
(
this
)
}
>
返回
</
Button
>
{
/* <Button type='primary' className='back' onClick={back.bind(this)}>返回</Button> */
}
<
div
className=
"flex search"
>
<
div
className=
"flex search"
>
<
Input
className=
'searchInt'
allowClear
placeholder=
"请输入客户信息"
prefix=
{
<
SearchOutlined
/>
}
onChange=
{
inputChange
}
onKeyDown=
{
getInput
}
/>
<
LeftOutlined
onClick=
{
back
.
bind
(
this
)
}
/><
Input
className=
'searchInt'
allowClear
placeholder=
"请输入客户信息"
prefix=
{
<
SearchOutlined
/>
}
onChange=
{
inputChange
}
onKeyDown=
{
getInput
}
/>
{
/* <Button size='small'>取消</Button> */
}
{
/* <Button size='small'>取消</Button> */
}
<
div
className=
"cancel"
>
取消
</
div
>
{
/* <div className="cancel"><CloseCircleOutlined /></div> */
}
</
div
>
</
div
>
<
Tabs
defaultActiveKey=
{
tabIndex
}
onChange=
{
callback
.
bind
(
this
)
}
>
<
Tabs
defaultActiveKey=
{
tabIndex
}
onChange=
{
callback
.
bind
(
this
)
}
>
{
{
...
...
src/pages/person.tsx
View file @
67f6a9e4
...
@@ -12,16 +12,16 @@ const Person: React.FC = () => {
...
@@ -12,16 +12,16 @@ const Person: React.FC = () => {
const
[
customData
,
setCustomData
]
=
useState
<
any
>
({
const
[
customData
,
setCustomData
]
=
useState
<
any
>
({
id
:
33599
id
:
33599
})
})
const
[
orderInfo
,
setOrderInfo
]
=
useState
<
any
>
([])
const
[
userId
,
setUserId
]
=
useState
<
any
>
([])
const
back
=
async
()
=>
{
const
back
=
async
()
=>
{
// location.back()
// location.back()
location
.
push
({
pathname
:
'/Order'
,
state
:
{
orderInfo
}})
location
.
push
({
pathname
:
'/Order'
,
state
:
{
userId
}})
}
}
//路由跳转过来携带的数据
//路由跳转过来携带的数据
const
GetRouterData
=
async
()
=>
{
const
GetRouterData
=
async
()
=>
{
console
.
log
(
location
,
'props'
)
console
.
log
(
location
,
'props'
)
setCustomData
(
location
.
location
.
state
.
userItem
)
setCustomData
(
location
.
location
.
state
.
userItem
)
set
OrderInfo
(
location
.
location
.
state
.
orderInfo
)
set
UserId
(
location
.
location
.
state
.
userId
)
}
}
useEffect
(()
=>
{
useEffect
(()
=>
{
GetRouterData
()
GetRouterData
()
...
...
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