|
|
@@ -12,71 +12,7 @@ import WemetaButton from "@/components/buttons/WemetaButton";
|
|
|
import style from './index.module.less'
|
|
|
import { pickAndUploadImageWithCrop } from "@/utils/upload";
|
|
|
|
|
|
-// const RenderEntCard = (
|
|
|
-// agent: TAgentDetail | null,
|
|
|
-// navToUrl: (url: string) => void
|
|
|
-// ) => {
|
|
|
|
|
|
-// if (!agent?.isEnt) {
|
|
|
-// return <View className="px-16 w-full pt-12">
|
|
|
-// <ListWrapper>
|
|
|
-// <Vie// arrow
|
|
|
-// onClick={() => { navToUrl('/pages/editor-pages/editor-ent-name/index') }}
|
|
|
-// >
|
|
|
-// <View className="flex items-center font-normal">
|
|
|
-// <View className="flex-1 font-normal">企业</View>
|
|
|
-// <View className="text-gray-5 truncate max-w-[188px]">
|
|
|
-// {agent?.entName}
|
|
|
-// </View>
|
|
|
-// </View>
|
|
|
-// </View>
|
|
|
-// <View
|
|
|
-// arrow
|
|
|
-// onClick={() => { navToUrl('/pages/editor-pages/editor-position/index') }}
|
|
|
-// >
|
|
|
-// <View className="flex items-center font-normal">
|
|
|
-// <View className="flex-1 font-normal">职位</View>
|
|
|
-// <View className="text-gray-5 mr-8">{agent?.position}</View>
|
|
|
-// </View>
|
|
|
-// </View>
|
|
|
-// </ListWrapper>
|
|
|
-// </View>;
|
|
|
-// }
|
|
|
-
|
|
|
-// return (
|
|
|
-// <View className="px-16 w-full pt-12">
|
|
|
-// <ListWrapper>
|
|
|
-// <Vie// >
|
|
|
-// <View className="flex items-center font-normal">
|
|
|
-// <View className="flex-1 font-normal">企业</View>
|
|
|
-// <View className="text-gray-5 truncate max-w-[188px]">
|
|
|
-// {agent?.entName}
|
|
|
-// </View>
|
|
|
-// </View>
|
|
|
-// </View>// <View className="flex items-center font-normal">
|
|
|
-// <View className="flex-1 font-normal">企业认证</View>
|
|
|
-// <TagCertificated />
|
|
|
-// </View>
|
|
|
-// </View>
|
|
|
-// <View
|
|
|
-// arrow
|
|
|
-// onClick={() => { navToUrl('/pages/editor-pages/editor-position/index') }}
|
|
|
-// >
|
|
|
-// <View className="flex items-center font-normal">
|
|
|
-// <View className="flex-1 font-normal">职位</View>
|
|
|
-// <View className="text-gray-5 mr-8">{agent?.position}</View>
|
|
|
-// </View>
|
|
|
-// {/* <PickerSingleColumn headerTitle="您的岗位" options={options} selected={selected} onPicked={handlePicked} showPicker={showPicker} setShowPicker={setShowPicker}>
|
|
|
-// <View className="flex items-center font-normal" onClick={() => setShowPicker(true)}>
|
|
|
-// <View className="flex-1 font-normal">职位</View>
|
|
|
-// <View className="text-gray-5 mr-8">{agent?.position}</View>
|
|
|
-// </View>
|
|
|
-// </PickerSingleColumn> */}
|
|
|
-// </View>
|
|
|
-// </ListWrapper>
|
|
|
-// </View>
|
|
|
-// );
|
|
|
-// };
|
|
|
|
|
|
export default function Index() {
|
|
|
const router = useRouter();
|
|
|
@@ -144,7 +80,7 @@ export default function Index() {
|
|
|
<NavBarNormal backText="数字名片"></NavBarNormal>
|
|
|
<View className="p-16 w-full pb-126">
|
|
|
<View className="flex flex-col gap-16 w-full">
|
|
|
- <View>
|
|
|
+ <View className="flex flex-col gap-6">
|
|
|
<View className={style.label}>姓名 <Text className="text-red leading-22 text-14">*</Text> </View>
|
|
|
<View className={style.value}>
|
|
|
<WemetaInput
|
|
|
@@ -157,7 +93,7 @@ export default function Index() {
|
|
|
/>
|
|
|
</View>
|
|
|
</View>
|
|
|
- <View>
|
|
|
+ <View className="flex flex-col gap-6">
|
|
|
<View className={style.label}>职位</View>
|
|
|
<View className={style.value}>
|
|
|
<WemetaInput
|
|
|
@@ -170,7 +106,7 @@ export default function Index() {
|
|
|
</View>
|
|
|
</View>
|
|
|
|
|
|
- <View>
|
|
|
+ <View className="flex flex-col gap-6">
|
|
|
<View className={style.label}>企业</View>
|
|
|
<View className={style.value}>
|
|
|
<WemetaInput
|
|
|
@@ -182,7 +118,7 @@ export default function Index() {
|
|
|
/>
|
|
|
</View>
|
|
|
</View>
|
|
|
- <View>
|
|
|
+ <View className="flex flex-col gap-6">
|
|
|
<View className={style.label}>手机号</View>
|
|
|
<View className={style.value}>
|
|
|
<WemetaInput
|
|
|
@@ -194,7 +130,7 @@ export default function Index() {
|
|
|
/>
|
|
|
</View>
|
|
|
</View>
|
|
|
- <View>
|
|
|
+ <View className="flex flex-col gap-6">
|
|
|
<View className={style.label}>联系邮箱</View>
|
|
|
<View className={style.value}>
|
|
|
<WemetaInput
|
|
|
@@ -206,7 +142,7 @@ export default function Index() {
|
|
|
/>
|
|
|
</View>
|
|
|
</View>
|
|
|
- <View>
|
|
|
+ <View className="flex flex-col gap-6">
|
|
|
|
|
|
<View className={style.label}>
|
|
|
<View className="flex-1 font-pingfangSCMedium font-medium">地址</View>
|
|
|
@@ -223,11 +159,10 @@ export default function Index() {
|
|
|
/>
|
|
|
</View>
|
|
|
</View>
|
|
|
- <View
|
|
|
- >
|
|
|
+ <View className="flex flex-col gap-6">
|
|
|
<View className={style.label}>
|
|
|
<View className="flex-1">二维码</View>
|
|
|
- {agentEdit?.qrCodeUrl?.length && <View className="flex items-center font-pingfangSCMedium font-medium text-primary gap-16">
|
|
|
+ {!!agentEdit?.qrCodeUrl?.length && <View className="flex items-center font-pingfangSCMedium font-medium text-primary gap-16">
|
|
|
<View onClick={handleUpload}>替换</View>
|
|
|
<View>|</View>
|
|
|
<View onClick={() => handleFieldChange('qrCodeUrl', '')}>清空</View>
|
|
|
@@ -242,7 +177,6 @@ export default function Index() {
|
|
|
</View>
|
|
|
</View>
|
|
|
|
|
|
- {/* {RenderEntCard(agent, navToUrl)} */}
|
|
|
<BottomBar>
|
|
|
<WemetaButton disabled={disabled} className="flex-1" onClick={handleSave}>保存</WemetaButton>
|
|
|
</BottomBar>
|