Commit 6ac4a936 by FE

country num modify

parent 949632b9
...@@ -45,7 +45,7 @@ class BargainInfo extends Component { ...@@ -45,7 +45,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 => {
...@@ -104,7 +104,7 @@ class BargainInfo extends Component { ...@@ -104,7 +104,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,
......
...@@ -447,7 +447,7 @@ class RedPacket extends PureComponent { ...@@ -447,7 +447,7 @@ class RedPacket extends PureComponent {
} }
handleToSend = ({tel, code}) => { 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(validate) {
if (!isFirst) { if (!isFirst) {
Toast.info('请重新进行滑块验证', 2, null, false); Toast.info('请重新进行滑块验证', 2, null, false);
...@@ -469,7 +469,7 @@ class RedPacket extends PureComponent { ...@@ -469,7 +469,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 => {
...@@ -550,12 +550,12 @@ class RedPacket extends PureComponent { ...@@ -550,12 +550,12 @@ class RedPacket extends PureComponent {
// 绑定手机 // 绑定手机
toContinueBind = (isValid = 1) => { 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不验证 // is_valid 是否验证 1:验证(默认),0不验证
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,
......
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