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
7da3cde3
Commit
7da3cde3
authored
Nov 05, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pull
parent
2f330ed5
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
60 additions
and
21 deletions
+60
-21
src/components/activity/index.js
+2
-3
src/components/activity/invite.js
+1
-1
src/components/blessingPreheat/collectBlessing/index.js
+2
-2
src/components/blessingPreheat/collectBlessing/index.scss
+1
-0
src/components/blessingPreheat/coursePopup/index.js
+4
-2
src/components/blessingPreheat/coursePopup/index.scss
+8
-0
src/components/blessingPreheat/index.js
+1
-1
src/components/blessingPreheat/live/index.scss
+8
-2
src/components/blessingPreheat/recordPopup/index.scss
+4
-0
src/components/blessingRank/index.scss
+7
-2
src/components/expand/share.js
+1
-1
src/components/preferential/index.js
+11
-7
src/components/preferential/index.scss
+9
-0
src/components/search/index.js
+1
-0
No files found.
src/components/activity/index.js
View file @
7da3cde3
...
...
@@ -19,7 +19,7 @@ class Activity extends Component {
jsCookie
.
set
(
'blessing_invite_code'
,
getParam
(
'inviteCode'
),
{
domain
:
'.julyedu.com'
,
expires
:
30
});
if
(
cookie
.
get
(
'uid'
))
{
this
.
setState
(()
=>
({
butText
:
'已领取'
butText
:
'已领取
,去使用
'
}));
}
}
...
...
@@ -28,8 +28,7 @@ class Activity extends Component {
if
(
this
.
props
.
user
.
hasError
)
{
this
.
props
.
history
.
push
(
'/passport'
,
{
from
:
this
.
props
.
location
.
pathname
});
}
else
{
Toast
.
info
(
'领取成功,你可前往七月在线官网/APP进行查看'
,
2
);
localStorage
.
setItem
(
'lingqu'
,
1
);
this
.
props
.
history
.
push
(
'/blessingPreheat'
);
}
}
...
...
src/components/activity/invite.js
View file @
7da3cde3
...
...
@@ -109,7 +109,7 @@ class Invite extends Component {
let
data
=
{
title
:
'AI充电节,积福气享1折秒课,超10万元奖品来就送!!'
,
desc
:
'把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线'
,
link
:
'https://m.julyedu.com/blessingPreheat'
,
link
:
API
.
m
+
`/invite?shareuid=
${
jsCookie
.
get
(
'uid'
)}
&new=1&inviteCode=
${
inviteCode
}
`
,
imgUrl
:
'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png'
,
}
SendMessageToApp
(
"toShare"
,
data
)
...
...
src/components/blessingPreheat/collectBlessing/index.js
View file @
7da3cde3
...
...
@@ -18,7 +18,7 @@ class CollectBlessing extends Component {
rules
:
[
'app/h5/pc端活动页签到+5点福气值(每天一次)'
,
'关注七月在线微信服务号+30点福气值(仅限一次)'
,
'分享活动页到朋友圈、qq,分别+2点福气值(每个平台每天一次)'
,
'分享活动页到朋友圈、qq
、微博
,分别+2点福气值(每个平台每天一次)'
,
'浏览指定课程详情页,一门课程+2点福气值(每天一次)'
,
'邀请好友注册,+10点福气值/人(无上限)'
,
'活动期间每购买一门课程+20点福气值'
,
...
...
@@ -252,7 +252,7 @@ class CollectBlessing extends Component {
(
isLogin
&&
isSign
)
?
(
<
button
className
=
"collect-blessing__content"
data
-
status
=
"done"
>
+
5
点
<
br
/>
福气值
已加
5
点
<
/button
>
)
:
(
...
...
src/components/blessingPreheat/collectBlessing/index.scss
View file @
7da3cde3
...
...
@@ -47,6 +47,7 @@
justify-content
:
center
;
width
:
64px
;
height
:
100%
;
padding
:
0
;
border-style
:
none
;
border-radius
:
5px
;
font-size
:
12px
;
...
...
src/components/blessingPreheat/coursePopup/index.js
View file @
7da3cde3
import
React
,
{
Component
}
from
'react'
;
import
classnames
from
'classnames'
;
import
{
http
,
SendMessageToApp
}
from
"@/utils"
;
import
{
Link
}
from
'react-router-dom'
;
import
'./index.scss'
;
import
{
getParam
}
from
'../../../utils'
;
...
...
@@ -74,7 +74,9 @@ class CoursePopup extends Component {
{
courseList
.
map
(
item
=>
(
<
span
className
=
"course-popup__item"
className
=
{
classnames
(
"course-popup__item"
,
{
"course-popup__item--active"
:
item
.
blessing
})}
key
=
{
item
.
course_id
}
onClick
=
{()
=>
{
this
.
toCourseDetail
(
item
)}}
>
...
...
src/components/blessingPreheat/coursePopup/index.scss
View file @
7da3cde3
...
...
@@ -64,9 +64,17 @@
}
}
.course-popup__item--active
{
.course-popup__name
{
color
:rgba
(
82
,
92
,
101
,
.6
)
;
}
}
.course-popup__name
{
width
:
200px
;
font-size
:
12px
;
color
:rgba
(
82
,
92
,
101
,
1
)
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
...
...
src/components/blessingPreheat/index.js
View file @
7da3cde3
...
...
@@ -328,7 +328,7 @@ class BlessingPreheat extends Component {
margin
:
1
}).
then
(
url
=>
{
Popup
({
title
:
''
,
title
:
'
扫码关注“七月在线”服务号
'
,
content
:
<
img
src
=
{
url
}
alt
=
"barcode"
className
=
"qr-code"
/>
,
className
:
'invite-popup'
})
...
...
src/components/blessingPreheat/live/index.scss
View file @
7da3cde3
...
...
@@ -189,8 +189,7 @@
.am-tabs-tab-bar-wrap
{
height
:
33px
;
border
:
1px
solid
rgba
(
255
,
246
,
4
,
1
);
border-radius
:
0
0
6px
6px
;
}
.am-tabs-default-bar-tab
{
...
...
@@ -214,8 +213,15 @@
.am-tabs-default-bar-tab-active
{
background
:
#FFF604
;
border-radius
:
0
0
5px
5px
;
}
.am-tabs-default-bar-top
{
.am-tabs-default-bar-content
{
border
:
1px
solid
rgba
(
255
,
246
,
4
,
1
);
border-radius
:
0
0
6px
6px
;
}
}
}
}
...
...
src/components/blessingPreheat/recordPopup/index.scss
View file @
7da3cde3
...
...
@@ -74,6 +74,10 @@
&
:last-child
{
border-bottom
:
none
;
}
p
{
color
:
#525c65
;
}
}
}
.notdata
{
...
...
src/components/blessingRank/index.scss
View file @
7da3cde3
...
...
@@ -95,9 +95,14 @@
}
.rank__table-user
{
display
:
inline-
flex
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
padding
:
0
5px
;
span
{
flex
:
1
;
text-align
:
left
;
}
}
.rank__table-portrait
{
...
...
src/components/expand/share.js
View file @
7da3cde3
...
...
@@ -91,7 +91,7 @@ class ExpandShare extends Component {
this
.
props
.
history
.
push
(
'/passport/login'
)
}
else
{
this
.
props
.
history
.
push
(
`/deposit-order?oid=
${
getParam
(
'id'
)
}
&source=
${
1
}
`
,
`/deposit-order?oid=
${
courseId
}
&source=
${
1
}
`
,
{
id
:
courseId
,
isexpand
:
1
,
...
...
src/components/preferential/index.js
View file @
7da3cde3
...
...
@@ -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
:
res
.
data
.
data
,
dataList
:
JSON
.
stringify
(
res
.
data
.
data
)
==
'{}'
?
[]:
res
.
data
.
data
,
isLoading
:
false
,
})
}
else
{
...
...
@@ -83,7 +83,7 @@ class Preferential extends Component {
}
toCourseDetail
=
(
id
)
=>
{
const
{
dispatch
,
history
}
=
this
.
props
;
const
{
dispatch
,
history
}
=
this
.
props
;
// dispatch(getCourses(id, () => {
history
.
push
(
`/detail?id=
${
id
}
`
)
// }));
...
...
@@ -95,11 +95,11 @@ class Preferential extends Component {
{
title
:
'砍价专区'
},
{
title
:
'一键拼团'
}
]
const
{
user
=
{}
}
=
this
.
props
;
let
isLogin
=
user
.
data
&&
user
.
data
.
uid
?
true
:
false
;
const
{
user
=
{}
}
=
this
.
props
;
let
isLogin
=
user
.
data
&&
user
.
data
.
uid
?
true
:
false
;
return
(
<
div
className
=
'preferential'
>
<
HeaderSearch
isLogin
=
{
isLogin
}
/
>
<
HeaderSearch
isLogin
=
{
isLogin
}
/
>
<
Loading
isLoading
=
{
this
.
state
.
isLoading
}
>
<
div
className
=
'class-content'
>
<
WhiteSpace
/>
...
...
@@ -116,11 +116,14 @@ class Preferential extends Component {
>
<
/Tabs
>
<
div
className
=
'tabs'
>
{
this
.
state
.
dataList
.
length
>
0
?
<
ul
>
{
this
.
state
.
dataList
.
map
((
item
,
index
)
=>
{
const
Info
=
(
<
div
className
=
"info"
>
<
p
className
=
'title'
onClick
=
{()
=>
this
.
toCourseDetail
(
item
.
course_id
)}
>
<
p
className
=
'title'
onClick
=
{()
=>
this
.
toCourseDetail
(
item
.
course_id
)}
>
{
/* <Link to={`/detail?id=${item.course_id}`}> */
}
{
item
.
course_title
}
{
/* </Link> */
}
...
...
@@ -167,7 +170,8 @@ class Preferential extends Component {
/
>
)
})}
<
/ul
>
<
/ul>:<div className={'notdata'}>砍价的课程已被设置为双十一活动课程,参加双十一活动购买课程优惠更多哦!</
div
>
}
<
/div
>
<
WhiteSpace
/>
...
...
src/components/preferential/index.scss
View file @
7da3cde3
...
...
@@ -148,5 +148,14 @@
}
}
.notdata
{
width
:
100%
;
padding
:
0
35px
;
text-align
:
center
;
margin-top
:
100px
;
color
:
#666
;
font-size
:
14px
;
}
}
src/components/search/index.js
View file @
7da3cde3
...
...
@@ -109,6 +109,7 @@ class Search extends PureComponent {
})
:
<
div
style
=
{{
textAlign
:
'center'
,
padding
:
'20px'
}}
>
暂无热门
<
/div
>
}
<
/div
>
<
/div
>
<
/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