Commit 9f67f62b 9f67f62ba4cb097280ea40a6c519a16df7042650 by zhanghao

commit

1 parent c79fc50d
......@@ -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,
......