Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张浩
/
br-client
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
7fe40c65
...
7fe40c6583de1324db275e98e1a8cf030b83f8f8
authored
2024-08-06 17:29:21 +0800
by
牛先锋
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更改设置验证码工具调用运营平台接口
1 parent
1c88dc71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
67 additions
and
3 deletions
src/page/tool.vue
src/page/tool.vue
View file @
7fe40c6
...
...
@@ -12,7 +12,14 @@
<el-input
placeholder=
"请输入手机号"
v-model=
"smsCode.phone"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-input
placeholder=
"请输入验证码"
v-model=
"smsCode.code"
clearable
></el-input>
<el-select
v-model=
"setPhoneCode.huanjing"
placeholder=
"请选择系统"
>
<el-option
v-for=
"item in setPhoneCodeOptions"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</el-form-item>
<div
style=
"margin: 15px 0;"
></div>
<el-form-item>
...
...
@@ -1217,6 +1224,24 @@
value
:
'1'
,
label
:
'线上环境'
}],
setPhoneCode
:
{
phone
:
''
,
huanjing
:
[]
},
setPhoneCodeOptions
:
[{
value
:
'1'
,
label
:
'小佗APP'
},
{
value
:
'3'
,
label
:
'活动报名'
},
{
value
:
'6'
,
label
:
'小程序登录'
},
{
value
:
'5'
,
label
:
'云激活'
}],
dialogQueryPhoneCode
:
false
,
myQueryPhoneCode
:
''
,
createAPI
:
{
...
...
@@ -1890,13 +1915,13 @@
});
})
},
smsCodeSubmit
()
{
smsCodeSubmit
1
()
{
let
config
=
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
}
this
.
$http
.
get
(
'/tool/smsCode?'
+
this
.
$qs
.
stringify
({
this
.
$http
.
get
(
'/tool/smsCode
New
?'
+
this
.
$qs
.
stringify
({
phone
:
this
.
smsCode
.
phone
,
code
:
this
.
smsCode
.
code
}),
config
).
then
((
res
)
=>
{
...
...
@@ -1929,6 +1954,45 @@
});
})
},
smsCodeSubmit
()
{
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
'加载中...'
,
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.7)'
});
let
config
=
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
}
this
.
$http
.
get
(
'/tool/smsCodeNew?'
+
this
.
$qs
.
stringify
({
phone
:
this
.
smsCode
.
phone
,
businessType
:
this
.
setPhoneCode
.
huanjing
.
toString
()
}),
config
).
then
((
res
)
=>
{
console
.
log
(
res
);
if
(
res
.
data
==
''
)
{
this
.
$message
({
showClose
:
true
,
message
:
'运营平台异常'
,
type
:
'error'
});
}
else
{
this
.
myQueryPhoneCode
=
res
.
data
this
.
dialogQueryPhoneCode
=
true
}
loading
.
close
();
}).
catch
(
error
=>
{
console
.
log
(
error
);
loading
.
close
();
this
.
$message
({
showClose
:
true
,
message
:
'处理失败,请确认运营平台是否异常!'
,
type
:
'error'
});
})
},
activityConfigSubmit
()
{
// this.$refs['activityConfig'].validate((valid) => {
// if(valid) {
...
...
Please
register
or
sign in
to post a comment