male.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. <template>
  2. <view class="content">
  3. <view class="box">
  4. <view class="title" style="margin-top: 0;">1.银行转账援助</view>
  5. <view class="detail">
  6. <view class="detail-item">
  7. 银行账户:{{ userInfo.bank_card_no }}
  8. <view class="copy" @click="copy(userInfo.bank_card_no)">复制账号</view>
  9. </view>
  10. <view class="detail-spe">
  11. 开户行:{{ userInfo.bank_of_deposit }}
  12. <view class="copyband" @click="copy(userInfo.bank_of_deposit)">复制开户行</view>
  13. </view>
  14. </view>
  15. <view class="title" v-if="userInfo.ali">2.支付宝扫码援助</view>
  16. <view v-if="userInfo.ali" class="erweima"><image :src="userInfo.ali" mode="widthFix"></image></view>
  17. <view v-if="userInfo.wechat" class="title">3.微信扫码援助</view>
  18. <view v-if="userInfo.wechat" class="erweima" ><image :src="userInfo.wechat" mode="widthFix"></image></view>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. import { mapState, mapMutations } from 'vuex';
  24. export default {
  25. computed: {
  26. ...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
  27. },
  28. onLoad() {
  29. console.log(this.userInfo);
  30. },
  31. methods: {
  32. copy(text) {
  33. uni.setClipboardData({
  34. data: text,
  35. success: e => {
  36. uni.showToast({
  37. title: '复制成功!'
  38. });
  39. },
  40. fail(e) {
  41. uni.showToast({
  42. title: '复制失败',
  43. icon: false
  44. });
  45. console.log(e);
  46. }
  47. });
  48. }
  49. }
  50. };
  51. </script>
  52. <style lang="scss">
  53. body,
  54. page {
  55. height: 100%;
  56. background-color: #000;
  57. }
  58. .content {
  59. background-color: #000;
  60. line-height: 1;
  61. padding-top: 25rpx;
  62. padding: 24rpx 24rpx 90rpx;
  63. .cross {
  64. margin-left: 6rpx;
  65. height: 76rpx;
  66. line-height: 76rpx;
  67. color: #444444;
  68. border-bottom: 1rpx solid #cccccc;
  69. }
  70. .image {
  71. margin-top: 44rpx;
  72. margin-bottom: 48rpx;
  73. height: 404rpx;
  74. width: 100%;
  75. image {
  76. width: 100%;
  77. height: 100%;
  78. }
  79. }
  80. .box {
  81. padding: 20rpx 0 24rpx;
  82. color: #fff;
  83. .title {
  84. margin-top: 60rpx;
  85. font-size: 28rpx;
  86. font-family: PingFang SC;
  87. font-weight: bold;
  88. }
  89. .detail {
  90. padding-top: 10rpx;
  91. font-size: 28rpx;
  92. line-height: 40rpx;
  93. .detail-spe {
  94. margin-top: 10rpx;
  95. line-height: 46rpx;
  96. overflow: hidden;
  97. text-overflow: ellipsis;
  98. display: -webkit-box; //必须结合的属性,将对象作为弹性伸缩盒子模型显示
  99. -webkit-line-clamp: 2; //控制文本的行数
  100. -webkit-box-orient: vertical; //必须结合的属性,设置或检索伸缩盒对象的子元素的排列方式
  101. .copyband {
  102. display: flex;
  103. float: right;
  104. // float: right;
  105. justify-content: center;
  106. border-radius: 10rpx;
  107. line-height: 34rpx;
  108. font-size: 24rpx;
  109. color: #fff;
  110. // padding: 0 24rpx;
  111. width: 168rpx;
  112. height: 34rpx;
  113. margin-top: 8rpx;
  114. }
  115. }
  116. .detail-item {
  117. display: flex;
  118. justify-content: space-between;
  119. align-items: center;
  120. // height: 40rpx;
  121. line-height: 46rpx;
  122. color: #fff;
  123. margin-top: 10rpx;
  124. .copy {
  125. width: 168rpx;
  126. display: flex;
  127. justify-content: center;
  128. background-color: #f1f1f1;
  129. border-radius: 10rpx;
  130. line-height: 34rpx;
  131. font-size: 24rpx;
  132. color: #333;
  133. padding: 0 24rpx;
  134. // width: 144rpx;
  135. height: 34rpx;
  136. }
  137. }
  138. }
  139. .erweima {
  140. width: 362rpx;
  141. margin: 26rpx auto;
  142. image {
  143. width: 100%;
  144. }
  145. }
  146. .zfb {
  147. font-size: 30rpx;
  148. font-family: PingFang SC;
  149. font-weight: bold;
  150. color: #0b9edd;
  151. margin-top: 36rpx;
  152. text-align: center;
  153. }
  154. .weixin {
  155. font-size: 30rpx;
  156. font-family: PingFang SC;
  157. font-weight: bold;
  158. color: #02974a;
  159. margin-top: 36rpx;
  160. text-align: center;
  161. }
  162. }
  163. }
  164. </style>