shop
This commit is contained in:
parent
16d586a50b
commit
55238876a8
66
components/shop/group/index.vue
Normal file
66
components/shop/group/index.vue
Normal file
@ -0,0 +1,66 @@
|
||||
<template>
|
||||
<view class="group">
|
||||
<view class="top">
|
||||
<text>全部拼团</text>
|
||||
<text>查看更多></text>
|
||||
</view>
|
||||
<view class="label">
|
||||
<text>sda</text>
|
||||
<text>asda</text>
|
||||
<text>dsad</text>
|
||||
<text>asdas</text>
|
||||
</view>
|
||||
<view class="list">
|
||||
<sitem></sitem>
|
||||
<sitem></sitem>
|
||||
<sitem></sitem>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import sitem from "./item"
|
||||
export default {
|
||||
name:"group",
|
||||
components:{
|
||||
sitem
|
||||
},
|
||||
data(){
|
||||
return {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.group{
|
||||
.top{
|
||||
height: 90rpx;
|
||||
width: 100%;
|
||||
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;
|
||||
}
|
||||
}
|
||||
.label{
|
||||
display: flex;
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
>text{
|
||||
margin-right: 34rpx;
|
||||
}
|
||||
}
|
||||
.list{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-top: 21rpx;
|
||||
|
||||
}
|
||||
}
|
||||
</style>
|
47
components/shop/group/item.vue
Normal file
47
components/shop/group/item.vue
Normal file
@ -0,0 +1,47 @@
|
||||
<template>
|
||||
<view class="item">
|
||||
<image class="head"></image>
|
||||
<text class="title">商品名</text>
|
||||
<view class="price">
|
||||
<text>¥99</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{
|
||||
color: #FDD360;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
15
components/shop/list/index.vue
Normal file
15
components/shop/list/index.vue
Normal file
@ -0,0 +1,15 @@
|
||||
<template>
|
||||
<view class="list">
|
||||
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name:"list"
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.list{
|
||||
|
||||
}
|
||||
</style>
|
72
components/shop/youhq/index.vue
Normal file
72
components/shop/youhq/index.vue
Normal file
@ -0,0 +1,72 @@
|
||||
<template>
|
||||
<view class="youhq">
|
||||
<view class="top">
|
||||
<text>全部优惠券</text>
|
||||
<text>查看更多></text>
|
||||
</view>
|
||||
<view class="label">
|
||||
<text>sda</text>
|
||||
<text>asda</text>
|
||||
<text>dsad</text>
|
||||
<text>asdas</text>
|
||||
</view>
|
||||
<scroll-view style="width:100%;margin-top: 21rpx;" scroll-x="true">
|
||||
<view class="list">
|
||||
<sitem></sitem>
|
||||
<sitem></sitem>
|
||||
<sitem></sitem>
|
||||
<sitem></sitem>
|
||||
<sitem></sitem>
|
||||
</view>
|
||||
</scroll-view>
|
||||
|
||||
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import sitem from "./item"
|
||||
export default {
|
||||
name:"youhq",
|
||||
components:{
|
||||
sitem
|
||||
},
|
||||
data(){
|
||||
return {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.youhq{
|
||||
.top{
|
||||
height: 90rpx;
|
||||
width: 100%;
|
||||
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;
|
||||
}
|
||||
}
|
||||
.label{
|
||||
display: flex;
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
>text{
|
||||
margin-right: 34rpx;
|
||||
}
|
||||
}
|
||||
.list{
|
||||
display: flex;
|
||||
// justify-content: space-between;
|
||||
width: auto;
|
||||
|
||||
}
|
||||
}
|
||||
</style>
|
83
components/shop/youhq/item.vue
Normal file
83
components/shop/youhq/item.vue
Normal file
@ -0,0 +1,83 @@
|
||||
<template>
|
||||
<view class="item">
|
||||
<view class="top">
|
||||
<view class="pic">
|
||||
<text>¥</text>
|
||||
<text>12</text>
|
||||
</view>
|
||||
<view class="man">
|
||||
<text></text>
|
||||
<text></text>
|
||||
</view>
|
||||
<text class="button">
|
||||
立即<br />领取
|
||||
</text>
|
||||
</view>
|
||||
<view class="time">
|
||||
使用时间:2020.01.24-2020.05.08
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name:"item"
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.item{
|
||||
padding: 10rpx;
|
||||
|
||||
width: 254rpx;
|
||||
height: 94rpx;
|
||||
border: 2rpx solid #FDD360;
|
||||
border-radius: 20rpx;
|
||||
flex-shrink: 0;
|
||||
margin-right: 16rpx;
|
||||
.top{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
.pic{
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
color:#FDD360;
|
||||
>text:first-child{
|
||||
font-size: 24rpx;
|
||||
}
|
||||
>text:last-child{
|
||||
font-size: 48rpx;
|
||||
}
|
||||
}
|
||||
.man{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
color: #FDD360;
|
||||
>text:first-child{
|
||||
font-size: 14rpx;
|
||||
|
||||
}
|
||||
>text:last-child{
|
||||
font-size: 18rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
.button{
|
||||
width: 61rpx;
|
||||
height: 61rpx;
|
||||
border-radius: 50%;
|
||||
font-size: 18rpx;
|
||||
background-color: #FDD360;
|
||||
color: #fff;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
.time{
|
||||
font-size: 12rpx;
|
||||
color: #FDD360;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
</style>
|
@ -41,20 +41,27 @@
|
||||
<view class="hr" style="margin-top:40rpx"></view>
|
||||
<recommend></recommend>
|
||||
<view class="hr" style="margin-top:40rpx"></view>
|
||||
|
||||
<group></group>
|
||||
<image class="lingquan"></image>
|
||||
<youhq></youhq>
|
||||
<view class="hr" style="margin-top:40rpx"></view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import shopitem from "@/components/shop/shop-item/index"
|
||||
import recommend from "@/components/shop/recommend/index"
|
||||
import seckill from "@/components/shop/seckill/index"
|
||||
import group from "@/components/shop/group/index"
|
||||
import youhq from "@/components/shop/youhq/index"
|
||||
|
||||
export default {
|
||||
name:"shop",
|
||||
components:{
|
||||
shopitem,
|
||||
recommend,
|
||||
seckill
|
||||
seckill,
|
||||
group,
|
||||
youhq
|
||||
},
|
||||
data(){
|
||||
return {
|
||||
@ -142,5 +149,12 @@ export default {
|
||||
height: 20rpx;
|
||||
background-color: #ececec;
|
||||
}
|
||||
.lingquan{
|
||||
width: 750rpx;
|
||||
height: 177rpx;
|
||||
margin-left: -33rpx;
|
||||
margin-top: 29rpx;
|
||||
background-color: #ececec;
|
||||
}
|
||||
}
|
||||
</style>
|
Loading…
x
Reference in New Issue
Block a user