--补全认证信息
This commit is contained in:
parent
545e3c25a1
commit
1e87d13d8e
@ -10,8 +10,12 @@ import useUploadCDNImg from "@/use/useUploadImage";
|
|||||||
import Message from "@/components/Message"
|
import Message from "@/components/Message"
|
||||||
import { IMG_CND_Prefix } from "@/common/constant";
|
import { IMG_CND_Prefix } from "@/common/constant";
|
||||||
import SelectEnterpriseType from "./components/SelectEnterpriseType"
|
import SelectEnterpriseType from "./components/SelectEnterpriseType"
|
||||||
|
import { useSelector } from "@/reducers/hooks";
|
||||||
|
import useLogin from "@/use/useLogin";
|
||||||
|
|
||||||
export default ()=>{
|
export default ()=>{
|
||||||
|
const { getAdminUserInfo } = useLogin();
|
||||||
|
const {adminUserInfo} = useSelector(state => state.userInfo);
|
||||||
useEffect(()=>{
|
useEffect(()=>{
|
||||||
initalFormData();
|
initalFormData();
|
||||||
},[]);
|
},[]);
|
||||||
@ -48,10 +52,10 @@ export default ()=>{
|
|||||||
legal_person: [{
|
legal_person: [{
|
||||||
message: "请输入法人名称"
|
message: "请输入法人名称"
|
||||||
}],
|
}],
|
||||||
// legal_person_identity: [{
|
legal_person_identity: [{
|
||||||
// message: "请输入正确法人身份证",
|
message: "请输入正确法人身份证",
|
||||||
// regex: /^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/
|
regex: /^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/
|
||||||
// }],
|
}],
|
||||||
legal_person_identity_url: [{
|
legal_person_identity_url: [{
|
||||||
message: "请上传法人身份证",
|
message: "请上传法人身份证",
|
||||||
validator: (value:any, rule:any)=>{
|
validator: (value:any, rule:any)=>{
|
||||||
@ -68,6 +72,7 @@ export default ()=>{
|
|||||||
const result = await fetchData({...formData})
|
const result = await fetchData({...formData})
|
||||||
if(result.success){
|
if(result.success){
|
||||||
// Taro.eventCenter.trigger("weightList:refresh");
|
// Taro.eventCenter.trigger("weightList:refresh");
|
||||||
|
getAdminUserInfo();
|
||||||
Taro.navigateBack();
|
Taro.navigateBack();
|
||||||
alert.success("保存成功");
|
alert.success("保存成功");
|
||||||
}else{
|
}else{
|
||||||
@ -119,7 +124,7 @@ export default ()=>{
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<View className="certification">
|
<View className="certification">
|
||||||
{/* <Message text="认证不通过,原因:xxx,请重新认证"/> */}
|
{(adminUserInfo as any)?.authentication_status==3&&<Message text={`认证不通过,原因:${(formData as any).authentication_feedback},请重新认证`}/>}
|
||||||
<View className="certification-content">
|
<View className="certification-content">
|
||||||
<View className="certification-title">企业认证</View>
|
<View className="certification-title">企业认证</View>
|
||||||
<FromListCertification type="select" onClick={handleSelectTypeModalShow} value={(formData as any)?.authentication_type_name} label="认证类型" placeholder="企业认证"/>
|
<FromListCertification type="select" onClick={handleSelectTypeModalShow} value={(formData as any)?.authentication_type_name} label="认证类型" placeholder="企业认证"/>
|
||||||
@ -183,7 +188,7 @@ export default ()=>{
|
|||||||
<View className="certification-footer">
|
<View className="certification-footer">
|
||||||
<View className="certification-footer-button">
|
<View className="certification-footer-button">
|
||||||
<Navigator openType="navigateBack">取消</Navigator>
|
<Navigator openType="navigateBack">取消</Navigator>
|
||||||
<View onClick={handleSave}>提交</View>
|
<View onClick={handleSave}>{[3,4].includes((adminUserInfo as any)?.authentication_status)?"重新认证":"提交"}</View>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
@ -222,13 +222,23 @@
|
|||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: #707070;
|
color: #707070;
|
||||||
}
|
}
|
||||||
|
.auth-status,.auth-status-ongoing{
|
||||||
|
color: #EE7500;
|
||||||
|
background-color: #FFE6CE;
|
||||||
|
}
|
||||||
|
.auth-status,.auth-status-adopt{
|
||||||
|
color: #007AFF;
|
||||||
|
background-color: #CDE5FF;
|
||||||
|
}
|
||||||
.auth-tips{
|
.auth-tips{
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: #007aff;
|
color: #007aff;
|
||||||
width: 150px;
|
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
.auth-tips,.auth-tips-adopt{
|
||||||
|
color: #ABABAB;
|
||||||
|
}
|
||||||
.auth-tips text{
|
.auth-tips text{
|
||||||
font-size: 17px;
|
font-size: 17px;
|
||||||
}
|
}
|
||||||
@ -243,6 +253,10 @@
|
|||||||
color: #707070;
|
color: #707070;
|
||||||
display: flex;align-items: center;justify-content: center;
|
display: flex;align-items: center;justify-content: center;
|
||||||
}
|
}
|
||||||
|
.auth-company,.auth-company-adopt{
|
||||||
|
background: #ecf5ff;
|
||||||
|
border: 2px solid #cde5ff;
|
||||||
|
}
|
||||||
|
|
||||||
.tips-modal{
|
.tips-modal{
|
||||||
background: rgba(0,0,0,0.6);
|
background: rgba(0,0,0,0.6);
|
||||||
|
@ -67,7 +67,7 @@ const Header = memo((props:any) => {
|
|||||||
const {data} = props;
|
const {data} = props;
|
||||||
let menu = [{ text: "待配布", icon: "icon-daipeibu", url: "/pages/orderList/index" }, { text: "待付款", icon: "icon-daifukuan", url: "/pages/orderList/index" },
|
let menu = [{ text: "待配布", icon: "icon-daipeibu", url: "/pages/orderList/index" }, { text: "待付款", icon: "icon-daifukuan", url: "/pages/orderList/index" },
|
||||||
{ text: "待发货", icon: "icon-daifahuo", url: "/pages/orderList/index" }, { text: "已发货", icon: "icon-yifahuo", url: "/pages/orderList/index" },
|
{ text: "待发货", icon: "icon-daifahuo", url: "/pages/orderList/index" }, { text: "已发货", icon: "icon-yifahuo", url: "/pages/orderList/index" },
|
||||||
{ text: "退款/售后", icon: "icon-a-tuikuanshouhou", url: "/pages/salesAfterList/index" }];
|
{ text: "退款/售后", icon: "icon-a-tuikuanshouhou", url: "/pages/orderList/index" }];
|
||||||
const { getPhoneNumber } = useLogin();
|
const { getPhoneNumber } = useLogin();
|
||||||
const mGetPhoneNumber = (ev)=>{
|
const mGetPhoneNumber = (ev)=>{
|
||||||
if(ev.detail?.code){
|
if(ev.detail?.code){
|
||||||
@ -106,15 +106,24 @@ const Header = memo((props:any) => {
|
|||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
<View className={styles['auth']}>
|
<View className={styles['auth']}>
|
||||||
<View className={styles['auth-top']}>
|
<View className={`${styles['auth-top']} ${data?.authentication_status==4&&"auth-tips-adopt"}`}>
|
||||||
<View className={styles['auth-status']}>
|
<View className={`${styles['auth-status']} ${data?.authentication_status==2&&styles['auth-status-ongoing']} ${data?.authentication_status==4&&styles['auth-status-adopt']}`}>
|
||||||
<Text>1</Text>
|
<Text>1</Text>
|
||||||
认证不通过
|
{data?.authentication_status==1&&"未认证"}
|
||||||
|
{data?.authentication_status==2&&"认证中"}
|
||||||
|
{data?.authentication_status==3&&"认证不通过"}
|
||||||
|
{data?.authentication_status==4&&"已认证"}
|
||||||
</View>
|
</View>
|
||||||
<Navigator hoverClass="none" url="/pages/certification/index" className={styles['auth-tips']}>重新认证 <Text className="iconfont icon-a-moreback"/></Navigator>
|
{data?.authentication_status==1&&<Navigator hoverClass="none" url="/pages/certification/index" className={styles['auth-tips']}>认证通过后,解锁更多权限 <Text className="iconfont icon-a-moreback"/></Navigator>}
|
||||||
|
{data?.authentication_status==2&&<Navigator hoverClass="none" url="/pages/certification/index" className={styles['auth-tips']}>1-3个工作日,审核完成 <Text className="iconfont icon-a-moreback"/></Navigator>}
|
||||||
|
{data?.authentication_status==3&&<Navigator hoverClass="none" url="/pages/certification/index" className={styles['auth-tips']}>重新认证 <Text className="iconfont icon-a-moreback"/></Navigator>}
|
||||||
|
{data?.authentication_status==4&&<View className={styles['auth-tips']}>认证通过,可以下单啦 <Text className="iconfont icon-a-moreback"/></View>}
|
||||||
</View>
|
</View>
|
||||||
<View className={styles['auth-company']}>
|
<View className={`${styles['auth-company']} ${data?.authentication_status==4&&"auth-tips-adopt"}`}>
|
||||||
{data?.company_name}
|
{data?.authentication_status==1&&"暂未加入或注册组织"}
|
||||||
|
{data?.authentication_status==2&&data?.company_name}
|
||||||
|
{data?.authentication_status==3&&data?.company_name}
|
||||||
|
{data?.authentication_status==4&&data?.company_name}
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
<View className={styles['card-main']}>
|
<View className={styles['card-main']}>
|
||||||
|
@ -65,6 +65,10 @@
|
|||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: #707070;
|
color: #707070;
|
||||||
}
|
}
|
||||||
|
.user-edit-content-company,.user-edit-content-company-adopt{
|
||||||
|
background: #CDF3DF;
|
||||||
|
color: #07C160;
|
||||||
|
}
|
||||||
.user-edit-content-company text{
|
.user-edit-content-company text{
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
|
@ -168,8 +168,8 @@ export default ()=>{
|
|||||||
</Picker>
|
</Picker>
|
||||||
</UserEditList>
|
</UserEditList>
|
||||||
<UserEditList onClick={()=>onNavigate("/pages/certification/index")} label="我的认证" placeholder="待绑定" icon="">
|
<UserEditList onClick={()=>onNavigate("/pages/certification/index")} label="我的认证" placeholder="待绑定" icon="">
|
||||||
<View className="user-edit-content-company">
|
<View className={`user-edit-content-company ${(formData as any)?.authentication_status==4&&"user-edit-content-company-adopt"}`}>
|
||||||
<Text className="iconfont "/> 未认证
|
<Text className="iconfont "/> {(formData as any)?.authentication_status==4?"已认证":"未认证"}
|
||||||
</View>
|
</View>
|
||||||
</UserEditList>
|
</UserEditList>
|
||||||
<UserEditList label="创建人" data={(formData as any)?.founder_user_name} placeholder="完善公司/组织信息" icon=""/>
|
<UserEditList label="创建人" data={(formData as any)?.founder_user_name} placeholder="完善公司/组织信息" icon=""/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user