Commit 9a7d02ab by zhanghaozhe

Merge branch 'international-phone-number' into pre

# Conflicts:
#	src/components/detail/redPacket/index.js
parents d9389d99 df4b76a5
...@@ -9,6 +9,8 @@ import { Toast } from 'antd-mobile'; ...@@ -9,6 +9,8 @@ import { Toast } from 'antd-mobile';
import Captcha from '@/common/Captcha'; import Captcha from '@/common/Captcha';
import FollowQRcode from './../followQRcode'; import FollowQRcode from './../followQRcode';
import './index.scss'; import './index.scss';
import { Link } from "react-router-dom";
import cookie from 'js-cookie' import cookie from 'js-cookie'
class RedPacket extends PureComponent { class RedPacket extends PureComponent {
...@@ -206,7 +208,7 @@ class RedPacket extends PureComponent { ...@@ -206,7 +208,7 @@ class RedPacket extends PureComponent {
const { code, data } = res.data; const { code, data } = res.data;
if(code === 200) { if(code === 200) {
// is_receive 是否领取过 0-否 1-是 // is_receive 是否领取过 0-否 1-是
if(data.is_receive) { if(data.is_receive) {
this.judgeReceiveStatus(data, 8); this.judgeReceiveStatus(data, 8);
}else { }else {
...@@ -626,7 +628,6 @@ class RedPacket extends PureComponent { ...@@ -626,7 +628,6 @@ class RedPacket extends PureComponent {
bindInfo, bindInfo,
country country
} = this.state; } = this.state;
// console.log(share_code);
const cls = classnames('popup-mask',{ const cls = classnames('popup-mask',{
'popup-mask--no': type !== 2 'popup-mask--no': type !== 2
}); });
...@@ -665,7 +666,7 @@ class RedPacket extends PureComponent { ...@@ -665,7 +666,7 @@ class RedPacket extends PureComponent {
{!isCopy {!isCopy
? userInfo && userInfo.uid ? userInfo && userInfo.uid
? ( ? (
<CopyToClipboard <CopyToClipboard
text={command} text={command}
onCopy={() => this.setState({ onCopy={() => this.setState({
isCopy: true isCopy: true
...@@ -675,8 +676,8 @@ class RedPacket extends PureComponent { ...@@ -675,8 +676,8 @@ class RedPacket extends PureComponent {
</CopyToClipboard> </CopyToClipboard>
) )
: ( : (
<button <button
className="popup-password__button--copy" className="popup-password__button--copy"
onClick={() => { onClick={() => {
window.localStorage.setItem('redpacket-click', 'copy'); window.localStorage.setItem('redpacket-click', 'copy');
history.push('/passport/login'); history.push('/passport/login');
...@@ -850,12 +851,12 @@ class RedPacket extends PureComponent { ...@@ -850,12 +851,12 @@ class RedPacket extends PureComponent {
<Form className="popup-form__content"> <Form className="popup-form__content">
<h4 className="popup-form__title">绑定手机号</h4> <h4 className="popup-form__title">绑定手机号</h4>
<div className="popup-form__item"> <div className="popup-form__item">
<a <Link
className="popup-form__button--num" className="popup-form__button--num"
href={`/country?id=${getParam('id')}&share_code=${share_code}`}> to={`/country?id=${getParam('id')}&share_code=${share_code}`}>
+{country.num} +{country.num}
<i className="iconfont iconiconfront-69"></i> <i className="iconfont iconiconfront-69"/>
</a> </Link>
<Field <Field
name="tel" name="tel"
render={({field}) => { render={({field}) => {
......
...@@ -13,7 +13,6 @@ import { connect } from 'react-redux'; ...@@ -13,7 +13,6 @@ import { connect } from 'react-redux';
import { compose } from 'redux'; import { compose } from 'redux';
import { isEmpty } from 'lodash' import { isEmpty } from 'lodash'
import { Toast } from 'antd-mobile'; import { Toast } from 'antd-mobile';
import { validateTel } from "@/utils";
import { HeaderBar } from "@/common"; import { HeaderBar } from "@/common";
......
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