Sfoglia il codice sorgente

refactor: 统一字体名称 'PingFang SC' 修改为格式

- 将所有出现的 'PingFang_SC'
- 在多个组件和页面中进行了替换,包括 data-form、honor-dialog、channels、honors、levels等
EvilDragon 1 mese fa
parent
commit
a619611532

+ 1 - 1
packages/app/src/components/data-form.vue

@@ -161,7 +161,7 @@ defineExpose({
             />
             <div v-if="props?.maxlength" class="absolute bottom-0 right-0">
               <div
-                class="w-10 h-5 text-right text-black/40 text-xs font-normal font-['PingFang SC'] leading-tight"
+                class="w-10 h-5 text-right text-black/40 text-xs font-normal font-['PingFang_SC'] leading-tight"
               >
                 {{ modelValue[prop]?.length }}/{{ props?.maxlength }}
               </div>

+ 1 - 1
packages/app/src/components/moment-item.vue

@@ -101,7 +101,7 @@ onMounted(async () => {
           ></wd-img>
         </template>
         <view class="flex-1"></view>
-        <div class="text-black/40 text-sm font-medium font-['PingFang SC'] leading-[10.18px]">
+        <div class="text-black/40 text-sm font-medium font-['PingFang_SC'] leading-[10.18px]">
           {{ beforeNow(dayjs(props.options.createTime).toDate()) }}
         </div>
       </view>

+ 1 - 1
packages/app/src/pages/common/components/honor-dialog/honor-dialog.vue

@@ -151,7 +151,7 @@ watch(
               <div
                 class="w-[110.71px] h-[37.17px] bg-gradient-to-r from-[#f1bf84] to-[#e6c99f] rounded-[28.19px] shadow shadow-inner flex center"
               >
-                <div class="text-center text-[#242323] text-base font-normal font-['PingFang SC']">
+                <div class="text-center text-[#242323] text-base font-normal font-['PingFang_SC']">
                   去查看
                 </div>
               </div>

+ 1 - 1
packages/app/src/pages/common/components/share-action-sheet.vue

@@ -33,7 +33,7 @@ const handleAction = (it: { value: string }) => {
               <div class="w-12 h-12 relative">
                 <wd-img width="100%" height="100%" :src="it.icon"></wd-img>
               </div>
-              <div class="text-black/60 text-xs font-normal font-['PingFang SC'] leading-relaxed">
+              <div class="text-black/60 text-xs font-normal font-['PingFang_SC'] leading-relaxed">
                 {{ it.title }}
               </div>
             </div>

+ 2 - 2
packages/app/src/pages/mine/homepage/channels/index.vue

@@ -87,11 +87,11 @@ onMounted(async () => {
 
     <wd-message-box selector="wd-message-box-slot">
       <div class="">
-        <span class="text-black/40 text-base font-normal font-['PingFang SC'] leading-relaxed">
+        <span class="text-black/40 text-base font-normal font-['PingFang_SC'] leading-relaxed">
           关联后,小程序开发者将获取您的视频号相关信息,并为您提供相关服务,请您充分阅读
         </span>
         <span
-          class="text-[#3f598f] text-base font-normal font-['PingFang SC'] leading-relaxed"
+          class="text-[#3f598f] text-base font-normal font-['PingFang_SC'] leading-relaxed"
           @click="
             toContentHtml({
               title: '个人微信视频号授权使用协议',

+ 2 - 2
packages/app/src/pages/mine/honors/index.vue

@@ -254,13 +254,13 @@ onLoad(async (query?: Record<string | 'active' | 'id' | 'isShared', string>) =>
             mode="aspectFit"
           ></wd-img>
           <div
-            class="text-center text-white text-xl font-normal font-['PingFang SC'] uppercase mt-7"
+            class="text-center text-white text-xl font-normal font-['PingFang_SC'] uppercase mt-7"
           >
             {{ currentCertificate?.certificateName }}
           </div>
           <div class="flex center gap-3">
             <div class="w-3.5 h-[1.5px] bg-white"></div>
-            <div class="text-center text-white text-sm font-normal font-['PingFang SC'] uppercase">
+            <div class="text-center text-white text-sm font-normal font-['PingFang_SC'] uppercase">
               <!--          2024年10月2日获得-->
               {{ dayjs(currentCertificate?.createTime).format('YYYY年MM月DD日') }}获得
             </div>

+ 1 - 1
packages/app/src/pages/mine/levels/index.vue

@@ -39,7 +39,7 @@ onMounted(async () => {
         @click="router.push('/pages/mine/levels/rules/index')"
         class="text-[#f1d2c5] text-sm font-normal font-['PingFang_SC'] leading-normal"
       >
-        会员成长等级保级规则通知
+        会员等级成长规则
       </div>
     </div>
     <!-- <view class="card-swiper mx--3.5">

+ 11 - 11
packages/app/src/pages/mine/levels/rules/index.vue

@@ -32,20 +32,20 @@ const tab = ref(0)
     </wd-tabs>
     <template v-if="tab === 0">
       <div class="flex-grow bg-white px-4">
-        <div class="mt-10 text-black/60 text-sm font-normal font-['PingFang SC'] leading-normal">
-          筑巢荟会员等级由用户当前积分数量决定,共分为以下4个等级
+        <div class="mt-10 text-black/60 text-sm font-normal font-['PingFang_SC'] leading-normal">
+          筑巢荟会员等级由用户当前积分数量决定,共分为以下{{ memberLevels.length }}个等级
         </div>
         <!--    {{ memberLevels }}-->
         <!--    {{ userInfo }}-->
         <div class="mt-5 rounded-[10px] border border-solid border-[#b18957] overflow-hidden">
           <div class="grid grid-cols-2 auto-rows-10 center">
             <div
-              class="text-center text-[#bc8547] text-sm font-normal font-['PingFang SC'] leading-normal"
+              class="text-center text-[#bc8547] text-sm font-normal font-['PingFang_SC'] leading-normal"
             >
               会员等级
             </div>
             <div
-              class="text-center text-[#bc8547] text-sm font-normal font-['PingFang SC'] leading-normal"
+              class="text-center text-[#bc8547] text-sm font-normal font-['PingFang_SC'] leading-normal"
             >
               积分值区间
             </div>
@@ -63,7 +63,7 @@ const tab = ref(0)
                   :src="star"
                 ></wd-img>
                 <div
-                  class="text-center text-[#bc8547] text-sm font-normal font-['PingFang SC'] leading-normal"
+                  class="text-center text-[#bc8547] text-sm font-normal font-['PingFang_SC'] leading-normal"
                 >
                   {{ it.memberLevelName }}
                 </div>
@@ -73,7 +73,7 @@ const tab = ref(0)
                 :class="['bg-[#fffcf6]', 'bg-[#fff8eb]', 'bg-[#fff6e3]', 'bg-[#fff3d9]'][i]"
               >
                 <div
-                  class="text-center text-[#bc8547] text-sm font-normal font-['PingFang SC'] leading-normal"
+                  class="text-center text-[#bc8547] text-sm font-normal font-['PingFang_SC'] leading-normal"
                 >
                   {{
                     memberLevels[i + 1]?.points
@@ -86,7 +86,7 @@ const tab = ref(0)
           </div>
         </div>
         <div
-          class="flex items-center mt-4 text-black/40 text-sm font-normal font-['PingFang SC'] leading-normal"
+          class="flex items-center mt-4 text-black/40 text-sm font-normal font-['PingFang_SC'] leading-normal"
         >
           注:
           <wd-img width="14" height="14" :src="star"></wd-img>
@@ -100,14 +100,14 @@ const tab = ref(0)
           <div class="flex items-center gap-1">
             <wd-img width="14" height="15" :src="up"></wd-img>
             <div
-              class="text-center text-black/40 text-base font-normal font-['PingFang SC'] leading-normal"
+              class="text-center text-black/40 text-base font-normal font-['PingFang_SC'] leading-normal"
             >
               升级
             </div>
           </div>
           <div class="my-4 h-.25 bg-[#f1f1f1]"></div>
           <div
-            class="w-[309px] h-[47px] text-black/40 text-sm font-normal font-['PingFang SC'] leading-normal"
+            class="w-[309px] h-[47px] text-black/40 text-sm font-normal font-['PingFang_SC'] leading-normal"
           >
             更新积分值后,如最新积分值达到更高等级门槛将立即提升至相应会员等级。
           </div>
@@ -116,14 +116,14 @@ const tab = ref(0)
           <div class="flex items-center gap-1">
             <wd-img width="14" height="15" :src="down"></wd-img>
             <div
-              class="text-center text-black/40 text-base font-normal font-['PingFang SC'] leading-normal"
+              class="text-center text-black/40 text-base font-normal font-['PingFang_SC'] leading-normal"
             >
               降级
             </div>
           </div>
           <div class="my-4 h-.25 bg-[#f1f1f1]"></div>
           <div
-            class="w-[309px] h-[47px] text-black/40 text-sm font-normal font-['PingFang SC'] leading-normal"
+            class="w-[309px] h-[47px] text-black/40 text-sm font-normal font-['PingFang_SC'] leading-normal"
           >
             当前积分不满足当前会员等级,您将面临降级。
           </div>