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
a2291208
Commit
a2291208
authored
Nov 20, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pull
parent
1b83d1ca
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
src/components/bargainMiddlePage/index.js
+11
-2
No files found.
src/components/bargainMiddlePage/index.js
View file @
a2291208
...
@@ -284,6 +284,7 @@ class BargainMiddlePage extends Component {
...
@@ -284,6 +284,7 @@ class BargainMiddlePage extends Component {
}
}
this
.
getBargainInfo
()
this
.
getBargainInfo
()
this
.
getBargainRankList
(
getParam
(
'id'
),
1
)
}
else
if
(
res
.
data
.
code
==
4030
||
res
.
data
.
code
==
4040
)
{
}
else
if
(
res
.
data
.
code
==
4030
||
res
.
data
.
code
==
4040
)
{
...
@@ -376,6 +377,9 @@ class BargainMiddlePage extends Component {
...
@@ -376,6 +377,9 @@ class BargainMiddlePage extends Component {
if
(
bargain_status
===
0
)
{
if
(
bargain_status
===
0
)
{
bargainBtn
=
<
button
className
=
'active-btn'
onClick
=
{
this
.
shareFriendBargain
}
>
邀请好友砍价
<
/button
>
bargainBtn
=
<
button
className
=
'active-btn'
onClick
=
{
this
.
shareFriendBargain
}
>
邀请好友砍价
<
/button
>
}
}
else
{
bargainBtn
=
<
button
className
=
{
'invalid-btn'
}
>
砍价结束
<
/button
>
}
}
else
{
}
else
{
if
(
assist_status
===
0
&&
bargain_status
===
0
)
{
if
(
assist_status
===
0
&&
bargain_status
===
0
)
{
bargainBtn
=
<
button
className
=
'active-btn'
onClick
=
{
this
.
friendBargainFirst
}
>
帮好友砍一刀
<
/button
>
bargainBtn
=
<
button
className
=
'active-btn'
onClick
=
{
this
.
friendBargainFirst
}
>
帮好友砍一刀
<
/button
>
...
@@ -422,6 +426,9 @@ class BargainMiddlePage extends Component {
...
@@ -422,6 +426,9 @@ class BargainMiddlePage extends Component {
/
>
/
>
<
/ul
>
<
/ul
>
<
div
className
=
"bargain-detail"
>
<
div
className
=
"bargain-detail"
>
{
(
this
.
state
.
data
.
bargain_status
==
0
||
this
.
state
.
data
.
bargain_status
==
1
)
&&
<
div
>
<
div
className
=
"top"
>
<
div
className
=
"top"
>
<
div
>
<
div
>
已砍
<
span
className
=
{
'reduced-price'
}
>
{
this
.
state
.
bargainData
.
bargain_price
}
元
<
/span
>
已砍
<
span
className
=
{
'reduced-price'
}
>
{
this
.
state
.
bargainData
.
bargain_price
}
元
<
/span
>
...
@@ -446,6 +453,8 @@ class BargainMiddlePage extends Component {
...
@@ -446,6 +453,8 @@ class BargainMiddlePage extends Component {
<
div
className
=
"middle"
>
<
div
className
=
"middle"
>
<
span
style
=
{{
width
:
this
.
state
.
width
}}
><
/span
>
<
span
style
=
{{
width
:
this
.
state
.
width
}}
><
/span
>
<
/div
>
<
/div
>
<
/div
>
}
{
{
this
.
state
.
isOriginator
===
1
&&
this
.
state
.
data
.
bargain_status
===
0
&&
this
.
state
.
isOriginator
===
1
&&
this
.
state
.
data
.
bargain_status
===
0
&&
<
div
>
<
div
>
...
@@ -625,13 +634,13 @@ function CourseDes(props) {
...
@@ -625,13 +634,13 @@ function CourseDes(props) {
<
span
className
=
{
'discount-price'
}
>
¥
{
course
.
course_price
}
<
/span
>
<
span
className
=
{
'discount-price'
}
>
¥
{
course
.
course_price
}
<
/span
>
{
/* is_originator 是否发起人 0-否 1-是 */
}
{
/* is_originator 是否发起人 0-否 1-是 */
}
{
{
(
is_originator
==
=
1
&&
bargain_status
!==
3
)
&&
(
is_originator
==
1
&&
bargain_status
==
0
||
bargain_status
==
1
)
&&
<
button
className
=
{
'purchase-btn'
}
onClick
=
{
toCart
}
>
<
button
className
=
{
'purchase-btn'
}
onClick
=
{
toCart
}
>
¥
{
course
.
pay_price
}
去支付
¥
{
course
.
pay_price
}
去支付
<
/button
>
<
/button
>
}
}
{
{
(
is_originator
==
=
1
&&
bargain_status
=
==
3
)
&&
(
is_originator
==
1
&&
bargain_status
==
3
)
&&
<
span
className
=
"course-button__buy--done"
>
已购买
<
/span
>
<
span
className
=
"course-button__buy--done"
>
已购买
<
/span
>
}
}
<
/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