<template>
  <view class="ComCss">
    <view class="flex-box" @click="newsDetails">
      <view class="leftCss">
        <view class="topCss overflow-two-lines">
          {{newItem.title}}
        </view>
        <view class="bomCss overflow-one-lines">
          <view class="overflow-one-lines"> {{ $dict(newItem.plateName) }} </view>
          <view class="">｜</view>
          <view class="overflow-one-lines"> {{newItem.organizeName}} </view>
        </view>
      </view>
      <view class="rightCss">
        <u--image class="imgCss" :showLoading="true" width="232rpx" height="176rpx" radius="10" :src="src"></u--image>
      </view>
    </view>
  </view>
</template>

<script>
  import logoImg from '@/static/images/empty/logo.png'
  export default {
    name: "news-list",
    props: {
      newItem:{
        type:Object
      }
    },
    data() {
      return {
        src: logoImg
      };
    },
    methods:{
      newsDetails(){
        console.log("跳转");
        uni.navigateTo({
          url:'/pages/market/newsDetails?detailsContent=' + JSON.stringify(this.newItem)
        })
      }
    }
  }
</script>

<style lang="scss">
  .ComCss {
    width: 100%;
    height: 176rpx;
    margin: 48rpx 0;
  }

  .flex-box {
    display: flex;
    justify-content: space-between;
    margin: 0 34rpx;
  }

  .leftCss {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
  }

  .topCss {
    background-color: rgba(255, 255, 255, 0);
    box-sizing: border-box;
    font-family: '苹方 中等', '苹方', sans-serif;
    color: #333333;
    text-align: left;
    line-height: normal;
    font-size: 32rpx;

  }

  .bomCss {
    display: flex;
    background-color: rgba(255, 255, 255, 0);
    box-sizing: border-box;
    font-family: '苹方 中等', '苹方', sans-serif;
    color: #999db0;
    text-align: left;
    line-height: normal;
    font-size: 24rpx;
  }

  .rightCss {
    width: 232rpx;
    height: 176rpx;
  }

  .imgCss {
    width: 232rpx;
    height: 176rpx;
  }
</style>
