other.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  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 Shishou 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="title">2.扫码捐款</view>
  31. <view class="erweima"><image src="../../static/images/smjk.png" mode=""></image></view> -->
  32. <view class="title">2.现场捐款/捐物</view>
  33. <view class="detail">
  34. <view class="detail-item">负责人:张杰</view>
  35. <view class="detail-item">咨询电话:0716-7819125 15907211549</view>
  36. <view class="detail-item">地址:石首市建宁大道586号</view>
  37. </view>
  38. </view>
  39. </view>
  40. </template>
  41. <script>
  42. import uniCopy from '../../components/js_sdk/xb-copy/uni-copy.js';
  43. export default {
  44. data() {
  45. return {
  46. list: [
  47. {
  48. id: 0,
  49. spread_url: 11,
  50. name: '石首市红十字会办公室',
  51. count: '中国银行石首支行营业部',
  52. number: '569078873955'
  53. }
  54. ]
  55. };
  56. },
  57. methods: {
  58. tocontrilist() {
  59. uni.navigateTo({
  60. url: '/pages/applic/tocontrilist'
  61. });
  62. },
  63. copy(value) {
  64. let obj = this;
  65. let content = value; //需要复制的内容
  66. console.log('复制的内容:', content);
  67. // content = typeof content === 'string' ? content : content.toString(); // 复制内容,必须字符串,数字需要转换为字符串
  68. const result = uniCopy(content);
  69. if (result === false) {
  70. uni.showToast({
  71. title: '不支持'
  72. });
  73. } else {
  74. uni.showToast({
  75. title: '复制成功',
  76. icon: 'none'
  77. });
  78. }
  79. }
  80. }
  81. };
  82. </script>
  83. <style lang="scss">
  84. body,
  85. page {
  86. height: 100%;
  87. background-color: #fefefe;
  88. }
  89. .content {
  90. background-color: #fefefe;
  91. line-height: 1;
  92. padding-top: 25rpx;
  93. padding: 24rpx 24rpx 90rpx;
  94. .top {
  95. align-items: center;
  96. width: 100%;
  97. image {
  98. width: 64rpx;
  99. height: 64rpx;
  100. border-radius: 50%;
  101. }
  102. .font {
  103. margin-left: 20rpx;
  104. .china-font {
  105. font-size: 27rpx;
  106. font-family: PingFang SC;
  107. font-weight: bold;
  108. color: #101010;
  109. letter-spacing:20rpx;
  110. }
  111. .english-font {
  112. margin-top: 6rpx;
  113. font-size: 12rpx;
  114. font-family: PingFang SC;
  115. // font-weight: bold;
  116. color: #101010;
  117. // letter-spacing:1rpx;
  118. }
  119. }
  120. }
  121. .cross {
  122. margin-left: 6rpx;
  123. height: 76rpx;
  124. line-height: 76rpx;
  125. color: #444444;
  126. border-bottom: 1rpx solid #cccccc;
  127. }
  128. .image {
  129. margin-top: 44rpx;
  130. margin-bottom: 48rpx;
  131. height: 404rpx;
  132. width: 100%;
  133. image {
  134. width: 100%;
  135. height: 100%;
  136. }
  137. }
  138. .box {
  139. padding: 20rpx 0 24rpx;
  140. .title {
  141. margin-top: 60rpx;
  142. font-size: 28rpx;
  143. font-family: PingFang SC;
  144. font-weight: bold;
  145. color: #101010;
  146. }
  147. .detail {
  148. padding-top: 10rpx;
  149. font-size: 28rpx;
  150. line-height: 40rpx;
  151. .detail-spe {
  152. margin-top: 10rpx;
  153. line-height: 46rpx;
  154. overflow: hidden;
  155. text-overflow: ellipsis;
  156. display: -webkit-box; //必须结合的属性,将对象作为弹性伸缩盒子模型显示
  157. -webkit-line-clamp: 2; //控制文本的行数
  158. -webkit-box-orient: vertical; //必须结合的属性,设置或检索伸缩盒对象的子元素的排列方式
  159. .copyband {
  160. display: flex;
  161. float: right;
  162. // float: right;
  163. justify-content: center;
  164. background-color: #f1f1f1;
  165. border-radius: 10rpx;
  166. line-height: 34rpx;
  167. font-size: 24rpx;
  168. color: #333;
  169. // padding: 0 24rpx;
  170. width: 168rpx;
  171. height: 34rpx;
  172. margin-top: 8rpx;
  173. }
  174. }
  175. .detail-item {
  176. display: flex;
  177. justify-content: space-between;
  178. align-items: center;
  179. // height: 40rpx;
  180. line-height: 46rpx;
  181. color: #000;
  182. margin-top: 10rpx;
  183. .copy {
  184. width: 168rpx;
  185. display: flex;
  186. justify-content: center;
  187. background-color: #f1f1f1;
  188. border-radius: 10rpx;
  189. line-height: 34rpx;
  190. font-size: 24rpx;
  191. color: #333;
  192. padding: 0 24rpx;
  193. // width: 144rpx;
  194. height: 34rpx;
  195. }
  196. }
  197. .phone {
  198. margin-left: 138rpx;
  199. height: 40rpx;
  200. color: #000;
  201. }
  202. }
  203. .erweima {
  204. width: 362rpx;
  205. height: 362rpx;
  206. background: #0b9edd;
  207. margin: 26rpx auto;
  208. image {
  209. height: 100%;
  210. width: 100%;
  211. }
  212. }
  213. .zfb {
  214. font-size: 30rpx;
  215. font-family: PingFang SC;
  216. font-weight: bold;
  217. color: #0b9edd;
  218. margin-top: 36rpx;
  219. text-align: center;
  220. }
  221. .weixin {
  222. font-size: 30rpx;
  223. font-family: PingFang SC;
  224. font-weight: bold;
  225. color: #02974a;
  226. margin-top: 36rpx;
  227. text-align: center;
  228. }
  229. }
  230. }
  231. </style>