帧视界壹通告,付费看视频的微信小程序
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.

125 lines
2.3 KiB

11 months ago
11 months ago
11 months ago
  1. <template>
  2. <view class="postList">
  3. <view class="item" v-for="(item, index) in list"
  4. @click="$utils.navigateTo('/publish/postDetail?id=123')"
  5. :key="index">
  6. <image :src="item.image" mode="aspectFill"></image>
  7. <view class="text">
  8. <view class="title">
  9. <view class="t">
  10. {{ item.name }}
  11. </view>
  12. <view class="auth">
  13. 已认证
  14. </view>
  15. </view>
  16. <view class="info">
  17. (介绍:介绍内容介内容介绍内容介内容介绍内容介内容介绍内容介内容)
  18. </view>
  19. <view class="createBy">
  20. <!-- <view class="">
  21. 发布人{{ item.createBy }}
  22. </view> -->
  23. <view class="">
  24. {{ item.createTime }}
  25. </view>
  26. </view>
  27. <view class="phone">
  28. 联系方式 <text>去查看</text>
  29. </view>
  30. <view class="price">
  31. 价格 <text>9999</text>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. export default {
  39. name:"postList",
  40. props : ['list'],
  41. data() {
  42. return {
  43. };
  44. }
  45. }
  46. </script>
  47. <style lang="scss" scoped>
  48. .postList{
  49. .item{
  50. height: 240rpx;
  51. width: 100%;
  52. background-color: #fff;
  53. overflow: hidden;
  54. border-radius: 10rpx;
  55. color: #777;
  56. display: flex;
  57. font-size: 24rpx;
  58. margin: 30rpx 0;
  59. image{
  60. width: 50%;
  61. height: 100%;
  62. }
  63. .text{
  64. display: flex;
  65. flex-direction: column;
  66. padding: 16rpx;
  67. width: 50%;
  68. .title{
  69. font-size: 30rpx;
  70. color: #000;
  71. display: flex;
  72. align-items: center;
  73. .t{
  74. overflow: hidden;
  75. white-space: nowrap;
  76. text-overflow: ellipsis;
  77. -o-text-overflow: ellipsis;
  78. }
  79. .auth{
  80. color: $uni-color-red;
  81. border: 1px solid $uni-color-red;
  82. font-size: 20rpx;
  83. margin-left: 10rpx;
  84. width: 60rpx;
  85. line-height: 30rpx;
  86. height: 30rpx;
  87. flex-shrink: 0;
  88. }
  89. }
  90. .info{
  91. color: #000;
  92. overflow: hidden;
  93. text-overflow: ellipsis;
  94. display: -webkit-box;
  95. -webkit-line-clamp:2;
  96. -webkit-box-orient: vertical;
  97. }
  98. .createBy{
  99. display: flex;
  100. margin-top: auto;
  101. margin-bottom: 5rpx;
  102. justify-content: space-between;
  103. &>view{
  104. display: flex;
  105. align-items: center;
  106. justify-content: center;
  107. }
  108. }
  109. .phone{
  110. text{
  111. color: #000;
  112. }
  113. }
  114. .price{
  115. color: $uni-color-red;
  116. }
  117. text{
  118. padding-left: 10rpx;
  119. }
  120. }
  121. }
  122. }
  123. </style>