--补全认证信息
This commit is contained in:
@@ -10,8 +10,12 @@ import useUploadCDNImg from "@/use/useUploadImage";
|
||||
import Message from "@/components/Message"
|
||||
import { IMG_CND_Prefix } from "@/common/constant";
|
||||
import SelectEnterpriseType from "./components/SelectEnterpriseType"
|
||||
import { useSelector } from "@/reducers/hooks";
|
||||
import useLogin from "@/use/useLogin";
|
||||
|
||||
export default ()=>{
|
||||
const { getAdminUserInfo } = useLogin();
|
||||
const {adminUserInfo} = useSelector(state => state.userInfo);
|
||||
useEffect(()=>{
|
||||
initalFormData();
|
||||
},[]);
|
||||
@@ -48,10 +52,10 @@ export default ()=>{
|
||||
legal_person: [{
|
||||
message: "请输入法人名称"
|
||||
}],
|
||||
// legal_person_identity: [{
|
||||
// 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]$/
|
||||
// }],
|
||||
legal_person_identity: [{
|
||||
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]$/
|
||||
}],
|
||||
legal_person_identity_url: [{
|
||||
message: "请上传法人身份证",
|
||||
validator: (value:any, rule:any)=>{
|
||||
@@ -68,6 +72,7 @@ export default ()=>{
|
||||
const result = await fetchData({...formData})
|
||||
if(result.success){
|
||||
// Taro.eventCenter.trigger("weightList:refresh");
|
||||
getAdminUserInfo();
|
||||
Taro.navigateBack();
|
||||
alert.success("保存成功");
|
||||
}else{
|
||||
@@ -119,7 +124,7 @@ export default ()=>{
|
||||
|
||||
return (
|
||||
<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-title">企业认证</View>
|
||||
<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-button">
|
||||
<Navigator openType="navigateBack">取消</Navigator>
|
||||
<View onClick={handleSave}>提交</View>
|
||||
<View onClick={handleSave}>{[3,4].includes((adminUserInfo as any)?.authentication_status)?"重新认证":"提交"}</View>
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
|
||||
Reference in New Issue
Block a user