我的账户
猩码学苑

专注C++开发菁英教育

亲爱的游客,欢迎!

已有账号,请

如尚未注册?

梁洁----20230109---vue项目第七天

[复制链接]
梁杰,你好 发表于 2023-1-9 23:40:34 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题
<template>
  <div class="account-botton">
    <div class="b-top">
      <div class="bottom-top">
        <div class="bottom-play"></div>
        <div>全部播放</div>
      </div>
    </div>
    <scrollView class="bottom-bottom">
      <ul>
        <li v-for="val in flist" :key="val.id" class="bb-list">
          <div class="bb-img">
            <img :src="val.picUrl" alt="" />
          </div>
          <div>
            <h1>{{ val.name }}</h1>
            <p>{{ val.singer }}</p>
          </div>
        </li>
      </ul>
    </scrollView>
  </div>
</template>

<script>
import scrollView from "../ScrollView.vue";
export default {
  name: "acountBottom",
  components: {
    scrollView,
  },
  data() {
    return {};
  },
  created() {},
  mounted() {},
  methods: {},
  props: {
    flist: {
      type: Array,
    },
  },
};
</script>

<style scoped lang="scss">
@import "../../assets/css/mixin.scss";
.account-botton {
  widows: 100%;
  //   @include bgsubColor();
  //   background-color: #ccc;

  .b-top {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    width: 100%;
    overflow: hidden;
    background-color: #ccc;
    .bottom-top {
      width: 50%;
      height: 90px;
      border: 1px solid red;
      border-radius: 40px;
      font-size: 50px;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      font-weight: 700;
      margin-bottom: 20px;

      .bottom-play {
        margin-left: 20px;
        margin-right: 10px;
        width: 80px;
        height: 80px;

        @include changeImg("../../assets/images/play");
        &.active {
          @include changeImg("../../assets/images/pause");
        }
      }
    }
  }

  .bottom-bottom {
    padding-top: 10px;
    background-color: #fff;
    position: fixed;
    top: 400px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
  }
}
.bb-list {
  padding-left: 20px;
  width: 100%;
  height: 200px;
  border-bottom: 1px solid #ccc;
  font-size: 40px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  p {
    height: 80px;
    line-height: 80px;
  }
  .bb-img {
    margin-right: 30px;
    img {
      height: 160px;
      width: 160px;
      border-radius: 40px;
    }
  }
}
h1 {
  @include clamp(1);
}
p {
  @include clamp(1);
}
</style>


回复

使用道具 举报

关注0

粉丝0

帖子77

发布主题
大家都在学
课堂讨论
一周热帖排行最近7x24小时热帖
关注我们
专注C++菁英教育

客服电话:18009298968

客服时间:9:00-21:00

猩码学苑 - 专注C++开发菁英教育!( 陕ICP备2025058934号-1 )

版权所有 © 陕西菁英数字科技有限公司 2023-2026