推荐+readme
This commit is contained in:
parent
0f5e209d64
commit
af1e4ff55b
@ -2,7 +2,7 @@
|
||||
## 使用
|
||||
- scss
|
||||
- uniapp
|
||||
- 组建库待定
|
||||
- 组建库 [uview](http://www.uviewui.com/)
|
||||
## 目录结构
|
||||
```1=
|
||||
|-pages tabes 目录
|
||||
|
54
components/index/daren-item/index.vue
Normal file
54
components/index/daren-item/index.vue
Normal file
@ -0,0 +1,54 @@
|
||||
<template>
|
||||
<view class="daren-item">
|
||||
<image class="head"></image>
|
||||
<text class="name">这是名字</text>
|
||||
<text class="zhuangtai">直播状态</text>
|
||||
<view class="guanzhu">关注</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name:"daren-item"
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.daren-item{
|
||||
width: 215rpx;
|
||||
height: 282rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
background-color: #fff;
|
||||
border-radius: 10rpx;
|
||||
overflow: hidden;
|
||||
.head{
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
border-radius: 50%;
|
||||
margin-top: 24rpx;
|
||||
background-color: #0f0;
|
||||
}
|
||||
.name{
|
||||
font-size: 26rpx;
|
||||
color: #333;
|
||||
font-weight: 400;
|
||||
margin-top: 23rpx;
|
||||
}
|
||||
.zhuangtai{
|
||||
font-size:22rpx;
|
||||
color: #999;
|
||||
margin-top: 19rpx;
|
||||
}
|
||||
.guanzhu{
|
||||
width: 130rpx;
|
||||
height: 50rpx;
|
||||
background-color: #FF780F;
|
||||
font-size: 26rpx;
|
||||
line-height: 50rpx;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
margin-top: 19rpx;
|
||||
border-radius: 25rpx;
|
||||
}
|
||||
}
|
||||
</style>
|
@ -12,35 +12,56 @@
|
||||
<swiper class="card">
|
||||
<swiper-item>
|
||||
<scroll-view style="width:100%;height:100%" scroll-y="true">
|
||||
<indexad style="width:690rpx"></indexad>
|
||||
<view class="list">
|
||||
<view >
|
||||
<videoItem v-for="item in 10"></videoItem>
|
||||
</view>
|
||||
<view style="margin-left:20rpx">
|
||||
<videoItem v-for="item in 10"></videoItem>
|
||||
<view class="box">
|
||||
<indexad style="width:690rpx"></indexad>
|
||||
<view class="list">
|
||||
<view >
|
||||
<videoItem v-for="item in 10"></videoItem>
|
||||
</view>
|
||||
<view style="margin-left:20rpx">
|
||||
<videoItem v-for="item in 10"></videoItem>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</scroll-view>
|
||||
</swiper-item>
|
||||
<swiper-item>
|
||||
<scroll-view style="width:100%;height:100%" scroll-y="true">
|
||||
<indexad style="width:690rpx"></indexad>
|
||||
<view class="list">
|
||||
<view >
|
||||
<zhiboItem v-for="item in 10"></zhiboItem>
|
||||
</view>
|
||||
<view style="margin-left:20rpx">
|
||||
<zhiboItem v-for="item in 10"></zhiboItem>
|
||||
<view class="box">
|
||||
<indexad style="width:690rpx"></indexad>
|
||||
<view class="list">
|
||||
<view >
|
||||
<zhiboItem v-for="item in 10"></zhiboItem>
|
||||
</view>
|
||||
<view style="margin-left:20rpx">
|
||||
<zhiboItem v-for="item in 10"></zhiboItem>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</scroll-view>
|
||||
</swiper-item>
|
||||
<swiper-item>
|
||||
<scroll-view style="width:100%;height:100%" scroll-y="true">
|
||||
<view id="demo1" class="scroll-view-item uni-bg-red">A</view>
|
||||
<view id="demo2" class="scroll-view-item uni-bg-green">B</view>
|
||||
<view id="demo3" class="scroll-view-item uni-bg-blue">C</view>
|
||||
<view class="box">
|
||||
<view class="tuijian">
|
||||
<view class="title">
|
||||
<view class="left">
|
||||
<view></view>
|
||||
<text>推荐达人</text>
|
||||
</view>
|
||||
<image class="right"></image>
|
||||
</view>
|
||||
<view class="tuijianlist">
|
||||
<darenItem style="margin-right:23rpx"></darenItem>
|
||||
<darenItem style="margin-right:23rpx"></darenItem>
|
||||
<darenItem></darenItem>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</scroll-view>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
@ -93,19 +114,59 @@
|
||||
.card{
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
scroll-view{
|
||||
.box{
|
||||
width: 100%;
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
.list{
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
.tuijian{
|
||||
width: 750rpx;
|
||||
margin-left: -30rpx;
|
||||
height: 400rpx;
|
||||
background-color: #ececec;
|
||||
padding: 30rpx;
|
||||
.title{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
.left{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
>view{
|
||||
width: 6rpx;
|
||||
height: 30rpx;
|
||||
background-color: #FF780F;
|
||||
}
|
||||
>text{
|
||||
font-size: 30rpx;
|
||||
color: 30rpx;
|
||||
margin-left: 14rpx;
|
||||
}
|
||||
}
|
||||
.right{
|
||||
width: 14rpx;
|
||||
height: 24rpx;
|
||||
}
|
||||
}
|
||||
.tuijianlist{
|
||||
width: 100%;
|
||||
height: 282rpx;
|
||||
margin-top: 30rpx;
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
import videoItem from "@/components/index/video-item/index"
|
||||
import zhiboItem from "@/components/index/zhibo-item/index"
|
||||
import indexad from "@/components/index/ad/index"
|
||||
import darenItem from "@/components/index/daren-item/index"
|
||||
|
||||
|
||||
export default {
|
||||
name:"index",
|
||||
@ -117,7 +178,8 @@ export default {
|
||||
components:{
|
||||
videoItem,
|
||||
zhiboItem,
|
||||
indexad
|
||||
indexad,
|
||||
darenItem
|
||||
}
|
||||
}
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user