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
8b40d969
Commit
8b40d969
authored
Jul 14, 2020
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2020-717-formal'
parents
b1948a8d
2c0f3858
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
14 deletions
+13
-14
src/App.js
+1
-1
src/components/preferential/index.js
+12
-12
src/components/preferential/index.scss
+0
-1
No files found.
src/App.js
View file @
8b40d969
...
...
@@ -331,7 +331,7 @@ class App extends Component {
return
<>
<
Routes
/>
{
isShowActivityEntry
&&
!!
isShowActivityEntry
&&
<
div
className
=
"year19-index"
>
<
i
className
=
{
'iconfont iconiconfront-2'
}
onClick
=
{
this
.
closeGlobalEntry
}
><
/i
>
<
a
href
=
{
jumpUrl
}
>
...
...
src/components/preferential/index.js
View file @
8b40d969
import
React
,
{
Component
}
from
'react'
import
{
VList
}
from
'../../common'
import
{
Tabs
,
WhiteSpace
,
Toast
}
from
'antd-mobile'
import
React
,
{
Component
}
from
'react'
import
{
VList
}
from
'../../common'
import
{
Tabs
,
WhiteSpace
,
Toast
}
from
'antd-mobile'
import
'./index.scss'
import
HeaderSearch
from
'../../common/HeaderSearch/index'
import
{
http
}
from
"@/utils"
import
{
http
}
from
"@/utils"
import
Loading
from
'@/common/Loading'
import
{
connect
}
from
'react-redux'
;
import
{
connect
}
from
'react-redux'
;
@
connect
(({
user
})
=>
({
user
user
,
}))
class
Preferential
extends
Component
{
constructor
(
props
)
{
...
...
@@ -16,7 +16,7 @@ class Preferential extends Component {
this
.
state
=
{
dataList
:
[],
courseStatus
:
0
,
isLoading
:
true
isLoading
:
true
,
}
}
...
...
@@ -30,7 +30,7 @@ class Preferential extends Component {
if
(
res
.
data
.
code
===
200
)
{
this
.
setState
({
dataList
:
res
.
data
.
data
,
isLoading
:
false
isLoading
:
false
,
})
}
else
{
Toast
.
info
(
res
.
data
.
msg
,
2
)
...
...
@@ -43,7 +43,7 @@ class Preferential extends Component {
http
.
get
(
`
${
API
.
home
}
/m/home/bargainZone`
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
===
200
)
{
this
.
setState
({
dataList
:
JSON
.
stringify
(
res
.
data
.
data
)
==
'{}'
?
[]:
res
.
data
.
data
,
dataList
:
JSON
.
stringify
(
res
.
data
.
data
)
==
'{}'
?
[]
:
res
.
data
.
data
,
isLoading
:
false
,
})
}
else
{
...
...
@@ -93,7 +93,7 @@ class Preferential extends Component {
const
tabs
=
[
{
title
:
'限时特惠'
},
{
title
:
'砍价专区'
},
{
title
:
'一键拼团'
}
{
title
:
'一键拼团'
},
]
const
{
user
=
{}}
=
this
.
props
;
let
isLogin
=
user
.
data
&&
user
.
data
.
uid
?
true
:
false
;
...
...
@@ -117,7 +117,7 @@ class Preferential extends Component {
<
/Tabs
>
<
div
className
=
'tabs'
>
{
this
.
state
.
dataList
.
length
>
0
?
this
.
state
.
dataList
.
length
>
0
?
<
ul
>
{
this
.
state
.
dataList
.
map
((
item
,
index
)
=>
{
const
Info
=
(
...
...
@@ -170,7 +170,7 @@ class Preferential extends Component {
/
>
)
})}
<
/ul>:<div className={'notdata'}>砍价的课程已被设置为双十一活动课程,参加双十一活动购买课程优惠更多哦!
</
div
>
<
/ul> : <div className={'notdata'}>特惠课程都去参加活动了,可以去活动页看看哦~
</
div
>
}
<
/div
>
...
...
src/components/preferential/index.scss
View file @
8b40d969
...
...
@@ -151,7 +151,6 @@
.notdata
{
width
:
100%
;
padding
:
0
35px
;
text-align
:
center
;
margin-top
:
100px
;
color
:
#666
;
...
...
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