donateDetail.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  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="">
  89. </view>
  90. <view class="btn-wrapper flex">
  91. <view class="btn1 btn">
  92. 实时进展
  93. </view>
  94. <view class="btn2 btn">
  95. 我要捐款
  96. </view>
  97. </view>
  98. </view>
  99. </template>
  100. <script>
  101. export default {
  102. data() {
  103. return {
  104. navList: ['捐赠详情', '捐赠反馈'],
  105. currentIndex: 0,
  106. swiperHeight: 0
  107. };
  108. },
  109. methods: {
  110. navClick(index) {
  111. this.currentIndex = index;
  112. },
  113. }
  114. };
  115. </script>
  116. <style lang="scss" scoped>
  117. page {
  118. width: 100%;
  119. }
  120. .top {
  121. height: 863rpx;
  122. background-color: #fff;
  123. border-top: 1rpx solid #f6f6f6;
  124. padding-top: 33rpx;
  125. margin-bottom: 20rpx;
  126. image {
  127. display: block;
  128. width: 680rpx;
  129. height: 375rpx;
  130. border-radius: 20rpx;
  131. margin: 0 auto;
  132. background-color: red;
  133. }
  134. .title {
  135. width: 580rpx;
  136. font-size: 32rpx;
  137. font-family: PingFang SC;
  138. font-weight: bold;
  139. color: #333333;
  140. line-height: 1;
  141. padding-top: 28rpx;
  142. padding-left: 42rpx;
  143. margin-bottom: 39rpx;
  144. }
  145. .base-info {
  146. font-size: 27rpx;
  147. font-family: PingFang SC;
  148. font-weight: 500;
  149. color: #999999;
  150. line-height: 1;
  151. display: flex;
  152. padding: 0 56rpx;
  153. flex-wrap: wrap;
  154. .item {
  155. width: 50%;
  156. padding-bottom: 40rpx;
  157. .status {
  158. color: red;
  159. font-weight: bold;
  160. }
  161. text {
  162. font-size: 26rpx;
  163. font-family: PingFang SC;
  164. font-weight: 500;
  165. color: #666666;
  166. display: inline-block;
  167. margin-right: 15rpx;
  168. }
  169. }
  170. }
  171. .dynamic {
  172. width: 666rpx;
  173. height: 111rpx;
  174. background: #efefef;
  175. border-radius: 10rpx;
  176. margin: 5rpx auto 0;
  177. .left {
  178. width: 115rpx;
  179. height: 111rpx;
  180. background: #5c93fc;
  181. border-radius: 10rpx 0px 0px 10rpx;
  182. font-size: 28rpx;
  183. font-family: PingFang SC;
  184. font-weight: 500;
  185. color: #ffffff;
  186. line-height: 34rpx;
  187. padding: 22rpx 29rpx;
  188. margin-right: 15rpx;
  189. }
  190. .right {
  191. font-size: 22rpx;
  192. font-family: PingFang SC;
  193. font-weight: 400;
  194. color: #333333;
  195. line-height: 1;
  196. padding: 12rpx 0;
  197. flex-direction: column;
  198. justify-content: space-between;
  199. text {
  200. color: red;
  201. font-weight: bold;
  202. }
  203. }
  204. }
  205. }
  206. .content {
  207. .content-nav {
  208. height: 82rpx;
  209. background: #ffffff;
  210. font-size: 30rpx;
  211. font-family: PingFang SC;
  212. font-weight: 500;
  213. color: #999999;
  214. line-height: 82rpx;
  215. justify-content: space-around;
  216. .active {
  217. border-bottom: 4rpx solid #fa7e67;
  218. color: #fa7e67;
  219. font-weight: bold;
  220. }
  221. }
  222. }
  223. .tip {
  224. margin-left: 42rpx;
  225. font-size: 30rpx;
  226. font-family: PingFang SC;
  227. font-weight: bold;
  228. color: #333333;
  229. line-height: 1;
  230. margin-bottom: 34rpx;
  231. view {
  232. display: inline-block;
  233. width: 4rpx;
  234. height: 30rpx;
  235. background: #fa7e67;
  236. border-radius: 2rpx;
  237. margin-right: 9rpx;
  238. position: relative;
  239. bottom: -2rpx;
  240. }
  241. }
  242. .btn-wrapper {
  243. .btn {
  244. width: 50%;
  245. text-align: center;
  246. height: 99rpx;
  247. line-height: 99rpx;
  248. font-size: 34rpx;
  249. font-family: PingFang SC;
  250. font-weight: 500;
  251. color: #ffffff;
  252. }
  253. .btn1 {
  254. background-color: #f7c03e;
  255. }
  256. .btn2 {
  257. background-color: #fa7e67;
  258. }
  259. }
  260. .item-detail {
  261. padding-top: 42rpx;
  262. .item-content {
  263. padding: 0 78rpx 0 48rpx;
  264. font-size: 26rpx;
  265. font-family: PingFang SC;
  266. font-weight: 500;
  267. color: #666666;
  268. line-height: 44rpx;
  269. margin-bottom: 32rpx;
  270. }
  271. .item-needs {
  272. .need-item {
  273. width: 666rpx;
  274. height: 150rpx;
  275. background: #f3f3f3;
  276. border-radius: 10rpx;
  277. margin: 0 auto;
  278. font-size: 26rpx;
  279. font-family: PingFang SC;
  280. font-weight: 500;
  281. color: #333333;
  282. margin-bottom: 10rpx;
  283. padding-top: 20rpx;
  284. padding-left: 13rpx;
  285. line-height: 1;
  286. view {
  287. margin-bottom: 15rpx;
  288. text {
  289. color: #e80000;
  290. }
  291. }
  292. }
  293. }
  294. }
  295. </style>