首页基本完成

This commit is contained in:
2020-06-09 14:29:43 +08:00
parent 63f21c3021
commit 2f123fbb48
7 changed files with 368 additions and 2 deletions

View File

@@ -0,0 +1,47 @@
<template>
<u-popup v-model="show" mode="bottom" length="782" border-radius="20">
<view class="top">
<text>全部商品</text>
<image></image>
</view>
<scroll-view :scroll-y="true" style="padding:0 30rpx;height:692rpx">
<sitem v-for="i in 10"></sitem>
</scroll-view>
</u-popup>
</template>
<script>
import sitem from "./item"
export default {
name:'shoplist',
components:{
sitem
},
data(){
return {
show: true
}
}
}
</script>
<style lang="scss" scoped>
image{
background-color: #0f0;
}
.top{
height: 88rpx;
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 30rpx;
border-bottom: 1rpx solid #ececec;
>text{
font-size: 30rpx;
color: #333;
}
>image{
width: 33rpx;
height: 33rpx;
}
}
</style>

View File

@@ -0,0 +1,55 @@
<template>
<view class="item">
<image></image>
<view>
<text>sadas</text>
<text>dasadas</text>
<text>dsadas</text>
</view>
</view>
</template>
<script>
export default {
name:"item",
data(){
return {
}
}
}
</script>
<style lang="scss" scoped>
.item{
width: 100%;
padding-right: 206rpx;
height: 200rpx;
border-bottom: 1rpx solid #ececec;
padding: 20rpx;
display: flex;
border-radius: 10rpx;
>image{
width: 160rpx;
height: 160rpx;
}
>view{
margin-left: 20rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
>text{
font-size: 24rpx;
color: #333;
line-height: 36rpx;
}
>text:first-child{
font-size: 28rpx;
}
>text:last-child{
font-size: 28rpx;
color: #FF3131;
}
}
}
</style>