Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
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
office
haoban-3
Commits
08a4fabf
Commit
08a4fabf
authored
Apr 20, 2021
by
陈羽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 添加授权短信校验限制
parent
6ffbb058
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
29 deletions
+5
-29
authMerchant-dailog.vue
src/views/business/authMerchant-dailog.vue
+5
-29
No files found.
src/views/business/authMerchant-dailog.vue
View file @
08a4fabf
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
</el-dialog>
</el-dialog>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getRequest
,
postRequest
}
from
'@/api/api'
;
import
{
getRequest
}
from
'@/api/api'
;
import
errMsg
from
'@/common/js/error'
;
import
errMsg
from
'@/common/js/error'
;
import
showMsg
from
'@/common/js/showmsg'
;
import
showMsg
from
'@/common/js/showmsg'
;
import
{
_debounce
}
from
'@/common/js/public'
;
import
{
_debounce
}
from
'@/common/js/public'
;
...
@@ -169,38 +169,14 @@ export default {
...
@@ -169,38 +169,14 @@ export default {
}
}
that
.
$refs
[
form
].
validate
(
async
valid
=>
{
that
.
$refs
[
form
].
validate
(
async
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
that
.
$emit
(
'refreshData'
,
'success'
);
const
flag
=
await
that
.
checkCode
();
// const flag = await that.checkCode();
if
(
!
flag
)
{
// if (!flag) {
// return false;
// }
// that.toAddPost();
}
else
{
return
false
;
return
false
;
}
}
});
that
.
$emit
(
'refreshData'
,
'success'
);
},
}
else
{
toAddPost
()
{
const
that
=
this
;
let
params
=
{
enterpriseId
:
that
.
partForm
.
enterpriseId
,
wxEnterpriseId
:
that
.
wxEnterpriseId
,
version
:
that
.
partForm
.
version
};
postRequest
(
'/haoban-manage3-web/wx-enterprise-bind'
,
params
)
.
then
(
res
=>
{
let
resData
=
res
.
data
;
if
(
resData
.
errorCode
==
1
)
{
that
.
$emit
(
'refreshData'
);
return
false
;
return
false
;
}
}
errMsg
.
errorMsg
(
resData
);
})
.
catch
(
function
(
error
)
{
that
.
$message
.
error
({
duration
:
1000
,
message
:
error
.
message
});
});
});
},
},
/**
/**
...
...
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