Commit 6ac4a936 by FE

country num modify

parent 949632b9
......@@ -45,8 +45,8 @@ class BargainInfo extends Component {
http.post(
`${API['passport-api']}/m/personal/bindPhoneSendCode`,
{
area_code: country.padStart(4, '0'),
phone_num: mobile
area_code: `00${country}`,
phone_num: mobile
}
).then(res => {
const { errno, msg } = res.data;
......@@ -104,7 +104,7 @@ class BargainInfo extends Component {
http.post(
`${API['passport-api']}/m/personal/bindPhone`,
{
area_code: country.padStart(4, '0'),
area_code: `00${country}`,
phone_num: mobile,
code: code,
type: 1,
......
......@@ -447,7 +447,7 @@ class RedPacket extends PureComponent {
}
handleToSend = ({tel, code}) => {
let { validate, seconds, isFirst, isTimer, captchaInstance, country: {num = '0086'} } = this.state;
let { validate, seconds, isFirst, isTimer, captchaInstance, country: {num = '86'} } = this.state;
if(validate) {
if (!isFirst) {
Toast.info('请重新进行滑块验证', 2, null, false);
......@@ -469,7 +469,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 => {
......@@ -550,12 +550,12 @@ class RedPacket extends PureComponent {
// 绑定手机
toContinueBind = (isValid = 1) => {
const { accountInfo: { tel, code}, country: {num = '0086'} } = this.state;
const { accountInfo: { tel, code}, country: {num = '86'} } = this.state;
// is_valid 是否验证 1:验证(默认),0不验证
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,
......
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