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

128 lines
2.3 KiB

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