hookehuyr

style(ActivityHistoryPage): 格式化代码缩进和换行

...@@ -27,7 +27,8 @@ ...@@ -27,7 +27,8 @@
27 27
28 <!-- List --> 28 <!-- List -->
29 <div class="px-4 py-4 space-y-4"> 29 <div class="px-4 py-4 space-y-4">
30 - <div v-for="item in activities" :key="item.id" class="bg-white rounded-xl py-4 pr-4 pl-0 shadow-sm relative overflow-hidden flex"> 30 + <div v-for="item in activities" :key="item.id"
31 + class="bg-white rounded-xl py-4 pr-4 pl-0 shadow-sm relative overflow-hidden flex">
31 32
32 <!-- Blue Marker (Absolute or Flex) --> 33 <!-- Blue Marker (Absolute or Flex) -->
33 <!-- Based on image, it is sticking to the left edge but inside the card padding area potentially, or flush left --> 34 <!-- Based on image, it is sticking to the left edge but inside the card padding area potentially, or flush left -->
...@@ -62,8 +63,7 @@ ...@@ -62,8 +63,7 @@
62 </div> 63 </div>
63 64
64 <!-- Fixed Bottom Buttons --> 65 <!-- Fixed Bottom Buttons -->
65 - <div 66 + <div v-if="!userInfo.has_activity_registration"
66 - v-if="!userInfo.has_activity_registration"
67 class="fixed bottom-0 left-0 right-0 bg-white/60 backdrop-blur-md p-4 pb-8 z-30 shadow-[0_-2px_10px_rgba(0,0,0,0.05)]"> 67 class="fixed bottom-0 left-0 right-0 bg-white/60 backdrop-blur-md p-4 pb-8 z-30 shadow-[0_-2px_10px_rgba(0,0,0,0.05)]">
68 <van-button block color="#0052D9" class="!rounded-lg !mb-3 !h-[44px] !text-base !font-bold" 68 <van-button block color="#0052D9" class="!rounded-lg !mb-3 !h-[44px] !text-base !font-bold"
69 @click="handleCollectCoins"> 69 @click="handleCollectCoins">
...@@ -143,13 +143,14 @@ const handleCollectCoins = async () => { ...@@ -143,13 +143,14 @@ const handleCollectCoins = async () => {
143 showToast({ 143 showToast({
144 message: '收集星球币成功', 144 message: '收集星球币成功',
145 icon: 'success' 145 icon: 'success'
146 - }) 146 + })
147 - router.push({ path: '/recall/points' }) 147 + router.push({ path: '/recall/points' })
148 - } else { 148 + } else {
149 - showToast({ 149 + showToast({
150 - message: '收集星球币失败', 150 + message: '收集星球币失败',
151 - icon: 'error' 151 + icon: 'error'
152 - }) 152 + })
153 + }
153 } 154 }
154 } 155 }
155 156
......