contribution.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. <template>
  2. <view class="content">
  3. <view class="top">
  4. <view class="img">
  5. <image src="../../static/img/logo.png" mode=""></image>
  6. </view>
  7. <!-- <view class="name">
  8. <view class="chinaName">
  9. 怀化市红十字会
  10. </view>
  11. </view> -->
  12. </view>
  13. <view class="cross">
  14. 社会捐款通道
  15. </view>
  16. <view class="box">
  17. <view class="title">
  18. 1.捐赠账户
  19. </view>
  20. <view class="detail" v-for="item in list" :key="item.id">
  21. <view class="detail-item">
  22. 开户名:{{ item.name }} <view class="copy" @click="copy(item.name)">复制开户名</view>
  23. </view>
  24. <view class="detail-item">
  25. 开户行:{{ item.count }} <view class="copy" @click="copy(item.count)">复制开户行</view>
  26. </view>
  27. <view class="detail-item">
  28. 银行账户:{{ item.number}} <view class="copy" @click="copy(item.number)">复制账号</view>
  29. </view>
  30. </view>
  31. <view class="title">
  32. 2.捐赠二维码
  33. </view>
  34. <view class="erweima">
  35. <!-- <view class="zhifu">
  36. 支付宝扫码捐款
  37. </view> -->
  38. <image src="../../static/img/other.png" mode="widthFix" style="width: 100%;margin: 20rpx 0 40rpx;"></image>
  39. </view>
  40. <!-- <view class="weixin">
  41. <view class="zhifu">
  42. 微信扫码捐款
  43. </view>
  44. <image src="../../static/img/crosss.png" mode=""></image>
  45. </view> -->
  46. <view class="title">
  47. 3.现场捐赠
  48. </view>
  49. <view class="detail">
  50. <view class="detail-item">
  51. 地址:湖南省怀化市鹤城区怀化市市民服务中心A栋10楼
  52. </view>
  53. <view class="detail-item">
  54. 捐赠电话:0745-2235116
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. </template>
  60. <script>
  61. import uniCopy from '../../components/js_sdk/xb-copy/uni-copy.js';
  62. export default {
  63. data(){
  64. return {
  65. list:[
  66. { id:0, spread_url: 11,name:'怀化市红十字会', count:'工商银行怀化政通支行', number:'1914104629100017475' }
  67. ]
  68. }
  69. },
  70. methods:{
  71. copy(value) {
  72. let obj = this;
  73. let content = value; //需要复制的内容
  74. // content = typeof content === 'string' ? content : content.toString(); // 复制内容,必须字符串,数字需要转换为字符串
  75. const result = uniCopy(content);
  76. if (result === false) {
  77. uni.showToast({
  78. title: '不支持'
  79. });
  80. } else {
  81. uni.showToast({
  82. title: '复制成功',
  83. icon: 'none'
  84. });
  85. }
  86. },
  87. //确定支付
  88. //选择支付方式
  89. //打开支付框
  90. }
  91. }
  92. </script>
  93. <style lang="scss">
  94. body,page{
  95. height: 100%;
  96. background-color: #fefefe;
  97. }
  98. .content{
  99. background-color: #fefefe;
  100. line-height: 1;
  101. padding-top: 25rpx;
  102. padding: 24rpx 24rpx 0;
  103. .top {
  104. display: flex;
  105. align-items: center;
  106. .img{
  107. width: 360rpx;
  108. height: 80rpx;
  109. margin-left: -22rpx;
  110. image{
  111. width: 360rpx;
  112. height: 80rpx;
  113. }
  114. }
  115. .name{
  116. margin-left: 8rpx;
  117. .chinaName{
  118. font-weight: 300;
  119. font-size: 34rpx;
  120. }
  121. // .englishName{
  122. // font-size: 14rpx;
  123. // color: #9A9A9A;
  124. // }
  125. }
  126. }
  127. .cross{
  128. margin-left: 6rpx;
  129. height: 76rpx;
  130. line-height: 76rpx;
  131. color: #444444;
  132. border-bottom:1rpx solid #CCCCCC;
  133. }
  134. .box{
  135. padding: 0 0 24rpx;
  136. .title{
  137. font-size: 28rpx;
  138. margin: 20rpx 0;
  139. font-weight: 700;
  140. }
  141. .detail{
  142. font-size: 28rpx;
  143. .detail-item{
  144. display: flex;
  145. justify-content: space-between;
  146. align-items: center;
  147. // height: 40rpx;
  148. line-height: 46rpx;
  149. color: #000;
  150. .copy{
  151. display: flex;
  152. justify-content: center;
  153. background-color: #F1F1F1;
  154. border-radius: 16rpx;
  155. line-height: 34rpx;
  156. font-size: 14rpx;
  157. color: #333;
  158. padding: 0 24rpx;
  159. // width: 144rpx;
  160. height: 34rpx;
  161. }
  162. }
  163. }
  164. .erweima{
  165. .zhifu{
  166. margin-top: 24rpx;
  167. color: #4a9fdd;
  168. font-weight: 900;
  169. font-size: 48rpx;
  170. }
  171. display: flex;
  172. flex-direction: column;
  173. align-items: center;
  174. width: 100%;
  175. height: 100%;
  176. image{
  177. width: 490rpx;
  178. height: 524rpx;
  179. }
  180. .name{
  181. margin: 14rpx 0;
  182. color: #d32d26;
  183. font-weight: 900;
  184. font-size: 48rpx;
  185. }
  186. }
  187. .weixin{
  188. display: flex;
  189. flex-direction: column;
  190. align-items: center;
  191. width: 100%;
  192. height: 100%;
  193. .zhifu{
  194. margin-top: 24rpx;
  195. color: #428751;
  196. font-weight: 900;
  197. font-size: 48rpx;
  198. }
  199. image{
  200. width: 490rpx;
  201. height: 524rpx;
  202. }
  203. .name{
  204. margin: 14rpx 0;
  205. color: #d32d26;
  206. font-weight: 900;
  207. font-size: 48rpx;
  208. }
  209. }
  210. }
  211. }
  212. </style>