企业认证
This commit is contained in:
@@ -97,13 +97,13 @@
|
||||
};
|
||||
},
|
||||
created(){
|
||||
|
||||
console.log(this.$Route)
|
||||
|
||||
// 读取配置信息
|
||||
appliesCreate().then(res=>{
|
||||
console.log(res)
|
||||
this.industry = res.industries
|
||||
this.formType = this.$Route.query.formType
|
||||
this.name = res.info.name
|
||||
this.industryIndex = res.industries.findIndex(val => val.industry_id === res.info.industry.industry_id) || 0
|
||||
this.industry = res
|
||||
this.formType = this.$Route.query.form_type
|
||||
if(this.formType === 'put'){
|
||||
appliesInfo().then(formValue => {
|
||||
for(let val of formValue.categories){
|
||||
@@ -111,12 +111,14 @@
|
||||
this.categorys.push(val.category_id)
|
||||
}
|
||||
}
|
||||
this.category = formValue.categories
|
||||
this.corporate = formValue.certification.name
|
||||
this.identity = formValue.certification.idcard
|
||||
this.org = formValue.certification.code
|
||||
this.logo = formValue.cover
|
||||
this.license = formValue.certification.license
|
||||
this.name = formValue.name
|
||||
this.industryIndex = this.industry.findIndex(val=> val.industry_id === formValue.industry.industry_id)
|
||||
this.category = formValue.categories
|
||||
this.corporate = formValue.certification.name
|
||||
this.identity = formValue.certification.idcard
|
||||
this.org = formValue.certification.code
|
||||
this.logo = formValue.cover
|
||||
this.license = formValue.certification.license
|
||||
}).catch(valueErr => {
|
||||
uni.showToast({
|
||||
title: valueErr.message,
|
||||
@@ -124,7 +126,7 @@
|
||||
})
|
||||
})
|
||||
}else{
|
||||
this.category = res.info.categories
|
||||
this.getAppliesCategory(res[0].industry_id)
|
||||
}
|
||||
}).catch(err =>{
|
||||
uni.showToast({
|
||||
@@ -181,8 +183,13 @@
|
||||
// 选择器
|
||||
changePicker(e){
|
||||
this.industryIndex = e.detail.value
|
||||
this.getAppliesCategory(this.industry[e.detail.value].industry_id)
|
||||
},
|
||||
|
||||
// 获取经营类目
|
||||
getAppliesCategory(id){
|
||||
appliesCategory({
|
||||
industry: this.industry[e.detail.value].industry_id,
|
||||
industry: id,
|
||||
}).then(res => {
|
||||
this.category = res
|
||||
}).catch(err => {
|
||||
@@ -222,8 +229,7 @@
|
||||
// 内容
|
||||
.content{
|
||||
.header{
|
||||
height: 15vh;
|
||||
padding-bottom: $padding * 2;
|
||||
padding: $padding * 2 0;
|
||||
box-sizing: border-box;
|
||||
@extend .vertical;
|
||||
.title{
|
||||
@@ -281,7 +287,7 @@
|
||||
}
|
||||
}
|
||||
.logo{
|
||||
min-height: 98rpx;
|
||||
height: $padding + 98;
|
||||
padding-bottom: $padding;
|
||||
.logo-cover{
|
||||
position: absolute;
|
||||
@@ -301,13 +307,12 @@
|
||||
.btns{
|
||||
padding-top: $padding * 2;
|
||||
button{
|
||||
background: $text-price;
|
||||
background: $mian-color-deep;
|
||||
border-radius: 0;
|
||||
height: 90rpx;
|
||||
line-height: 90rpx;
|
||||
font-size: $title-size;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
&::after{
|
||||
border: none;
|
||||
}
|
||||
@@ -335,20 +340,19 @@
|
||||
@extend .nowrap;
|
||||
&.show{
|
||||
color: white;
|
||||
background-color: $text-price;
|
||||
background-color: $mian-color-deep;
|
||||
}
|
||||
}
|
||||
}
|
||||
.btns{
|
||||
padding-top: $padding * 2;
|
||||
button{
|
||||
background: $text-price;
|
||||
background: $mian-color-deep;
|
||||
border-radius: 0;
|
||||
height: 90rpx;
|
||||
line-height: 90rpx;
|
||||
font-size: $title-size;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
&::after{
|
||||
border: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user