Commit 5576727c by zhanghaozhe

Merge branch 'international-area-code'

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