洛阳学员端
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.

64 lines
1.3 KiB

10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
  1. <template>
  2. <view class="flex-b" @click="$goPage('pages/indexEntry/iIndustryInfo/detail/detail?id='+item.id)">
  3. <view class="imgBox">
  4. <image :src="item.picture" mode="aspectFill"></image>
  5. </view>
  6. <view class="rightText">
  7. <view class="text towRowText">{{ item.title }}</view>
  8. <view class="date">{{ $u.timeFormat(item.createTime, 'yyyy/mm/dd') }}</view>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. export default {
  14. props: {
  15. item: {
  16. type: Object,
  17. default () {
  18. return {
  19. picture: require('@/static/images/index/img_7@2x.png'),
  20. title: '测试数据',
  21. createTime: new Date()*1
  22. }
  23. }
  24. }
  25. }
  26. }
  27. </script>
  28. <style lang="scss" scoped>
  29. .flex-b {
  30. justify-content: flex-start !important;
  31. .imgBox {
  32. width: 200rpx;
  33. height: 135rpx;
  34. background: linear-gradient(180deg, rgba(0, 122, 255, 0.5) 0%, #007AFF 100%);
  35. border-radius: 20rpx;
  36. overflow: hidden;
  37. }
  38. .rightText {
  39. flex: 1;
  40. width: 0;
  41. padding: 30rpx 0 0rpx 30rpx;
  42. height: 190rpx;
  43. box-sizing: content;
  44. display: flex;
  45. flex-direction: column;
  46. justify-content: space-between;
  47. border-bottom: 1px solid #F4F4F4;
  48. .text {
  49. font-size: 28rpx;
  50. color: #333;
  51. min-height: 62rpx;
  52. margin-top: 6rpx;
  53. }
  54. .date {
  55. font-size: 20rpx;
  56. color: #686B73;
  57. margin-bottom: 30rpx;
  58. }
  59. }
  60. }
  61. </style>