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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
src/components/detail/bargain/bargainInfo/index.js
+3
-3
src/components/detail/redPacket/index.js
+4
-4
No files found.
src/components/detail/bargain/bargainInfo/index.js
View file @
6ac4a936
...
...
@@ -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
,
...
...
src/components/detail/redPacket/index.js
View file @
6ac4a936
...
...
@@ -447,7 +447,7 @@ class RedPacket extends PureComponent {
}
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
(
!
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
=
'
00
86'
}
}
=
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
,
...
...
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