other.vue 6.5 KB

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