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
410540a6
Commit
410540a6
authored
Aug 22, 2019
by
FE
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拼团成功后分享人数修复
parent
2dd741af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
src/components/detail/bargain/index.js
+1
-0
src/components/detail/index.js
+10
-9
No files found.
src/components/detail/bargain/index.js
View file @
410540a6
...
@@ -183,6 +183,7 @@ class Bargain extends Component {
...
@@ -183,6 +183,7 @@ class Bargain extends Component {
}
}
render
()
{
render
()
{
console
.
log
(
this
.
state
);
const
{
list
,
outList
,
barInfo
}
=
this
.
state
;
const
{
list
,
outList
,
barInfo
}
=
this
.
state
;
const
{
user
}
=
this
.
props
const
{
user
}
=
this
.
props
const
uid
=
user
&&
user
.
data
&&
user
.
data
.
uid
const
uid
=
user
&&
user
.
data
&&
user
.
data
.
uid
...
...
src/components/detail/index.js
View file @
410540a6
...
@@ -153,7 +153,6 @@ class Detail extends Component {
...
@@ -153,7 +153,6 @@ class Detail extends Component {
invitedFriends
=
()
=>
{
invitedFriends
=
()
=>
{
const
{
course_title
,
image_name
,
course_id
,
pdd_group_info
,
pdd_group_info
:
{
groupon_member
,
groupon_member
:
{
number
},
price
}}
=
this
.
state
.
course
.
course_info
;
const
{
course_title
,
image_name
,
course_id
,
pdd_group_info
,
pdd_group_info
:
{
groupon_member
,
groupon_member
:
{
number
},
price
}}
=
this
.
state
.
course
.
course_info
;
if
(
browser
.
isWeixin
)
{
if
(
browser
.
isWeixin
)
{
console
.
log
(
0
);
let
share
=
this
.
state
.
share
;
let
share
=
this
.
state
.
share
;
this
.
setState
({
this
.
setState
({
share
:
!
share
,
share
:
!
share
,
...
@@ -221,9 +220,9 @@ class Detail extends Component {
...
@@ -221,9 +220,9 @@ class Detail extends Component {
// if (this.props.courseInfo.course_info) {
// if (this.props.courseInfo.course_info) {
// courseInfo = this.props.courseInfo.course_info;
// courseInfo = this.props.courseInfo.course_info;
// service = courseInfo.service;
// service = courseInfo.service;
// if (courseInfo.group_status === 3 || courseI
nfo.group_status === 4) {
if
(
course_info
.
group_status
===
3
||
course_i
nfo
.
group_status
===
4
)
{
// number = courseI
nfo.pdd_group_info.groupon_member.number;
number
=
course_i
nfo
.
pdd_group_info
.
groupon_member
.
number
;
//
}
}
// }
// }
const
{
share
,
countdown
,
list
,
outList
}
=
this
.
state
;
const
{
share
,
countdown
,
list
,
outList
}
=
this
.
state
;
const
href
=
this
.
props
.
location
&&
this
.
props
.
location
.
state
?
this
.
props
.
location
.
state
.
href
:
undefined
;
const
href
=
this
.
props
.
location
&&
this
.
props
.
location
.
state
?
this
.
props
.
location
.
state
.
href
:
undefined
;
...
@@ -360,15 +359,17 @@ class Detail extends Component {
...
@@ -360,15 +359,17 @@ class Detail extends Component {
{
{
share
?
(
share
?
(
<
div
className
=
'groupSuccessMbc'
onClick
=
{()
=>
{
<
div
this
.
setState
({
share
:
false
})
className
=
'groupSuccessMbc'
}}
>
onClick
=
{()
=>
{
this
.
setState
({
share
:
false
})
}}
>
<
div
className
=
'tipContent'
>
<
div
className
=
'tipContent'
>
{
`还差
${
number
}
人,分享到3个群,成团率高达98%`
}
{
`还差
${
number
}
人,分享到3个群,成团率高达98%`
}
<
/div
>
<
/div
>
<
div
className
=
'tipArrow'
>
<
div
className
=
'tipArrow'
>
<
i
className
=
'iconfont iconyindao'
><
/i
>
<
i
className
=
'iconfont iconyindao'
/
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
)
:
null
)
:
null
...
...
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