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
bfb965b9
Commit
bfb965b9
authored
Dec 02, 2022
by
青梅竹马
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
恢复修改文案前拼团版本
parent
2063a15a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
41 deletions
+7
-41
src/components/detail/group/togroup.js
+7
-41
No files found.
src/components/detail/group/togroup.js
View file @
bfb965b9
...
...
@@ -22,8 +22,6 @@ class ToGroup extends Component {
isBuy
:
false
,
modal
:
false
,
pddOrderId
:
""
,
is_new_user
:
true
,
user_info_sample_http
:
false
,
}
}
...
...
@@ -99,21 +97,6 @@ class ToGroup extends Component {
},
1000
)
}
})
if
(
!
this
.
state
.
user_info_sample_http
)
{
http
.
get
(
`
${
API
.
home
}
/m/user_info_sample/0`
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
===
200
)
{
console
.
log
(
"已经登录"
)
}
else
{
//为登录,去登录
console
.
log
(
"去登录"
)
// this.props.history.push("/passport", { from: this.props.location })
}
this
.
setState
({
is_new_user
:
res
.
data
.
data
.
is_new_user
,
user_info_sample_http
:
true
,
})
})
}
}
toCourseDetail
=
(
id
)
=>
{
...
...
@@ -163,7 +146,6 @@ class ToGroup extends Component {
data
:
{
course_id
,
course_title
,
simpledescription
,
price0
,
price1
},
is_success
,
course_list
,
is_new_user
,
}
=
this
.
state
const
Info
=
(
<
div
className
=
"info"
>
...
...
@@ -267,7 +249,6 @@ class ToGroup extends Component {
}
function
GorupContent
(
props
)
{
console
.
log
(
"GorupContent------data:"
,
props
)
let
tip
,
btn
,
dec
,
groupTip
const
{
pdd_price
,
...
...
@@ -278,7 +259,6 @@ function GorupContent(props) {
share
,
number
,
countdown
,
is_new_user
,
}
=
props
.
data
const
{
userInfo
}
=
props
let
ary
=
[],
...
...
@@ -325,13 +305,11 @@ function GorupContent(props) {
}
})
if
(
flag
)
{
tip
=
is_new_user
?
(
<
p
className
=
"tip"
>
{
`拼团省¥
${
Math
.
round
(
tip
=
(
<
p
className
=
"tip"
>
{
`拼团省¥
${
round
(
data
.
price1
-
pdd_price
,
2
)}
元`
}
<
/p
>
)
:
(
<
p
>
您已是七月用户无法参与该团,开新团邀请尚未注册七月的加入吧
<
/p
>
)
btn
=
(
<
span
className
=
"group-btn"
onClick
=
{
props
.
invitedFriends
}
>
...
...
@@ -341,15 +319,13 @@ function GorupContent(props) {
dec
=
<
p
className
=
"dec"
>
分享到
3
个群后,成团率高达
98
%<
/p
>
}
else
{
if
(
getParam
(
"is_originator"
)
==
1
)
{
tip
=
is_new_user
?
(
<
p
className
=
"tip"
>
{
`拼团省¥
${
Math
.
round
(
tip
=
(
<
p
className
=
"tip"
>
{
`拼团省¥
${
round
(
data
.
price1
-
pdd_price
,
2
)}
元`
}
<
/p
>
)
:
(
<
p
>
您已是七月用户无法参与该团,开新团邀请尚未注册七月的加入吧
<
/p
>
)
btn
=
is_new_user
?
(
btn
=
(
<
a
href
=
"javascript:;"
className
=
"group-btn"
...
...
@@ -357,23 +333,13 @@ function GorupContent(props) {
>
一键参团
<
/a
>
)
:
(
<
a
href
=
"javascript:;"
className
=
"group-btn"
onClick
=
{
props
.
handleToGroup
}
>
一键开团
<
/a
>
)
}
else
{
tip
=
is_new_user
?
(
<
p
className
=
"tip"
>
{
`拼团省¥
${
Math
.
round
(
tip
=
(
<
p
className
=
"tip"
>
{
`拼团省¥
${
round
(
data
.
price1
-
pdd_price
,
2
)}
元`
}
<
/p
>
)
:
(
<
p
>
您已是七月用户无法参与该团,开新团邀请尚未注册七月的加入吧
<
/p
>
)
btn
=
(
<
span
className
=
"group-btn"
onClick
=
{
props
.
invitedFriends
}
>
...
...
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