donateDetail.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579
  1. <template>
  2. <view class="detail">
  3. <view class="top">
  4. <image src="../../static/images/bgi2.png" mode=""></image>
  5. <view class="title clamp">夏天的清凉阳光孤儿院物资爱心捐赠活动</view>
  6. <view class="tip">
  7. <view class=""></view>
  8. 基本信息
  9. </view>
  10. <view class="base-info">
  11. <view class="item">
  12. <text>捐赠进度</text>
  13. <text class="status">30%</text>
  14. </view>
  15. <view class="item">
  16. <text>创立时间</text>
  17. 2021年6月10日
  18. </view>
  19. <view class="item">
  20. <text>开始时间</text>
  21. 2021年6月10日
  22. </view>
  23. <view class="item">
  24. <text>结束时间</text>
  25. 2021年6月10日
  26. </view>
  27. </view>
  28. <view class="dynamic flex">
  29. <view class="left">实时动态</view>
  30. <view class="right flex">
  31. <view>捐赠时间:2021年06月10日</view>
  32. <view>
  33. 捐赠人:
  34. <text>李**</text>
  35. </view>
  36. <view class="clamp" style="width: 500rpx;">捐赠数量:帐篷[100]顶,帐篷[100]顶,帐篷[100]顶,帐篷[100]顶</view>
  37. </view>
  38. </view>
  39. </view>
  40. <view class="content">
  41. <view class="content-nav flex">
  42. <view class="nav-item" v-for="(item, index) in navList" :key="index" :class="{ active: currentIndex === index }" @click="navClick(index)">{{ item }}</view>
  43. </view>
  44. </view>
  45. <view v-if="currentIndex === 0">
  46. <view class="item-detail" ref="swiperItemOne">
  47. <view class="tip">
  48. <view class=""></view>
  49. 捐赠介绍
  50. </view>
  51. <view class="item-content">内容介绍内容介绍内容介绍内容介绍内容介绍内容介绍, 内容介绍内容介绍内容介绍内。</view>
  52. <view class="tip">
  53. <view class=""></view>
  54. 项目需求
  55. </view>
  56. <view class="item-needs">
  57. <view class="need-item">
  58. <view class="">
  59. 帐篷类(帐篷):
  60. <text>500</text>
  61. </view>
  62. <view class="">
  63. 最低需求捐赠数:
  64. <text>500</text>
  65. </view>
  66. <view class="">
  67. 物资捐赠要求:
  68. <text>全新</text>
  69. </view>
  70. </view>
  71. <view class="need-item">
  72. <view class="">
  73. 帐篷类(帐篷):
  74. <text>500</text>
  75. </view>
  76. <view class="">
  77. 最低需求捐赠数:
  78. <text>500</text>
  79. </view>
  80. <view class="">
  81. 物资捐赠要求:
  82. <text>全新</text>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. <view v-else class="feedback">
  89. <view class="feedback-nav">
  90. <view class="nav-item" :class="{'action': navCurrentIndex === 0}" @click="lookmore(0)">全部</view>
  91. <view class="nav-item" :class="{'action': navCurrentIndex === 1}" @click="lookmore(1)">已成功</view>
  92. <view class="nav-item nav-item-err" :class="{'action': navCurrentIndex === 2}" @click="lookmore(2)">已失败</view>
  93. </view>
  94. <view class="feedback-content">
  95. <view class="overall" v-if="navCurrentIndex === 0">
  96. <view class="title">
  97. 项目整体反馈
  98. </view>
  99. <view class="content">
  100. 截止2021年6月10日,荆州市红十字会已将捐赠的消毒液1120瓶和帐篷200顶,500箱矿泉水全数发往阳光福利院。
  101. </view>
  102. </view>
  103. <view class="feedback-item">
  104. <view class="item-top">
  105. <image src="" mode=""></image>
  106. <view class="item-name-time">
  107. <view class="item-name">荆州捐赠</view>
  108. <view class="item-time">2021年06月10日 22:25:14</view>
  109. </view>
  110. </view>
  111. <view class="item-content">
  112. <text>荆州XXXX有限分公司</text>2021年6月10日,荆州市红十字会已将贵公司捐赠的消毒液1120瓶和帐篷200顶,发往阳光福利院。
  113. </view>
  114. </view>
  115. </view>
  116. </view>
  117. <view class="btn-wrapper flex">
  118. <view class="btn1 btn" @click="navTo('/pages/donate/progress')">
  119. 实时进展
  120. </view>
  121. <view class="btn2 btn" @click="want()">
  122. 我要捐款
  123. </view>
  124. </view>
  125. <uni-popup ref="popup" type="center">
  126. <view class="type-box">
  127. <image src="../../static/img/sele.png" mode="" class="bg"></image>
  128. <view class="box-title">捐款类型</view>
  129. <view class="box-tip">请选择您的捐赠身份类型</view>
  130. <view class="box-btn" @click="chooseType(1)">
  131. <image src="" mode=""></image>
  132. <view class="btn-title" >
  133. 个人捐赠
  134. </view>
  135. <view class="qq" :class="{'action': jxType === 1}">
  136. <view class="yx">
  137. </view>
  138. </view>
  139. </view>
  140. <view class="box-btn" @click="chooseType(0)">
  141. <image src="" mode=""></image>
  142. <view class="">
  143. 企业(团队)捐赠
  144. </view>
  145. <view class="qq" :class="{'action': jxType === 0}">
  146. <view class="yx">
  147. </view>
  148. </view>
  149. </view>
  150. <view class="qr" @click="qr()">
  151. 确认
  152. </view>
  153. </view>
  154. </uni-popup>
  155. </view>
  156. </template>
  157. <script>
  158. export default {
  159. data() {
  160. return {
  161. navList: ['捐赠详情', '捐赠反馈'],
  162. currentIndex: 0,
  163. swiperHeight: 0,
  164. navCurrentIndex: 0,
  165. jxType: 0,
  166. };
  167. },
  168. methods: {
  169. navTo(url) {
  170. uni.navigateTo({
  171. url: url
  172. })
  173. },
  174. navClick(index) {
  175. this.currentIndex = index;
  176. },
  177. lookmore(index) {
  178. this.navCurrentIndex = index
  179. },
  180. want() {
  181. this.$refs.popup.open()
  182. },
  183. chooseType(index) {
  184. this.jxType = index
  185. },
  186. qr() {
  187. this.$refs.popup.close()
  188. this.navTo('/pages/donate/idonate?type=' + this.jxType )
  189. }
  190. }
  191. };
  192. </script>
  193. <style lang="scss" scoped>
  194. page {
  195. width: 100%;
  196. }
  197. .top {
  198. height: 863rpx;
  199. background-color: #fff;
  200. border-top: 1rpx solid #f6f6f6;
  201. padding-top: 33rpx;
  202. margin-bottom: 20rpx;
  203. image {
  204. display: block;
  205. width: 680rpx;
  206. height: 375rpx;
  207. border-radius: 20rpx;
  208. margin: 0 auto;
  209. background-color: red;
  210. }
  211. .title {
  212. width: 580rpx;
  213. font-size: 32rpx;
  214. font-family: PingFang SC;
  215. font-weight: bold;
  216. color: #333333;
  217. line-height: 1;
  218. padding-top: 28rpx;
  219. padding-left: 42rpx;
  220. margin-bottom: 39rpx;
  221. }
  222. .base-info {
  223. font-size: 27rpx;
  224. font-family: PingFang SC;
  225. font-weight: 500;
  226. color: #999999;
  227. line-height: 1;
  228. display: flex;
  229. padding: 0 56rpx;
  230. flex-wrap: wrap;
  231. .item {
  232. width: 50%;
  233. padding-bottom: 40rpx;
  234. .status {
  235. color: red;
  236. font-weight: bold;
  237. }
  238. text {
  239. font-size: 26rpx;
  240. font-family: PingFang SC;
  241. font-weight: 500;
  242. color: #666666;
  243. display: inline-block;
  244. margin-right: 15rpx;
  245. }
  246. }
  247. }
  248. .dynamic {
  249. width: 666rpx;
  250. height: 111rpx;
  251. background: #efefef;
  252. border-radius: 10rpx;
  253. margin: 5rpx auto 0;
  254. .left {
  255. width: 115rpx;
  256. height: 111rpx;
  257. background: #5c93fc;
  258. border-radius: 10rpx 0px 0px 10rpx;
  259. font-size: 28rpx;
  260. font-family: PingFang SC;
  261. font-weight: 500;
  262. color: #ffffff;
  263. line-height: 34rpx;
  264. padding: 22rpx 29rpx;
  265. margin-right: 15rpx;
  266. }
  267. .right {
  268. font-size: 22rpx;
  269. font-family: PingFang SC;
  270. font-weight: 400;
  271. color: #333333;
  272. line-height: 1;
  273. padding: 12rpx 0;
  274. flex-direction: column;
  275. justify-content: space-between;
  276. text {
  277. color: red;
  278. font-weight: bold;
  279. }
  280. }
  281. }
  282. }
  283. .content {
  284. .content-nav {
  285. height: 82rpx;
  286. background: #ffffff;
  287. font-size: 30rpx;
  288. font-family: PingFang SC;
  289. font-weight: 500;
  290. color: #999999;
  291. line-height: 82rpx;
  292. justify-content: space-around;
  293. .active {
  294. border-bottom: 4rpx solid #fa7e67;
  295. color: #fa7e67;
  296. font-weight: bold;
  297. }
  298. }
  299. }
  300. .tip {
  301. margin-left: 42rpx;
  302. font-size: 30rpx;
  303. font-family: PingFang SC;
  304. font-weight: bold;
  305. color: #333333;
  306. line-height: 1;
  307. margin-bottom: 34rpx;
  308. view {
  309. display: inline-block;
  310. width: 4rpx;
  311. height: 30rpx;
  312. background: #fa7e67;
  313. border-radius: 2rpx;
  314. margin-right: 9rpx;
  315. position: relative;
  316. bottom: -2rpx;
  317. }
  318. }
  319. .btn-wrapper {
  320. .btn {
  321. width: 50%;
  322. text-align: center;
  323. height: 99rpx;
  324. line-height: 99rpx;
  325. font-size: 34rpx;
  326. font-family: PingFang SC;
  327. font-weight: 500;
  328. color: #ffffff;
  329. }
  330. .btn1 {
  331. background-color: #f7c03e;
  332. }
  333. .btn2 {
  334. background-color: #fa7e67;
  335. }
  336. }
  337. .item-detail {
  338. padding-top: 42rpx;
  339. .item-content {
  340. padding: 0 78rpx 0 48rpx;
  341. font-size: 26rpx;
  342. font-family: PingFang SC;
  343. font-weight: 500;
  344. color: #666666;
  345. line-height: 44rpx;
  346. margin-bottom: 32rpx;
  347. }
  348. .item-needs {
  349. .need-item {
  350. width: 666rpx;
  351. height: 150rpx;
  352. background: #f3f3f3;
  353. border-radius: 10rpx;
  354. margin: 0 auto;
  355. font-size: 26rpx;
  356. font-family: PingFang SC;
  357. font-weight: 500;
  358. color: #333333;
  359. margin-bottom: 10rpx;
  360. padding-top: 20rpx;
  361. padding-left: 13rpx;
  362. line-height: 1;
  363. view {
  364. margin-bottom: 15rpx;
  365. text {
  366. color: #e80000;
  367. }
  368. }
  369. }
  370. }
  371. }
  372. .feedback {
  373. padding: 25rpx 41rpx 36rpx;
  374. .feedback-nav {
  375. margin-bottom: 20rpx;
  376. .nav-item {
  377. display: inline-block;
  378. width: 100rpx;
  379. height: 55rpx;
  380. background: #FDCBC2;
  381. box-shadow: 0px 0px 10rpx 0rpx rgba(0, 0, 0, 0.1);
  382. border-radius: 10rpx;
  383. margin-right: 20rpx;
  384. text-align: center;
  385. line-height: 55rpx;
  386. font-size: 24rpx;
  387. font-family: PingFang SC;
  388. font-weight: 500;
  389. color: #FFFFFF;
  390. }
  391. .nav-item-err {
  392. color: #999999;
  393. background: #F1F1F0;
  394. }
  395. .action {
  396. background: #FA7E67;
  397. color: #fff;
  398. }
  399. }
  400. .feedback-content {
  401. .overall {
  402. .title {
  403. width: 667rpx;
  404. height: 75rpx;
  405. background: #FA7E67;
  406. box-shadow: 0px 0px 10rpx 0rpx rgba(0, 0, 0, 0.1);
  407. border-radius: 10rpx 10rpx 0px 0px;
  408. font-size: 28rpx;
  409. font-family: PingFang SC;
  410. font-weight: bold;
  411. color: #FFFFFF;
  412. line-height: 75rpx;
  413. padding-left: 17rpx;
  414. }
  415. .content {
  416. padding: 33rpx 36rpx 43rpx 30rpx;
  417. width: 667rpx;
  418. background-color: #fff;
  419. box-shadow: 0px 0px 10rpx 0px rgba(0, 0, 0, 0.1);
  420. border-radius: 0px 0px 10rpx 10rpx;
  421. font-size: 26rpx;
  422. font-family: PingFang SC;
  423. font-weight: 500;
  424. color: #999999;
  425. line-height: 42rpx;
  426. }
  427. }
  428. .feedback-item {
  429. margin: 20rpx auto;
  430. // display: flex;
  431. background-color: #fff;
  432. box-shadow: 0px 0px 10rpx 0px rgba(0, 0, 0, 0.1);
  433. border-radius: 10rpx 10rpx 10rpx;
  434. .item-top {
  435. height: 118rpx;
  436. border-radius: 10px 10px 0 0;
  437. border-bottom: 1px solid #ECECEC;
  438. padding: 25rpx 0 0 17rpx;
  439. display: flex;
  440. image {
  441. width: 77rpx;
  442. height: 77rpx;
  443. border-radius: 50%;
  444. background-color: red;
  445. margin-right: 12rpx;
  446. }
  447. .item-name-time {
  448. .item-name {
  449. font-size: 28rpx;
  450. font-family: PingFang SC;
  451. font-weight: bold;
  452. color: #333333;
  453. line-height: 35rpx;
  454. }
  455. .item-time {
  456. font-size: 24rpx;
  457. font-family: PingFang SC;
  458. font-weight: 500;
  459. color: #999999;
  460. line-height: 50rpx;
  461. }
  462. }
  463. }
  464. .item-content {
  465. padding: 25rpx 47rpx 40rpx 30rpx;
  466. border-radius: 0 0 10rpx 10rpx;
  467. font-size: 26rpx;
  468. font-family: PingFang SC;
  469. font-weight: 500;
  470. color: #999;
  471. line-height: 42rpx;
  472. text {
  473. color: #E80000;
  474. font-weight: bold;
  475. }
  476. }
  477. }
  478. }
  479. }
  480. .type-box {
  481. width: 542rpx;
  482. height: 575rpx;
  483. // background: linear-gradient(0deg, rgba(249, 98, 105, 0.06), rgba(255, 255, 255, 0.06));
  484. border-radius: 20rpx;
  485. background-color: #fff;
  486. position: relative;
  487. .bg {
  488. width: 100%;
  489. height: 138rpx;
  490. position: absolute;
  491. }
  492. .box-title {
  493. text-align: center;
  494. font-size: 36rpx;
  495. font-family: PingFang SC;
  496. font-weight: bold;
  497. color: #333333;
  498. line-height: 1;
  499. padding-top: 77rpx;
  500. }
  501. .box-tip {
  502. text-align: center;
  503. font-size: 24rpx;
  504. font-family: PingFang SC;
  505. font-weight: 500;
  506. color: #808080;
  507. line-height: 1;
  508. padding-top: 12rpx;
  509. margin-bottom: 43rpx;
  510. }
  511. .box-btn {
  512. margin: 0 auto;
  513. width: 460rpx;
  514. height: 95rpx;
  515. display: flex;
  516. align-items: center;
  517. border-bottom: 1px solid #f3efef;
  518. position: relative;
  519. image {
  520. height: 43rpx;
  521. width: 43rpx;
  522. background-color: red;
  523. margin-right: 15rpx;
  524. }
  525. .qq {
  526. width: 32rpx;
  527. height: 32rpx;
  528. border: 1px solid #808080;
  529. opacity: 0.5;
  530. border-radius: 50%;
  531. position: absolute;
  532. right: 0;
  533. }
  534. .action {
  535. border-color: #FA7E67;
  536. // position: relative;
  537. .yx {
  538. width: 20rpx;
  539. height: 20rpx;
  540. background: #FA7E67;
  541. // border: 1px solid #FA7E67;
  542. border-radius: 50%;
  543. position: absolute;
  544. top: 0;
  545. bottom: 0;
  546. left: 0;
  547. right: 0;
  548. margin: auto;
  549. }
  550. }
  551. }
  552. .qr {
  553. width: 460rpx;
  554. height: 71rpx;
  555. background: #FA7E67;
  556. box-shadow: 0px 16rpx 16rpx 0px rgba(250, 126, 103, 0.5);
  557. border-radius: 10rpx;
  558. font-size: 28rpx;
  559. font-family: PingFang SC;
  560. font-weight: 500;
  561. color: #FFFFFF;
  562. text-align: center;
  563. line-height: 71rpx;
  564. margin: 62rpx auto 0;
  565. }
  566. }
  567. </style>