Browse Source

Merge branch 'main' of http://39.106.91.179:3000/hunter/designer-hub into main

purui 2 months ago
parent
commit
19f34fe342

+ 17 - 0
packages/merchant/src/assets/svgs/business-logo.svg

@@ -0,0 +1,17 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="86" height="35" viewBox="0 0 86 35" fill="none">
+  <g filter="url(#filter0_d_1943_2666)">
+    <path d="M4 8C4 3.58172 7.58172 0 12 0H82C82 0 80 5 80 12C80 14.3338 80 16.7787 80 19.0013C80 23.4196 76.4183 27 72 27H4V8Z" fill="#C2D5FF"/>
+  </g>
+  <defs>
+    <filter id="filter0_d_1943_2666" x="0" y="0" width="86" height="35" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
+      <feFlood flood-opacity="0" result="BackgroundImageFix"/>
+      <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
+      <feOffset dy="4"/>
+      <feGaussianBlur stdDeviation="2"/>
+      <feComposite in2="hardAlpha" operator="out"/>
+      <feColorMatrix type="matrix" values="0 0 0 0 0.277517 0 0 0 0 0.366595 0 0 0 0 0.579167 0 0 0 0.3 0"/>
+      <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1943_2666"/>
+      <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1943_2666" result="shape"/>
+    </filter>
+  </defs>
+</svg>

+ 3 - 0
packages/merchant/src/assets/svgs/business.svg

@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="29" height="29" viewBox="0 0 29 29" fill="none">
+  <path d="M25.7956 4.06055H3.2046C1.8416 4.06055 0.725098 5.17705 0.725098 6.54005V22.2725C0.725098 23.6355 1.8416 24.752 3.2046 24.752H4.9011L14.7901 24.7665H14.9351C15.0076 24.7665 15.1236 24.7665 15.2541 24.752H15.4281C15.4861 24.752 15.5731 24.752 15.6891 24.7375H25.7666C27.1296 24.7375 28.2461 23.621 28.2461 22.258V6.54005C28.2751 5.17705 27.1586 4.06055 25.7956 4.06055ZM15.6746 23.0265H15.2106L4.6546 23.012H4.1471C3.9876 22.9975 3.8716 22.983 3.7846 22.9685C3.8426 22.084 4.2486 20.8515 5.2346 19.7785C6.0321 18.9085 7.4966 17.8645 9.9326 17.8645C12.3686 17.8645 13.8476 18.9085 14.6596 19.793C15.6456 20.866 16.0661 22.084 16.1386 22.9685C16.0226 22.983 15.8631 23.012 15.6746 23.0265ZM26.5496 22.2725C26.5496 22.693 26.2161 23.0265 25.7956 23.0265H17.8496C17.8206 22.345 17.6611 21.6055 17.3711 20.895C17.0376 20.0685 16.5301 19.271 15.9066 18.604C14.8626 17.473 12.9631 16.1245 9.9181 16.1245C6.8586 16.1245 4.9881 17.473 3.9441 18.604C3.2771 19.329 2.7551 20.1845 2.4361 21.069V6.54005C2.4361 6.11955 2.7696 5.78605 3.1901 5.78605H25.7811C26.2016 5.78605 26.5351 6.11955 26.5351 6.54005L26.5496 22.2725ZM9.9761 7.52605C7.7141 7.52605 5.8871 9.35305 5.8871 11.615C5.8871 13.877 7.7141 15.704 9.9761 15.704C12.2381 15.704 14.0651 13.877 14.0651 11.615C14.0651 9.35305 12.2381 7.52605 9.9761 7.52605ZM9.9761 13.9785C8.6711 13.9785 7.6126 12.92 7.6126 11.615C7.6126 10.31 8.6711 9.25155 9.9761 9.25155C11.2811 9.25155 12.3396 10.31 12.3396 11.615C12.3396 12.92 11.2811 13.9785 9.9761 13.9785ZM16.2546 7.49705H24.8241V9.22255H16.2546V7.49705ZM16.2546 10.948H24.8241V12.6735H16.2546V10.948ZM16.2546 14.399H21.4601V16.1245H16.2546V14.399Z" fill="white"/>
+</svg>

+ 4 - 0
packages/merchant/src/assets/svgs/edit.svg

@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="27" height="27" viewBox="0 0 27 27" fill="none">
+  <path d="M6.65234 19.5989L12.8697 18.4809L8.97266 13.7585L6.65234 19.5989ZM9.6292 13.2206L13.5368 17.9351L22.8945 10.257L18.9896 5.54252L9.6292 13.2206ZM25.2597 6.84769L22.8181 3.89721C22.4199 3.41205 21.6658 3.36195 21.1385 3.78646L19.7173 4.94662L23.6223 9.66898L25.0435 8.50883C25.5603 8.08432 25.6578 7.33285 25.2597 6.84769Z" fill="#2357E9"/>
+  <path d="M20.3052 23.5641H6.84473C4.38994 23.5641 2.40186 21.5733 2.40186 19.1212V9.10693C2.40186 6.65215 4.39258 4.66406 6.84473 4.66406H8.15254C8.85391 4.66406 9.4208 5.23096 9.4208 5.93232C9.4208 6.63369 8.85391 7.20059 8.15254 7.20059H6.84473C5.79004 7.20059 4.93574 8.05488 4.93574 9.10957V19.1238C4.93574 20.1785 5.79004 21.0328 6.84473 21.0328H20.3052C21.3599 21.0328 22.2142 20.1785 22.2142 19.1238V15.6434C22.2142 14.942 22.7811 14.3751 23.4824 14.3751C24.1838 14.3751 24.7507 14.942 24.7507 15.6434V19.1238C24.748 21.576 22.76 23.5641 20.3052 23.5641Z" fill="#BDD2EF"/>
+</svg>

+ 15 - 0
packages/merchant/src/assets/svgs/logo-white.svg

@@ -0,0 +1,15 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="13" viewBox="0 0 16 13" fill="none">
+  <g clip-path="url(#clip0_1943_2669)">
+    <path fill-rule="evenodd" clip-rule="evenodd" d="M3.68848 7.93164C3.82823 8.44765 3.903 8.97619 3.74977 9.47968H5.16688C5.44025 9.47968 5.73936 9.38449 5.73936 8.98746C5.73936 8.494 5.4525 8.45266 5.1681 8.45016C4.82241 8.45517 4.24993 8.58042 3.68848 7.93164Z" fill="white"/>
+    <path fill-rule="evenodd" clip-rule="evenodd" d="M12.5286 8.20508C12.3852 8.60211 12.3178 9.0292 12.4637 9.43249H8.49062C8.38887 9.43249 6.89699 9.47382 6.88473 10.6085C6.87369 11.8147 8.20744 11.6193 9.106 11.0419C10.0046 10.4645 11.4683 10.9167 12.1143 11.6907C12.1143 11.6907 10.984 11.1133 10.1455 11.4327C9.30705 11.752 8.30674 12.5599 7.27823 12.4133C6.24973 12.2668 5.73364 11.5366 5.79493 10.5873C5.85622 9.63789 6.74375 8.76242 8.0015 8.76242H10.566C10.566 8.76242 11.9831 8.79624 12.5286 8.20508Z" fill="white"/>
+    <path fill-rule="evenodd" clip-rule="evenodd" d="M4.95734 7.79249C5.12774 7.47186 5.11303 7.12368 4.88379 6.76172C6.49213 7.31405 9.4097 7.31531 11.0217 6.76172C10.7925 7.12368 10.7765 7.47186 10.9494 7.79249H4.95734Z" fill="white"/>
+    <path fill-rule="evenodd" clip-rule="evenodd" d="M1.13623 1.02035C3.22879 1.56642 6.06423 1.39609 7.77554 0.564453C7.48011 0.926414 7.46295 1.2746 7.68115 1.59523H1.13623V1.02035Z" fill="white"/>
+    <path fill-rule="evenodd" clip-rule="evenodd" d="M15.0735 1.59441C12.8669 1.04959 9.87699 1.21867 8.07373 2.05031C8.3851 1.6896 8.40349 1.34141 8.17303 1.01953H15.0735V1.59441Z" fill="white"/>
+    <path fill-rule="evenodd" clip-rule="evenodd" d="M7.74265 2.69336C7.90937 2.84741 8.40585 3.23192 9.22718 3.84187C9.99188 4.41855 10.8136 4.91179 11.6789 5.31351C12.4913 5.68507 13.7139 6.07542 15.3467 6.48456L15.1861 6.76511L15.1028 7.05192L14.7497 6.98304L12.9109 6.4282L11.6716 5.96228L11.2842 5.79821L11.2413 5.78318L11.2094 5.80322H4.62036L4.33228 5.90091C3.39413 6.34685 2.42709 6.72641 1.438 7.03689L1.01876 7.16214L0.935397 6.89035L0.739258 6.57599C1.2856 6.41857 1.82365 6.23255 2.35128 6.01864C3.0345 5.74978 3.72262 5.44794 4.41564 5.11311C5.1315 4.76578 5.80707 4.3377 6.42975 3.83686C6.89041 3.48419 7.32891 3.10227 7.74265 2.69336Z" fill="white"/>
+  </g>
+  <defs>
+    <clipPath id="clip0_1943_2669">
+      <rect width="14.6087" height="11.8696" fill="white" transform="translate(0.739258 0.564453)"/>
+    </clipPath>
+  </defs>
+</svg>

+ 3 - 0
packages/merchant/src/assets/svgs/wechat-green.svg

@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="27" height="27" viewBox="0 0 27 27" fill="none">
+  <path d="M17.5146 9.71837C17.7787 9.71837 18.0391 9.73769 18.297 9.76572C17.5944 6.52757 14.0952 4.12109 10.1014 4.12109C5.63602 4.12109 1.97803 7.13309 1.97803 10.9574C1.97803 13.1646 3.19528 14.9774 5.22862 16.3834L4.41628 18.8021L7.25573 17.3926C8.2724 17.5913 9.08719 17.7962 10.1014 17.7962C10.3562 17.7962 10.6085 17.7838 10.8595 17.7639C10.7006 17.2269 10.6084 16.6638 10.6084 16.08C10.6085 12.5684 13.656 9.71837 17.5146 9.71837ZM13.1476 7.53865C13.7594 7.53865 14.1643 7.93733 14.1643 8.54223C14.1643 9.14463 13.7594 9.5483 13.1476 9.5483C12.5384 9.5483 11.9279 9.14463 11.9279 8.54223C11.9279 7.93733 12.5384 7.53865 13.1476 7.53865ZM7.46254 9.54827C6.85327 9.54827 6.23903 9.1446 6.23903 8.54221C6.23903 7.93731 6.85327 7.53862 7.46254 7.53862C8.07114 7.53862 8.47671 7.93731 8.47671 8.54221C8.47671 9.14463 8.07114 9.54827 7.46254 9.54827ZM24.929 15.9835C24.929 12.7696 21.679 10.1501 18.0291 10.1501C14.1643 10.1501 11.1205 12.7696 11.1205 15.9835C11.1205 19.202 14.1643 21.8159 18.0291 21.8159C18.8377 21.8159 19.6538 21.6153 20.4661 21.4135L22.6945 22.6207L22.0833 20.6123C23.7143 19.4013 24.929 17.7962 24.929 15.9835ZM15.789 14.9774C15.3847 14.9774 14.9767 14.5793 14.9767 14.1731C14.9767 13.7726 15.3847 13.3695 15.789 13.3695C16.4032 13.3695 16.8056 13.7726 16.8056 14.1731C16.8056 14.5793 16.4032 14.9774 15.789 14.9774ZM20.2568 14.9774C19.8557 14.9774 19.4501 14.5793 19.4501 14.1731C19.4501 13.7726 19.8557 13.3695 20.2568 13.3695C20.8661 13.3695 21.2735 13.7726 21.2735 14.1731C21.2735 14.5793 20.8661 14.9774 20.2568 14.9774Z" fill="#13AC5C"/>
+</svg>

+ 6 - 0
packages/merchant/src/core/libs/net-images.ts

@@ -13,4 +13,10 @@ export enum NetImages {
   HonorsHeader = 'https://image.zhuchaohui.com/zhucaohui/3945d2a7643317aca126c4b766139c4560c6ce2c051b7e03ee0ac664abe966c3.png',
   CyclingRankingsHeaderBg = 'https://image.zhuchaohui.com/zhucaohui/2351014a57a0df427516c4993876ade7e3695ce33b1f227c52c8381aa631ba02.png',
   AgentMineHeaderBg = 'https://image.zhuchaohui.com/zhucaohui/41b23de6a07428168216ecd366548711dd299cf23f9d5244492777bdd007c576.png',
+  筑巢荟 = 'https://image.zhuchaohui.com/zhucaohui/31c992b5c7a315d3cceebf8ae168f18b7c559e6676973d2e1b488ecabd6856a5.png',
+
+  mobile = 'https://image.zhuchaohui.com/zhucaohui/df511f76c98454d98080e6c538c78efad8fbadf2c6df004aa947bd5be4cf41a8.png',
+  weChat = 'https://image.zhuchaohui.com/zhucaohui/4b4b3a43cf9ffac2bc82ec0d9ba55a223976a60476903090e4f18ecfaf608fd8.png',
+  email = 'https://image.zhuchaohui.com/zhucaohui/baff6d2aebfab27ae1b4e0f5c8dbc77782ab19644411d67d06ac1e38c8984e7e.png',
+  personalBio = 'https://image.zhuchaohui.com/zhucaohui/88bea48324705ffbad14c9504b649d7f65a345a25804aabf49b1ae814714efcf.png',
 }

+ 10 - 0
packages/merchant/src/core/libs/svgs.ts

@@ -42,6 +42,11 @@ import system from '@/assets/svgs/system.svg'
 import interact from '@/assets/svgs/interact.svg'
 import success from '@/assets/svgs/success.svg'
 import scan from '@/assets/svgs/scan.svg'
+import business from '@/assets/svgs/business.svg'
+import businessLogo from '@/assets/svgs/business-logo.svg'
+import logoWhite from '@/assets/svgs/logo-white.svg'
+import edit from '@/assets/svgs/edit.svg'
+import wechatGreen from '@/assets/svgs/wechat-green.svg'
 export {
   polygon16,
   frame,
@@ -87,4 +92,9 @@ export {
   interact,
   success,
   scan,
+  business,
+  businessLogo,
+  logoWhite,
+  edit,
+  wechatGreen,
 }

+ 16 - 0
packages/merchant/src/pages.json

@@ -238,6 +238,22 @@
       }
     },
     {
+      "path": "pages/mine/agent/business-card/edit-card",
+      "type": "page",
+      "style": {
+        "navigationBarTitleText": "编辑名片",
+        "navigationBarBackgroundColor": "#ffffff"
+      }
+    },
+    {
+      "path": "pages/mine/agent/business-card/index",
+      "type": "page",
+      "style": {
+        "navigationBarTitleText": "个人名片",
+        "navigationBarBackgroundColor": "#ffffff"
+      }
+    },
+    {
       "path": "pages/mine/agent/invite/index",
       "type": "page",
       "style": {

+ 1 - 0
packages/merchant/src/pages/agent/designer/archives/award/imgs.vue

@@ -57,6 +57,7 @@ onLoad((query?: Record<string | 'id', string>) => {
   <div class="py-12px pl-16px pr-10px">
     <wd-upload
       :file-list="fileList"
+      multiple
       image-mode="aspectFill"
       :action="action"
       @change="handleChange"

+ 113 - 0
packages/merchant/src/pages/mine/agent/business-card/edit-card.vue

@@ -0,0 +1,113 @@
+<route lang="json">
+{
+  "style": {
+    "navigationBarTitleText": "编辑名片",
+    "navigationBarBackgroundColor": "#ffffff"
+  }
+}
+</route>
+<script setup lang="ts">
+import { businessLogo, logoWhite, edit, wechatGreen } from '@/core/libs/svgs'
+import { NetImages } from '@/core/libs/net-images'
+import BottomAppBar from '@/components/bottom-app-bar.vue'
+import { storeToRefs } from 'pinia'
+import { useUserStore } from '@/store/user'
+
+const { userInfo } = storeToRefs(useUserStore())
+const infos = ref<any[]>(['公司', '职位', '手机', '微信', '邮箱'])
+const submitUpload = () => {
+  console.log('submitUpload')
+}
+</script>
+<template>
+  <div class="p-[16px] bg-[#FFF]">
+    <div class="h-185px p-20px relative rounded-[10px] color-[#ffffff] bg-[#2357E9]">
+      <wd-img
+        :src="businessLogo"
+        width="78px"
+        height="27px"
+        mode="widthFix"
+        custom-class="absolute top-[-20px] left-[-24px]"
+      />
+      <div class="absolute top-[-1px] left-[0px] z-10">
+        <wd-img
+          :src="logoWhite"
+          width="17px"
+          height="17px"
+          round
+          custom-class="absolute top-[3px] left-[7px] bg-[#0cbe7d]"
+        />
+        <wd-img
+          :src="NetImages.筑巢荟"
+          width="40px"
+          height="17px"
+          custom-class="absolute top-[5px] left-[7px]"
+        />
+      </div>
+      <div class="h-65px flex justify-between items-center mb-10px">
+        <div class="font-size-22px fw-400">
+          李世东
+          <text class="font-size-12px ml-10px">平台经纪人</text>
+        </div>
+        <wd-img
+          :src="`https://image.zhuchaohui.com/zhucaohui/d0533ae0ab4fa6de2526e7088b346f5ff4c82a9e7b5622b75d9db3de64377471.jpg`"
+          round
+          width="65px"
+          height="65px"
+        />
+      </div>
+      <div class="flex items-center">
+        <wd-icon name="phone" size="15px" color="#ffffff" />
+        <div class="font-size-12px ml-10px">13888888888</div>
+      </div>
+      <div class="flex items-center">
+        <wd-icon name="phone" size="15px" color="#ffffff" />
+        <div class="font-size-12px ml-10px">13888888888</div>
+      </div>
+      <div class="flex items-center">
+        <wd-icon name="phone" size="15px" color="#ffffff" />
+        <div class="font-size-12px ml-10px">13888888888</div>
+      </div>
+      <div class="flex items-center">
+        <wd-icon name="phone" size="15px" color="#ffffff" />
+        <div class="font-size-12px ml-10px">13888888888</div>
+      </div>
+    </div>
+    <!-- 名片样式 -->
+    <wd-cell title="名片样式" is-link to="/pages/index/index" />
+    <div class="pt-[30px] flex justify-between items-center">
+      <div class="w-76px h-42px border-[1px] border-solid border-[#E2E4ED]"></div>
+      <div class="w-76px h-42px border-[1px] border-solid border-[#E2E4ED]"></div>
+      <div class="w-76px h-42px border-[1px] border-solid border-[#E2E4ED]"></div>
+    </div>
+    <!-- 展示信息 -->
+    <wd-cell title="展示信息" is-link />
+    <div class="pt-[30px] pb-[15px] mb-[15px] flex items-center overflow-x-auto">
+      <div
+        class="selectItem inline-block px-18px py-4px rounded-[2px] bg-[#F3F6FF] mr-10px whitespace-nowrap font-size-14px lh-[24px] fw-400"
+        v-for="(it, index) in infos"
+        :key="index"
+      >
+        {{ it }}
+      </div>
+    </div>
+    <wd-gap bg-color="#F2F3F6"></wd-gap>
+    <!-- 基本数据 -->
+
+    <!-- 保存 按钮 -->
+    <BottomAppBar fixed placeholder>
+      <wd-button
+        type="primary"
+        :round="false"
+        block
+        style="backdrop-filter: blur(10px)"
+        class="mt-20px"
+        @click="submitUpload"
+      >
+        保存
+      </wd-button>
+    </BottomAppBar>
+  </div>
+</template>
+
+<style lang="scss" scoped></style>

+ 113 - 0
packages/merchant/src/pages/mine/agent/business-card/index.vue

@@ -0,0 +1,113 @@
+<route lang="json">
+{
+  "style": {
+    "navigationBarTitleText": "个人名片",
+    "navigationBarBackgroundColor": "#ffffff"
+  }
+}
+</route>
+<script setup lang="ts">
+import { businessLogo, logoWhite, edit, wechatGreen } from '@/core/libs/svgs'
+import { NetImages } from '@/core/libs/net-images'
+import BottomAppBar from '@/components/bottom-app-bar.vue'
+
+const submitUpload = () => {
+  console.log('submitUpload')
+}
+const toEditPage = () => {
+  uni.navigateTo({
+    url: '/pages/mine/agent/business-card/edit-card',
+  })
+}
+</script>
+<template>
+  <div class="p-[16px]">
+    <div class="h-325px relative rounded-[10px] color-[#ffffff] bg-[#f3f6ff]">
+      <div class="h-185px p-20px relative rounded-[10px] color-[#ffffff] bg-[#2357E9]">
+        <wd-img
+          :src="businessLogo"
+          width="78px"
+          height="27px"
+          mode="widthFix"
+          custom-class="absolute top-[-20px] left-[-24px]"
+        />
+        <div class="absolute top-[-1px] left-[0px] z-10">
+          <wd-img
+            :src="logoWhite"
+            width="17px"
+            height="17px"
+            round
+            custom-class="absolute top-[3px] left-[7px] bg-[#0cbe7d]"
+          />
+          <wd-img
+            :src="NetImages.筑巢荟"
+            width="40px"
+            height="17px"
+            custom-class="absolute top-[5px] left-[7px]"
+          />
+        </div>
+        <div class="h-65px flex justify-between items-center mb-10px">
+          <div class="font-size-22px fw-400">
+            李世东
+            <text class="font-size-12px ml-10px">平台经纪人</text>
+          </div>
+          <wd-img :src="businessLogo" round width="65px" height="65px" />
+        </div>
+        <div class="flex items-center">
+          <wd-icon name="phone" size="15px" color="#ffffff" />
+          <div class="font-size-12px ml-10px">13888888888</div>
+        </div>
+        <div class="flex items-center">
+          <wd-icon name="phone" size="15px" color="#ffffff" />
+          <div class="font-size-12px ml-10px">13888888888</div>
+        </div>
+        <div class="flex items-center">
+          <wd-icon name="phone" size="15px" color="#ffffff" />
+          <div class="font-size-12px ml-10px">13888888888</div>
+        </div>
+        <div class="flex items-center">
+          <wd-icon name="phone" size="15px" color="#ffffff" />
+          <div class="font-size-12px ml-10px">13888888888</div>
+        </div>
+      </div>
+      <div class="h-75px pt-[25px] px-[12px] color-[#7F88A0] font-size-12px fw-400 lh-[19px]">
+        你好,我是筑巢荟平台经纪人李世东,这个是我的名片,请惠存!
+      </div>
+    </div>
+    <!-- 按钮 -->
+    <div class="pt-[30px] flex justify-between items-center">
+      <div
+        class="inline-flex py-[10px] px-[24px] rounded-[8px] border-[1px] border-solid border-[#E2E4ED] color-[#2357E9] lh-[24px]"
+        @click="toEditPage"
+      >
+        <wd-img :src="edit" width="27px" height="27px" custom-class="mr-8px" mode="widthFix" />
+        编辑名片
+      </div>
+      <div
+        class="inline-flex py-[10px] px-[24px] rounded-[8px] border-[1px] border-solid border-[#E2E4ED] color-[#13AC5C] lh-[24px]"
+      >
+        <wd-img
+          :src="wechatGreen"
+          width="27px"
+          height="27px"
+          custom-class="mr-8px"
+          mode="widthFix"
+        />
+        微信分享
+      </div>
+    </div>
+    <!-- 保存 按钮 -->
+    <BottomAppBar fixed placeholder>
+      <wd-button
+        type="primary"
+        :round="false"
+        block
+        style="backdrop-filter: blur(10px)"
+        class="mt-20px"
+        @click="submitUpload"
+      >
+        保存到本地
+      </wd-button>
+    </BottomAppBar>
+  </div>
+</template>

+ 12 - 0
packages/merchant/src/pages/mine/components/agent-mine.vue

@@ -16,6 +16,7 @@ import { locationIcon } from '@designer-hub/assets/src/svgs'
 import { dayjs } from 'wot-design-uni'
 import PageHelperEvo from '@/components/page-helper-evo.vue'
 import ListHelperEvo from '@/components/list-helper-evo.vue'
+import { business } from '@/core/libs/svgs'
 
 const pageHelperRef = ref<ComponentExposed<typeof PageHelperEvo>>()
 const userStore = useUserStore()
@@ -64,6 +65,9 @@ const toSettings = () => {
 const toInvite = () => {
   uni.navigateTo({ url: '/pages/mine/agent/invite/index' })
 }
+const toBusinessCard = () => {
+  uni.navigateTo({ url: '/pages/mine/agent/business-card/index' })
+}
 const confirmDelete = (id: number) => {
   uni.showModal({
     title: '提示',
@@ -123,6 +127,14 @@ onMounted(async () => {
           <!--            ID:{{ agent?.inviteCode }}-->
           <!--          </div>-->
         </div>
+        <!-- <div class="flex flex-col items-center mr-[30px]" @click.stop="toBusinessCard">
+          <div class="w-[29px] h-[29px] relative">
+            <wd-img width="28" height="28" :src="business"></wd-img>
+          </div>
+          <div class="text-white text-[10px] font-normal font-['PingFang_SC'] leading-relaxed">
+            个人名片
+          </div>
+        </div> -->
         <div class="flex flex-col items-center" @click.stop="toInvite">
           <div class="w-[29px] h-[29px] relative">
             <wd-img width="28" height="28" :src="qrCode"></wd-img>

+ 2 - 0
packages/merchant/src/types/uni-pages.d.ts

@@ -27,6 +27,8 @@ interface NavigateToOptions {
        "/pages/agent/tasks/detail/index" |
        "/pages/common/auth/change-password/index" |
        "/pages/common/orders/detail/index" |
+       "/pages/mine/agent/business-card/edit-card" |
+       "/pages/mine/agent/business-card/index" |
        "/pages/mine/agent/invite/index" |
        "/pages/mine/agent/settings/index" |
        "/pages/agent/designer/archives/activity/index" |