liyaozhi
2025-10-28 1320688354fd168c51cf2e05f29a2253f4ed9c00
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<template>
    <view class="diy-seckillProduct" v-if="itemData.data.product_list.length>0">
        <view class="sharpproduct-head d-b-c" :style="'background-image: url('+itemData.style.background_image+');'">
            <view class="left d-s-c">
                <view class="name d-c-c">
                </view>
                <view class="datetime d-s-c ml20">
                    <Countdown :back_color="itemData.style.countdown_back_color" :color='itemData.style.color'
                        :cut_color="itemData.style.countdown_color" :config="countdownConfig"></Countdown>
                </view>
            </view>
            <view class="right d-e-c" @click="gotoList">
                <text class="gray3 f26">更多</text>
                <text class="iconfont icon-jiantou mr10"></text>
            </view>
        </view>
        <view class="sharpproduct-body column__3">
            <scroll-view scroll-x="true">
                <view class="product-list">
                    <view class="product-item" v-for="(item, index) in itemData.data.product_list" :key="index"
                        @click="gotoDetail(item.product_id)">
                        <!-- 两列三列 -->
                        <template>
                            <view class="product-cover">
                                <image :src="item.product.file_path" mode="aspectFit"></image>
                            </view>
                            <view class="product-info p-0-10">
                                <view v-if="itemData.style.show.seckillPrice == true" class="theme-price mb10">
                                    <text class="f18 fb">¥</text>
                                    <text class="f26 fb">{{ item.seckill_price }}</text>
                                </view>
                                <view class="gray9 f20 text-d-line" v-if="itemData.style.show.linePrice == true">
                                    ¥{{ item.product_price }}</view>
                            </view>
                        </template>
                    </view>
                </view>
            </scroll-view>
        </view>
    </view>
</template>
 
<script>
    import Countdown from '@/components/countdown/countdown-act.vue';
    export default {
        components: {
            Countdown
        },
        data() {
            return {
                /*倒计时配置*/
                countdownConfig: {
                    /*开始时间*/
                    startstamp: 0,
                    /*结束时间*/
                    endstamp: 0,
                    /*标题*/
                    title: ' '
                }
            };
        },
        props: ['itemData'],
        created() {
            this.countdownConfig.endstamp = this.itemData.data.end_time;
            this.countdownConfig.startstamp = this.itemData.data.start_time;
        },
        methods: {
            scroll(e) {},
 
            /*跳转列表*/
            gotoList() {
                let url = '/pages/plus/seckill/list/list';
                this.gotoPage(url);
            },
 
            /*跳转产品详情*/
            gotoDetail(e) {
                let url = '/pages/product/detail/detail?product_id=' + e;
                this.gotoPage(url);
            }
        }
    };
</script>
 
<style lang="scss">
    .diy-seckillProduct {
        margin: 20rpx 20rpx;
        border-radius: 6rpx;
        @include background_linear('bg-bargain', 'text_color1', 180deg, 0%, 100%);
        overflow: hidden;
        box-shadow: 0px 8rpx 3rpx 0px rgba(6, 0, 1, 0.03);
    }
 
    .diy-seckillProduct .sharpproduct-head {
        height: 90rpx;
        color: #000000;
        background-size: 100% 100%;
    }
 
    .diy-seckillProduct .name {
        width: 200rpx;
    }
 
    .diy-seckillProduct .sharpproduct-body {
        padding: 0 20rpx;
    }
 
    .diy-seckillProduct .sharpproduct-head .name {
        font-size: 32rpx;
        font-weight: bold;
    }
 
    .diy-seckillProduct .sharpproduct-head .datetime::v-deep text {
        font-size: 24rpx;
        color: #ffffff;
    }
 
    .diy-seckillProduct .sharpproduct-head .datetime::v-deep .box {
        padding: 4rpx 10rpx;
        font-size: 22rpx;
        background: #FFEBEB;
        color: #EE1413;
    }
 
    .diy-seckillProduct .sharpproduct-head .icon-jiantou {
        margin-left: 8rpx;
        color: #333333;
        font-size: 22rpx;
    }
 
    .diy-seckillProduct .product-list .product-item {
        overflow: hidden;
        flex-shrink: 0;
    }
 
    .diy-seckillProduct .product-list .product-cover image {
        width: 100%;
        height: 100%;
        background-color: #F4F4F4;
        border-radius: 12rpx;
    }
 
    .diy-seckillProduct .product-list .price {
        font-size: 20rpx;
        color: #F01A1A;
        line-height: 26rpx;
        padding-top: 16rpx;
        padding-bottom: 8rpx;
    }
 
    .diy-seckillProduct .product-list .product-title {
        margin-top: 26rpx;
        height: 30rpx;
        line-height: 30rpx;
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        font-size: 30rpx;
    }
 
    .diy-seckillProduct .column__3 .product-list .product-title {
        font-size: 28rpx;
    }
 
    .diy-seckillProduct .column__3 .product-list {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
 
    .diy-seckillProduct .column__3 .product-item {
        width: 132rpx;
        margin-right: 46rpx;
        border-radius: 6rpx;
        overflow: hidden;
        margin-top: 20rpx;
        padding-bottom: 16rpx;
    }
 
    .diy-seckillProduct .column__3 .product-cover {
        width:132rpx;
        height: 132rpx;
        margin: 0 auto;
        margin-bottom: 16rpx;
    }
 
    .diy-assembleproduct .product-list {
        flex-wrap: nowrap;
    }
</style>