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
2c5accdd
Commit
2c5accdd
authored
Apr 22, 2019
by
baiguangyao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
34487a2b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
102 additions
and
1 deletions
+102
-1
.history/src/components/my/index_20190422151210.js
+101
-0
src/components/my/index.js
+1
-1
No files found.
.history/src/components/my/index_20190422151210.js
0 → 100644
View file @
2c5accdd
import
React
,
{
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 UnVip from './image/unVIP.png';
const
Item
=
List
.
Item
;
const
Brief
=
Item
.
Brief
;
class
My
extends
Component
{
render
()
{
return
(
<
div
className
=
"flex-container"
>
<
Flex
>
<
Flex
.
Item
>
<
NavBar
className
=
"my-tab"
mode
=
"light"
>
我的
<
/NavBar
>
{
/* <List className="my-list">
<Item
className="avatar-wrap"
arrow="horizontal"
multipleLine
thumb={Avatar}
onClick={() => { }}>
<Brief>点击登录</Brief>
</Item>
</List> */
}
<
List
className
=
"my-list"
>
<
Item
className
=
"avatar-wrap"
arrow
=
"horizontal"
multipleLine
thumb
=
{
Avatar
}
onClick
=
{()
=>
{
}}
>
<
Brief
style
=
{{
fontSize
:
"18px"
}}
>
xuan
先生
<
img
src
=
{
Vip
}
alt
=
""
/>
<
/Brief
>
<
Brief
style
=
{{
fontSize
:
"12px"
}}
>
学号
:
410026
<
/Brief
>
<
/Item
>
<
div
className
=
"my-isvip"
><
/div
>
{
/* <div className="my-shadow"></div> */
}
<
/List
>
<
List
>
<
Item
arrow
=
"horizontal"
onClick
=
{()
=>
{
}}
>
<
i
className
=
"iconfont iconiconfront-27"
><
/i
>
已购课程
<
/Item
>
<
Item
arrow
=
"horizontal"
onClick
=
{()
=>
{
}}
>
<
i
className
=
"iconfont icongouwuche"
><
/i
>
购物车
<
/Item
>
<
Item
arrow
=
"horizontal"
onClick
=
{()
=>
{
}}
>
<
i
className
=
"iconfont iconiconfront-24"
><
/i
>
课程订单
<
/Item
>
<
Item
arrow
=
"horizontal"
onClick
=
{()
=>
{
}}
>
<
i
className
=
"iconfont iconiconfront-52"
><
/i
>
优惠券
<
/Item
>
<
/List
>
<
List
renderHeader
=
{()
=>
''
}
>
<
Item
arrow
=
"horizontal"
onClick
=
{()
=>
{
}}
>
<
i
className
=
"iconfont iconiconfront-51"
><
/i
>
赚奖学金
<
/Item
>
<
/List
>
<
/Flex.Item
>
<
/Flex
>
<
WhiteSpace
size
=
"lg"
/>
<
/div
>
)
}
}
export
default
My
;
\ No newline at end of file
src/components/my/index.js
View file @
2c5accdd
...
@@ -3,7 +3,7 @@ import { Flex, WhiteSpace, NavBar, List } from 'antd-mobile';
...
@@ -3,7 +3,7 @@ import { Flex, WhiteSpace, NavBar, List } from 'antd-mobile';
import
'./index.scss'
;
import
'./index.scss'
;
import
Avatar
from
'./image/avatar.png'
;
import
Avatar
from
'./image/avatar.png'
;
import
Vip
from
'./image/vip.png'
;
import
Vip
from
'./image/vip.png'
;
import
UnVip
from
'./image/unVIP.png'
;
//
import UnVip from './image/unVIP.png';
const
Item
=
List
.
Item
;
const
Item
=
List
.
Item
;
const
Brief
=
Item
.
Brief
;
const
Brief
=
Item
.
Brief
;
...
...
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