news-list.vue 1.95 KB
<template>
  <view class="ComCss">
    <view class="flex-box" @click="newsDetails">
      <view class="leftCss">
        <view class="topCss overflow-two-lines">
          壳液牌发布最新版《液化天燃
          气(LNS)前景》
        </view>
        <view class="bomCss overflow-one-lines">
          <view class="overflow-one-lines"> 行业动态 </view>
          <view class="">|</view>
          <view class="overflow-one-lines"> 中国燃气控股有限公司 </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>
  export default {
    name: "news-list",
    props: {

    },
    data() {
      return {
        src: 'https://cdn.uviewui.com/uview/album/1.jpg'
      };
    },
    methods:{
      newsDetails(){
        console.log("跳转");
        uni.navigateTo({
          url:'/pages/market/newsDetails'
        })
      }
    }
  }
</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>