fxyk-card-news.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <template>
  2. <u-card :show-head="false" :border="false" class="main-style">
  3. <view slot="body" class="body-content">
  4. <view class="d-flex u-padding-top-32">
  5. <view class="red-dot u-margin-top-8"></view>
  6. <view class="word-one">【{{ info.title }}】</view>
  7. <view>
  8. <view class="word-one">{{ info.data }}</view>
  9. <view class="word-two">{{ info.level }}</view>
  10. </view>
  11. </view>
  12. </view>
  13. <view slot="foot" class="foot-content d-flex a-center j-end">查看详情 >></view>
  14. </u-card>
  15. </template>
  16. <script>
  17. export default {
  18. props: {
  19. info: {
  20. type: Object,
  21. default: () => {
  22. return {}
  23. }
  24. }
  25. }
  26. }
  27. </script>
  28. <style lang='scss' scoped>
  29. .red-dot {
  30. width: 20rpx;
  31. height: 20rpx;
  32. background: #FF0011;
  33. border-radius: 50%;
  34. }
  35. .word-one {
  36. font-size: 32rpx;
  37. font-family: SimSun;
  38. font-weight: 400;
  39. line-height: 33rpx;
  40. color: #000000;
  41. }
  42. .word-two {
  43. font-size: 28rpx;
  44. font-family: SimSun;
  45. font-weight: 400;
  46. line-height: 27rpx;
  47. color: #FF0011;
  48. margin-top: 25rpx;
  49. }
  50. .main-style {
  51. background: #FFFFFF;
  52. box-shadow: 0rpx 6rpx 13rpx rgba(0, 0, 0, 0.16);
  53. border-radius: 17rpx;
  54. .body-content {
  55. height: 130rpx;
  56. }
  57. .foot-content {
  58. font-size: 30rpx;
  59. font-family: SimSun;
  60. font-weight: 400;
  61. color: #000000;
  62. }
  63. }
  64. </style>