progress.vue 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  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="line"></view>
  43. <view class="item">
  44. <image src="" mode=""></image>
  45. <view class="item-info">
  46. <view class="item-tit">新建项目</view>
  47. <view class="item-time">2021年06月17日 12:20:34 夏天里的清凉</view>
  48. </view>
  49. <view class="line1"></view>
  50. </view>
  51. <view class="item">
  52. <image src="" mode="" ref="firstitem"></image>
  53. <view class="item-info">
  54. <view class="item-tit">
  55. 审核时间
  56. <text>已通过</text>
  57. </view>
  58. <view class="item-time">2021年06月17日 12:20:34 夏天里的清凉</view>
  59. </view>
  60. </view>
  61. <view class="item">
  62. <image src="" mode=""></image>
  63. <view class="item-info">
  64. <view class="item-tit">捐赠审核</view>
  65. <scroll-view scroll-y="true" class="item-num" @scrolltolower="loadMore()">
  66. <view class="item-wrapper">
  67. <template v-for="(item, index) in jzrList">
  68. <view :key="index" class="jzr-item" :class="[index % 4 === 0 ? 'bg1' : index % 4 === 1 ? 'bg2' : index % 4 === 2 ? 'bg3' : 'bg4']" @click="navTo('/pages/donate/progresst?name='+item.name)">
  69. <view class="item-title clamp">{{ item.name }}</view>
  70. <view class="item-status">{{item.status === 0 ? '捐物响应通过': '捐物响应未通过'}}</view>
  71. </view>
  72. </template>
  73. </view>
  74. </scroll-view>
  75. </view>
  76. </view>
  77. <view class="item">
  78. <image src="" mode=""></image>
  79. <view class="item-info">
  80. <view class="item-tit">统计信息</view>
  81. <view class="all-info flex">
  82. <view class="">
  83. 捐赠进度
  84. <text class="jd">30%</text>
  85. </view>
  86. <view class="">
  87. 捐赠笔数
  88. <text>25次</text>
  89. </view>
  90. <view class="">
  91. 总计估值
  92. <text>¥100000</text>
  93. </view>
  94. <view class="">
  95. 物流累计
  96. <text>20次</text>
  97. </view>
  98. <view class="" style="width: 100%;">
  99. 上线时间
  100. <text>2021年06月10日</text>
  101. </view>
  102. </view>
  103. </view>
  104. <view class="line2"></view>
  105. </view>
  106. </view>
  107. </view>
  108. </template>
  109. <script>
  110. export default {
  111. data() {
  112. return {
  113. peopleList: [],
  114. isShow: false,
  115. jzrList: [
  116. {
  117. name: '司马光',
  118. status: 0
  119. },
  120. {
  121. name: '砸缸',
  122. status: 1
  123. },
  124. {
  125. name: '司马缸',
  126. status: 0
  127. },
  128. {
  129. name: '砸光',
  130. status: 1
  131. },
  132. {
  133. name: '司马砸',
  134. status: 1
  135. },
  136. {
  137. name: '光缸',
  138. status: 0
  139. }
  140. ]
  141. };
  142. },
  143. mounted() {},
  144. methods: {
  145. navTo(url) {
  146. uni.navigateTo({
  147. url: url
  148. })
  149. },
  150. loadMore() {
  151. console.log('到底了')
  152. let arr = [
  153. {
  154. name: '司马光',
  155. status: 0
  156. },
  157. {
  158. name: '砸缸',
  159. status: 1
  160. },
  161. {
  162. name: '司马缸',
  163. status: 0
  164. },
  165. {
  166. name: '砸光',
  167. status: 1
  168. },
  169. {
  170. name: '司马砸',
  171. status: 1
  172. },
  173. {
  174. name: '光缸',
  175. status: 0
  176. }
  177. ]
  178. this.jzrList.push(arr)
  179. }
  180. }
  181. };
  182. </script>
  183. <style lang="scss" scoped>
  184. .top {
  185. padding: 40rpx 0;
  186. background-color: #fff;
  187. margin: 20rpx 0;
  188. .top-t {
  189. display: flex;
  190. justify-content: space-between;
  191. padding: 0 55rpx;
  192. .top-item {
  193. width: 160rpx;
  194. display: flex;
  195. flex-direction: column;
  196. justify-content: center;
  197. align-items: center;
  198. margin-bottom: 30rpx;
  199. image {
  200. width: 160rpx;
  201. height: 160rpx;
  202. background: #ffffff;
  203. border-radius: 14px;
  204. margin-bottom: 15rpx;
  205. }
  206. .item-tit {
  207. font-size: 24rpx;
  208. font-family: PingFang SC;
  209. font-weight: 500;
  210. color: #333333;
  211. line-height: 1;
  212. }
  213. }
  214. }
  215. }
  216. .main {
  217. background-color: #fff;
  218. padding-right: 30rpx;
  219. height: 100%;
  220. position: relative;
  221. .line {
  222. width: 2rpx;
  223. // height: 60rpx;
  224. height: 100%;
  225. background-color: #fa7e67;
  226. position: absolute;
  227. left: 60rpx;
  228. }
  229. .item {
  230. position: relative;
  231. image {
  232. width: 45rpx;
  233. height: 45rpx;
  234. background: #fa7e67;
  235. border-radius: 50%;
  236. position: absolute;
  237. top: 49rpx;
  238. left: 40rpx;
  239. z-index: 3;
  240. }
  241. .item-info {
  242. width: 600rpx;
  243. position: relative;
  244. left: 112rpx;
  245. padding-bottom: 34rpx;
  246. border-bottom: 1px solid #ededed;
  247. .item-tit {
  248. padding-top: 39rpx;
  249. font-size: 32rpx;
  250. font-family: PingFang SC;
  251. font-weight: 500;
  252. color: #333333;
  253. line-height: 1;
  254. text {
  255. display: inline-block;
  256. width: 87rpx;
  257. height: 33rpx;
  258. border: 1px solid #0ec400;
  259. border-radius: 5rpx;
  260. font-size: 24rpx;
  261. font-family: PingFang SC;
  262. font-weight: 500;
  263. color: #0ec400;
  264. text-align: center;
  265. line-height: 30rpx;
  266. margin-left: 10rpx;
  267. }
  268. }
  269. .item-time {
  270. padding-top: 17rpx;
  271. font-size: 24rpx;
  272. font-family: PingFang SC;
  273. font-weight: 500;
  274. color: #bfbfbf;
  275. line-height: 1;
  276. }
  277. .item-num {
  278. margin-top: 21rpx;
  279. height: 392rpx;
  280. width: 592rpx;
  281. // background-color: red;
  282. .item-wrapper {
  283. display: flex;
  284. flex-wrap: wrap;
  285. width: 592rpx;
  286. .jzr-item {
  287. height: 196rpx;
  288. width: 296rpx;
  289. background-color: #fff;
  290. background-size: 100% 100%;
  291. padding-top: 33rpx;
  292. padding-left: 28rpx;
  293. .item-title {
  294. font-size: 27rpx;
  295. font-family: PingFang SC;
  296. font-weight: bold;
  297. color: #333333;
  298. line-height: 1;
  299. }
  300. .item-status {
  301. padding-top: 20rpx;
  302. font-size: 24rpx;
  303. font-family: PingFang SC;
  304. font-weight: 500;
  305. color: #333333;
  306. line-height: 1;
  307. }
  308. }
  309. }
  310. .bg1 {
  311. background-image: url(../../static/img/bg1.png);
  312. }
  313. .bg2 {
  314. background-image: url(../../static/img/bg2.png);
  315. }
  316. .bg3 {
  317. background-image: url(../../static/img/bg3.png);
  318. }
  319. .bg4 {
  320. background-image: url(../../static/img/bg4.png);
  321. }
  322. }
  323. .all-info {
  324. margin-top: 20rpx;
  325. width: 601rpx;
  326. height: 174rpx;
  327. border: 1px solid #cccccc;
  328. border-radius: 10rpx;
  329. font-size: 24rpx;
  330. font-family: PingFang SC;
  331. font-weight: 500;
  332. color: #999999;
  333. align-items: center;
  334. flex-wrap: wrap;
  335. view {
  336. flex-shrink: 0;
  337. width: 50%;
  338. padding-left: 20rpx;
  339. text {
  340. display: inline-block;
  341. margin-left: 5rpx;
  342. color: #000000;
  343. }
  344. .jd {
  345. color: #e80000;
  346. }
  347. }
  348. }
  349. }
  350. .line1 {
  351. position: absolute;
  352. width: 2rpx;
  353. height: 61rpx;
  354. background-color: #fff;
  355. top: 0;
  356. left: 60rpx;
  357. z-index: 2;
  358. }
  359. .line2 {
  360. position: absolute;
  361. width: 2rpx;
  362. height: 250rpx;
  363. background-color: #fff;
  364. bottom: 0;
  365. left: 60rpx;
  366. }
  367. .line5 {
  368. position: absolute;
  369. width: 2rpx;
  370. height: 100%;
  371. background-color: #fa7e67;
  372. top: 0;
  373. left: 60rpx;
  374. z-index: 1;
  375. }
  376. .line6 {
  377. position: absolute;
  378. width: 2rpx;
  379. height: 61rpx;
  380. background-color: #fa7e67;
  381. top: 0;
  382. left: 60rpx;
  383. }
  384. }
  385. }
  386. </style>