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
3cabee0f
Commit
3cabee0f
authored
Dec 14, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
砍价bug
parent
adaa85fa
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
8 deletions
+16
-8
src/components/activity/newyear-2019/landing/index.js
+6
-5
src/components/activity/newyear-2019/myTreasure/index.js
+1
-1
src/components/activity/newyear-2019/myTreasure/prize.js
+7
-0
src/components/activity/newyear-2019/preheat/nav.js
+1
-1
src/components/bargainMiddlePage/index.js
+1
-1
No files found.
src/components/activity/newyear-2019/landing/index.js
View file @
3cabee0f
...
...
@@ -144,6 +144,7 @@ class Landing extends Component {
src
=
"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/treasure-box.png"
alt
=
""
onClick
=
{()
=>
{
this
.
joinSuccessPopup
&&
this
.
joinSuccessPopup
.
remove
()
history
.
push
(
`/year/yearTreasure?id=
${
id
}
`
)
}}
/
>
...
...
@@ -158,7 +159,7 @@ class Landing extends Component {
this
.
fetchPageData
()
this
.
getFollowStatus
()
.
then
(
isFollow
=>
{
!
isFollow
&&
this
.
remind
(
'join'
,
getParam
(
'treasure_code'
)
)
!
isFollow
&&
this
.
remind
(
'join'
,
this
.
state
.
treasure_code
,
2
)
})
}
})
...
...
@@ -191,7 +192,7 @@ class Landing extends Component {
return
code
===
200
&&
data
[
'is_follow'
]
})
createTeamSuccess
=
(
member
,
team_num
,
lack_member
,
treasure_code
)
=>
{
createTeamSuccess
=
(
{
member
,
team_num
,
lack_member
,
treasure_code
}
)
=>
{
this
.
joinSuccessPopup
&&
this
.
joinSuccessPopup
.
remove
()
&&
(
this
.
joinSuccessPopup
=
null
)
this
.
getFollowStatus
()
.
then
(
isFollow
=>
{
...
...
@@ -233,7 +234,7 @@ class Landing extends Component {
})
}
remind
=
(
type
=
'create'
,
treasure_code
)
=>
{
remind
=
(
type
=
'create'
,
treasure_code
,
origin
=
1
)
=>
{
const
{
match
,
history
,
user
}
=
this
.
props
http
.
get
(
`
${
API
[
"base-api"
]}
/wx/user_temporary_qrcode/
${
user
.
data
.
uid
}
`
)
.
then
(
res
=>
{
...
...
@@ -255,7 +256,7 @@ class Landing extends Component {
// history.replace(`${match.path}?treasure_code=${treasure_code}&origin=1`)
this
.
fetchPageData
({
treasure_code
,
origin
:
'1'
origin
})
}
})
...
...
@@ -290,7 +291,7 @@ class Landing extends Component {
sessionStorage
.
removeItem
(
'showShareTip'
)
this
.
getFollowStatus
()
.
then
(
isFollow
=>
{
!
isFollow
&&
this
.
remind
(
'create'
,
getParam
(
'treasure_code'
))
!
isFollow
&&
this
.
remind
(
'create'
,
getParam
(
'treasure_code'
)
,
1
)
})
}
})
...
...
src/components/activity/newyear-2019/myTreasure/index.js
View file @
3cabee0f
...
...
@@ -77,7 +77,7 @@ class MyTreasure extends Component {
// 获取当前需要绑定手机的队伍id,当拆到需要绑定手机号/地址的宝箱时,如果不进行绑定则无法拆下一个
fetchCurrentTeamId
=
(
data
=
[])
=>
{
const
arr
=
data
.
filter
(
item
=>
item
.
is_open
&&
(
item
.
bind_
address
||
item
.
bind_address
));
const
arr
=
data
.
filter
(
item
=>
item
.
is_open
&&
(
item
.
bind_
phone
||
item
.
bind_address
));
if
(
arr
.
length
>
0
)
{
return
arr
[
0
][
'id'
];
}
else
{
...
...
src/components/activity/newyear-2019/myTreasure/prize.js
View file @
3cabee0f
...
...
@@ -82,6 +82,12 @@ export default (props) => {
(
!
bind_phone
&&
!
bind_address
&&
prize_type
===
2
)
&&
<
a
className
=
"team-result"
>
已发放至您的账户
<
/a
>
}
{
/* 第三:奖品,任意线上课程兑换券 */
}
{
(
!
bind_phone
&&
!
bind_address
&&
prize_type
===
5
)
&&
<
a
className
=
"team-result"
>
文案待定
<
/a
>
}
<
/
>
)
}
\ No newline at end of file
src/components/activity/newyear-2019/preheat/nav.js
View file @
3cabee0f
...
...
@@ -33,7 +33,7 @@ class TreasureNav extends Component {
},
{
id
:
'year-discount'
,
name
:
'抄
低
专区'
name
:
'抄
底
专区'
},
]
};
...
...
src/components/bargainMiddlePage/index.js
View file @
3cabee0f
...
...
@@ -634,7 +634,7 @@ function CourseDes(props) {
<
span
className
=
{
'discount-price'
}
>
¥
{
course
.
course_price
}
<
/span
>
{
/* is_originator 是否发起人 0-否 1-是 */
}
{
(
is_originator
==
1
&&
bargain_status
==
0
||
bargain_status
==
1
)
&&
(
is_originator
==
1
&&
bargain_status
!=
3
)
&&
<
button
className
=
{
'purchase-btn'
}
onClick
=
{
toCart
}
>
¥
{
course
.
pay_price
}
去支付
<
/button
>
...
...
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