feat: 拉取接口填充了一下新版首页
This commit is contained in:
@@ -95,7 +95,7 @@
|
||||
</view>
|
||||
<view class="mt-auto flex items-end justify-between pt-[6px]">
|
||||
<view>
|
||||
<text class="block text-[10px] text-[#9aa2ad]">已售 {{ product.sold || 0 }}</text>
|
||||
<text v-if="product.sold !== null && product.sold !== undefined" class="block text-[10px] text-[#9aa2ad]">已售 {{ product.sold }}</text>
|
||||
<text class="text-[12px] font-medium text-[#f26b32]">¥<text class="text-[20px] font-bold">{{ product.salePrice }}</text></text>
|
||||
</view>
|
||||
<view class="flex h-[28px] items-center justify-center rounded-full bg-[#f26b32] px-[13px]" @click="emit('buy', product.id)">
|
||||
@@ -106,7 +106,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view v-else class="mt-[10px] rounded-[14px] bg-white px-[16px] py-[28px] text-center">
|
||||
<text class="text-[13px] text-[#9aa2ad]">暂无可售商品</text>
|
||||
<text class="text-[13px] text-[#9aa2ad]">{{ loading ? '加载中...' : '暂无可售商品' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -124,6 +124,7 @@ const props = defineProps({
|
||||
scenicSpot: { type: Object, required: true },
|
||||
groups: { type: Array, default: () => [] },
|
||||
products: { type: Array, default: () => [] },
|
||||
loading: { type: Boolean, default: false },
|
||||
})
|
||||
|
||||
const emit = defineEmits(['back', 'open-travelers', 'open-orders', 'open-detail', 'buy'])
|
||||
|
||||
Reference in New Issue
Block a user