male.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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()">复制账号</view>
  9. </view>
  10. <view class="detail-spe">
  11. 开户行:{{ userInfo.bank_of_deposit }}
  12. <view class="copyband" @click="copy()">复制开户行</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. };
  32. </script>
  33. <style lang="scss">
  34. body,
  35. page {
  36. height: 100%;
  37. background-color: #000;
  38. }
  39. .content {
  40. background-color: #000;
  41. line-height: 1;
  42. padding-top: 25rpx;
  43. padding: 24rpx 24rpx 90rpx;
  44. .cross {
  45. margin-left: 6rpx;
  46. height: 76rpx;
  47. line-height: 76rpx;
  48. color: #444444;
  49. border-bottom: 1rpx solid #cccccc;
  50. }
  51. .image {
  52. margin-top: 44rpx;
  53. margin-bottom: 48rpx;
  54. height: 404rpx;
  55. width: 100%;
  56. image {
  57. width: 100%;
  58. height: 100%;
  59. }
  60. }
  61. .box {
  62. padding: 20rpx 0 24rpx;
  63. color: #fff;
  64. .title {
  65. margin-top: 60rpx;
  66. font-size: 28rpx;
  67. font-family: PingFang SC;
  68. font-weight: bold;
  69. }
  70. .detail {
  71. padding-top: 10rpx;
  72. font-size: 28rpx;
  73. line-height: 40rpx;
  74. .detail-spe {
  75. margin-top: 10rpx;
  76. line-height: 46rpx;
  77. overflow: hidden;
  78. text-overflow: ellipsis;
  79. display: -webkit-box; //必须结合的属性,将对象作为弹性伸缩盒子模型显示
  80. -webkit-line-clamp: 2; //控制文本的行数
  81. -webkit-box-orient: vertical; //必须结合的属性,设置或检索伸缩盒对象的子元素的排列方式
  82. .copyband {
  83. display: flex;
  84. float: right;
  85. // float: right;
  86. justify-content: center;
  87. border-radius: 10rpx;
  88. line-height: 34rpx;
  89. font-size: 24rpx;
  90. color: #fff;
  91. // padding: 0 24rpx;
  92. width: 168rpx;
  93. height: 34rpx;
  94. margin-top: 8rpx;
  95. }
  96. }
  97. .detail-item {
  98. display: flex;
  99. justify-content: space-between;
  100. align-items: center;
  101. // height: 40rpx;
  102. line-height: 46rpx;
  103. color: #fff;
  104. margin-top: 10rpx;
  105. .copy {
  106. width: 168rpx;
  107. display: flex;
  108. justify-content: center;
  109. background-color: #f1f1f1;
  110. border-radius: 10rpx;
  111. line-height: 34rpx;
  112. font-size: 24rpx;
  113. color: #333;
  114. padding: 0 24rpx;
  115. // width: 144rpx;
  116. height: 34rpx;
  117. }
  118. }
  119. }
  120. .erweima {
  121. width: 362rpx;
  122. margin: 26rpx auto;
  123. image {
  124. width: 100%;
  125. }
  126. }
  127. .zfb {
  128. font-size: 30rpx;
  129. font-family: PingFang SC;
  130. font-weight: bold;
  131. color: #0b9edd;
  132. margin-top: 36rpx;
  133. text-align: center;
  134. }
  135. .weixin {
  136. font-size: 30rpx;
  137. font-family: PingFang SC;
  138. font-weight: bold;
  139. color: #02974a;
  140. margin-top: 36rpx;
  141. text-align: center;
  142. }
  143. }
  144. }
  145. </style>