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
6b68cf90
Commit
6b68cf90
authored
Sep 06, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
精品特惠页
parent
3d02edc5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
5 deletions
+29
-5
src/components/classify/courselist.js
+6
-1
src/components/preferential/index.js
+4
-3
src/components/preferential/index.scss
+19
-1
No files found.
src/components/classify/courselist.js
View file @
6b68cf90
...
@@ -36,6 +36,11 @@ class Classify extends Component {
...
@@ -36,6 +36,11 @@ class Classify extends Component {
this
.
getList
()
this
.
getList
()
}
}
componentWillUnmount
()
{
document
.
removeEventListener
(
'touchmove'
,
stopScroll
)
}
// 获取tabs接口
// 获取tabs接口
getTabs
=
()
=>
{
getTabs
=
()
=>
{
let
data
=
0
let
data
=
0
...
@@ -122,7 +127,7 @@ class Classify extends Component {
...
@@ -122,7 +127,7 @@ class Classify extends Component {
}
}
toClassify
=
()
=>
{
toClassify
=
()
=>
{
location
.
replace
(
'/classify'
);
this
.
props
.
history
.
replace
(
'/classify'
);
}
}
render
()
{
render
()
{
...
...
src/components/preferential/index.js
View file @
6b68cf90
...
@@ -4,11 +4,8 @@ import {Tabs, WhiteSpace, Toast} from 'antd-mobile'
...
@@ -4,11 +4,8 @@ import {Tabs, WhiteSpace, Toast} from 'antd-mobile'
import
'./index.scss'
import
'./index.scss'
import
HeaderSearch
from
'../../common/HeaderSearch/index'
import
HeaderSearch
from
'../../common/HeaderSearch/index'
import
{
http
}
from
"@/utils"
import
{
http
}
from
"@/utils"
import
{
Link
}
from
'react-router-dom'
import
Loading
from
'@/common/Loading'
import
Loading
from
'@/common/Loading'
import
{
bindActionCreators
}
from
'redux'
;
import
{
connect
}
from
'react-redux'
;
import
{
connect
}
from
'react-redux'
;
import
{
getCourses
}
from
'./../detail/actions'
;
@
connect
(({
user
})
=>
({
@
connect
(({
user
})
=>
({
user
user
...
@@ -106,6 +103,10 @@ class Preferential extends Component {
...
@@ -106,6 +103,10 @@ class Preferential extends Component {
tabs
=
{
tabs
}
tabs
=
{
tabs
}
animated
=
{
false
}
animated
=
{
false
}
onChange
=
{(
tab
,
index
)
=>
this
.
ontabclick
(
tab
,
index
)}
onChange
=
{(
tab
,
index
)
=>
this
.
ontabclick
(
tab
,
index
)}
swipeable
=
{
false
}
renderTabBar
=
{
props
=>
<
div
className
=
{
'custom-tab-bar'
}
>
<
Tabs
.
DefaultTabBar
{...
props
}
/
>
<
/div>
}
>
>
<
div
className
=
'tabs'
>
<
div
className
=
'tabs'
>
<
ul
>
<
ul
>
...
...
src/components/preferential/index.scss
View file @
6b68cf90
.preferential
{
.preferential
{
padding-top
:
88px
;
.preferential
{
position
:
fixed
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
44px
;
z-index
:
10
;
padding-top
:
0
;
}
.custom-tab-bar
{
width
:
100%
;
position
:
fixed
;
top
:
43px
;
left
:
0
;
padding
:
15px
0
15px
11px
;
z-index
:
10
;
background
:
#fff
;
}
.class-content
{
.class-content
{
padding
:
0
12px
;
padding
:
0
12px
;
position
:
relative
;
position
:
relative
;
...
...
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