my-publish.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <template>
  2. <view class="flex-common-css">
  3. <Nav title="我的发布" titleColor="#333" bgckgroundBox='#fff'></Nav>
  4. <scroll-view :scroll-y="true" class="scroll-view-css content-box box-sizing-border"
  5. @scrolltolower="scrolltolower">
  6. <view class="item-box box-sizing-border b-rad-20 mb-20 bgc-f flex-justify-space"
  7. v-for="(item,index) in listData" :key="index" @click="goToUrl(item)">
  8. <image class="item-head-img flex-shrink0 b-rad-50 mr-16" src="../static/img/my/user-img.png"
  9. mode="aspectFill"></image>
  10. <view class="itme-right common-view-css">
  11. <view class="item-name flex-justify-space mb-16">
  12. <view class="">
  13. <view class="mb-4 fc-3 fs-28">
  14. 恒生科技和半导体
  15. </view>
  16. <view class="fs-24 fc-9">
  17. 1小时前
  18. </view>
  19. </view>
  20. <view class="align-items-center">
  21. <image class="rd-img mr-8" src="@/static/img/my/rd.png" mode=""></image>
  22. <view class="fs-26 fc-9">
  23. 125
  24. </view>
  25. </view>
  26. </view>
  27. <view class="text-overflow-ellipsis-t fs-30 fc-3 mb-16">
  28. 欢迎打脸,科技类型很顽强,不是刚刚说1 1吧,换着领涨,这个季节玩什么光伏储白 酒,普
  29. </view>
  30. <view class="item-img-box mb-20 align-items-center flex-wrap-wrap">
  31. <image class="b-rad-12" v-for="imgUrl in item.img" :src="imgUrl" mode="aspectFill"
  32. :class="item.img.length==1?'item-img-one':item.img.length==2?'item-img-two':'item-img-three'">
  33. </image>
  34. </view>
  35. <view class="align-items-center mb-40">
  36. <view class="label-box align-items-center mr-20 b-rad-200 bgc-F2F2F2">
  37. <image class="wz mr-8" src="@/static/img/my/wz.png" mode=""></image>
  38. <view class="fs-24 fc-9">
  39. 重庆工商职业学校
  40. </view>
  41. </view>
  42. <view class="label-box align-items-center b-rad-200 bgc-F2F2F2">
  43. <image class="wz mr-8" src="@/static/img/my/ht.png" mode=""></image>
  44. <view class="fs-24 fc-9">
  45. 买卖闲置
  46. </view>
  47. </view>
  48. </view>
  49. <view class="flex-justify-space">
  50. <view class="align-items-center">
  51. <image class="but-icons mr-8" src="@/static/img/my/fx.png" mode=""></image>
  52. <view class="fs-24 fc-9">
  53. 分享
  54. </view>
  55. </view>
  56. <view class="align-items-center">
  57. <image class="but-icons mr-8" src="@/static/img/my/z.png" mode=""></image>
  58. <view class="fs-24 fc-9">
  59. 12
  60. </view>
  61. </view>
  62. <view class="align-items-center">
  63. <image class="but-icons mr-8" src="@/static/img/my/hf.png" mode=""></image>
  64. <view class="fs-24 fc-9">
  65. 16
  66. </view>
  67. </view>
  68. <uni-icons color="#999999" type="trash" size="20"></uni-icons>
  69. </view>
  70. </view>
  71. </view>
  72. </scroll-view>
  73. <movable-area class="add-box">
  74. <movable-view direction="all" y="300">
  75. <view class="add-but b-rad-50 text-align-center" @click="addInfo()">
  76. <uni-icons type="plusempty" color="#fff" size="30"></uni-icons>
  77. </view>
  78. </movable-view>
  79. </movable-area>
  80. </view>
  81. </template>
  82. <script>
  83. export default {
  84. components: {},
  85. data() {
  86. return {
  87. listData: [{
  88. img: [
  89. 'https://img2.baidu.com/it/u=363454452,1934740400&fm=253&fmt=auto&app=138&f=JPEG?w=864&h=486'
  90. ]
  91. }, {
  92. img: ['https://img1.baidu.com/it/u=391647807,608347418&fm=253&fmt=auto&app=120&f=JPEG?w=889&h=500',
  93. 'https://img1.baidu.com/it/u=2042516722,265172545&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=500'
  94. ]
  95. }, {
  96. img: ['https://img0.baidu.com/it/u=3650197984,2591413134&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
  97. 'https://img0.baidu.com/it/u=1452587454,2859975382&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
  98. 'https://img1.baidu.com/it/u=2550250358,534330568&fm=253&fmt=auto&app=138&f=GIF?w=500&h=500',
  99. 'https://img2.baidu.com/it/u=1185521512,762382298&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'
  100. ]
  101. }]
  102. };
  103. },
  104. onLoad(data) {},
  105. mounted() {},
  106. methods: {
  107. goToUrl() {
  108. },
  109. scrolltolower() {
  110. console.log('触底');
  111. },
  112. },
  113. }
  114. </script>
  115. <style lang="scss" scoped>
  116. .content-box {
  117. padding: 20rpx 24rpx;
  118. }
  119. .item-box {
  120. padding: 24rpx;
  121. }
  122. .item-name {
  123. align-items: flex-start;
  124. }
  125. .item-head-img {
  126. width: 80rpx;
  127. height: 80rpx;
  128. }
  129. .rd-img {
  130. width: 40rpx;
  131. height: 40rpx;
  132. }
  133. .label-box {
  134. padding: 0 12rpx;
  135. height: 38rpx;
  136. line-height: 38rpx;
  137. }
  138. .wz {
  139. width: 32rpx;
  140. height: 32rpx;
  141. }
  142. .but-icons {
  143. width: 40rpx;
  144. height: 40rpx;
  145. }
  146. .item-img-box {
  147. width: calc(100% + 6rpx);
  148. }
  149. .item-img-one {
  150. width: 360rpx;
  151. height: 360rpx;
  152. }
  153. .item-img-two {
  154. width: 276rpx;
  155. height: 276rpx;
  156. margin: 0 6rpx 0 0;
  157. }
  158. .item-img-three {
  159. width: 182rpx;
  160. height: 182rpx;
  161. margin: 0 6rpx 6rpx 0;
  162. }
  163. .add-box{
  164. position: fixed;
  165. right: 98rpx;
  166. top: 10vh;
  167. max-width: 88rpx;
  168. height: 80vh;
  169. z-index: 999;
  170. }
  171. .add-but{
  172. width: 88rpx;
  173. height: 88rpx;
  174. line-height: 88rpx;
  175. background: linear-gradient( 284deg, #0290FC 0%, #01D8FF 100%);
  176. }
  177. </style>