Prechádzať zdrojové kódy

feat:设计师主页

Jake 5 mesiacov pred
rodič
commit
59dc8d26bf

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 6 - 0
packages/assets/src/assets/svgs/homepage_bg.svg


+ 4 - 0
packages/assets/src/assets/svgs/video_eye_icon.svg

@@ -0,0 +1,4 @@
+<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M8.97221 6.33984C7.53798 6.33984 6.37094 7.50689 6.37094 8.94136C6.37094 10.3756 7.53798 11.5426 8.97221 11.5426C10.4064 11.5426 11.5735 10.3756 11.5735 8.94136C11.5735 7.50689 10.4064 6.33984 8.97221 6.33984ZM8.97221 10.5558C8.08199 10.5558 7.35777 9.83158 7.35777 8.94136C7.35777 8.05115 8.08199 7.32667 8.97221 7.32667C9.86242 7.32667 10.5866 8.05115 10.5866 8.94136C10.5867 9.83158 9.86244 10.5558 8.97221 10.5558Z" fill="#ABABAB"/>
+<path d="M16.7445 8.74007C15.5786 6.13662 12.3825 4.31836 8.97219 4.31836C5.56188 4.31836 2.36578 6.13662 1.19994 8.74007L1.10959 8.94172L1.19994 9.14337C2.19496 11.3654 5.18412 13.6147 8.97219 13.6147C12.7603 13.6147 15.7494 11.3654 16.7445 9.14337L16.8348 8.94172L16.7445 8.74007ZM8.97219 12.6279C5.72114 12.6279 3.15045 10.8058 2.19735 8.94197C3.14129 7.1025 5.7086 5.30519 8.97219 5.30519C12.2358 5.30519 14.8031 7.1025 15.747 8.94197C14.7939 10.8058 12.2233 12.6279 8.97219 12.6279Z" fill="white" fill-opacity="0.6"/>
+</svg>

+ 11 - 0
packages/assets/src/assets/svgs/video_play_icon.svg

@@ -0,0 +1,11 @@
+<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
+<g clip-path="url(#clip0_755_9526)">
+<path d="M0 9C0 11.3869 0.948212 13.6761 2.63604 15.364C4.32387 17.0518 6.61305 18 9 18C11.3869 18 13.6761 17.0518 15.364 15.364C17.0518 13.6761 18 11.3869 18 9C18 6.61305 17.0518 4.32387 15.364 2.63604C13.6761 0.948212 11.3869 0 9 0C6.61305 0 4.32387 0.948212 2.63604 2.63604C0.948212 4.32387 0 6.61305 0 9Z" fill="black" fill-opacity="0.3"/>
+<path d="M12.5208 8.62862C12.5809 8.66999 12.63 8.72534 12.6639 8.78989C12.6978 8.85445 12.7155 8.92628 12.7155 8.9992C12.7155 9.07212 12.6978 9.14395 12.6639 9.20851C12.63 9.27306 12.5809 9.3284 12.5208 9.36977L7.2288 13.0148C7.16123 13.0613 7.08224 13.0884 7.00035 13.0933C6.91847 13.0982 6.83681 13.0806 6.76421 13.0424C6.69161 13.0042 6.63082 12.9469 6.58842 12.8767C6.54603 12.8065 6.52363 12.726 6.52365 12.644V5.35442C6.52363 5.2724 6.54603 5.19192 6.58842 5.1217C6.63082 5.05148 6.69161 4.99418 6.76421 4.95601C6.83681 4.91783 6.91847 4.90022 7.00035 4.90509C7.08224 4.90996 7.16123 4.93711 7.2288 4.98362L12.5208 8.62862Z" fill="white"/>
+</g>
+<defs>
+<clipPath id="clip0_755_9526">
+<rect width="18" height="18" fill="white"/>
+</clipPath>
+</defs>
+</svg>

+ 6 - 0
packages/assets/src/svgs.ts

@@ -13,6 +13,9 @@ import shareIcon from "./assets/svgs/share_icon.svg";
 import praiseIcon from "./assets/svgs/praise_icon.svg";
 import messageIcon from "./assets/svgs/message_icon.svg";
 import yinyongIcon from "./assets/svgs/yinyong_icon.svg";
+import homepageBg from "./assets/svgs/homepage_bg.svg";
+import videoEyeIcon from "./assets/svgs/video_eye_icon.svg";
+import videoPlayIcon from "./assets/svgs/video_play_icon.svg";
 
 export {
   ts,
@@ -30,4 +33,7 @@ export {
   praiseIcon,
   messageIcon,
   yinyongIcon,
+  homepageBg,
+  videoEyeIcon,
+  videoPlayIcon,
 };

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

@@ -82,6 +82,15 @@
       }
     },
     {
+      "path": "pages/designer/homepage",
+      "type": "page",
+      "layout": "tabbar",
+      "style": {
+        "navigationBarTitleText": "个人主页",
+        "navigationBarBackgroundColor": "#fff"
+      }
+    },
+    {
       "path": "pages/designer/index",
       "type": "page",
       "layout": "tabbar",

+ 305 - 0
packages/merchant/src/pages/designer/homepage.vue

@@ -0,0 +1,305 @@
+<route lang="yaml">
+layout: tabbar
+style:
+  navigationBarTitleText: 个人主页
+  navigationBarBackgroundColor: '#fff'
+</route>
+
+<script setup lang="ts">
+import {
+  vipIcon,
+  shareIcon,
+  praiseIcon,
+  messageIcon,
+  yinyongIcon,
+  homepageBg,
+  videoEyeIcon,
+  videoPlayIcon,
+} from '@designer-hub/assets/src/svgs'
+const tab = ref(0)
+const tabs = ref([
+  { label: '案例', value: 'integral' },
+  { label: '动态', value: 'system' },
+  { label: '视频', value: 'interact' },
+])
+</script>
+
+<template>
+  <view>
+    <div class="aspect-[1/1] absolute left-0 right-0 top-0">
+      <wd-img width="100%" height="100%" :src="homepageBg" custom-class="vertical-top"></wd-img>
+    </div>
+    <div class="flex flex-col relative mt-[200px]">
+      <div class="rounded-2xl flex items-center p-4">
+        <div>
+          <img class="w-16 h-16 rounded-full" src="https://via.placeholder.com/64x64" />
+        </div>
+        <div class="flex-1 ml-[11px]">
+          <div class="flex flex-col w-[100%]">
+            <div class="flex-row flex items-center justify-between w-full">
+              <div class="flex-row flex items-center">
+                <div class="text-white text-2xl font-normal font-['PingFang SC'] leading-normal">
+                  苏小萌
+                </div>
+
+                <div
+                  class="h-4 bg-neutral-100 rounded-[20px] justify-start items-center inline-flex flex-row ml-[9px]"
+                >
+                  <wd-img width="17" height="17" :src="vipIcon"></wd-img>
+
+                  <div
+                    class="text-black/40 text-[10px] font-normal font-['PingFang SC'] px-[7px] leading-none"
+                  >
+                    白银会员
+                  </div>
+                </div>
+              </div>
+            </div>
+          </div>
+          <div class="mt-[12px] flex items-center">
+            <div
+              class="text-center text-white text-[10px] font-normal font-['PingFang SC'] leading-normal"
+            >
+              创设空间事务所创始人
+            </div>
+          </div>
+        </div>
+      </div>
+      <div class="bg-white rounded-tl-2xl rounded-tr-2xl border-2 pa-[11px]">
+        <div class="flex items-center justify-start gap-[6px]">
+          <div class="text-black/90 text-base font-normal font-['PingFang SC'] leading-[26.98px]">
+            10
+          </div>
+          <div class="text-black/40 text-sm font-normal font-['PingFang SC'] leading-[26.98px]">
+            从业年限
+          </div>
+          <div style="width: 1px; height: 10px; background-color: black"></div>
+          <div class="text-black/90 text-base font-normal font-['PingFang SC'] leading-[26.98px]">
+            10
+          </div>
+          <div class="text-black/40 text-sm font-normal font-['PingFang SC'] leading-[26.98px]">
+            客户
+          </div>
+        </div>
+        <div
+          class="w-[347px] h-10 text-black/40 text-sm font-normal font-['PingFang SC'] leading-normal mt-[21px]"
+        >
+          “设计没有风格,设计是对生活的一种诠释,不是所谓的造型与装饰!”
+        </div>
+        <div class="mt-[26px]">
+          <div
+            class="h-7 px-3 py-0.5 bg-[#e6e6e6]/40 rounded-[30px] justify-center items-center gap-2.5 inline-flex"
+          >
+            <div
+              class="text-center text-black/60 text-xs font-normal font-['PingFang SC'] leading-normal"
+            >
+              日本设计游学
+            </div>
+          </div>
+        </div>
+      </div>
+      <div>
+        <wd-tabs v-model="tab">
+          <block v-for="(item, index) in tabs" :key="item">
+            <wd-tab :title="`${item.label}`">
+              <view class="content ma-[15px]" v-if="index === 0">
+                <div class="bg-white rounded-2xl shadow pa-[15px] mt-[20px] flex-col gap-2 flex">
+                  <div class="flex items-center justify-between">
+                    <div class="flex items-center">
+                      <img
+                        class="w-[35px] h-[35px] rounded-full"
+                        src="https://via.placeholder.com/35x35"
+                      />
+                      <div
+                        class="text-black/90 text-base font-normal font-['PingFang SC'] leading-[10.18px] ml-[11px]"
+                      >
+                        苏小萌
+                      </div>
+                    </div>
+                    <div
+                      class="text-black/40 text-sm font-normal font-['PingFang SC'] leading-[10.18px]"
+                    >
+                      4小时前
+                    </div>
+                  </div>
+                  <div
+                    class="text-black/60 text-sm font-normal font-['PingFang SC'] leading-normal mr-[15px] mt-[29px]"
+                  >
+                    和周老师在工作碰了环球项目,选了瓷砖款式,后天客户交定金,订单金额初步为 304958
+                  </div>
+                  <div class="mt-[15px]">
+                    <img
+                      class="w-[319px] h-[194px] rounded-lg"
+                      src="https://via.placeholder.com/319x194"
+                    />
+                  </div>
+                  <div
+                    class="text-black text-lg font-normal font-['PingFang SC'] leading-[10.18px] mt-[20px]"
+                  >
+                    现代 | 日星花园
+                  </div>
+                  <div
+                    class="text-black/40 text-sm font-normal font-['PingFang SC'] leading-[10.18px] mt-[18px]"
+                  >
+                    龙湖狮山天街生活广场三期·780 m²·全案定制
+                  </div>
+                  <div class="flex items-center justify-between mt-[19px]">
+                    <div class="flex items-center gap-[8px]">
+                      <wd-img width="17" height="17" :src="shareIcon"></wd-img>
+                      <div
+                        class="text-black/90 text-sm font-normal font-['D-DIN Exp'] leading-snug"
+                      >
+                        232
+                      </div>
+                    </div>
+                    <div class="flex items-center gap-[8px]">
+                      <wd-img width="17" height="17" :src="messageIcon"></wd-img>
+                      <div
+                        class="text-black/90 text-sm font-normal font-['D-DIN Exp'] leading-snug"
+                      >
+                        232
+                      </div>
+                    </div>
+                    <div class="flex items-center gap-[8px]">
+                      <wd-img width="17" height="17" :src="praiseIcon"></wd-img>
+                      <div
+                        class="text-black/90 text-sm font-normal font-['D-DIN Exp'] leading-snug"
+                      >
+                        232
+                      </div>
+                    </div>
+                    <div
+                      class="text-black/30 text-xs font-normal font-['PingFang SC'] leading-[10.18px]"
+                    >
+                      删除x
+                    </div>
+                  </div>
+                </div>
+              </view>
+              <view class="content ma-[15px]" v-if="index === 1">
+                <div class="bg-white rounded-2xl shadow pa-[15px] mt-[20px] flex-col gap-2 flex">
+                  <div class="flex items-center justify-between">
+                    <div class="flex items-center">
+                      <img
+                        class="w-[35px] h-[35px] rounded-full"
+                        src="https://via.placeholder.com/35x35"
+                      />
+                      <div
+                        class="text-black/90 text-base font-normal font-['PingFang SC'] leading-[10.18px] ml-[11px]"
+                      >
+                        苏小萌
+                      </div>
+                      <div
+                        class="h-4 bg-neutral-100 rounded-[20px] justify-start items-center inline-flex flex-row ml-[9px]"
+                      >
+                        <wd-img width="17" height="17" :src="vipIcon"></wd-img>
+
+                        <div
+                          class="text-black/40 text-[10px] font-normal font-['PingFang SC'] px-[7px] leading-none"
+                        >
+                          白银会员
+                        </div>
+                      </div>
+                    </div>
+                    <div
+                      class="text-black/40 text-sm font-normal font-['PingFang SC'] leading-[10.18px]"
+                    >
+                      4小时前
+                    </div>
+                  </div>
+
+                  <div class="mt-[15px]">
+                    <img
+                      class="w-[70px] h-[70px] rounded-lg"
+                      src="https://via.placeholder.com/70x70"
+                    />
+                  </div>
+                  <div
+                    class="text-black/90 text-base font-normal font-['PingFang SC'] leading-[10.18px] mt-[30px]"
+                  >
+                    用心做好设计,为客户创造美好家居环境
+                  </div>
+
+                  <div
+                    class="h-7 py-1.5 rounded-[50px] border border-black/20 justify-start items-center gap-[5px] inline-flex mt-[29px]"
+                  >
+                    <wd-img width="17" height="17" :src="yinyongIcon"></wd-img>
+
+                    <div
+                      class="text-black/60 text-xs font-normal font-['PingFang SC'] leading-none"
+                    >
+                      意大利游学设计班
+                    </div>
+                  </div>
+                  <div class="flex items-center justify-between mt-[19px]">
+                    <div class="flex items-center gap-[8px]">
+                      <wd-img width="17" height="17" :src="shareIcon"></wd-img>
+                      <div
+                        class="text-black/90 text-sm font-normal font-['D-DIN Exp'] leading-snug"
+                      >
+                        232
+                      </div>
+                    </div>
+                    <div class="flex items-center gap-[8px]">
+                      <wd-img width="17" height="17" :src="messageIcon"></wd-img>
+                      <div
+                        class="text-black/90 text-sm font-normal font-['D-DIN Exp'] leading-snug"
+                      >
+                        232
+                      </div>
+                    </div>
+                    <div class="flex items-center gap-[8px]">
+                      <wd-img width="17" height="17" :src="praiseIcon"></wd-img>
+                      <div
+                        class="text-black/90 text-sm font-normal font-['D-DIN Exp'] leading-snug"
+                      >
+                        232
+                      </div>
+                    </div>
+                    <div
+                      class="text-black/30 text-xs font-normal font-['PingFang SC'] leading-[10.18px]"
+                    >
+                      删除x
+                    </div>
+                  </div>
+                </div>
+              </view>
+              <view class="content" v-if="index === 2">
+                <div class="pa-[15px] mt-[0px] flex-col gap-2">
+                  <div class="grid-cols-2 gap-2.5 grid">
+                    <div class="relative">
+                      <img
+                        class="w-[168px] h-[220px] rounded-lg"
+                        src="https://via.placeholder.com/168x220"
+                      />
+                      <div style="position: absolute; top: 10px; left: 10px">
+                        <wd-img width="17" height="17" :src="videoPlayIcon"></wd-img>
+                      </div>
+                      <div
+                        style="position: absolute; bottom: 10px; right: 10px"
+                        class="flex items-center gap-[2px]"
+                      >
+                        <div
+                          class="text-[#cacaca] text-xs font-normal font-['PingFang SC'] leading-normal"
+                        >
+                          315
+                        </div>
+                        <wd-img width="17" height="17" :src="videoEyeIcon"></wd-img>
+                      </div>
+                    </div>
+                  </div>
+                </div>
+              </view>
+            </wd-tab>
+          </block>
+        </wd-tabs>
+      </div>
+    </div>
+  </view>
+</template>
+
+<style scoped lang="scss">
+:deep(.wd-tabs) {
+  background: transparent;
+}
+</style>

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

@@ -7,6 +7,7 @@ interface NavigateToOptions {
   url: "/pages/home/index" |
        "/pages/about/about" |
        "/pages/designer/detail" |
+       "/pages/designer/homepage" |
        "/pages/designer/index" |
        "/pages/login/index" |
        "/pages/material/index" |

Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov