企业认证
This commit is contained in:
@@ -101,6 +101,13 @@
|
|||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "关于我们"
|
"navigationBarTitleText": "关于我们"
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
"path": "pages/company/approve",
|
||||||
|
"name": "companyApprove",
|
||||||
|
"auth": true,
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "企业认证"
|
||||||
|
}
|
||||||
}],
|
}],
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
"navigationStyle": "custom",
|
"navigationStyle": "custom",
|
||||||
|
|||||||
@@ -97,13 +97,13 @@
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
created(){
|
created(){
|
||||||
|
|
||||||
|
console.log(this.$Route)
|
||||||
|
|
||||||
// 读取配置信息
|
// 读取配置信息
|
||||||
appliesCreate().then(res=>{
|
appliesCreate().then(res=>{
|
||||||
console.log(res)
|
this.industry = res
|
||||||
this.industry = res.industries
|
this.formType = this.$Route.query.form_type
|
||||||
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
|
|
||||||
if(this.formType === 'put'){
|
if(this.formType === 'put'){
|
||||||
appliesInfo().then(formValue => {
|
appliesInfo().then(formValue => {
|
||||||
for(let val of formValue.categories){
|
for(let val of formValue.categories){
|
||||||
@@ -111,6 +111,8 @@
|
|||||||
this.categorys.push(val.category_id)
|
this.categorys.push(val.category_id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.name = formValue.name
|
||||||
|
this.industryIndex = this.industry.findIndex(val=> val.industry_id === formValue.industry.industry_id)
|
||||||
this.category = formValue.categories
|
this.category = formValue.categories
|
||||||
this.corporate = formValue.certification.name
|
this.corporate = formValue.certification.name
|
||||||
this.identity = formValue.certification.idcard
|
this.identity = formValue.certification.idcard
|
||||||
@@ -124,7 +126,7 @@
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
this.category = res.info.categories
|
this.getAppliesCategory(res[0].industry_id)
|
||||||
}
|
}
|
||||||
}).catch(err =>{
|
}).catch(err =>{
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@@ -181,8 +183,13 @@
|
|||||||
// 选择器
|
// 选择器
|
||||||
changePicker(e){
|
changePicker(e){
|
||||||
this.industryIndex = e.detail.value
|
this.industryIndex = e.detail.value
|
||||||
|
this.getAppliesCategory(this.industry[e.detail.value].industry_id)
|
||||||
|
},
|
||||||
|
|
||||||
|
// 获取经营类目
|
||||||
|
getAppliesCategory(id){
|
||||||
appliesCategory({
|
appliesCategory({
|
||||||
industry: this.industry[e.detail.value].industry_id,
|
industry: id,
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.category = res
|
this.category = res
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
@@ -222,8 +229,7 @@
|
|||||||
// 内容
|
// 内容
|
||||||
.content{
|
.content{
|
||||||
.header{
|
.header{
|
||||||
height: 15vh;
|
padding: $padding * 2 0;
|
||||||
padding-bottom: $padding * 2;
|
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@extend .vertical;
|
@extend .vertical;
|
||||||
.title{
|
.title{
|
||||||
@@ -281,7 +287,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.logo{
|
.logo{
|
||||||
min-height: 98rpx;
|
height: $padding + 98;
|
||||||
padding-bottom: $padding;
|
padding-bottom: $padding;
|
||||||
.logo-cover{
|
.logo-cover{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -301,13 +307,12 @@
|
|||||||
.btns{
|
.btns{
|
||||||
padding-top: $padding * 2;
|
padding-top: $padding * 2;
|
||||||
button{
|
button{
|
||||||
background: $text-price;
|
background: $mian-color-deep;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
height: 90rpx;
|
height: 90rpx;
|
||||||
line-height: 90rpx;
|
line-height: 90rpx;
|
||||||
font-size: $title-size;
|
font-size: $title-size;
|
||||||
color: white;
|
color: white;
|
||||||
font-weight: bold;
|
|
||||||
&::after{
|
&::after{
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
@@ -335,20 +340,19 @@
|
|||||||
@extend .nowrap;
|
@extend .nowrap;
|
||||||
&.show{
|
&.show{
|
||||||
color: white;
|
color: white;
|
||||||
background-color: $text-price;
|
background-color: $mian-color-deep;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.btns{
|
.btns{
|
||||||
padding-top: $padding * 2;
|
padding-top: $padding * 2;
|
||||||
button{
|
button{
|
||||||
background: $text-price;
|
background: $mian-color-deep;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
height: 90rpx;
|
height: 90rpx;
|
||||||
line-height: 90rpx;
|
line-height: 90rpx;
|
||||||
font-size: $title-size;
|
font-size: $title-size;
|
||||||
color: white;
|
color: white;
|
||||||
font-weight: bold;
|
|
||||||
&::after{
|
&::after{
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,8 @@
|
|||||||
<view class="item" @click="$Router.push({name: 'instrumentBasics'})">店员管理</view>
|
<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: 'instrumentCustomer'})">成交客户</view>
|
||||||
<view class="item" @click="$Router.push({name: 'Personal'})">个人认证</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 class="item" @click="$Router.push({name: 'setting'})">设置中心</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -14,6 +14,9 @@ import store from '../store/index'
|
|||||||
// })
|
// })
|
||||||
|
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
|
h5: {
|
||||||
|
paramsToQuery: true
|
||||||
|
},
|
||||||
platform: process.env.VUE_APP_PLATFORM,
|
platform: process.env.VUE_APP_PLATFORM,
|
||||||
routes: [...ROUTES]
|
routes: [...ROUTES]
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user