<template>
  <view class="width-100 height-100 view-page">
    <view class="p-10 dis-flex flex-y-center flex-x-between">
      <view class="width-100">
        <u-search :clearabled="true" height="35px" placeholder="请输入搜索关键字" v-model="keyword" shape="round"
          search="doSearch" @custom="doSearch" bg-color="#e9f0f8" placeholder-color="#65371b"></u-search>
      </view>
    </view>
    <view>
    </view>
    <u-tabs ref="tabs" :list="tabList" :scrollable="false" :current="currentTab" @change="tabChange" lineColor="#65371b"
      :activeStyle="{color:'#65371b'}" inactiveStyle="{color:'#65371b'}"></u-tabs>
    <view class="info-list">
      <view class="dis-flex flex-x-between info-item" v-for="(item, index) in 10" :key="index">
        <view class="info-pic"></view>
        <view class="info-view">
          <view class="info-title">
            标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题
          </view>
          <view class="dis-flex info-bottom">
            <view style="margin-right: 20rpx;">10月07日</view>
            <u-icon name="thumb-up" color="#7f7f7f" size="18"></u-icon>
            <view style="margin-right: 20rpx;">点赞</view>
            <u-icon name="eye" color="#7f7f7f" size="18"></u-icon>
            <view>阅读量</view>
          </view>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
  import themeMixins from '@/pages/yuecai/mixins/themeMixins.js';
  export default {
    mixins: [themeMixins],
    data() {
      return {
        keyword: '',
        page: {},
        list: [],
        tabList: [{
          name: '专业风采'
        }, {
          name: '名菜'
        }, {
          name: '名店',
        }, {
          name: '名点',
        }],
        currentTab: 0
      }
    },
    onLoad(options) {},
    onShow() {},
    methods: {
      tabChange(index) {
        this.current = index;
      },
      clickInfo(index) {
        if (index < 0) {
          return;
        }
        uni.navigateTo({
          url: "/pages/yuecai/information/detail/index?id=" + this.bannerList[index].id,
        })
      },
      doSearch() {

      }
    },
  }
</script>

<style scoped lang="scss">
  .search-left-btn {
    width: 35px;
    min-width: 35px;
    height: 35px;
    margin-right: 5px;
    box-sizing: border-box;
  }

  .icon-circle {
    border-radius: 50%;
    border: 4rpx solid #65371b;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .nav-btns {
    border-bottom: 1rpx solid #65371b;
    margin-bottom: 20rpx;
    padding-bottom: 50rpx;

    .nav-btn {
      width: 150rpx;

      .nav-btn-icon {
        margin: auto;
        width: 110rpx;
        height: 110rpx;
      }

      .nav-btn-text {
        width: 100%;
        color: #65371b;
        margin-top: 5rpx;
        font-weight: bolder;
        text-align: center;
      }
    }
  }

  .info-list {
    height: calc(100% - 95px);
    overflow: auto;
    background-color: #f4f6f8;

    .info-item {
      padding: 20rpx;
      border-bottom: 2rpx solid white;

      .info-pic {
        width: 175rpx;
        height: 175rpx;
        background: bisque;
      }

      .info-view {
        width: calc(100% - 195rpx);

        .info-title {
          color: #65371b;
          font-size: 24rpx;
          font-weight: 300;
          line-height: 47rpx;
          word-spacing: 2rpx;
          overflow: hidden;
          text-overflow: -o-ellipsis-lastline;
          overflow: hidden;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-line-clamp: 3;
          line-clamp: 3;
          -webkit-box-orient: vertical;
        }

        .info-bottom {
          color: #7f7f7f;
          font-size: 24rpx;
          margin-top: 10rpx;
        }
      }
    }
  }
</style>