|
@@ -32,10 +32,21 @@
|
|
|
<el-input :disabled="showG" v-model="applyform.company" placeholder="请输入您所在的公司或者机构名称"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="姓名:">
|
|
|
- <el-input :disabled="showG" v-model="applyform.applicant" placeholder="请输入您的姓名"></el-input>
|
|
|
+ <el-input :disabled="showG" v-model="applyform.contacts" placeholder="请输入您的姓名"></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="手机号:">
|
|
|
- <el-input :disabled="showG" v-model="applyform.mobile" placeholder="请输入您的手机号码"></el-input>
|
|
|
+ <el-form-item label="手机号:" class="only">
|
|
|
+ <el-input :disabled="showG" v-model="applyform.mobile" placeholder="请输入您的手机号码">
|
|
|
+ <template slot="prepend">
|
|
|
+ <el-select v-model="valueMobile" placeholder="请选择":disabled="showG" >
|
|
|
+ <el-option
|
|
|
+ v-for="item in options"
|
|
|
+ :key="item.code"
|
|
|
+ :label="item.code"
|
|
|
+ :value="item.code">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </template>
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
|
<!-- <el-form-item label="其他联系方式:" class="textareabox">
|
|
|
<textarea cols="30" rows="2" v-model="applyform.desc" placeholder="请输入您的其他联系方式 如:微信、邮箱等"></textarea>
|
|
@@ -44,7 +55,7 @@
|
|
|
<el-input :disabled="showG" type="textarea" v-model="applyform.other" placeholder="请输入您的其他联系方式 如:微信、邮箱等"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="所在地:" class="location-box">
|
|
|
- <el-select :disabled="showG" v-model="applyform.country" class="firstbox" clearable placeholder="所属省份" @change="getcont">
|
|
|
+ <el-select :disabled="showG" v-model="applyform.country" class="firstbox" clearable placeholder="所属国家" @change="getcont">
|
|
|
<el-option
|
|
|
v-for="item in countryOptions"
|
|
|
:key="item.id"
|
|
@@ -52,7 +63,7 @@
|
|
|
:value="item.id">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
- <el-select :disabled="showG" v-model="applyform.area" class="firstbox" clearable placeholder="所属城市">
|
|
|
+ <el-select :disabled="showG" v-model="applyform.area" class="firstbox" clearable placeholder="所属省份">
|
|
|
<el-option
|
|
|
v-for="item in cityOptions"
|
|
|
:key="item.id"
|
|
@@ -133,6 +144,8 @@ import {ajax} from "../../assets/js/common.js"
|
|
|
export default{
|
|
|
data(){
|
|
|
return{
|
|
|
+ valueMobile:'',
|
|
|
+ options:[],
|
|
|
getjindu:0,
|
|
|
showG:false,
|
|
|
dialogtit:false,
|
|
@@ -169,7 +182,7 @@ export default{
|
|
|
],
|
|
|
applyform:{
|
|
|
company:"",
|
|
|
- applicant:'',
|
|
|
+ contacts:'',
|
|
|
mobile:"",
|
|
|
other:'',
|
|
|
country:"",
|
|
@@ -218,8 +231,20 @@ export default{
|
|
|
this.getCountry();
|
|
|
// this.getStatus();
|
|
|
this.loginup();
|
|
|
+ this.getmobile();
|
|
|
},
|
|
|
methods:{
|
|
|
+ //获取国家手机前缀
|
|
|
+ getmobile(){
|
|
|
+ ajax(this,this.extendApi.phoneCountry,'',(res)=>{
|
|
|
+ if(res.code == 200){
|
|
|
+ this.options = res.data;
|
|
|
+ }else{
|
|
|
+
|
|
|
+ }
|
|
|
+ },'GET')
|
|
|
+ },
|
|
|
+
|
|
|
//跳转登陆
|
|
|
jumptologin(){
|
|
|
this.$router.push({path:"/"});
|
|
@@ -237,30 +262,58 @@ export default{
|
|
|
getStatus(){
|
|
|
ajax(this,this.extendApi.applyStatus,'',(res)=>{
|
|
|
if(res.code == 200){
|
|
|
- if(res.data.status == 1){//待申请
|
|
|
- this.getjindu = 1;
|
|
|
- }else if(res.data.status == 2){//以申请
|
|
|
- this.getjindu = 2;
|
|
|
- this.showG = true;
|
|
|
- this.applyform = res.data;
|
|
|
- }else if(res.data.status == 9){//以审核
|
|
|
- this.getjindu = 3;
|
|
|
- this.showG = true;
|
|
|
- this.$notify({
|
|
|
- title: '成功',
|
|
|
- message: '您的申请已通过审核!',
|
|
|
- type: 'success',
|
|
|
- duration:'5000'
|
|
|
- });
|
|
|
- }else if(res.data.status == -1){//以拒绝
|
|
|
+ // if(res.data.status == 1){//待申请
|
|
|
+ // this.getjindu = 1;
|
|
|
+ // }else if(res.data.status == 2){//以申请
|
|
|
+ // this.getjindu = 2;
|
|
|
+ // this.showG = true;
|
|
|
+ // this.applyform = res.data;
|
|
|
+ // }else if(res.data.status == 9){//以审核
|
|
|
+ // this.getjindu = 3;
|
|
|
+ // this.showG = true;
|
|
|
+ // this.$notify({
|
|
|
+ // title: '成功',
|
|
|
+ // message: '您的申请已通过审核!',
|
|
|
+ // type: 'success',
|
|
|
+ // duration:'5000'
|
|
|
+ // });
|
|
|
+ // }else if(res.data.status == -1){//以拒绝
|
|
|
+ // this.getjindu = 1;
|
|
|
+ // this.showG = false;
|
|
|
+ // this.$notify({
|
|
|
+ // title: '提示',
|
|
|
+ // message: '您的申请已被拒绝!',
|
|
|
+ // type: 'warning',
|
|
|
+ // duration:'2000'
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ if(res.data.isApplyed == 1){//以申请
|
|
|
this.getjindu = 1;
|
|
|
- this.showG = false;
|
|
|
- this.$notify({
|
|
|
- title: '提示',
|
|
|
- message: '您的申请已被拒绝!',
|
|
|
- type: 'warning',
|
|
|
- duration:'2000'
|
|
|
- });
|
|
|
+ if(res.data.info.status == 0){//待审核
|
|
|
+ this.getjindu = 2;
|
|
|
+ this.showG = true;
|
|
|
+ }else if(res.data.info.status == 1){//以通过
|
|
|
+ this.getjindu = 3;
|
|
|
+ this.showG = true;
|
|
|
+ this.applyform = res.data.info;
|
|
|
+ this.$notify({
|
|
|
+ title: '成功',
|
|
|
+ message: '您的申请已通过审核!',
|
|
|
+ type: 'success',
|
|
|
+ duration:'5000'
|
|
|
+ });
|
|
|
+ }else if(res.data.info.status == -1){//以拒绝
|
|
|
+ this.getjindu = 1;
|
|
|
+ this.showG = false;
|
|
|
+ this.$notify({
|
|
|
+ title: '提示',
|
|
|
+ message: '您的申请已被拒绝!',
|
|
|
+ type: 'warning',
|
|
|
+ duration:'2000'
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }else{//未申请
|
|
|
+
|
|
|
}
|
|
|
}else{
|
|
|
|