|
@@ -7,5 +7,47 @@
|
|
|
}
|
|
|
</route>
|
|
|
<template>
|
|
|
- <view>分类</view>
|
|
|
+ <view style="border-top: 2rpx solid #f2f2f2" class="flex justify-between flex-wrap">
|
|
|
+ <view class="w-183rpx">
|
|
|
+ <view
|
|
|
+ v-for="(i, idx) in 10"
|
|
|
+ :key="i"
|
|
|
+ :class="`${idx === categoryIndex ? ' after:w-28rpx after:h-6rpx text-[#FF4C1B] bg-white' : 'bg-[#F2F2F2]'} w-full truncate box-border p-32rpx text-28rpx`"
|
|
|
+ >
|
|
|
+ Luggage {{ i }}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view style="width: calc(100vw - 183rpx)" class="box-border px-16rpx pt-24rpx">
|
|
|
+ <view
|
|
|
+ class="flex justify-start items-center box-border px-24rpx py-20rpx rounded-full border-1rpx border-solid border-[#F2F2F2]"
|
|
|
+ >
|
|
|
+ <image class="w-32rpx h-32rpx object-cover" :src="search" mode="widthFix" alt="" />
|
|
|
+
|
|
|
+ <view class="ml-20rpx text-28rpx text-[#999]">{{ t('category.search') }}</view>
|
|
|
+ </view>
|
|
|
+ <wd-row :gutter="20">
|
|
|
+ <wd-col :span="8"><view class="bg-dark">span: 8</view></wd-col>
|
|
|
+ <wd-col :span="8"><view class="bg-light">span: 8</view></wd-col>
|
|
|
+ <wd-col :span="8"><view class="bg-dark">span: 8</view></wd-col>
|
|
|
+ </wd-row>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</template>
|
|
|
+
|
|
|
+<script lang="ts" setup>
|
|
|
+ import { t } from '@/locale'
|
|
|
+ import search from '@/static/images/category/search.svg'
|
|
|
+ const { safeAreaInsets } = uni.getSystemInfoSync()
|
|
|
+
|
|
|
+ const categoryIndex = ref(0)
|
|
|
+
|
|
|
+ function handleChange() {}
|
|
|
+ onLoad(() => {
|
|
|
+ console.log('分类')
|
|
|
+ console.log(safeAreaInsets, 'safeAreaInsets')
|
|
|
+ })
|
|
|
+
|
|
|
+ onMounted(() => {})
|
|
|
+</script>
|
|
|
+<style lang="scss" scoped></style>
|