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
9f67f62b
...
9f67f62ba4cb097280ea40a6c519a16df7042650
authored
2021-12-09 15:55:26 +0800
by
zhanghao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
c79fc50d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
73 additions
and
0 deletions
src/page/tool2.vue
src/page/tool2.vue
View file @
9f67f62
...
...
@@ -60,6 +60,32 @@
</el-dialog>
</el-col>
<el-col
:span=
"8"
>
<el-form
ref=
"baomingWeijihuo"
:model=
"baomingWeijihuo"
label-width=
"0px"
>
<el-card
class=
"darkred"
shadow=
"always"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
创建报名未激活的客户
</span>
</div>
<div
class=
"text item"
>
<el-form-item>
<el-input
placeholder=
"请输入活动ID"
v-model=
"baomingWeijihuo.actid"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-input
placeholder=
"请输入代理人手机号"
v-model=
"baomingWeijihuo.agentPhone"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-input
placeholder=
"请输入报名客户手机号"
v-model=
"baomingWeijihuo.customPhone"
clearable
></el-input>
</el-form-item>
<div
style=
"margin: 15px 0;"
></div>
<el-form-item>
<el-button
round
@
click=
"baomingWeijihuoSubmit"
>
创建客户
</el-button>
</el-form-item>
</div>
</el-card>
</el-form>
</el-col>
</el-row>
<el-row
style=
"margin-bottom: 15px;"
>
<el-col
:span=
"8"
>
<el-form
ref=
"apiTest"
:model=
"apiTest"
label-width=
"0px"
>
<el-card
class=
"darkred"
shadow=
"always"
>
<div
slot=
"header"
class=
"clearfix"
>
...
...
@@ -179,6 +205,11 @@
phone
:
''
,
code
:
1111
},
baomingWeijihuo
:
{
actid
:
''
,
agentPhone
:
''
,
customPhone
:
''
},
queryPhoneCode
:
{
phone
:
''
,
huanjing
:
[]
...
...
@@ -291,6 +322,48 @@
});
})
},
baomingWeijihuoSubmit
()
{
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
(
'/tool2/baomingWeijihuo?'
+
this
.
$qs
.
stringify
({
actid
:
this
.
baomingWeijihuo
.
actid
,
agentPhone
:
this
.
baomingWeijihuo
.
agentPhone
,
customPhone
:
this
.
baomingWeijihuo
.
customPhone
}),
config
).
then
((
res
)
=>
{
console
.
log
(
res
);
loading
.
close
();
if
(
res
.
data
==
'success'
)
{
this
.
$message
({
showClose
:
true
,
message
:
'创建报名未激活客户成功'
,
type
:
'success'
});
}
else
{
this
.
$message
({
showClose
:
true
,
message
:
res
.
data
,
type
:
'error'
});
}
}).
catch
(
error
=>
{
console
.
log
(
error
);
loading
.
close
();
this
.
$message
({
showClose
:
true
,
message
:
'服务器处理失败,请核对参数!'
,
type
:
'error'
});
})
},
queryPhoneCodeSubmit
()
{
const
loading
=
this
.
$loading
({
lock
:
true
,
...
...
Please
register
or
sign in
to post a comment