aaa
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
<img :src="info.cover" />
|
<img :src="info.cover" />
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="title">{{ info.title }}</div>
|
<div class="title">{{ info.title }}</div>
|
||||||
<div class="brand" v-if="showBrand">
|
<div class="brand" v-if="showBrand" @click="handleBrandClick">
|
||||||
<span class="icon"><svg-icon name="order-shop" size="24" /></span>
|
<span class="icon"><svg-icon name="order-shop" size="24" /></span>
|
||||||
<span class="text">{{ info.brand }}</span>
|
<span class="text">{{ info.brand }}</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -49,7 +49,9 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed, ref, onMounted } from 'vue'
|
import { computed, ref, onMounted } from 'vue'
|
||||||
import { FormatBytes, FormatDate } from '@/utils/tools'
|
import { FormatDate } from '@/utils/tools'
|
||||||
|
import { useRouter } from 'vue-router'
|
||||||
|
const router = useRouter()
|
||||||
const emit = defineEmits(['remove'])
|
const emit = defineEmits(['remove'])
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
showTags: { type: Boolean, default: true },
|
showTags: { type: Boolean, default: true },
|
||||||
@@ -66,6 +68,7 @@
|
|||||||
date: string
|
date: string
|
||||||
amount: number
|
amount: number
|
||||||
cover: string
|
cover: string
|
||||||
|
sellerId: string
|
||||||
},
|
},
|
||||||
default: () => {}
|
default: () => {}
|
||||||
},
|
},
|
||||||
@@ -74,6 +77,12 @@
|
|||||||
const onRemove = () => {
|
const onRemove = () => {
|
||||||
emit('remove', props.info)
|
emit('remove', props.info)
|
||||||
}
|
}
|
||||||
|
const handleBrandClick = () => {
|
||||||
|
router.push({
|
||||||
|
name: 'brand',
|
||||||
|
params: { id: props.info.sellerId }
|
||||||
|
})
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
@@ -106,6 +115,7 @@
|
|||||||
> .brand {
|
> .brand {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
cursor: pointer;
|
||||||
> .icon {
|
> .icon {
|
||||||
width: 2.4rem;
|
width: 2.4rem;
|
||||||
height: 2.4rem;
|
height: 2.4rem;
|
||||||
|
|||||||
@@ -159,6 +159,7 @@
|
|||||||
listingId: v.listingId, //资产ID
|
listingId: v.listingId, //资产ID
|
||||||
title: v.title, //标题
|
title: v.title, //标题
|
||||||
brand: v.shopName, //店铺名称
|
brand: v.shopName, //店铺名称
|
||||||
|
sellerId: v.sellerId, //店铺ID
|
||||||
cover: v.cover, //封面
|
cover: v.cover, //封面
|
||||||
amount: v.price, //价格
|
amount: v.price, //价格
|
||||||
status: v.status, //状态
|
status: v.status, //状态
|
||||||
|
|||||||
Reference in New Issue
Block a user