contribution.vue 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  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. <!-- <a href="http://yyhszh.yygrwhg.com/willsoft/deyy/MobileView.aspx?id=1"> -->
  8. <!-- <view class="info" @click="tocontrilist">
  9. <image src="../../static/img/list.png" mode=""></image>
  10. </view> -->
  11. <!-- </a> -->
  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. 开户名:
  23. {{ item.name }}
  24. <view class="copy" @click="copy(item.name)">复制开户名</view>
  25. </view>
  26. <!-- <view class="detail-spe">
  27. 开户行:{{ item.count }} <view class="copyband" @click="copy(item.count)">复制开户行</view>
  28. </view> -->
  29. <!-- <view class="copyband" @click="copy(item.count)">复制开户行</view> -->
  30. <view class="detail-item" >
  31. 银行账户:{{ item.number}} <view class="copy" @click="copy(item.number)">复制账号</view>
  32. </view>
  33. <view class="detail-spe">
  34. <view class="left">
  35. <!-- <view class="left1"> -->
  36. 开户行:
  37. <!-- </view> -->
  38. </view>
  39. <view class="right">
  40. {{ item.count }}
  41. <view class="copyband" @click="copy(item.count)">复制开户行</view>
  42. </view>
  43. </view>
  44. </view>
  45. <!-- <view class="title">
  46. 2.捐款二维码
  47. </view> -->
  48. <!-- <view class="erweima">
  49. <image src="../../static/img/channel.jpg" mode=""></image>
  50. </view> -->
  51. <!-- <view class="weixin">
  52. <image src="../../static/img/channel.jpg" mode=""></image>
  53. </view> -->
  54. <view class="love">
  55. <image src="../../static/img/danate01.png" mode=""></image>
  56. </view>
  57. <view class="title">
  58. 2.现场捐款
  59. </view>
  60. <view class="detail">
  61. <view class="detail-item">
  62. 负责人:李秀娟
  63. </view>
  64. <view class="detail-item">
  65. 咨询电话:027-83891093
  66. </view>
  67. <view class="detail-item">
  68. 地址:武汉市东西湖区径河街径西三路33号
  69. </view>
  70. <!-- <view class="phone">
  71. 0574-62619095
  72. </view>
  73. <view class="phone">
  74. 0574-62619330
  75. </view> -->
  76. </view>
  77. </view>
  78. </view>
  79. </template>
  80. <script>
  81. import uniCopy from '../../components/js_sdk/xb-copy/uni-copy.js';
  82. export default {
  83. data() {
  84. return {
  85. list:[
  86. { id:0,
  87. name:'武汉市东西湖区红十字会',
  88. count:'中国邮政储蓄银行股份有限公司武汉市东西湖区支行',
  89. number:'942002010069216669' }
  90. ]
  91. }
  92. },
  93. methods: {
  94. tocontrilist() {
  95. uni.navigateTo({
  96. url: "/pages/applic/tocontrilist"
  97. })
  98. },
  99. copy(value) {
  100. let obj = this;
  101. let content = value; //需要复制的内容
  102. // content = typeof content === 'string' ? content : content.toString(); // 复制内容,必须字符串,数字需要转换为字符串
  103. const result = uniCopy(content);
  104. if (result === false) {
  105. uni.showToast({
  106. title: '不支持'
  107. });
  108. } else {
  109. uni.showToast({
  110. title: '复制成功',
  111. icon: 'none'
  112. });
  113. }
  114. },
  115. }
  116. }
  117. </script>
  118. <style lang="scss">
  119. body,
  120. page {
  121. height: 100%;
  122. background-color: #FFFFFF;
  123. }
  124. .content {
  125. background-color: #FFFFFF;
  126. line-height: 1;
  127. padding-top: 25rpx;
  128. padding: 24rpx 24rpx 0;
  129. .top {
  130. display: flex;
  131. justify-content: space-between;
  132. align-items: center;
  133. .img {
  134. width: 360rpx;
  135. height: 80rpx;
  136. margin-left: -22rpx;
  137. image {
  138. width: 360rpx;
  139. height: 80rpx;
  140. }
  141. }
  142. .info {
  143. width: 50rpx;
  144. height: 50rpx;
  145. image {
  146. width: 50rpx;
  147. height: 50rpx;
  148. }
  149. }
  150. }
  151. .cross {
  152. margin-left: 6rpx;
  153. height: 76rpx;
  154. line-height: 76rpx;
  155. color: #444444;
  156. border-bottom: 1rpx solid #CCCCCC;
  157. }
  158. .box {
  159. padding: 0 0 24rpx;
  160. .title {
  161. font-size: 28rpx;
  162. margin: 26rpx 0;
  163. font-weight: 700;
  164. }
  165. .love{
  166. margin: 32rpx 0;
  167. width: 100%;
  168. height: 373rpx;
  169. image{
  170. width: 100%;
  171. height: 373rpx;
  172. }
  173. }
  174. .detail {
  175. font-size: 28rpx;
  176. line-height: 40rpx;
  177. .detail-spe {
  178. line-height: 46rpx;
  179. display: flex;
  180. margin-top: 12rpx;
  181. // align-items: center;
  182. // overflow: hidden;
  183. // text-overflow: ellipsis;
  184. // display: -webkit-box; //必须结合的属性,将对象作为弹性伸缩盒子模型显示
  185. // -webkit-line-clamp: 2; //控制文本的行数
  186. // -webkit-box-orient: vertical; //必须结合的属性,设置或检索伸缩盒对象的子元素的排列方式
  187. .left{
  188. width: 158rpx;
  189. // display: flex;
  190. // .left1{
  191. // width: 100%;
  192. // }
  193. }
  194. .right{
  195. line-height: 46rpx;
  196. // display: flex;
  197. // margin-top: 12rpx;
  198. align-items: center;
  199. overflow: hidden;
  200. text-overflow: ellipsis;
  201. display: -webkit-box; //必须结合的属性,将对象作为弹性伸缩盒子模型显示
  202. -webkit-line-clamp: 2; //控制文本的行数
  203. -webkit-box-orient: vertical; //必须结合的属性,设置或检索伸缩盒对象的子元素的排列方式
  204. }
  205. .copyband{
  206. display: flex;
  207. float:right;
  208. // float: right;
  209. justify-content: center;
  210. background-color: #F1F1F1;
  211. border-radius: 6rpx;
  212. line-height: 34rpx;
  213. font-size: 14rpx;
  214. color: #333;
  215. // padding: 0 24rpx;
  216. width: 164rpx;
  217. height: 34rpx;
  218. margin-top: 8rpx;
  219. }
  220. }
  221. .detail-item {
  222. margin-top: 12rpx;
  223. display: flex;
  224. justify-content: space-between;
  225. align-items: center;
  226. // height: 40rpx;
  227. line-height: 46rpx;
  228. color: #000;
  229. .copy{
  230. display: flex;
  231. justify-content: center;
  232. background-color: #F1F1F1;
  233. border-radius: 6rpx;
  234. line-height: 34rpx;
  235. font-size: 14rpx;
  236. color: #333;
  237. padding: 0 24rpx;
  238. // width: 144rpx;
  239. height: 34rpx;
  240. }
  241. }
  242. .phone {
  243. margin-left: 138rpx;
  244. height: 40rpx;
  245. color: #000;
  246. }
  247. }
  248. .erweima {
  249. .zhifu {
  250. margin-top: 24rpx;
  251. color: #4a9fdd;
  252. font-weight: 900;
  253. font-size: 48rpx;
  254. }
  255. display: flex;
  256. flex-direction: column;
  257. align-items: center;
  258. width: 100%;
  259. height: 100%;
  260. image {
  261. width: 490rpx;
  262. height: 524rpx;
  263. }
  264. .name {
  265. margin: 14rpx 0;
  266. color: #d32d26;
  267. font-weight: 900;
  268. font-size: 48rpx;
  269. }
  270. }
  271. .weixin {
  272. display: flex;
  273. flex-direction: column;
  274. align-items: center;
  275. width: 100%;
  276. height: 100%;
  277. .zhifu {
  278. margin-top: 24rpx;
  279. color: #428751;
  280. font-weight: 900;
  281. font-size: 48rpx;
  282. }
  283. image {
  284. width: 490rpx;
  285. height: 524rpx;
  286. }
  287. .name {
  288. margin: 14rpx 0;
  289. color: #d32d26;
  290. font-weight: 900;
  291. font-size: 48rpx;
  292. }
  293. }
  294. }
  295. }
  296. </style>