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 {
}
render
()
{
console
.
log
(
this
.
state
);
const
{
list
,
outList
,
barInfo
}
=
this
.
state
;
const
{
user
}
=
this
.
props
const
uid
=
user
&&
user
.
data
&&
user
.
data
.
uid
...
...
src/components/detail/index.js
View file @
410540a6
...
...
@@ -153,7 +153,6 @@ class Detail extends Component {
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
;
if
(
browser
.
isWeixin
)
{
console
.
log
(
0
);
let
share
=
this
.
state
.
share
;
this
.
setState
({
share
:
!
share
,
...
...
@@ -221,9 +220,9 @@ class Detail extends Component {
// if (this.props.courseInfo.course_info) {
// courseInfo = this.props.courseInfo.course_info;
// service = courseInfo.service;
// if (courseInfo.group_status === 3 || courseI
nfo.group_status === 4) {
// number = courseI
nfo.pdd_group_info.groupon_member.number;
//
}
if
(
course_info
.
group_status
===
3
||
course_i
nfo
.
group_status
===
4
)
{
number
=
course_i
nfo
.
pdd_group_info
.
groupon_member
.
number
;
}
// }
const
{
share
,
countdown
,
list
,
outList
}
=
this
.
state
;
const
href
=
this
.
props
.
location
&&
this
.
props
.
location
.
state
?
this
.
props
.
location
.
state
.
href
:
undefined
;
...
...
@@ -360,15 +359,17 @@ class Detail extends Component {
{
share
?
(
<
div
className
=
'groupSuccessMbc'
onClick
=
{()
=>
{
this
.
setState
({
share
:
false
})
}}
>
<
div
className
=
'groupSuccessMbc'
onClick
=
{()
=>
{
this
.
setState
({
share
:
false
})
}}
>
<
div
className
=
'tipContent'
>
{
`还差
${
number
}
人,分享到3个群,成团率高达98%`
}
<
/div
>
<
div
className
=
'tipArrow'
>
<
i
className
=
'iconfont iconyindao'
><
/i
>
<
i
className
=
'iconfont iconyindao'
/
>
<
/div
>
<
/div
>
)
:
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