Commit e4d11a6b by zhanghaozhe

国际手机号

parent e8092317
...@@ -42,7 +42,7 @@ class BargainInfo extends Component { ...@@ -42,7 +42,7 @@ class BargainInfo extends Component {
http.post( http.post(
`${API['passport-api']}/m/personal/bindPhoneSendCode`, `${API['passport-api']}/m/personal/bindPhoneSendCode`,
{ {
area_code: country.padStart(4, '0'), area_code: '00'+country,
phone_num: mobile phone_num: mobile
} }
).then(res => { ).then(res => {
...@@ -84,7 +84,7 @@ class BargainInfo extends Component { ...@@ -84,7 +84,7 @@ class BargainInfo extends Component {
http.post( http.post(
`${API['passport-api']}/m/personal/bindPhone`, `${API['passport-api']}/m/personal/bindPhone`,
{ {
area_code: country.padStart(4, '0'), area_code: '00'+country,
phone_num: mobile, phone_num: mobile,
code: code, code: code,
type: 1, type: 1,
......
...@@ -487,7 +487,7 @@ class RedPacket extends PureComponent { ...@@ -487,7 +487,7 @@ class RedPacket extends PureComponent {
http.post( http.post(
`${API['passport-api']}/m/personal/bindPhoneSendCode`, `${API['passport-api']}/m/personal/bindPhoneSendCode`,
{ {
area_code: num.padStart(4, '0'), area_code: '00'+num,
phone_num: tel phone_num: tel
} }
).then(res => { ).then(res => {
...@@ -573,7 +573,7 @@ class RedPacket extends PureComponent { ...@@ -573,7 +573,7 @@ class RedPacket extends PureComponent {
http.post( http.post(
`${API['passport-api']}/m/personal/bindPhone`, `${API['passport-api']}/m/personal/bindPhone`,
{ {
area_code: num.padStart(4, '0'), area_code: '00'+num,
phone_num: tel, phone_num: tel,
code: code, code: code,
type: 1, type: 1,
......
...@@ -123,7 +123,7 @@ const formikConfig = { ...@@ -123,7 +123,7 @@ const formikConfig = {
phone_num: values.tel, phone_num: values.tel,
phone_code: values.veriCode, phone_code: values.veriCode,
mkey: getParam('mkey'), mkey: getParam('mkey'),
area_code: props.country.num, area_code: '00'+props.country.num,
plat: 5 plat: 5
}).then(res => { }).then(res => {
const data = res.data const data = res.data
......
...@@ -87,7 +87,7 @@ class VeriCodeInput extends Component { ...@@ -87,7 +87,7 @@ class VeriCodeInput extends Component {
http.post(`${API['passport-api']}/quick_sms`, { http.post(`${API['passport-api']}/quick_sms`, {
phone_num: tel || account, phone_num: tel || account,
action: action || 'login', action: action || 'login',
area_code: country.num, area_code: '00'+country.num,
challenge, challenge,
checking checking
}).then(res => { }).then(res => {
......
...@@ -123,7 +123,7 @@ const formikConfig = { ...@@ -123,7 +123,7 @@ const formikConfig = {
http.post(`${API['passport-api']}/check_phone_code`, { http.post(`${API['passport-api']}/check_phone_code`, {
phone: values.tel, phone: values.tel,
code: values.veriCode, code: values.veriCode,
area_code: props.country.num area_code: '00'+props.country.num
}).then(res => { }).then(res => {
if (res.data.errno == 0) { if (res.data.errno == 0) {
props.history.push('/passport/set-password', {from: props.location}) props.history.push('/passport/set-password', {from: props.location})
......
...@@ -133,7 +133,7 @@ const FormikConfig = { ...@@ -133,7 +133,7 @@ const FormikConfig = {
props.quickLogin({ props.quickLogin({
phone_num: values.tel, phone_num: values.tel,
phone_code: values.veriCode, phone_code: values.veriCode,
area_code: props.country.num area_code: '00'+props.country.num
}).then(res => { }).then(res => {
if (res.hasError) { if (res.hasError) {
Toast.info(res.msg); Toast.info(res.msg);
......
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