商城首页
This commit is contained in:
101
components/shop/recommend/index.vue
Normal file
101
components/shop/recommend/index.vue
Normal file
@@ -0,0 +1,101 @@
|
||||
<template>
|
||||
<view class="recommend">
|
||||
<view class="top">
|
||||
<text>今日秒杀推荐</text>
|
||||
<text>点击查看更多></text>
|
||||
</view>
|
||||
<view class="connect">
|
||||
<view class="time">
|
||||
<image></image>
|
||||
<text>12:00</text>
|
||||
</view>
|
||||
<view class="info">
|
||||
<text>修身套头上衣</text>
|
||||
<text class="u-line-2">珂莱蒂尔雪纺衫2020春装新简约百搭V领蕾丝九分... </text>
|
||||
<view>
|
||||
<text>¥99</text>
|
||||
<text>¥299</text>
|
||||
</view>
|
||||
</view>
|
||||
<image class="img"></image>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name:"recommend"
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.recommend{
|
||||
.top{
|
||||
height: 90rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
>text:first-child{
|
||||
font-size: 30rpx;
|
||||
color: #333;
|
||||
}
|
||||
>text:last-child{
|
||||
font-size: 18rpx;
|
||||
color: #999;
|
||||
}
|
||||
}
|
||||
.connect{
|
||||
display: flex;
|
||||
.time{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-right: 18rpx;
|
||||
justify-content: center;
|
||||
>image{
|
||||
width: 90rpx;
|
||||
height: 90rpx;
|
||||
}
|
||||
>text{
|
||||
font-size: 36rpx;
|
||||
margin-top: 25rpx;
|
||||
color: #FDD360;
|
||||
}
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.info{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
>text:nth-child(1){
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
}
|
||||
>text:nth-child(2){
|
||||
margin-top: 17rpx;
|
||||
line-height: 36rpx;
|
||||
font-size: 24rpx;
|
||||
color: #666;
|
||||
}
|
||||
>view{
|
||||
margin-top: 24rpx;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
|
||||
>text:first-child{
|
||||
font-size: 27rpx;
|
||||
color: #FF3131;
|
||||
}
|
||||
>text:last-child{
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
margin-left: 33rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
.img{
|
||||
width: 213rpx;
|
||||
height: 160rpx;
|
||||
flex-shrink: 0;
|
||||
margin-left: 13rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
71
components/shop/seckill/index.vue
Normal file
71
components/shop/seckill/index.vue
Normal file
@@ -0,0 +1,71 @@
|
||||
<template>
|
||||
<view class="seckill">
|
||||
<view class="top">
|
||||
<view class="title">
|
||||
<view class="name">全部秒杀</view>
|
||||
<view class="time">
|
||||
<text class="num">12</text>
|
||||
<text class="mah">:</text>
|
||||
<text class="num">12</text>
|
||||
<text class="mah">:</text>
|
||||
<text class="num">12</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="next">
|
||||
查看更多>
|
||||
</view>
|
||||
</view>
|
||||
<view class="list">
|
||||
<sitem></sitem>
|
||||
<sitem></sitem>
|
||||
<sitem></sitem>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import sitem from "./item"
|
||||
export default {
|
||||
name:"seckill",
|
||||
components:{
|
||||
sitem
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.seckill{
|
||||
.top{
|
||||
height: 60rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
.title{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.name{
|
||||
font-size: 30rpx;
|
||||
color: #333;
|
||||
}
|
||||
.time{
|
||||
margin-left: 39rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 20rpx;
|
||||
.num{
|
||||
width: 25rpx;
|
||||
height: 25rpx;
|
||||
background-color: #bfbfbf;
|
||||
margin: 0 10rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
.next{
|
||||
font-size: 18rpx;
|
||||
color: #999;
|
||||
}
|
||||
}
|
||||
.list{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
63
components/shop/seckill/item.vue
Normal file
63
components/shop/seckill/item.vue
Normal file
@@ -0,0 +1,63 @@
|
||||
<template>
|
||||
<view class="item">
|
||||
<image class="head"></image>
|
||||
<text class="title">商品名</text>
|
||||
<view class="price">
|
||||
<text>¥99</text>
|
||||
<text>¥299</text>
|
||||
</view>
|
||||
<view class="info">
|
||||
<text>剩余21件</text>
|
||||
<text>立即购买</text>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name:"item"
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.item{
|
||||
width: 210rpx;
|
||||
.head{
|
||||
width: 210rpx;
|
||||
height: 131rpx;
|
||||
border-radius: 6rpx;
|
||||
|
||||
}
|
||||
.title{
|
||||
font-size: 26rpx;
|
||||
color: #333;
|
||||
margin-top: 16rpx;
|
||||
}
|
||||
.price{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-top: 19rpx;
|
||||
>text:first-child{
|
||||
font-size: 26rpx;
|
||||
color: #FF3131;
|
||||
}
|
||||
>text:last-child{
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
}
|
||||
.info{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
font-size: 22rpx;
|
||||
margin-top: 19rpx;
|
||||
>text:first-child{
|
||||
color: #666;
|
||||
}
|
||||
>text:last-child{
|
||||
color: #FDD360;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
29
components/shop/shop-item/index.vue
Normal file
29
components/shop/shop-item/index.vue
Normal file
@@ -0,0 +1,29 @@
|
||||
<template>
|
||||
<view class="shop-item">
|
||||
<image></image>
|
||||
<text>名字哦</text>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name:"shopItem"
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.shop-item{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
>image{
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
border-radius: 50%;
|
||||
|
||||
}
|
||||
>text{
|
||||
font-size: 24rpx;
|
||||
color: #333;
|
||||
margin-top: 14rpx;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user