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
2063a15a
Commit
2063a15a
authored
Dec 02, 2022
by
青梅竹马
Browse files
Options
Browse Files
Download
Plain Diff
更新拼团
parents
52ca6337
2f385e73
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
24 deletions
+30
-24
build/mrstaticjs/togroup.013b5bb9.chunk.js
+0
-0
build/mrstaticjs/togroup.013b5bb9.chunk.js.map
+0
-0
src/components/detail/group/togroup.js
+30
-24
No files found.
build/mrstaticjs/togroup.013b5bb9.chunk.js
View file @
2063a15a
This diff is collapsed.
Click to expand it.
build/mrstaticjs/togroup.013b5bb9.chunk.js.map
View file @
2063a15a
This diff is collapsed.
Click to expand it.
src/components/detail/group/togroup.js
View file @
2063a15a
...
@@ -23,7 +23,7 @@ class ToGroup extends Component {
...
@@ -23,7 +23,7 @@ class ToGroup extends Component {
modal
:
false
,
modal
:
false
,
pddOrderId
:
""
,
pddOrderId
:
""
,
is_new_user
:
true
,
is_new_user
:
true
,
user_info_sample_http
:
false
user_info_sample_http
:
false
,
}
}
}
}
...
@@ -102,16 +102,18 @@ class ToGroup extends Component {
...
@@ -102,16 +102,18 @@ class ToGroup extends Component {
if
(
!
this
.
state
.
user_info_sample_http
)
{
if
(
!
this
.
state
.
user_info_sample_http
)
{
http
.
get
(
`
${
API
.
home
}
/m/user_info_sample/0`
).
then
((
res
)
=>
{
http
.
get
(
`
${
API
.
home
}
/m/user_info_sample/0`
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
===
200
)
{
if
(
res
.
data
.
code
===
200
)
{
console
.
log
(
'已经登录'
);
console
.
log
(
"已经登录"
)
}
else
{
}
else
{
//为登录,去登录
//为登录,去登录
console
.
log
(
'去登录'
);
console
.
log
(
"去登录"
)
// this.props.history.push("/passport", { from: this.props.location })
// 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
})
this
.
setState
({
is_new_user
:
res
.
data
.
data
.
is_new_user
,
user_info_sample_http
:
true
,
})
})
})
}
}
}
}
toCourseDetail
=
(
id
)
=>
{
toCourseDetail
=
(
id
)
=>
{
...
@@ -161,7 +163,7 @@ class ToGroup extends Component {
...
@@ -161,7 +163,7 @@ class ToGroup extends Component {
data
:
{
course_id
,
course_title
,
simpledescription
,
price0
,
price1
},
data
:
{
course_id
,
course_title
,
simpledescription
,
price0
,
price1
},
is_success
,
is_success
,
course_list
,
course_list
,
is_new_user
is_new_user
,
}
=
this
.
state
}
=
this
.
state
const
Info
=
(
const
Info
=
(
<
div
className
=
"info"
>
<
div
className
=
"info"
>
...
@@ -265,7 +267,7 @@ class ToGroup extends Component {
...
@@ -265,7 +267,7 @@ class ToGroup extends Component {
}
}
function
GorupContent
(
props
)
{
function
GorupContent
(
props
)
{
console
.
log
(
'GorupContent------data:'
,
props
)
console
.
log
(
"GorupContent------data:"
,
props
)
let
tip
,
btn
,
dec
,
groupTip
let
tip
,
btn
,
dec
,
groupTip
const
{
const
{
pdd_price
,
pdd_price
,
...
@@ -276,7 +278,7 @@ function GorupContent(props) {
...
@@ -276,7 +278,7 @@ function GorupContent(props) {
share
,
share
,
number
,
number
,
countdown
,
countdown
,
is_new_user
is_new_user
,
}
=
props
.
data
}
=
props
.
data
const
{
userInfo
}
=
props
const
{
userInfo
}
=
props
let
ary
=
[],
let
ary
=
[],
...
@@ -323,13 +325,13 @@ function GorupContent(props) {
...
@@ -323,13 +325,13 @@ function GorupContent(props) {
}
}
})
})
if
(
flag
)
{
if
(
flag
)
{
tip
=
is_new_user
?
(
tip
=
(
<
p
className
=
"tip"
>
{
`拼团省¥
${
Math
.
round
(
is_new_user
?
<
p
className
=
"tip"
>
{
`拼团省¥
${
Math
.
round
(
data
.
price1
-
pdd_price
,
data
.
price1
-
pdd_price
,
2
2
)}
元`
}
<
/p>
:
)}
元`
}
<
/p
>
<
p
>
您已是七月的老朋友,快开团邀请好友加入吧(老用户自动开新团)
<
/p
>
)
:
(
<
p
>
您已是七月用户无法参与该团,开新团邀请尚未注册七月的加入吧
<
/p
>
)
)
btn
=
(
btn
=
(
<
span
className
=
"group-btn"
onClick
=
{
props
.
invitedFriends
}
>
<
span
className
=
"group-btn"
onClick
=
{
props
.
invitedFriends
}
>
...
@@ -339,21 +341,24 @@ function GorupContent(props) {
...
@@ -339,21 +341,24 @@ function GorupContent(props) {
dec
=
<
p
className
=
"dec"
>
分享到
3
个群后,成团率高达
98
%<
/p
>
dec
=
<
p
className
=
"dec"
>
分享到
3
个群后,成团率高达
98
%<
/p
>
}
else
{
}
else
{
if
(
getParam
(
"is_originator"
)
==
1
)
{
if
(
getParam
(
"is_originator"
)
==
1
)
{
tip
=
(
tip
=
is_new_user
?
(
is_new_user
?
<
p
className
=
"tip"
>
{
`拼团省¥
${
Math
.
round
(
<
p
className
=
"tip"
>
{
`拼团省¥
${
Math
.
round
(
data
.
price1
-
pdd_price
,
data
.
price1
-
pdd_price
,
2
2
)}
元`
}
<
/p>
:
)}
元`
}
<
/p
>
<
p
>
您已是七月的老朋友,快开团邀请好友加入吧(老用户自动开新团)
<
/p
>
)
:
(
<
p
>
您已是七月用户无法参与该团,开新团邀请尚未注册七月的加入吧
<
/p
>
)
)
btn
=
(
btn
=
is_new_user
?
(
is_new_user
?
<
a
<
a
href
=
"javascript:;"
href
=
"javascript:;"
className
=
"group-btn"
className
=
"group-btn"
onClick
=
{
props
.
handleToGroup
}
onClick
=
{
props
.
handleToGroup
}
>
>
一键参团
一键参团
<
/a>:<
a
<
/a
>
)
:
(
<
a
href
=
"javascript:;"
href
=
"javascript:;"
className
=
"group-btn"
className
=
"group-btn"
onClick
=
{
props
.
handleToGroup
}
onClick
=
{
props
.
handleToGroup
}
...
@@ -362,12 +367,13 @@ function GorupContent(props) {
...
@@ -362,12 +367,13 @@ function GorupContent(props) {
<
/a
>
<
/a
>
)
)
}
else
{
}
else
{
tip
=
(
tip
=
is_new_user
?
(
is_new_user
?
<
p
className
=
"tip"
>
{
`拼团省¥
${
Math
.
round
(
<
p
className
=
"tip"
>
{
`拼团省¥
${
Math
.
round
(
data
.
price1
-
pdd_price
,
data
.
price1
-
pdd_price
,
2
2
)}
元`
}
<
/p>
:
)}
元`
}
<
/p
>
<
p
>
您已是七月的老朋友,快开团邀请好友加入吧(老用户自动开新团)
<
/p
>
)
:
(
<
p
>
您已是七月用户无法参与该团,开新团邀请尚未注册七月的加入吧
<
/p
>
)
)
btn
=
(
btn
=
(
<
span
className
=
"group-btn"
onClick
=
{
props
.
invitedFriends
}
>
<
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