other.vue 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  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 Ezhou 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/money.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="" 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. <image src="../../static/images/erweima.jpg" mode=""></image>
  41. </view>
  42. <view class="title">3.现场捐款/捐物</view>
  43. <view class="detail">
  44. <view class="detail-item">单位:鄂州市红十字会</view>
  45. <view class="detail-item">地点:湖北省鄂州市鄂城区滨湖南路60号7楼</view>
  46. <view class="detail-item">联系方式:027-60229377</view>
  47. <view class="sm">捐物说明:<text>如有意捐赠物资,请致电027-6022937咨询相关事宜。捐赠物资所需提供的资料为:捐赠单位捐赠意向书、单位证明、物资资质证明和价格证明等。</text></view>
  48. </view>
  49. </view>
  50. </view>
  51. </template>
  52. <script>
  53. import uniCopy from '../../components/js_sdk/xb-copy/uni-copy.js';
  54. export default {
  55. data() {
  56. return {
  57. list: [
  58. {
  59. id: 0,
  60. spread_url: 11,
  61. name: '鄂州市红十字会',
  62. count: '中国工商银行鄂州鄂城支行',
  63. number: '1811023929200035763'
  64. }
  65. ]
  66. };
  67. },
  68. methods: {
  69. tocontrilist() {
  70. uni.navigateTo({
  71. url: '/pages/applic/tocontrilist'
  72. });
  73. },
  74. copy(value) {
  75. let obj = this;
  76. let content = value; //需要复制的内容
  77. console.log('复制的内容:', content);
  78. // content = typeof content === 'string' ? content : content.toString(); // 复制内容,必须字符串,数字需要转换为字符串
  79. const result = uniCopy(content);
  80. if (result === false) {
  81. uni.showToast({
  82. title: '不支持'
  83. });
  84. } else {
  85. uni.showToast({
  86. title: '复制成功',
  87. icon: 'none'
  88. });
  89. }
  90. }
  91. }
  92. };
  93. </script>
  94. <style lang="scss">
  95. body,
  96. page {
  97. height: 100%;
  98. background-color: #fefefe;
  99. }
  100. .content {
  101. background-color: #fefefe;
  102. line-height: 1;
  103. padding-top: 25rpx;
  104. padding: 24rpx 24rpx 90rpx;
  105. .top {
  106. align-items: center;
  107. width: 100%;
  108. image {
  109. width: 64rpx;
  110. height: 64rpx;
  111. border-radius: 50%;
  112. }
  113. .font {
  114. margin-left: 20rpx;
  115. .china-font {
  116. font-size: 27rpx;
  117. font-family: PingFang SC;
  118. font-weight: bold;
  119. color: #101010;
  120. letter-spacing:20rpx;
  121. }
  122. .english-font {
  123. margin-top: 6rpx;
  124. font-size: 12rpx;
  125. font-family: PingFang SC;
  126. // font-weight: bold;
  127. color: #101010;
  128. // letter-spacing:1rpx;
  129. }
  130. }
  131. }
  132. .cross {
  133. margin-left: 6rpx;
  134. height: 76rpx;
  135. line-height: 76rpx;
  136. color: #444444;
  137. border-bottom: 1rpx solid #cccccc;
  138. }
  139. .image {
  140. margin-top: 44rpx;
  141. margin-bottom: 48rpx;
  142. height: 404rpx;
  143. width: 100%;
  144. image {
  145. width: 100%;
  146. height: 100%;
  147. }
  148. }
  149. .box {
  150. padding: 20rpx 0 24rpx;
  151. .title {
  152. margin-top: 60rpx;
  153. font-size: 28rpx;
  154. font-family: PingFang SC;
  155. font-weight: bold;
  156. color: #F0433C;
  157. }
  158. .detail {
  159. padding-top: 10rpx;
  160. font-size: 28rpx;
  161. line-height: 40rpx;
  162. .detail-spe {
  163. margin-top: 10rpx;
  164. line-height: 46rpx;
  165. overflow: hidden;
  166. text-overflow: ellipsis;
  167. display: -webkit-box; //必须结合的属性,将对象作为弹性伸缩盒子模型显示
  168. -webkit-line-clamp: 2; //控制文本的行数
  169. -webkit-box-orient: vertical; //必须结合的属性,设置或检索伸缩盒对象的子元素的排列方式
  170. .copyband {
  171. display: flex;
  172. float: right;
  173. // float: right;
  174. justify-content: center;
  175. background-color: #f1f1f1;
  176. border-radius: 10rpx;
  177. line-height: 34rpx;
  178. font-size: 14rpx;
  179. color: #333;
  180. // padding: 0 24rpx;
  181. width: 168rpx;
  182. height: 34rpx;
  183. margin-top: 8rpx;
  184. }
  185. }
  186. image {
  187. display: block;
  188. width: 444rpx;
  189. height: 494rpx;
  190. margin: 30rpx auto;
  191. }
  192. .detail-item {
  193. display: flex;
  194. justify-content: space-between;
  195. align-items: center;
  196. // height: 40rpx;
  197. line-height: 46rpx;
  198. color: #000;
  199. margin-top: 10rpx;
  200. text {
  201. display: inline-block;
  202. margin-left: 150rpx;
  203. }
  204. .copy {
  205. width: 168rpx;
  206. display: flex;
  207. justify-content: center;
  208. background-color: #f1f1f1;
  209. border-radius: 10rpx;
  210. line-height: 34rpx;
  211. font-size: 14rpx;
  212. color: #333;
  213. padding: 0 24rpx;
  214. // width: 144rpx;
  215. height: 34rpx;
  216. }
  217. }
  218. .phone {
  219. margin-left: 138rpx;
  220. height: 40rpx;
  221. color: #000;
  222. }
  223. }
  224. .erweima {
  225. width: 362rpx;
  226. height: 362rpx;
  227. background: #0b9edd;
  228. margin: 26rpx auto;
  229. image {
  230. height: 100%;
  231. width: 100%;
  232. }
  233. }
  234. .zfb {
  235. font-size: 30rpx;
  236. font-family: PingFang SC;
  237. font-weight: bold;
  238. color: #0b9edd;
  239. margin-top: 36rpx;
  240. text-align: center;
  241. }
  242. .weixin {
  243. font-size: 30rpx;
  244. font-family: PingFang SC;
  245. font-weight: bold;
  246. color: #02974a;
  247. margin-top: 36rpx;
  248. text-align: center;
  249. }
  250. }
  251. }
  252. .sm {
  253. margin-top: 10rpx;
  254. position: relative;
  255. line-height: 46rpx;
  256. text {
  257. display: inline-block;
  258. position: absolute;
  259. top: 0;
  260. }
  261. }
  262. </style>