donateDetail.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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. </view>
  9. <view class="base-info">
  10. <view class="item">
  11. <text>捐赠进度</text><text class="status">30%</text>
  12. </view>
  13. <view class="item">
  14. <text>创立时间</text>2021年6月10日
  15. </view>
  16. <view class="item">
  17. <text>开始时间</text>2021年6月10日
  18. </view>
  19. <view class="item">
  20. <text>结束时间</text>2021年6月10日
  21. </view>
  22. </view>
  23. <view class="dynamic flex">
  24. <view class="left">
  25. 实时动态
  26. </view>
  27. <view class="right flex">
  28. <view>捐赠时间:2021年06月10日</view>
  29. <view>捐赠人:<text>李**</text></view>
  30. <view class="clamp" style="width: 500rpx;">捐赠数量:帐篷[100]顶,帐篷[100]顶,帐篷[100]顶,帐篷[100]顶</view>
  31. </view>
  32. </view>
  33. </view>
  34. <view class="content">
  35. <view class="content-nav flex">
  36. <view class="nav-item" v-for="(item, index) in navList" :key="index" :class="{'active': currentIndex === index}" @click="navClick(index)">
  37. {{item}}
  38. </view>
  39. </view>
  40. </view>
  41. <swiper :interval="3000" :duration="500" :current="currentIndex">
  42. <swiper-item>
  43. <view class="swiper-item">555</view>
  44. </swiper-item>
  45. <swiper-item>
  46. <view class="swiper-item">666</view>
  47. </swiper-item>
  48. </swiper>
  49. <view class="btn-wrapper flex">
  50. <view class="btn1">
  51. 实时进展
  52. </view>
  53. <view class="btn2">
  54. 我要捐款
  55. </view>
  56. </view>
  57. </view>
  58. </template>
  59. <script>
  60. export default {
  61. data() {
  62. return {
  63. navList: ['捐赠详情','捐赠反馈'],
  64. currentIndex: 0
  65. }
  66. },
  67. methods: {
  68. navClick(index) {
  69. this.currentIndex = index
  70. }
  71. }
  72. }
  73. </script>
  74. <style lang="scss" scoped>
  75. .top {
  76. height: 863rpx;
  77. background-color: #fff;
  78. border-top: 1rpx solid #f6f6f6;
  79. padding-top: 33rpx;
  80. margin-bottom: 20rpx;
  81. image {
  82. display: block;
  83. width: 680rpx;
  84. height: 375rpx;
  85. border-radius: 20rpx;
  86. margin: 0 auto ;
  87. background-color: red;
  88. }
  89. .title {
  90. width: 580rpx;
  91. font-size: 32rpx;
  92. font-family: PingFang SC;
  93. font-weight: bold;
  94. color: #333333;
  95. line-height: 1;
  96. padding-top: 28rpx;
  97. padding-left: 42rpx;
  98. margin-bottom: 39rpx;
  99. }
  100. .base-info {
  101. font-size: 27rpx;
  102. font-family: PingFang SC;
  103. font-weight: 500;
  104. color: #999999;
  105. line-height: 1;
  106. display: flex;
  107. padding: 0 56rpx;
  108. flex-wrap: wrap;
  109. .item {
  110. width: 50%;
  111. padding-bottom: 40rpx;
  112. .status {
  113. color: red;
  114. font-weight: bold;
  115. }
  116. text {
  117. font-size: 26rpx;
  118. font-family: PingFang SC;
  119. font-weight: 500;
  120. color: #666666;
  121. display: inline-block;
  122. margin-right: 15rpx;
  123. }
  124. }
  125. }
  126. .dynamic {
  127. width: 666rpx;
  128. height: 111rpx;
  129. background: #EFEFEF;
  130. border-radius: 10rpx;
  131. margin: 5rpx auto 0;
  132. .left {
  133. width: 115rpx;
  134. height: 111rpx;
  135. background: #5C93FC;
  136. border-radius: 10rpx 0px 0px 10rpx;
  137. font-size: 28rpx;
  138. font-family: PingFang SC;
  139. font-weight: 500;
  140. color: #FFFFFF;
  141. line-height: 34rpx;
  142. padding: 22rpx 29rpx;
  143. margin-right: 15rpx;
  144. }
  145. .right {
  146. font-size: 22rpx;
  147. font-family: PingFang SC;
  148. font-weight: 400;
  149. color: #333333;
  150. line-height: 1;
  151. padding: 12rpx 0;
  152. flex-direction: column;
  153. justify-content: space-between;
  154. text {
  155. color: red;
  156. font-weight: bold;
  157. }
  158. }
  159. }
  160. }
  161. .content {
  162. .content-nav {
  163. height: 82rpx;
  164. background: #FFFFFF;
  165. font-size: 30rpx;
  166. font-family: PingFang SC;
  167. font-weight: 500;
  168. color: #999999;
  169. line-height: 82rpx;
  170. justify-content: space-around;
  171. .active {
  172. border-bottom: 4rpx solid #FA7E67;
  173. color: #FA7E67;
  174. font-weight: bold;
  175. }
  176. }
  177. }
  178. .tip {
  179. margin-left: 42rpx;
  180. font-size: 30rpx;
  181. font-family: PingFang SC;
  182. font-weight: bold;
  183. color: #333333;
  184. line-height: 1;
  185. margin-bottom: 34rpx;
  186. view {
  187. display: inline-block;
  188. width: 4rpx;
  189. height: 30rpx;
  190. background: #FA7E67;
  191. border-radius: 2rpx;
  192. margin-right: 9rpx;
  193. position: relative;
  194. bottom: -2rpx;
  195. }
  196. }
  197. </style>