企业认证

This commit is contained in:
唐明明
2021-09-24 17:27:24 +08:00
parent d1c5a052e4
commit f02c1a75b3
4 changed files with 37 additions and 22 deletions

View File

@@ -101,6 +101,13 @@
"style": {
"navigationBarTitleText": "关于我们"
}
}, {
"path": "pages/company/approve",
"name": "companyApprove",
"auth": true,
"style": {
"navigationBarTitleText": "企业认证"
}
}],
"globalStyle": {
"navigationStyle": "custom",

View File

@@ -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;
}

View File

@@ -7,7 +7,8 @@
<view class="item" @click="$Router.push({name: 'instrumentBasics'})">店员管理</view>
<view class="item" @click="$Router.push({name: 'instrumentCustomer'})">成交客户</view>
<view class="item" @click="$Router.push({name: 'Personal'})">个人认证</view>
<view class="item" @click="$Router.push({name: 'instrumentBasics'})">企业认证</view>
<view class="item" @click="$Router.push({name: 'companyApprove'})">企业认证</view>
<view class="item" @click="$Router.push({name: 'companyApprove', params: { form_type: 'put' }})">编辑企业认证</view>
<view class="item" @click="$Router.push({name: 'setting'})">设置中心</view>
</view>
</view>

View File

@@ -14,6 +14,9 @@ import store from '../store/index'
// })
const router = createRouter({
h5: {
paramsToQuery: true
},
platform: process.env.VUE_APP_PLATFORM,
routes: [...ROUTES]
})