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

170 lines
3.7 KiB

  1. <template>
  2. <view class="my-xiansuo">
  3. <view class="course-box-item flex">
  4. <u--image :showLoading="true" :src="saleData.photo" width="281rpx" height="256rpx"></u--image>
  5. <view class="box-right">
  6. <view class="active-title">{{saleData.title}}</view>
  7. <view class="active-time">
  8. <text>{{saleData.activityTime}}</text>
  9. </view>
  10. <view class="active-add">
  11. <text>{{saleData.place}}</text>
  12. </view>
  13. <view class="user-img flex align-center">
  14. <u--image class="user-img-sing" v-for="(val,i) in saleData.members" :key="i" :showLoading="true" shape="circle" :src="val.headImage" width="51rpx" height="51rpx"></u--image>
  15. <view class="duode flex align-center justify-center">···</view>
  16. </view>
  17. </view>
  18. </view>
  19. <view class="liulan">
  20. <view class="liulan-title flex align-center justify-between">
  21. <text>浏览总数</text>
  22. <text class="num">{{saleData.members.length}}</text>
  23. </view>
  24. <view class="user-from">
  25. <view class="from-line flex align-center" v-for="(val,i) in saleData.members" :key="i">
  26. <view class="dot"></view>
  27. <view class="line-r flex align-center">
  28. <u--image class="mr-2" :showLoading="true" shape="circle" :src="val.headImage" width="88rpx" height="88rpx"></u--image>
  29. <view class="name-time">
  30. <view>{{val.nickName}}</view>
  31. <view class="time">{{val.createTime}}</view>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </template>
  39. <script>
  40. export default{
  41. data(){
  42. return{
  43. activityId: '',
  44. saleData:{}
  45. }
  46. },
  47. onLoad(e) {
  48. this.activityId = e.id;
  49. this.getsaleClueById(e.id)
  50. },
  51. // 隐藏微信h5的标题栏
  52. onReady() {
  53. this.$com.displayNav()
  54. },
  55. methods:{
  56. getsaleClueById(activityId){
  57. this.$api('saleClueById',{activityId})
  58. .then(res=>{
  59. if(res.code == 200){
  60. this.saleData = res.result;
  61. }
  62. })
  63. }
  64. }
  65. }
  66. </script>
  67. <style lang="scss" scoped>
  68. .my-xiansuo {
  69. padding: 17rpx 19rpx 0 13rpx;
  70. .course-box-item {
  71. background: #ffffff;
  72. border-radius: 12rpx;
  73. box-shadow: 0px 3rpx 6rpx 0px rgba(0,0,0,0.16);
  74. padding: 33rpx 13rpx;
  75. .box-right {
  76. margin-left: 16rpx;
  77. .active-title {
  78. font-size: 30rpx;
  79. color: #000;
  80. line-height: 40rpx;
  81. overflow: hidden;
  82. display: -webkit-box;
  83. -webkit-box-orient: vertical;
  84. -webkit-line-clamp: 2;
  85. }
  86. .active-time {
  87. color: #707070;
  88. font-size: 26rpx;
  89. margin: 10rpx 0 14rpx 0;
  90. }
  91. .active-add {
  92. color: #707070;
  93. font-size: 26rpx;
  94. }
  95. .user-img {
  96. margin-top: 26rpx;
  97. .user-img-sing {
  98. margin-right: 10rpx;
  99. &:nth-child(6){
  100. margin-right: 0;
  101. }
  102. }
  103. .duode {
  104. width: 51rpx;
  105. height: 51rpx;
  106. border-radius: 50%;
  107. background-color: #C6C6C6;
  108. color: #ffffff;
  109. font-size: 44rpx;
  110. }
  111. }
  112. }
  113. }
  114. .liulan {
  115. background: #ffffff;
  116. border-radius: 12rpx;
  117. box-shadow: 0px 3rpx 6rpx 0px rgba(0,0,0,0.16);
  118. padding: 0 25rpx 88rpx;
  119. margin-top: 12rpx;
  120. .liulan-title {
  121. font-size: 30rpx;
  122. color: #000000;
  123. border-bottom: 1px solid #E6E6E6;
  124. padding: 33rpx 0 19rpx;
  125. .num{
  126. color: #D33D3E;
  127. }
  128. }
  129. .user-from {
  130. .from-line {
  131. border-bottom: 1px solid #ECECEC;
  132. padding: 20rpx 0 8rpx 0;
  133. .dot {
  134. width: 10rpx;
  135. height: 10rpx;
  136. border-radius: 50%;
  137. background-color: #ED1450;
  138. margin-right: 13rpx;
  139. }
  140. .line-r {
  141. .name-time {
  142. font-size: 24rpx;
  143. color: #3B3B3B;
  144. }
  145. .time {
  146. font-size: 20rpx;
  147. color: #929292;
  148. margin-top: 13rpx;
  149. }
  150. }
  151. }
  152. }
  153. }
  154. }
  155. </style>