other.vue 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. <template>
  2. <view class="content">
  3. <view class="top flex">
  4. <image src="../../static/img/002.png" mode="aspectFill"></image>
  5. <view class="font">
  6. <view class="china-font">赤壁市红十字会</view>
  7. <view class="english-font">Red Cross Society of China Chibi Branch</view>
  8. </view>
  9. </view>
  10. <view class="cross">社会捐款通道</view>
  11. <view class="box">
  12. <view class="title" style="margin-top: 0;">1.银行转账</view>
  13. <view class="detail" v-for="item in list" :key="item.id">
  14. <view class="detail-item">
  15. 开户名:{{ item.name }}
  16. <view class="copy" @click="copy(item.name)">复制开户名</view>
  17. </view>
  18. <view class="detail-item">
  19. 银行账户:{{ item.number }}
  20. <view class="copy" @click="copy(item.number)">复制账号</view>
  21. </view>
  22. <view class="detail-spe">
  23. 开户行:{{ item.count }}
  24. <view class="copyband" @click="copy(item.count)">复制开户行</view>
  25. </view>
  26. </view>
  27. <view class="image">
  28. <image src="../../static/images/oother.png" mode=""></image>
  29. </view>
  30. <!-- <view class="image">
  31. <image src="../../static/images/other.png" mode=""></image>
  32. </view> -->
  33. <!-- <view class="title">2.扫码捐款</view> -->
  34. <!-- <view class="zfb">支付宝扫码捐款</view> -->
  35. <!-- <view class="erweima"><image src="../../static/images/smjk.png" mode=""></image></view> -->
  36. <!-- <view class="weixin">微信扫码捐款</view>
  37. <view class="erweima" style="background: #02974A;"><image src="" mode=""></image></view> -->
  38. <view class="title">2.现场捐款/捐物</view>
  39. <view class="detail">
  40. <view class="detail-item">负责人:宋慧</view>
  41. <view class="detail-item">咨询电话:15549920689、0715-5336010</view>
  42. <view class="detail-item">地址:赤壁市赤壁大道786号卫健局三楼</view>
  43. </view>
  44. </view>
  45. </view>
  46. </template>
  47. <script>
  48. import uniCopy from '../../components/js_sdk/xb-copy/uni-copy.js';
  49. export default {
  50. data() {
  51. return {
  52. list: [
  53. {
  54. id: 0,
  55. spread_url: 11,
  56. name: '赤壁市红十字会',
  57. count: '湖北赤壁农村商业银行股份有限公司天骄支行',
  58. number: '82010000004351826'
  59. }
  60. ]
  61. };
  62. },
  63. methods: {
  64. tocontrilist() {
  65. uni.navigateTo({
  66. url: '/pages/applic/tocontrilist'
  67. });
  68. },
  69. copy(value) {
  70. let obj = this;
  71. let content = value; //需要复制的内容
  72. console.log('复制的内容:', content);
  73. // content = typeof content === 'string' ? content : content.toString(); // 复制内容,必须字符串,数字需要转换为字符串
  74. const result = uniCopy(content);
  75. if (result === false) {
  76. uni.showToast({
  77. title: '不支持'
  78. });
  79. } else {
  80. uni.showToast({
  81. title: '复制成功',
  82. icon: 'none'
  83. });
  84. }
  85. }
  86. }
  87. };
  88. </script>
  89. <style lang="scss">
  90. body,
  91. page {
  92. height: 100%;
  93. background-color: #fefefe;
  94. }
  95. .content {
  96. background-color: #fefefe;
  97. line-height: 1;
  98. padding-top: 25rpx;
  99. padding: 24rpx 24rpx 90rpx;
  100. .top {
  101. align-items: center;
  102. width: 100%;
  103. image {
  104. width: 64rpx;
  105. height: 64rpx;
  106. border-radius: 50%;
  107. }
  108. .font {
  109. margin-left: 20rpx;
  110. .china-font {
  111. font-size: 27rpx;
  112. font-family: PingFang SC;
  113. font-weight: bold;
  114. color: #101010;
  115. letter-spacing:20rpx;
  116. }
  117. .english-font {
  118. margin-top: 6rpx;
  119. font-size: 12rpx;
  120. font-family: PingFang SC;
  121. // font-weight: bold;
  122. color: #101010;
  123. // letter-spacing:1rpx;
  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. .image {
  135. margin-top: 44rpx;
  136. margin-bottom: 48rpx;
  137. height: 404rpx;
  138. width: 100%;
  139. image {
  140. width: 100%;
  141. height: 100%;
  142. }
  143. }
  144. .box {
  145. padding: 20rpx 0 24rpx;
  146. .title {
  147. margin-top: 60rpx;
  148. font-size: 28rpx;
  149. font-family: PingFang SC;
  150. font-weight: bold;
  151. color: #101010;
  152. }
  153. .detail {
  154. padding-top: 10rpx;
  155. font-size: 28rpx;
  156. line-height: 40rpx;
  157. .detail-spe {
  158. margin-top: 10rpx;
  159. line-height: 46rpx;
  160. overflow: hidden;
  161. text-overflow: ellipsis;
  162. display: -webkit-box; //必须结合的属性,将对象作为弹性伸缩盒子模型显示
  163. -webkit-line-clamp: 2; //控制文本的行数
  164. -webkit-box-orient: vertical; //必须结合的属性,设置或检索伸缩盒对象的子元素的排列方式
  165. .copyband {
  166. display: flex;
  167. float: right;
  168. // float: right;
  169. justify-content: center;
  170. background-color: #f1f1f1;
  171. border-radius: 10rpx;
  172. line-height: 34rpx;
  173. font-size: 24rpx;
  174. color: #333;
  175. // padding: 0 24rpx;
  176. width: 168rpx;
  177. height: 34rpx;
  178. margin-top: 8rpx;
  179. }
  180. }
  181. .detail-item {
  182. display: flex;
  183. justify-content: space-between;
  184. align-items: center;
  185. // height: 40rpx;
  186. line-height: 46rpx;
  187. color: #000;
  188. margin-top: 10rpx;
  189. .copy {
  190. width: 168rpx;
  191. display: flex;
  192. justify-content: center;
  193. background-color: #f1f1f1;
  194. border-radius: 10rpx;
  195. line-height: 34rpx;
  196. font-size: 24rpx;
  197. color: #333;
  198. padding: 0 24rpx;
  199. // width: 144rpx;
  200. height: 34rpx;
  201. }
  202. }
  203. .phone {
  204. margin-left: 138rpx;
  205. height: 40rpx;
  206. color: #000;
  207. }
  208. }
  209. .erweima {
  210. width: 362rpx;
  211. height: 362rpx;
  212. background: #0b9edd;
  213. margin: 26rpx auto;
  214. image {
  215. height: 100%;
  216. width: 100%;
  217. }
  218. }
  219. .zfb {
  220. font-size: 30rpx;
  221. font-family: PingFang SC;
  222. font-weight: bold;
  223. color: #0b9edd;
  224. margin-top: 36rpx;
  225. text-align: center;
  226. }
  227. .weixin {
  228. font-size: 30rpx;
  229. font-family: PingFang SC;
  230. font-weight: bold;
  231. color: #02974a;
  232. margin-top: 36rpx;
  233. text-align: center;
  234. }
  235. }
  236. }
  237. </style>