You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<template> <view class="li" @click="$goPage('/pages/indexEntry/examines/detail/detail')"> <view class="flex"> <view class="cover"> <image :src="item.background" mode=""></image> </view> <view class="textCon"> <view class="name oneRowText">{{ item.name }}</view> <!-- <view class="starBox"> <u-rate active-color="#1989FA" inactive-color="#1989FA" gutter="1" :size="16" :value="item.star" readonly></u-rate> <view class="num">没有返回字段</view> </view> --> <view class="modeCar">准考车型:{{item.carType}}</view> </view> <callPhone :servicePhone="[item.phone]"> <view class="pozPhone"> <image src="@/static/images/index/telephone.png" mode=""></image> </view> </callPhone> </view> <view class="redBox"v-if="item.notification&&item.notification.length"> <u-notice-bar :text="item.notification" bgColor="#FBE8EA" color="#C12727" fontSize="12"></u-notice-bar> </view> </view> </template>
<script> export default { props: ['item'], data() { return { text1: '免费开放日:2023/08/08 ' } } } </script>
<style lang="scss" scoped> /deep/.redBox .u-notice__content__text{ line-height: 24rpx !important; } .flex { position: relative; .cover { width: 204rpx; height: 140rpx; border-radius: 8rpx; overflow: hidden; } .textCon { flex: 1; padding: 0 0 0 36rpx; width: 0; .name { font-size: 32rpx; font-weight: 600; margin-bottom: 32rpx; } .starBox { padding: 10rpx 0 20rpx 0; } .modeCar { font-size: 24rpx; color: #686B73; } } .pozPhone { position: absolute; bottom: 0rpx; right: 0rpx; width: 72rpx; height: 72rpx; // transform: translateY(-50%);
} } .redBox { width: 100%; display: flex; background: #FBE8EA; height: 40rpx; align-items: center; margin-top: 34rpx; overflow: hidden; .icon { width: 40rpx; image { width: 28rpx; height: 28rpx; margin-left: auto; } } .marqueeW { width: 0; flex: 1; } } </style>
|