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
9849bca0
Commit
9849bca0
authored
Jun 04, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的页面增加底部tab优惠券路由跳转
parent
9000a6bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
29 deletions
+43
-29
src/components/my/index.js
+43
-29
No files found.
src/components/my/index.js
View file @
9849bca0
import
React
,
{
Component
}
from
'react'
;
import
React
,
{
Pure
Component
}
from
'react'
;
import
{
Flex
,
WhiteSpace
,
NavBar
,
List
}
from
'antd-mobile'
;
import
'./index.scss'
;
import
Avatar
from
'./image/avatar.png'
;
import
Vip
from
'./image/vip.png'
;
import
{
WithTab
}
from
'@/HOCs'
import
{
Link
}
from
"react-router-dom"
;
// import UnVip from './image/unVIP.png';
const
Item
=
List
.
Item
;
const
Brief
=
Item
.
Brief
;
class
My
extends
Component
{
class
My
extends
Pure
Component
{
render
()
{
return
(
...
...
@@ -37,8 +40,9 @@ class My extends Component {
arrow
=
"horizontal"
multipleLine
thumb
=
{
Avatar
}
onClick
=
{()
=>
{
}}
>
<
Brief
style
=
{{
fontSize
:
"18px"
}}
>
onClick
=
{()
=>
{
}}
>
<
Brief
style
=
{{
fontSize
:
"18px"
}}
>
xuan
先生
<
img
src
=
{
Vip
}
alt
=
""
/>
<
/Brief
>
...
...
@@ -48,41 +52,51 @@ class My extends Component {
{
/* <div className="my-shadow"></div> */
}
<
/List
>
<
List
>
<
Item
arrow
=
"horizontal"
onClick
=
{()
=>
{
}}
>
<
Item
arrow
=
"horizontal"
onClick
=
{()
=>
{
}}
>
<
i
className
=
"iconfont iconiconfront-27"
><
/i
>
已购课程
<
/Item
>
<
Item
arrow
=
"horizontal"
onClick
=
{()
=>
{
}}
>
<
Item
arrow
=
"horizontal"
onClick
=
{()
=>
{
}}
>
<
i
className
=
"iconfont icongouwuche"
><
/i
>
购物车
<
/Item
>
<
Item
arrow
=
"horizontal"
onClick
=
{()
=>
{
}}
>
<
Item
arrow
=
"horizontal"
onClick
=
{()
=>
{
}}
>
<
i
className
=
"iconfont iconiconfront-24"
><
/i
>
课程订单
<
/Item
>
<
Item
arrow
=
"horizontal"
onClick
=
{()
=>
{
}}
>
<
i
className
=
"iconfont iconiconfront-52"
><
/i
>
优惠券
<
Item
arrow
=
"horizontal"
>
<
Link
to
=
{{
pathname
:
'/use-coupons'
,
state
:
{
from
:
this
.
props
.
location
.
pathname
}
}}
>
<
i
className
=
"iconfont iconiconfront-52"
><
/i
>
优惠券
<
/Link
>
<
/Item
>
<
/List
>
<
List
renderHeader
=
{()
=>
''
}
>
<
List
renderHeader
=
{()
=>
''
}
>
<
Item
arrow
=
"horizontal"
onClick
=
{()
=>
{
}}
onClick
=
{()
=>
{
}}
>
<
i
className
=
"iconfont iconiconfront-51"
><
/i
>
赚奖学金
...
...
@@ -90,11 +104,11 @@ class My extends Component {
<
/List
>
<
/Flex.Item
>
<
/Flex
>
<
WhiteSpace
size
=
"lg"
/>
<
WhiteSpace
size
=
"lg"
/>
<
/div
>
)
}
}
export
default
My
;
\ No newline at end of file
export
default
WithTab
(
My
);
\ No newline at end of file
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