@@ -57,6 +57,7 @@ watch(listData, (val: any[]) => {
5757 listSize: val .length ,
5858 pageSize: pageSize .value ,
5959 total: totalFromID .value ,
60+ canJump: false ,
6061 })
6162 console .log (listData .value )
6263})
@@ -66,7 +67,8 @@ watch(listData, (val: any[]) => {
6667 <div class =" item-list-main custom-scrollbar" >
6768 <div class =" item-card" v-for =" item in listData" :key =" item.hash" >
6869 <span class =" name-text" >
69- <span class =" id" >#{{ item.id }}</span > ·
70+ <span class =" id" >#{{ item.id }}</span >
71+ <span class =" font-bold inline-block mx-1" > · </span >
7072 <span class =" name" >{{ item.name }}</span >
7173 </span >
7274 <span class =" details" >
@@ -78,17 +80,19 @@ watch(listData, (val: any[]) => {
7880 alt =" item image"
7981 draggable =" false"
8082 />
81- <CubeTransparentIcon v-else class =" icon" />
83+ <CubeTransparentIcon v-else class =" icon placeholder " />
8284 <span class =" text" >
8385 <span class =" unique"
8486 >持有 · {{ parseInt(item.Unique) ? "" : "不" }}唯一</span
8587 >
8688 <span class =" price" >售价 · {{ item.Price }}</span >
87- <span class =" desc" >描述 · {{ item.Desc }}</span >
89+ <span class =" desc"
90+ >描述 · {{ item.Desc ?? "这是一段空白的描述" }}</span
91+ >
8892 </span >
8993 </span >
9094 </div >
91- <Transition name =" slidedown " mode =" in-out" : appear= " true " >
95+ <Transition name =" slideup " mode =" in-out" appear >
9296 <div class =" empty-palceholder" v-if =" isEmpty" >
9397 <span class =" empty-icons" >
9498 <CubeTransparentIcon class =" icon" /> ·
@@ -109,28 +113,40 @@ watch(listData, (val: any[]) => {
109113}
110114
111115.item-card {
112- @apply inline-flex flex-col;
116+ @apply inline-flex flex-col items-center justify-center max-w-xs mb-0.5
117+ snap-start;
113118}
114119
115120.name-text {
116- @apply inline-flex items-center
117- font-semibold text-base ;
121+ @apply inline-flex w-full items-center justify-start my-1
122+ font-bold text-sm ;
118123}
119124.details {
120- @apply inline-flex;
125+ @apply inline-flex w-full items-center justify-center ;
121126}
122127.details .icon {
123- @apply w-12 h-12;
128+ @apply inline-flex justify-center items-center w-16 h-fit box-content mr-1
129+ border-2 rounded transition-all
130+ border-slate-300 dark :border-slate-600;
131+ }
132+ .placeholder {
133+ @apply w-16 p-0.5 px-1;
124134}
125135.details .text {
126- @apply inline-flex flex-wrap;
136+ @apply inline-flex flex-wrap justify-between items-center ;
127137}
128138
129139.text .unique ,
130140.text .price ,
131141.text .desc {
132- @apply inline-block px-1 py-0.5 mr-1 mb-1
133- border-2 rounded;
142+ @apply inline-flex items-center h-fit px-1 py-0.5 mr-1 mb-1
143+ text-gray-700 dark :text-gray-300
144+ border-slate-300 dark :border-slate-600
145+ border-2 rounded text-sm font-bold text-opacity-75 dark :text-opacity-75
146+ transition-all;
147+ }
148+ .text .desc {
149+ @apply w-full mb-0;
134150}
135151
136152.empty-palceholder {
0 commit comments