2024-09-25 12:25:47 +08:00
|
|
|
<template>
|
|
|
|
|
<view class="panic bg-white">
|
2024-12-12 14:06:09 +08:00
|
|
|
<scroll-view style="white-space: nowrap;height: 200rpx;" scroll-x="true" scroll-with-animation="true">
|
|
|
|
|
<view class="flex item">
|
|
|
|
|
<router-link v-for="(item, index) in list.lists" :key="index" class="p-r-20" :to="{path: '/pages/goods_details/goods_details', query: {id: item.goods_id, activity_sn: item.activity_sn, act_id: 1}}">
|
|
|
|
|
<u-image :src="item.goods_image" :width="width" :height="width" border-radius="10rpx"></u-image>
|
|
|
|
|
<view class="text-center flex row-between m-t-10">
|
|
|
|
|
<price-format class="m-r-10 ele1" :first-size="32" :second-size="26"
|
|
|
|
|
:subscript-size="24" :price="item.activity_price" :weight="500" color="#F20A0A"></price-format>
|
|
|
|
|
<view class="go flex">
|
|
|
|
|
<view>抢</view>
|
|
|
|
|
<u-icon name="play-right-fill" size="12" class="right"></u-icon>
|
2024-09-25 12:25:47 +08:00
|
|
|
</view>
|
2024-12-12 14:06:09 +08:00
|
|
|
</view>
|
|
|
|
|
</router-link>
|
|
|
|
|
</view>
|
|
|
|
|
</scroll-view>
|
2024-09-25 12:25:47 +08:00
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
name: "panic-buying",
|
2024-09-26 17:37:12 +08:00
|
|
|
props: {
|
|
|
|
|
list: {
|
|
|
|
|
type: [Array, Object],
|
|
|
|
|
default:() => ([])
|
2024-12-09 17:13:36 +08:00
|
|
|
},
|
|
|
|
|
width: {
|
|
|
|
|
type: Number,
|
|
|
|
|
default: 140
|
2024-09-26 17:37:12 +08:00
|
|
|
}
|
|
|
|
|
}
|
2024-09-25 12:25:47 +08:00
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.panic {
|
|
|
|
|
border-radius: 14rpx;
|
|
|
|
|
|
|
|
|
|
.item {
|
|
|
|
|
width: 200rpx;
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-09 17:13:36 +08:00
|
|
|
.go {
|
|
|
|
|
background-color: #FF0E3C;
|
2024-09-25 12:25:47 +08:00
|
|
|
color: #fff;
|
2024-12-09 17:13:36 +08:00
|
|
|
padding: 0 6px;
|
|
|
|
|
border-top-right-radius: 20rpx;
|
|
|
|
|
border-bottom-right-radius: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.right {
|
|
|
|
|
margin-left: 4rpx;
|
2024-09-25 12:25:47 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|