progress.vue 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. <template>
  2. <view class="progress">
  3. <view class="top">
  4. <view class="top-t">
  5. <view class="top-item">
  6. <image src="../../static/icon/x1.png" mode=""></image>
  7. <view class="item-tit">1.项目创建</view>
  8. </view>
  9. <view class="top-item">
  10. <image src="../../static/icon/x2.png" mode=""></image>
  11. <view class="item-tit">2.项目审核</view>
  12. </view>
  13. <view class="top-item">
  14. <image src="../../static/icon/x3.png" mode=""></image>
  15. <view class="item-tit">3.捐赠响应</view>
  16. </view>
  17. <view class="top-item">
  18. <image src="../../static/icon/x4.png" mode=""></image>
  19. <view class="item-tit">4.捐赠审核</view>
  20. </view>
  21. </view>
  22. <view class="top-t">
  23. <view class="top-item">
  24. <image src="../../static/icon/x5.png" mode=""></image>
  25. <view class="item-tit">5.捐赠品入库</view>
  26. </view>
  27. <view class="top-item">
  28. <image src="../../static/icon/x6.png" mode=""></image>
  29. <view class="item-tit">6.捐赠品出库</view>
  30. </view>
  31. <view class="top-item">
  32. <image src="../../static/icon/x7.png" mode=""></image>
  33. <view class="item-tit">7.发往受捐者</view>
  34. </view>
  35. <view class="top-item">
  36. <image src="../../static/icon/x8.png" mode=""></image>
  37. <view class="item-tit">8.受捐者反馈</view>
  38. </view>
  39. </view>
  40. </view>
  41. <view class="main">
  42. <view class="item">
  43. <image src="" mode=""></image>
  44. <view class="item-info">
  45. <view class="item-tit">新建项目</view>
  46. <view class="item-time">2021年06月17日 12:20:34 夏天里的清凉</view>
  47. </view>
  48. <view class="line1"></view>
  49. </view>
  50. <view class="item">
  51. <image src="" mode="" ref="firstitem"></image>
  52. <view class="item-info">
  53. <view class="item-tit">
  54. 审核时间
  55. <text>已通过</text>
  56. </view>
  57. <view class="item-time">2021年06月17日 12:20:34 夏天里的清凉</view>
  58. </view>
  59. </view>
  60. <view class="item">
  61. <image src="" mode=""></image>
  62. <view class="item-info">
  63. <view class="item-tit">捐赠审核</view>
  64. <scroll-view scroll-y="true" class="item-num">
  65. <view></view>
  66. </scroll-view>
  67. </view>
  68. </view>
  69. <view class="item" >
  70. <image src="" mode=""></image>
  71. <view class="item-info">
  72. <view class="item-tit">统计信息</view>
  73. <view class="all-info flex">
  74. <view class="">捐赠进度<text class="jd">30%</text></view>
  75. <view class="">捐赠笔数<text>25次</text></view>
  76. <view class="">总计估值<text>¥100000</text></view>
  77. <view class="">物流累计<text>20次</text></view>
  78. <view class="" style="width: 100%;">上线时间<text>2021年06月10日</text></view>
  79. </view>
  80. </view>
  81. </view>
  82. </view>
  83. </view>
  84. </template>
  85. <script>
  86. export default {
  87. data() {
  88. return {
  89. peopleList: [],
  90. };
  91. },
  92. mounted() {
  93. this.$nextTick(()=>{
  94. let a = this.$refs.firstitem.$el.offsetHeight;
  95. console.log(a)
  96. })
  97. },
  98. methods: {
  99. getLineHeight() {
  100. this.$nextTick(function(){
  101. console.log(this.$refs.firstitem.$el.offsetHeight)
  102. console.log(this.$refs.lastitem.$el.offsetHeight)
  103. this.height1 = this.$refs.lastitem.$el.offsetHeight - this.$refs.firstitem.$el.offsetHeight
  104. console.log(this.height1)
  105. })
  106. }
  107. }
  108. };
  109. </script>
  110. <style lang="scss" scoped>
  111. .top {
  112. padding: 40rpx 0;
  113. background-color: #fff;
  114. margin: 20rpx 0;
  115. .top-t {
  116. display: flex;
  117. justify-content: space-between;
  118. padding: 0 55rpx;
  119. .top-item {
  120. width: 160rpx;
  121. display: flex;
  122. flex-direction: column;
  123. justify-content: center;
  124. align-items: center;
  125. margin-bottom: 30rpx;
  126. image {
  127. width: 160rpx;
  128. height: 160rpx;
  129. background: #ffffff;
  130. border-radius: 14px;
  131. margin-bottom: 15rpx;
  132. }
  133. .item-tit {
  134. font-size: 24rpx;
  135. font-family: PingFang SC;
  136. font-weight: 500;
  137. color: #333333;
  138. line-height: 1;
  139. }
  140. }
  141. }
  142. }
  143. .main {
  144. background-color: #fff;
  145. padding-right: 30rpx;
  146. height: 100%;
  147. .item {
  148. position: relative;
  149. image {
  150. width: 45rpx;
  151. height: 45rpx;
  152. background: #FA7E67;
  153. border-radius: 50%;
  154. position: absolute;
  155. top: 49rpx;
  156. left: 39rpx;
  157. z-index: 2;
  158. }
  159. .item-info {
  160. width: 600rpx;
  161. position: relative;
  162. left: 112rpx;
  163. padding-bottom: 34rpx;
  164. border-bottom: 1px solid #ededed;
  165. .item-tit {
  166. padding-top: 39rpx;
  167. font-size: 32rpx;
  168. font-family: PingFang SC;
  169. font-weight: 500;
  170. color: #333333;
  171. line-height: 1;
  172. text {
  173. display: inline-block;
  174. width: 87rpx;
  175. height: 33rpx;
  176. border: 1px solid #0ec400;
  177. border-radius: 5rpx;
  178. font-size: 24rpx;
  179. font-family: PingFang SC;
  180. font-weight: 500;
  181. color: #0ec400;
  182. text-align: center;
  183. line-height: 30rpx;
  184. margin-left: 10rpx;
  185. }
  186. }
  187. .item-time {
  188. padding-top: 17rpx;
  189. font-size: 24rpx;
  190. font-family: PingFang SC;
  191. font-weight: 500;
  192. color: #bfbfbf;
  193. line-height: 1;
  194. }
  195. .item-num {
  196. margin-top: 21rpx;
  197. height: 392rpx;
  198. width: 592rpx;
  199. background-color: red;
  200. }
  201. .all-info {
  202. margin-top: 20rpx;
  203. width: 601rpx;
  204. height: 174rpx;
  205. border: 1px solid #CCCCCC;
  206. border-radius: 10rpx;
  207. font-size: 24rpx;
  208. font-family: PingFang SC;
  209. font-weight: 500;
  210. color: #999999;
  211. align-items: center;
  212. flex-wrap: wrap;
  213. view {
  214. flex-shrink: 0;
  215. width: 50%;
  216. padding-left: 20rpx;
  217. text {
  218. display: inline-block;
  219. margin-left: 5rpx;
  220. color: #000000;
  221. }
  222. .jd {
  223. color: #E80000;
  224. }
  225. }
  226. }
  227. }
  228. .line1 {
  229. width: 2rpx;
  230. height: 800rpx;
  231. background: #FA7E67;
  232. // opacity: 0.3;
  233. position: absolute;
  234. left: 61rpx;
  235. top: 90rpx;
  236. z-index: 1;
  237. }
  238. }
  239. }
  240. </style>