Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baiguangyao
mr-julyedu
Commits
6ac4a936
Commit
6ac4a936
authored
Sep 25, 2019
by
FE
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
country num modify
parent
949632b9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
src/components/detail/bargain/bargainInfo/index.js
+2
-2
src/components/detail/redPacket/index.js
+4
-4
No files found.
src/components/detail/bargain/bargainInfo/index.js
View file @
6ac4a936
...
@@ -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
,
...
...
src/components/detail/redPacket/index.js
View file @
6ac4a936
...
@@ -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
=
'
00
86'
}
}
=
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
=
'
00
86'
}
}
=
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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment