فهرست منبع

fix(app): 添加自动导入的 Vue 类型和更新模板背景图片

EvilDragon 5 ماه پیش
والد
کامیت
42a883fa50

+ 4 - 1
packages/app/.eslintrc-auto-import.json

@@ -93,6 +93,9 @@
     "onWatcherCleanup": true,
     "useId": true,
     "useModel": true,
-    "useTemplateRef": true
+    "useTemplateRef": true,
+    "DirectiveBinding": true,
+    "MaybeRef": true,
+    "MaybeRefOrGetter": true
   }
 }

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

@@ -120,7 +120,7 @@ onPageScroll(({ scrollTop }: { scrollTop: number }) => {
       </template>
     </wd-navbar>
     <div
-      class="bg-black/30 backdrop-blur-[60px] flex flex-col justify-end box-border bg-[url(https://image.zhuchaohui.com/zhucaohui/723968e69b86768f546f5df6cf03f25e2aa5c989e4f781a4fe90079dedd39fdd.jpg)]"
+      class="bg-black/30 flex flex-col justify-end box-border bg-[url(https://image.zhuchaohui.com/zhucaohui/c706ec14a5a927c10e9e1fa0153affb11bbdd9255882e18c67ee82687ff9813a.png)] bg-[length:100%_auto]"
       :class="[userInfo.userStatusEnabled ? 'aspect-[0.94/1] pb-44' : 'aspect-[1.15/1] pb-20']"
     >
       <div class="my-6.5 px-3.5 flex">
@@ -253,7 +253,14 @@ onPageScroll(({ scrollTop }: { scrollTop: number }) => {
       </div>
       <!-- <div class="relative h-4 box-border bg-transparent rounded-b-[50%] z-1"></div> -->
     </template>
-    <view class="bg-neutral-100 relative bottom-4 rounded-t-2xl py-1 px-3.5">
+    <view
+      class="relative bottom-4 py-1 px-3.5"
+      :class="[
+        userInfo.userStatusEnabled
+          ? 'bg-[url(https://image.zhuchaohui.com/zhucaohui/f12b86304c84eec692f4c8f040a06c63fe7110359b8a4a1262b97b1eef6b605c.png)] bg-[length:100%]'
+          : 'bg-neutral-100 rounded-t-2xl',
+      ]"
+    >
       <div class="flex justify-around my-6">
         <template v-for="({ title, icon, path }, i) in menus" :key="i">
           <div class="flex flex-col items-center" @click="handleMenuClick(path)">

+ 1 - 1
packages/app/src/types/auto-import.d.ts

@@ -93,7 +93,7 @@ declare global {
 // for type re-export
 declare global {
   // @ts-ignore
-  export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
+  export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
   import('vue')
 }
 // for vue template auto import

+ 8 - 10
packages/merchant/src/pages/home/merchant/settlement.vue

@@ -1,19 +1,17 @@
-<route lang="yaml">
-style:
-  navigationBarTitleText: 积分结账
-  navigationBarBackgroundColor: '#fff'
+<route lang="json">
+{ "style": { "navigationBarTitleText": "积分结账", "navigationBarBackgroundColor": "#fff" } }
 </route>
 <script lang="ts" setup>
-import QRCode from 'qrcode'
+// import QRCode from 'qrcode'
 import { ref } from 'vue'
 const codeImageSrc = ref('')
 
 const generateQR = async (text) => {
-  try {
-    codeImageSrc.value = await QRCode.toDataURL(text)
-  } catch (err) {
-    console.error(err)
-  }
+  // try {
+  //   codeImageSrc.value = await QRCode.toDataURL(text)
+  // } catch (err) {
+  //   console.error(err)
+  // }
 }
 generateQR('121')
 </script>

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 8340 - 24
pnpm-lock.yaml


برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است