news-item.vue 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <template>
  2. <view class="news-item" @click="onClickDetail(item)">
  3. <view class="news-title">组装自动化与测试测量深度融合,赋能电子制造业高质量发展2024</view>
  4. <view class="news-time">2024年6月28日</view>
  5. <view class="news-summary">
  6. <view class="text">在人类历史长河中,工业生产一直是社会进步的重要驱动力,而自动化技术的飞速发展,使其正在经历前所未有的变革。特别是在电子生产制造领域,传统的人工操作由于易疲劳、品质不稳定以及</view>
  7. <view class="to-detail"><view>了解详情</view> <view class="arrow iconfont icon-right-s"></view></view>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. components: {
  14. },
  15. props: {
  16. type: String,
  17. item: Object
  18. },
  19. data() {
  20. return {
  21. }
  22. },
  23. created() {
  24. },
  25. methods: {
  26. onClickDetail(item) {
  27. if (this.type === 'exhibitor') {
  28. this.navigateTo('https://mp-test-onlinecatelogue.matchexpo.cn/Selis-responds-to-Guangzhou-s-inquiry-on-M7-accident-identification-the-owner-does-not-recognize-the-analysis-conclusion-that-the-case-has-entered-the-judicial-procedure')
  29. } else {
  30. this.navigateTo('https://www.productronicachina.com.cn/2025%E6%85%95%E5%B0%BC%E9%BB%91%E4%B8%8A%E6%B5%B7%E7%94%B5%E5%AD%90%E7%94%9F%E4%BA%A7%E8%AE%BE%E5%A4%87%E5%B1%953%E6%9C%88%E5%A5%8F%E5%93%8D%E6%96%B0%E7%AF%87%E7%AB%A0-%E6%8E%A2%E7%B4%A2%E7%94%B5%E5%AD%90%E5%88%B6%E9%80%A0%E7%9A%84%E6%97%A0%E9%99%90%E5%8F%AF%E8%83%BD')
  31. }
  32. }
  33. }
  34. }
  35. </script>
  36. <style lang="scss">
  37. .news-item{
  38. display: flex;
  39. flex-direction: column;
  40. height: 210rpx;
  41. background-color: #F6F6F6;
  42. border-radius: 10rpx;
  43. padding: 24rpx 30rpx;
  44. }
  45. .news-summary{
  46. display: flex;
  47. align-items: center;
  48. }
  49. .news-title{
  50. @include text-ellipsis-line;
  51. font-family: Arial, Arial;
  52. font-weight: bold;
  53. font-size: $fontSize3;
  54. line-height: 35rpx;
  55. }
  56. .news-time{
  57. font-size: $fontSize0;
  58. color: #555555;
  59. margin: 12rpx 0;
  60. }
  61. .news-summary{
  62. font-size: $fontSize1;
  63. line-height: 25rpx;
  64. .text{
  65. padding-right: 30rpx;
  66. color: #555555;
  67. @include text-ellipsis-line;
  68. -webkit-line-clamp: 2;
  69. }
  70. .to-detail{
  71. display: flex;
  72. align-items: center;
  73. flex-shrink: 0;
  74. color: $buttonPrimaryColor;
  75. font-size: 16rpx;
  76. font-weight: bold;
  77. padding: 0 24rpx;
  78. }
  79. .arrow{
  80. margin-left: 12rpx;
  81. font-size: $fontSize0;
  82. }
  83. }
  84. </style>