Browse Source

🎨 按要求隐藏问AI

快乐的梦鱼 1 month ago
parent
commit
9b249551d6
2 changed files with 28 additions and 23 deletions
  1. 2 2
      src/pages/home/index.vue
  2. 26 21
      src/pages/home/village/dialogs/JoinDialog.vue

+ 2 - 2
src/pages/home/index.vue

@@ -34,9 +34,9 @@
             borderWidth: '1px',
             borderStyle: 'solid',
             borderColor: themeContext.resolveThemeColor('primary'),
-            width: '490rpx',
+            width: '610rpx',//490rpx
           }" />
-          <Button icon="ai-thinking" @click="handleGoAI" text="问AI" />
+          <!-- <Button icon="ai-thinking" @click="handleGoAI" text="问AI" /> -->
         </FlexRow>
         <ImageSwiper 
           :images="appConfiguration?.banners.home"

+ 26 - 21
src/pages/home/village/dialogs/JoinDialog.vue

@@ -4,8 +4,8 @@
       
       <template v-if="step === 'chooseIdentity'">
         <FlexCol gap="gap.md">
+          <Text textAlign="center" text="加入村社后,您即可为村社做贡献。完善身份信息,解锁更多村社专属功能" fontConfig="contentSpeicalText" />
           <Text textAlign="center" text="请选择你的村民身份" fontConfig="contentSpeicalText" />
-          <Text text="加入村社后,您即可为村社做贡献。请完善身份信息,解锁更多村社专属功能" fontConfig="contentSpeicalText" />
           <Height :height="10" />
 
           <BoxMid 
@@ -14,7 +14,7 @@
             direction="row"
           >
             <Touchable direction="row" gap="gap.md"center @click="handleChooseIdentity(item.value)">
-              <Image :src="item.image" :radius="20" width="100" height="100" mode="aspectFill" />
+              <Image :src="item.image" :radius="20" width="70" height="70" mode="aspectFill" />
               <Width :width="20" />
               <Text :text="item.label" fontConfig="lightGoldTitle" />
             </Touchable>
@@ -46,10 +46,10 @@
         <Result
           status="success"
           title="提交成功"
-          description="等待系统审核,您可稍后再回来,您可以先逛逛社区看看其他村社吧"
+          description="加入成功!您可以在村社中做贡献啦"
         />
         <FlexRow justify="space-around" gap="gap.md">
-          <FrameButton primary text="完成" @click="show = false" width="220rpx" />
+          <FrameButton primary text="完成" @click="show = false; emit('finish')" width="220rpx" />
         </FlexRow>
       </template>
     </FlexCol>
@@ -82,31 +82,36 @@ const show = ref(false);
 const props = defineProps<{
   villageId: number;
 }>();
-const emit = defineEmits(['apply']);
+const emit = defineEmits(['finish']);
 
 const villageStore = useVillageStore();
 const step = ref('chooseIdentity');
 
 const identityChoices = ref([
   {
-    label: '在村劳作',
+    label: '在乡就业',
     value: 1,
     image: 'https://xy.wenlvti.net/app_static/images/home/volunteer/IconTypeWork.png',
   },
   {
-    label: '社区居民',
+    label: '在外务工',
     value: 2,
     image: 'https://xy.wenlvti.net/app_static/images/home/volunteer/IconTypeLocal.png',
   },
   {
-    label: '在外游子',
+    label: '在外创业',
     value: 3,
-    image: 'https://xy.wenlvti.net/app_static/images/home/volunteer/IconTypeOut.png',
+    image: 'https://xy.wenlvti.net/app_static/images/home/volunteer/IconTypeExternal.png',
   },
   {
-    label: '退休人员',
+    label: '在外求学',
     value: 4,
-    image: 'https://xy.wenlvti.net/app_static/images/home/volunteer/IconTypeOld.png',
+    image: 'https://xy.wenlvti.net/app_static/images/home/volunteer/IconTypeOut.png',
+  },
+  {
+    label: '暂时保密',
+    value: 5,
+    image: 'https://xy.wenlvti.net/app_static/images/home/volunteer/IconPosts.png',
   },
 ]);
 
@@ -122,20 +127,13 @@ const addFormDefine : IDynamicFormOptions = {
   formAdditionaProps: {},
   formItems: [
     {
-      label: '真实姓名',
+      label: '昵称',
       name: 'name',
       type: 'text',
-      additionalProps: { placeholder: '请输入真实姓名' },
-      rules: [{ required: true, message: '请输入真实姓名' }],
+      additionalProps: { placeholder: '请输入昵称' },
+      rules: [{ required: true, message: '请输入昵称' }],
     },
     {
-      label: '联系方式',
-      name: 'mobile',
-      type: 'text',
-      additionalProps: { placeholder: '请输入手机号' },
-      rules: [{ required: true, message: '请输入联系方式' }],
-    },
-     {
       label: '性别',
       name: 'sex',
       type: 'radio-value',
@@ -149,6 +147,13 @@ const addFormDefine : IDynamicFormOptions = {
       } as RadioValueProps,
     },
     /*{
+      label: '联系方式',
+      name: 'mobile',
+      type: 'text',
+      additionalProps: { placeholder: '请输入手机号' },
+      rules: [{ required: true, message: '请输入联系方式' }],
+    },
+    {
       label: '居住地址',
       name: 'address',
       type: 'text',