Files
2026-10-08 18:34:09 +08:00

78 lines
1.7 KiB
Vue

<template>
<view class="wrap">
<view class="layout layout-fourth flex justify-between align-center">
<view class="item" @click="listLink(0)">
<view class="icon">
<image class="radius" src="/static/img/four-1.png" mode=""></image>
</view>
<view :class="['text',{red: type === 0}]">拍卖信息</view>
</view>
<view class="item" @click="listLink(1)">
<view class="icon">
<image class="radius" src="/static/img/four-2.png" mode=""></image>
</view>
<view :class="['text',{red: type === 1}]">采购信息</view>
</view>
<view class="item" @click="listLink(2)">
<view class="icon">
<image class="radius" src="/static/img/four-3.png" mode=""></image>
</view>
<view :class="['text',{red: type === 2}]">租赁信息</view>
</view>
<view class="item" @click="listLink(3)">
<view class="icon">
<image class="radius" src="/static/img/four-4.png" mode=""></image>
</view>
<view :class="['text',{red: type === 3}]">物资回收信息</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
};
},
props: {
type: {
type: Number,
default: 0,
},
},
methods: {
listLink(type) {
vk.navigateTo(`/pages/junk/list?type=${type}`);
},
},
mounted() {
console.log(this.type)
}
}
</script>
<style lang="scss">
.layout-fourth {
padding: 20rpx 30rpx;
.item {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.icon {
width: 60rpx;
height: 60rpx;
}
.text {
margin-top: 8rpx;
font-size: 26rpx;
font-weight: bold;
color: #101010;
text-align: center;
}
}
</style>