Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
Overview
Overview
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
baiguangyao
mr-julyedu
Commits
db7b733d
Commit
db7b733d
authored
Sep 11, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'coupon-bug'
parents
719c5e4d
0f7d7f1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
src/components/coupons/index.js
+14
-6
No files found.
src/components/coupons/index.js
View file @
db7b733d
import
React
,
{
Component
}
from
'react'
import
{
NavLink
,
Route
,
Switch
,
Redirect
}
from
"react-router-dom"
import
React
,
{
Component
}
from
'react'
import
{
NavLink
,
Route
,
Switch
,
Redirect
}
from
"react-router-dom"
import
myCoupons
from
"./myCoupons"
import
myPatch
from
'./myPatch'
import
{
HeaderBar
}
from
"@/common"
;
import
{
HeaderBar
}
from
"@/common"
;
import
'./coupons.scss'
...
...
@@ -15,13 +15,21 @@ class coupons extends Component {
<
section
id
=
'coupons'
>
<
div
className
=
'tab'
>
<
div
>
<
NavLink
to
=
{{
pathname
:
`
${
match
.
url
}
/my-coupon`
,
state
:
{...
this
.
props
.
location
.
state
}}}
<
NavLink
to
=
{{
pathname
:
`
${
match
.
url
}
/my-coupon`
,
search
:
location
.
search
,
state
:
{...
this
.
props
.
location
.
state
}
}}
replace
activeClassName
=
'tab-active'
>
我的优惠券
<
/NavLink
>
<
/div
>
<
div
>
<
NavLink
to
=
{{
pathname
:
`
${
match
.
url
}
/my-patch`
,
state
:
{...
this
.
props
.
location
.
state
}}}
<
NavLink
to
=
{{
pathname
:
`
${
match
.
url
}
/my-patch`
,
search
:
location
.
search
,
state
:
{...
this
.
props
.
location
.
state
}
}}
replace
activeClassName
=
'tab-active'
>
碎片合成
<
/NavLink
>
...
...
@@ -36,7 +44,7 @@ class coupons extends Component {
from
:
this
.
props
.
location
.
state
&&
this
.
props
.
location
.
state
.
from
}
}}
/
>
<
Route
path
=
{
`
${
this
.
props
.
match
.
path
}
/my-coupon`
}
component
=
{
myCoupons
}
/
>
<
Route
path
=
{
`
${
this
.
props
.
match
.
path
}
/my-coupon`
}
component
=
{
myCoupons
}
/
>
<
Route
path
=
{
`
${
this
.
props
.
match
.
path
}
/my-patch`
}
component
=
{
myPatch
}
/
>
<
/Switch
>
<
/div
>
...
...
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