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
7ff6d989
Commit
7ff6d989
authored
Nov 01, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Plain Diff
pull
parents
3ac26ffd
68d68698
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
17 deletions
+37
-17
public/api.js
+2
-1
src/components/blessingPreheat/collectBlessing/index.js
+22
-8
src/components/blessingPreheat/courseList/index.js
+3
-3
src/components/blessingPreheat/index.js
+8
-3
src/components/blessingPreheat/sharePopup/index.js
+2
-2
No files found.
public/api.js
View file @
7ff6d989
...
@@ -5,5 +5,6 @@ var API = {
...
@@ -5,5 +5,6 @@ var API = {
'passport-api'
:
'http://passport-test.julyedu.com'
,
'passport-api'
:
'http://passport-test.julyedu.com'
,
'base-api'
:
'http://api-test.julyedu.com'
,
'base-api'
:
'http://api-test.julyedu.com'
,
'record'
:
'record.julyedu.com:8001'
,
'record'
:
'record.julyedu.com:8001'
,
'process-api'
:
'ws:process-test.julyedu.com:9502'
'process-api'
:
'ws:process-test.julyedu.com:9502'
,
'm'
:
'http://m-test.julyedu.com'
,
}
}
src/components/blessingPreheat/collectBlessing/index.js
View file @
7ff6d989
...
@@ -16,7 +16,7 @@ class CollectBlessing extends Component {
...
@@ -16,7 +16,7 @@ class CollectBlessing extends Component {
super
(
props
);
super
(
props
);
this
.
state
=
{
this
.
state
=
{
rules
:
[
rules
:
[
'app
、h5、
pc端活动页签到+5点福气值(每天一次)'
,
'app
/h5/
pc端活动页签到+5点福气值(每天一次)'
,
'关注七月在线微信服务号+30点福气值(仅限一次)'
,
'关注七月在线微信服务号+30点福气值(仅限一次)'
,
'分享活动页到朋友圈、qq,分别+2点福气值(每个平台每天一次)'
,
'分享活动页到朋友圈、qq,分别+2点福气值(每个平台每天一次)'
,
'浏览指定课程详情页,一门课程+2点福气值(每天一次)'
,
'浏览指定课程详情页,一门课程+2点福气值(每天一次)'
,
...
@@ -109,13 +109,27 @@ class CollectBlessing extends Component {
...
@@ -109,13 +109,27 @@ class CollectBlessing extends Component {
weiboToShare
=
()
=>
{
weiboToShare
=
()
=>
{
const
{
uid
,
history
}
=
this
.
props
;
const
{
uid
,
history
}
=
this
.
props
;
if
(
!
uid
)
{
if
(
getParam
(
'version'
))
{
history
.
push
(
'/passport'
);
if
(
!
uid
)
{
SendMessageToApp
(
"toLogin"
);
}
else
{
let
data
=
{
title
:
'AI充电节,积福气享1折秒课,超10万元奖品来就送!!'
,
desc
:
'把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线'
,
link
:
'https://m.julyedu.com/blessingPreheat'
,
imgUrl
:
'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png'
,
};
SendMessageToApp
(
"WXshare"
,
data
);
}
}
else
{
}
else
{
history
.
push
(
'/blessingPreheat?utm_source=sina&utm_medium=11&utm_campaign=sina11&utm_content=1&utm_term=11'
);
if
(
!
uid
)
{
this
.
fetchUserBlessing
(
2
,
()
=>
{
history
.
push
(
'/passport'
);
this
.
handleToAddBlessing
(
2
);
}
else
{
});
history
.
push
(
'/blessingPreheat?utm_source=sina&utm_medium=11&utm_campaign=sina11&utm_content=1&utm_term=11'
);
this
.
fetchUserBlessing
(
2
,
()
=>
{
this
.
handleToAddBlessing
(
2
);
});
}
}
}
}
}
...
@@ -186,7 +200,7 @@ class CollectBlessing extends Component {
...
@@ -186,7 +200,7 @@ class CollectBlessing extends Component {
<
/ListHeader
>
<
/ListHeader
>
)
)
}
}
<
p
className
=
'activity__over'
>
活动结束
福气榜前
2
0
名可获奖品一份
<
/p
>
<
p
className
=
'activity__over'
>
活动结束
前福气榜前
5
0
名可获奖品一份
<
/p
>
{
{
welfareRuleList
.
map
((
item
,
index
)
=>
(
welfareRuleList
.
map
((
item
,
index
)
=>
(
<
div
className
=
"rules__item"
key
=
{
index
}
>
<
div
className
=
"rules__item"
key
=
{
index
}
>
...
...
src/components/blessingPreheat/courseList/index.js
View file @
7ff6d989
...
@@ -273,14 +273,14 @@ class CourseList extends Component {
...
@@ -273,14 +273,14 @@ class CourseList extends Component {
// 去课程详情页
// 去课程详情页
toCourse
=
(
courseId
)
=>
{
toCourse
=
(
courseId
)
=>
{
const
{
history
}
=
this
.
props
;
const
{
history
}
=
this
.
props
;
if
(
!
getParam
(
'version'
))
{
if
(
!
getParam
(
'version'
))
{
history
.
push
(
`/detail?id=
${
courseId
}
`
)
history
.
push
(
`/detail?id=
${
courseId
}
`
)
;
}
else
{
}
else
{
let
data
=
{
let
data
=
{
courseId
:
courseId
,
courseId
:
courseId
,
type
:
0
// 正常跳课程详情页type:0,积福气浏览课程详情页-没有浏览过type:1 已浏览过type:2
type
:
0
// 正常跳课程详情页type:0,积福气浏览课程详情页-没有浏览过type:1 已浏览过type:2
}
}
;
SendMessageToApp
(
"toCourse"
,
data
);
SendMessageToApp
(
"toCourse"
,
data
);
}
}
}
}
...
...
src/components/blessingPreheat/index.js
View file @
7ff6d989
...
@@ -259,7 +259,7 @@ class BlessingPreheat extends Component {
...
@@ -259,7 +259,7 @@ class BlessingPreheat extends Component {
const
{
userInfo
}
=
this
.
state
;
const
{
userInfo
}
=
this
.
state
;
if
(
userInfo
.
isLogin
)
{
if
(
userInfo
.
isLogin
)
{
if
(
!
getParam
(
'version'
))
{
if
(
!
getParam
(
'version'
))
{
QRCode
.
toDataURL
(
'http://m.julyedu.com/invite'
,
{
QRCode
.
toDataURL
(
`
${
API
.
m
}
/invite`
,
{
width
:
120
,
width
:
120
,
height
:
120
,
height
:
120
,
margin
:
1
margin
:
1
...
@@ -436,7 +436,12 @@ class BlessingPreheat extends Component {
...
@@ -436,7 +436,12 @@ class BlessingPreheat extends Component {
{
/* 精品课程特惠专区 */
}
{
/* 精品课程特惠专区 */
}
<
ListHeader
id
=
{
'best-courses'
}
text
=
"精品课程特惠专区"
styles
=
{{
margin
:
'30px 0 15px'
}}
/
>
<
ListHeader
id
=
{
'best-courses'
}
text
=
"精品课程特惠专区"
styles
=
{{
margin
:
'30px 0 15px'
}}
/
>
<
CourseList
isFormal
=
{
isFormal
}
isLogin
=
{
userInfo
.
isLogin
}
toLogin
=
{
this
.
toLogin
}
/
>
<
CourseList
isFormal
=
{
isFormal
}
isLogin
=
{
userInfo
.
isLogin
}
history
=
{
this
.
props
.
history
}
toLogin
=
{
this
.
toLogin
}
/
>
{
{
isRule
&&
isRule
&&
...
@@ -460,7 +465,7 @@ class BlessingPreheat extends Component {
...
@@ -460,7 +465,7 @@ class BlessingPreheat extends Component {
className
=
{
'invite-popup'
}
className
=
{
'invite-popup'
}
>
>
<
img
src
=
{
inviteUrl
}
alt
=
"barcode"
className
=
"qr-code"
/>
<
img
src
=
{
inviteUrl
}
alt
=
"barcode"
className
=
"qr-code"
/>
<
CopyToClipboard
text
=
"http://m.julyedu.com/invite"
onCopy
=
{
this
.
onCopy
}
>
<
CopyToClipboard
text
=
{
`
${
API
.
m
}
/invite"`
}
onCopy
=
{
this
.
onCopy
}
>
<
button
>
一键复制网址
<
/button
>
<
button
>
一键复制网址
<
/button
>
<
/CopyToClipboard
>
<
/CopyToClipboard
>
<
/Popup
>
<
/Popup
>
...
...
src/components/blessingPreheat/sharePopup/index.js
View file @
7ff6d989
...
@@ -7,13 +7,13 @@ export default class SharePopup extends Component {
...
@@ -7,13 +7,13 @@ export default class SharePopup extends Component {
return
(
return
(
<
div
className
=
"share__container"
>
<
div
className
=
"share__container"
>
{
{
!
browser
.
isWeixin
&&
browser
.
isWeixin
&&
<
div
className
=
"share__row"
>
<
div
className
=
"share__row"
>
<
img
src
=
'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/throw_icon.png'
/>
<
img
src
=
'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/throw_icon.png'
/>
<
/div
>
<
/div
>
}
}
<
div
className
=
"share__content"
>
<
div
className
=
"share__content"
>
<
p
className
=
"share__text"
>
分享活动页到朋友圈、
qq
分别
<
/p
>
<
p
className
=
"share__text"
>
分享活动页到朋友圈、
qq
、微博
分别
<
/p
>
<
div
className
=
'share__rule'
>
<
div
className
=
'share__rule'
>
<
img
src
=
'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/add2.png'
/>
<
img
src
=
'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/add2.png'
/>
<
span
>
(每个平台每天一次)
<
/span
>
<
span
>
(每个平台每天一次)
<
/span
>
...
...
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