兼兼街公众号代码
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.

63 lines
1.2 KiB

2 years ago
  1. <template>
  2. <view class="new-card flex justify-between" @click="seeDetail">
  3. <view class="new-card-l flex flex-column justify-between">
  4. <view class="title">{{item.title}}</view>
  5. <view>{{item.createTime}}</view>
  6. </view>
  7. <view class="new-card-r">
  8. <u--image :showLoading="true" :src="item.photo" width="216rpx" height="216rpx"></u--image>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. export default{
  14. props:{
  15. item:{
  16. type:Object,
  17. }
  18. },
  19. data(){
  20. return{
  21. }
  22. },
  23. methods:{
  24. seeDetail(){
  25. this.$emit('seeDetail',this.item)
  26. }
  27. }
  28. }
  29. </script>
  30. <style lang="scss" scoped>
  31. .new-card {
  32. //border-bottom: 1px solid #C8C8C8;
  33. margin-bottom: 24rpx;
  34. background-color: #FFFFFF;
  35. .new-card-l {
  36. font-size: 28rpx;
  37. color: #C8C8C8;
  38. padding: 16rpx 16rpx;
  39. .title {
  40. font-size: 32rpx;
  41. color: #000000;
  42. line-height: 40rpx;
  43. font-weight: 600;
  44. overflow: hidden;
  45. display: -webkit-box;
  46. -webkit-box-orient: vertical;
  47. -webkit-line-clamp: 2;
  48. font-family: SimSun;
  49. }
  50. }
  51. .new-card-r{
  52. uni-image>img {
  53. border-top-right-radius: 4rpx;
  54. border-bottom-right-radius: 4rpx;
  55. }
  56. }
  57. }
  58. </style>