Commit 9f5a1e15a1e2169a646090e2de2d43e3adb35656

Authored by zhiyangdu
1 parent 44dbef9a

新增达人推荐页面

src/components/recommendDaren/recommendDaren.less 0 → 100644
  1 +.recommendDaren{
  2 + padding: 0 30px;
  3 + display: flex;
  4 + .daren_box{
  5 + width:210px;
  6 + height:auto;
  7 + background:rgba(255,255,255,1);
  8 + box-shadow:0px 0px 12px 0px rgba(0,0,0,0.06);
  9 + border-radius:12px;
  10 + text-align: center;
  11 + padding: 30px 0;
  12 + margin-left: 30px;
  13 + .head_portrait{
  14 + width: 100px;
  15 + height: 100px;
  16 + border-radius: 100px;
  17 + margin: 0 auto 7px auto;
  18 + }
  19 + .name{
  20 + height:40px;
  21 + line-height: 40px;
  22 + font-size:28px;
  23 + font-weight:500;
  24 + color:rgba(51,51,51,1);
  25 + }
  26 + .desc{
  27 + height:25px;
  28 + font-size:18px;
  29 + font-weight:400;
  30 + color:rgba(153,153,153,1);
  31 + line-height:25px;
  32 + font-size: 18px;
  33 + }
  34 + .btn{
  35 + width:120px;
  36 + height:48px;
  37 + border-radius:26px;
  38 + border:1px solid rgba(252,21,65,1);
  39 + color: #FC1541;
  40 + font-size: 26px;
  41 + line-height: 48px;
  42 + margin: 25px auto 0 auto;
  43 + }
  44 + }
  45 + .daren_box:nth-child(1){
  46 + margin-left: 0px;
  47 + }
  48 +
  49 +}
src/components/recommendDaren/recommendDaren.vue 0 → 100644
  1 +<template>
  2 + <div class="recommendDaren">
  3 + <div class="daren_box">
  4 + <img class="head_portrait" src="/static/img/2.png" />
  5 + <div class="name">
  6 + 冯提莫
  7 + </div>
  8 + <div class="desc">
  9 + 国内女装大佬TOP10
  10 + </div>
  11 + <div class="btn">
  12 + 关注
  13 + </div>
  14 + </div>
  15 + <div class="daren_box">
  16 + <img class="head_portrait" src="/static/img/2.png" />
  17 + <div class="name">
  18 + 冯提莫
  19 + </div>
  20 + <div class="desc">
  21 + 国内女装大佬TOP10
  22 + </div>
  23 + <div class="btn">
  24 + 关注
  25 + </div>
  26 + </div>
  27 + </div>
  28 +</template>
  29 +
  30 +<script>
  31 + export default {
  32 + name: 'recommendDaren',
  33 + data () {
  34 + return {
  35 +
  36 + }
  37 + },
  38 + created(){
  39 +
  40 + },
  41 + methods: {
  42 + }
  43 + }
  44 +</script>
  45 +
  46 +<!-- Add "scoped" attribute to limit CSS to this component only -->
  47 +<style rel="stylesheet/less" lang="less" scoped>
  48 + @import "recommendDaren";
  49 +</style>
src/pages/newDaren/newDaren.vue
@@ -9,6 +9,8 @@ @@ -9,6 +9,8 @@
9 </swiper> 9 </swiper>
10 <!--达人信息--> 10 <!--达人信息-->
11 <darenInfo :darenInfo="darenInfo"></darenInfo> 11 <darenInfo :darenInfo="darenInfo"></darenInfo>
  12 + <!--推荐达人-->
  13 + <recommendDaren></recommendDaren>
12 <!-- 达人动态列表 --> 14 <!-- 达人动态列表 -->
13 <daren-list-box class="daren-list" @userJump="userJump" @jump="jump" @goodsJump="goodsJump" @goodsPrimary="goodsPrimary" 15 <daren-list-box class="daren-list" @userJump="userJump" @jump="jump" @goodsJump="goodsJump" @goodsPrimary="goodsPrimary"
14 :lists="[ 16 :lists="[
@@ -175,22 +177,22 @@ @@ -175,22 +177,22 @@
175 import darenListBox from "@/components/darenListBox/darenListBox"; 177 import darenListBox from "@/components/darenListBox/darenListBox";
176 import textTitleBox from "@/components/textTitleBox/textTitleBox"; 178 import textTitleBox from "@/components/textTitleBox/textTitleBox";
177 import darenInfo from "@/components/darenInfo/darenInfo"; 179 import darenInfo from "@/components/darenInfo/darenInfo";
  180 + import recommendDaren from "@/components/recommendDaren/recommendDaren";
178 export default { 181 export default {
179 name: "darenList", 182 name: "darenList",
180 data() { 183 data() {
181 return { 184 return {
182 title: "", // 标题 185 title: "", // 标题
183 -  
184 -  
185 -  
186 - 186 + darenInfo:null, // 达人信息
  187 + banner:null // 轮播
187 } 188 }
188 }, 189 },
189 components:{ 190 components:{
190 darenListBox, 191 darenListBox,
191 textTitleBox, 192 textTitleBox,
192 swiper, 193 swiper,
193 - darenInfo 194 + darenInfo,
  195 + recommendDaren
194 }, 196 },
195 created() { 197 created() {
196 198