You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							130 lines
						
					
					
						
							2.8 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							130 lines
						
					
					
						
							2.8 KiB
						
					
					
				
								<template>
							 | 
						|
									<view class="content">
							 | 
						|
										<view class="title">剁手不心疼</view>
							 | 
						|
										<view class="card" @click="$url('/pages/shop/seckillList')">
							 | 
						|
											<view class="title">{{ title || '秒杀购' }}</view>
							 | 
						|
											<view class="desc">低价不等人,快来秒杀啦~</view>
							 | 
						|
											<scroll-view class="scroll-view" :scroll-x="true">
							 | 
						|
												<view class="lf-flex">
							 | 
						|
													<view class="goods-item" v-for="(item, index) in list" :key="index">
							 | 
						|
														<image class="goods-img" :src="item.image || item.associate.goods.img"></image>
							 | 
						|
														<view class="lf-line-1 goods-title">{{ item.associate.goods.name }}</view>
							 | 
						|
														<!-- <view class="goods-price">
							 | 
						|
															<text>¥{{ item.associate.seckill_price }}</text>
							 | 
						|
															<text>¥{{ item.associate.goods.sell_price }}</text>
							 | 
						|
														</view> -->
							 | 
						|
														<view class="goods-price1">¥{{ item.associate.seckill_price }}</view>
							 | 
						|
														<view class="goods-price2">¥{{ item.associate.goods.sell_price }}</view>
							 | 
						|
													</view>
							 | 
						|
												</view>
							 | 
						|
											</scroll-view>
							 | 
						|
										</view>
							 | 
						|
									</view>
							 | 
						|
								</template>
							 | 
						|
								
							 | 
						|
								<script>
							 | 
						|
									export default {
							 | 
						|
										props: {
							 | 
						|
											list: {
							 | 
						|
												type: Array,
							 | 
						|
												default: []
							 | 
						|
											},
							 | 
						|
											title: {
							 | 
						|
												type: String,
							 | 
						|
												default: ''
							 | 
						|
											}
							 | 
						|
										},
							 | 
						|
										data(){
							 | 
						|
											return {
							 | 
						|
												
							 | 
						|
											}
							 | 
						|
										},
							 | 
						|
										methods: {
							 | 
						|
											
							 | 
						|
										}
							 | 
						|
									}
							 | 
						|
								</script>
							 | 
						|
								
							 | 
						|
								<style lang="scss" scoped="scoped">
							 | 
						|
									.content{
							 | 
						|
										padding: 60rpx 32rpx 0;
							 | 
						|
										width: 750rpx;
							 | 
						|
										height: max-content;
							 | 
						|
										box-sizing: border-box;
							 | 
						|
										.title{
							 | 
						|
											font-size: 36rpx;
							 | 
						|
											font-weight: bold;
							 | 
						|
											text-align: center;
							 | 
						|
											color: #222222;
							 | 
						|
											margin-bottom: 30rpx;
							 | 
						|
										}
							 | 
						|
										.card{
							 | 
						|
											width: 686rpx;
							 | 
						|
											height: 471rpx;
							 | 
						|
											background: #F3F8F8;
							 | 
						|
											border-radius: 20rpx;
							 | 
						|
											padding: 40rpx;
							 | 
						|
											box-sizing: border-box;
							 | 
						|
											display: flex;
							 | 
						|
											justify-content: center;
							 | 
						|
											flex-direction: column;
							 | 
						|
											align-items: center;
							 | 
						|
											.title{
							 | 
						|
												font-size: 32rpx;
							 | 
						|
												font-weight: bold;
							 | 
						|
												color: #15716E;
							 | 
						|
											}
							 | 
						|
											.desc{
							 | 
						|
												width: 317rpx;
							 | 
						|
												height: 33rpx;
							 | 
						|
												background: #15716E;
							 | 
						|
												border-radius: 17rpx;
							 | 
						|
												font-size: 24rpx;
							 | 
						|
												color: #FFFFFF;
							 | 
						|
												text-align: center;
							 | 
						|
												line-height: 33rpx;
							 | 
						|
												margin-top: 10rpx;
							 | 
						|
												margin-bottom: 40rpx;
							 | 
						|
											}
							 | 
						|
											.scroll-view, .scroll-view>view{
							 | 
						|
												width: 100%;
							 | 
						|
											}
							 | 
						|
											.goods-item{
							 | 
						|
												margin-right: 33rpx;
							 | 
						|
												width: 180rpx;
							 | 
						|
												.goods-img{
							 | 
						|
													width: 180rpx;
							 | 
						|
													height: 180rpx;
							 | 
						|
													border-radius: 10rpx;
							 | 
						|
													background-color: #EEEEEE;
							 | 
						|
												}
							 | 
						|
												.goods-title{
							 | 
						|
													font-size: 24rpx;
							 | 
						|
													color: #222222;
							 | 
						|
													margin-top: 10rpx;
							 | 
						|
												}
							 | 
						|
												// .goods-price>text:nth-child(1n){
							 | 
						|
												// 	font-size: 28rpx;
							 | 
						|
												// 	color: #F63434;
							 | 
						|
												// 	font-weight: bold;
							 | 
						|
												// }
							 | 
						|
												// .goods-price>text:nth-child(2n){
							 | 
						|
												// 	font-size: 24rpx;
							 | 
						|
												// 	color: #777777;
							 | 
						|
												// 	margin-left: 15rpx;
							 | 
						|
												// 	text-decoration: line-through;
							 | 
						|
												// }
							 | 
						|
												.goods-price1{
							 | 
						|
													font-size: 28rpx;
							 | 
						|
													color: #F63434;
							 | 
						|
													font-weight: bold;
							 | 
						|
												}
							 | 
						|
												.goods-price2{
							 | 
						|
													font-size: 24rpx;
							 | 
						|
													color: #777777;
							 | 
						|
													text-decoration: line-through;
							 | 
						|
												}
							 | 
						|
											}
							 | 
						|
										}
							 | 
						|
									}
							 | 
						|
								</style>
							 |