Commit 9f67f62b 9f67f62ba4cb097280ea40a6c519a16df7042650 by zhanghao

commit

1 parent c79fc50d
...@@ -60,6 +60,32 @@ ...@@ -60,6 +60,32 @@
60 </el-dialog> 60 </el-dialog>
61 </el-col> 61 </el-col>
62 <el-col :span="8"> 62 <el-col :span="8">
63 <el-form ref="baomingWeijihuo" :model="baomingWeijihuo" label-width="0px">
64 <el-card class="darkred" shadow="always">
65 <div slot="header" class="clearfix">
66 <span>创建报名未激活的客户</span>
67 </div>
68 <div class="text item">
69 <el-form-item>
70 <el-input placeholder="请输入活动ID" v-model="baomingWeijihuo.actid" clearable></el-input>
71 </el-form-item>
72 <el-form-item>
73 <el-input placeholder="请输入代理人手机号" v-model="baomingWeijihuo.agentPhone" clearable></el-input>
74 </el-form-item>
75 <el-form-item>
76 <el-input placeholder="请输入报名客户手机号" v-model="baomingWeijihuo.customPhone" clearable></el-input>
77 </el-form-item>
78 <div style="margin: 15px 0;"></div>
79 <el-form-item>
80 <el-button round @click="baomingWeijihuoSubmit">创建客户</el-button>
81 </el-form-item>
82 </div>
83 </el-card>
84 </el-form>
85 </el-col>
86 </el-row>
87 <el-row style="margin-bottom: 15px;">
88 <el-col :span="8">
63 <el-form ref="apiTest" :model="apiTest" label-width="0px"> 89 <el-form ref="apiTest" :model="apiTest" label-width="0px">
64 <el-card class="darkred" shadow="always"> 90 <el-card class="darkred" shadow="always">
65 <div slot="header" class="clearfix"> 91 <div slot="header" class="clearfix">
...@@ -179,6 +205,11 @@ ...@@ -179,6 +205,11 @@
179 phone: '', 205 phone: '',
180 code: 1111 206 code: 1111
181 }, 207 },
208 baomingWeijihuo: {
209 actid: '',
210 agentPhone: '',
211 customPhone: ''
212 },
182 queryPhoneCode: { 213 queryPhoneCode: {
183 phone: '', 214 phone: '',
184 huanjing: [] 215 huanjing: []
...@@ -291,6 +322,48 @@ ...@@ -291,6 +322,48 @@
291 }); 322 });
292 }) 323 })
293 }, 324 },
325 baomingWeijihuoSubmit() {
326 const loading = this.$loading({
327 lock: true,
328 text: '加载中...',
329 spinner: 'el-icon-loading',
330 background: 'rgba(0, 0, 0, 0.7)'
331 });
332 let config = {
333 headers: {
334 'Content-Type': 'application/x-www-form-urlencoded'
335 }
336 }
337 this.$http.get('/tool2/baomingWeijihuo?'+this.$qs.stringify({
338 actid: this.baomingWeijihuo.actid,
339 agentPhone: this.baomingWeijihuo.agentPhone,
340 customPhone: this.baomingWeijihuo.customPhone
341 }),config).then((res)=>{
342 console.log(res);
343 loading.close();
344 if(res.data=='success') {
345 this.$message({
346 showClose: true,
347 message: '创建报名未激活客户成功',
348 type: 'success'
349 });
350 } else {
351 this.$message({
352 showClose: true,
353 message: res.data,
354 type: 'error'
355 });
356 }
357 }).catch(error=>{
358 console.log(error);
359 loading.close();
360 this.$message({
361 showClose: true,
362 message: '服务器处理失败,请核对参数!',
363 type: 'error'
364 });
365 })
366 },
294 queryPhoneCodeSubmit() { 367 queryPhoneCodeSubmit() {
295 const loading = this.$loading({ 368 const loading = this.$loading({
296 lock: true, 369 lock: true,
......