Commit d2a0a612 by dazhou

拼团文案需改

parent 65ff3993
......@@ -23,7 +23,7 @@ class ToGroup extends Component {
modal: false,
pddOrderId: "",
is_new_user: true,
user_info_sample_http: false
user_info_sample_http: false,
}
}
......@@ -102,16 +102,18 @@ class ToGroup extends Component {
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('已经登录');
console.log("已经登录")
} else {
//为登录,去登录
console.log('去登录');
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 })
this.setState({
is_new_user: res.data.data.is_new_user,
user_info_sample_http: true,
})
})
}
}
toCourseDetail = (id) => {
......@@ -161,7 +163,7 @@ class ToGroup extends Component {
data: { course_id, course_title, simpledescription, price0, price1 },
is_success,
course_list,
is_new_user
is_new_user,
} = this.state
const Info = (
<div className="info">
......@@ -265,7 +267,7 @@ class ToGroup extends Component {
}
function GorupContent(props) {
console.log('GorupContent------data:',props)
console.log("GorupContent------data:", props)
let tip, btn, dec, groupTip
const {
pdd_price,
......@@ -276,7 +278,7 @@ function GorupContent(props) {
share,
number,
countdown,
is_new_user
is_new_user,
} = props.data
const { userInfo } = props
let ary = [],
......@@ -323,13 +325,13 @@ function GorupContent(props) {
}
})
if (flag) {
tip = (
is_new_user ? <p className="tip">{`拼团省¥${Math.round(
tip = is_new_user ? (
<p className="tip">{`拼团省¥${Math.round(
data.price1 - pdd_price,
2
)}元`}</p> :
<p>您已是七月的老朋友,快开团邀请好友加入吧(老用户自动开新团)</p>
)}元`}</p>
) : (
<p>您已是七月用户无法参与该团,开新团邀请尚未注册七月的加入吧</p>
)
btn = (
<span className="group-btn" onClick={props.invitedFriends}>
......@@ -339,21 +341,24 @@ 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 = is_new_user ? (
<p className="tip">{`拼团省¥${Math.round(
data.price1 - pdd_price,
2
)}元`}</p> :
<p>您已是七月的老朋友,快开团邀请好友加入吧(老用户自动开新团)</p>
)}元`}</p>
) : (
<p>您已是七月用户无法参与该团,开新团邀请尚未注册七月的加入吧</p>
)
btn = (
is_new_user ? <a
btn = is_new_user ? (
<a
href="javascript:;"
className="group-btn"
onClick={props.handleToGroup}
>
一键参团
</a>:<a
</a>
) : (
<a
href="javascript:;"
className="group-btn"
onClick={props.handleToGroup}
......@@ -362,12 +367,13 @@ function GorupContent(props) {
</a>
)
} else {
tip = (
is_new_user ? <p className="tip">{`拼团省¥${Math.round(
tip = is_new_user ? (
<p className="tip">{`拼团省¥${Math.round(
data.price1 - pdd_price,
2
)}元`}</p> :
<p>您已是七月的老朋友,快开团邀请好友加入吧(老用户自动开新团)</p>
)}元`}</p>
) : (
<p>您已是七月用户无法参与该团,开新团邀请尚未注册七月的加入吧</p>
)
btn = (
<span className="group-btn" onClick={props.invitedFriends}>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment