签章流程
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
label-width="140px"
|
||||
input-width="400px"
|
||||
:before-action="form1.props.beforeAction"
|
||||
:show-cancel="false"
|
||||
submit-text="保存名片"
|
||||
@success="onFormSuccess"
|
||||
>
|
||||
<!-- v-slot:editor 中的 editor 对应 columns中的 key, form对应 form1.data keyName 对应 columns中的 key -->
|
||||
@@ -49,11 +51,6 @@
|
||||
type: "image",
|
||||
limit: 1
|
||||
},
|
||||
{
|
||||
key: "personName",
|
||||
title: "姓名",
|
||||
type: "text"
|
||||
},
|
||||
{
|
||||
key: "position",
|
||||
title: "职位",
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
type: "object",
|
||||
showLabel: false,
|
||||
showRule: (formData) => {
|
||||
return formData.person.personName != null
|
||||
return vk.getVuex('$user.userInfo.accountType') === 1
|
||||
},
|
||||
columns: [{
|
||||
key: "personName",
|
||||
@@ -75,9 +75,16 @@
|
||||
readonly: true,
|
||||
disabled: true
|
||||
},
|
||||
{
|
||||
key: "bankCardNo",
|
||||
title: "银行卡号",
|
||||
type: "text",
|
||||
readonly: true,
|
||||
disabled: true
|
||||
},
|
||||
{
|
||||
key: "mobile",
|
||||
title: "电话",
|
||||
title: "手机号",
|
||||
type: "text",
|
||||
readonly: true,
|
||||
disabled: true
|
||||
@@ -91,7 +98,7 @@
|
||||
type: "object",
|
||||
showLabel: false,
|
||||
showRule: (formData) => {
|
||||
return formData.company.companyName != null
|
||||
return vk.getVuex('$user.userInfo.accountType') === 2
|
||||
},
|
||||
columns: [{
|
||||
key: "companyName",
|
||||
@@ -283,8 +290,16 @@
|
||||
'fadadaConfirm', 'person', 'company', 'manager', 'contactWechat',
|
||||
'contactEmail', 'contactWechatImage', 'contactQq', 'mailAddress'
|
||||
])
|
||||
// 成功后的逻辑
|
||||
console.log('data: ', data);
|
||||
|
||||
if(data.userInfo.fadadaConfirm && data.userInfo.businessCard == null) {
|
||||
this.$confirm('请完善名片信息', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
vk.navigateTo('/pages/user/user?menu=business-card');
|
||||
})
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
+2
-2
@@ -7,7 +7,7 @@
|
||||
<view class="w-1200">
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="6">
|
||||
<el-menu @select="menuSelect" default-active="fadada" class="el-menu-vertical-demo">
|
||||
<el-menu @select="menuSelect" :default-active="currMenu" class="el-menu-vertical-demo">
|
||||
<el-menu-item index="fadada">
|
||||
<i class="el-icon-menu"></i>
|
||||
<span slot="title">实名认证</span>
|
||||
@@ -35,7 +35,7 @@
|
||||
components: {Personal, BusinessCard},
|
||||
data() {
|
||||
return {
|
||||
currMenu: 'business-card',
|
||||
currMenu: 'fadada',
|
||||
// currMenu: 'fadada',
|
||||
};
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user