info.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <template>
  2. <view class="center">
  3. <view class="box" v-for="(item, index) in list" :key="index">
  4. <view class="title">上级用户收款信息(上{{ index + 1 }}级)</view>
  5. <view class="main flex" style="border-bottom: 1px solid #F0F0F0;">
  6. <view class="left flex">
  7. <view class="avtor"><image :src="item.checker.avatar|| '../../static/error/missing-face.png'" mode=""></image></view>
  8. <view class="main-info">
  9. <view class="name">{{ item.checker.nickname || 'null' }}</view>
  10. <view class="phone">{{ item.checker.mobile }}</view>
  11. </view>
  12. </view>
  13. <view class="right">打款金额:¥{{ item.money * 1 }}</view>
  14. </view>
  15. <view class="main flex">
  16. <view class="left flex">
  17. <view class="bank"><image src="../../static/img/bank.png" mode=""></image></view>
  18. <view class="main-info">
  19. <view class="name">{{ item.checker.bank_of_deposit || '暂无' }}</view>
  20. <view class="name">{{ item.checker.bank_card_no || '暂无' }}</view>
  21. </view>
  22. </view>
  23. <view class="right"><view class="right-box" @click="nav(item.id)">上传凭证</view></view>
  24. </view>
  25. </view>
  26. <view class="tishi">*请线下打款并保存截图相关凭证并上传</view>
  27. </view>
  28. </template>
  29. <script>
  30. import { activity } from '@/api/active.js';
  31. export default {
  32. data() {
  33. return {
  34. list: [],
  35. id: ''
  36. };
  37. },
  38. onLoad(option) {
  39. this.id = option.id;
  40. this.loadData();
  41. },
  42. methods: {
  43. loadData() {
  44. activity({}, this.id).then(e => {
  45. console.log(e);
  46. if (e.data.check) {
  47. this.list = e.data.check;
  48. }else {
  49. uni.showToast({
  50. title: e.msg,
  51. duration: 1500,
  52. mask: false,
  53. icon: 'none',
  54. })
  55. }
  56. });
  57. },
  58. nav(id) {
  59. uni.navigateTo({
  60. url: '/pages/upload/upload?id=' + id
  61. });
  62. }
  63. }
  64. };
  65. </script>
  66. <style lang="scss">
  67. .box {
  68. padding-top: 10rpx;
  69. color: #fad6b0;
  70. .title {
  71. color: #fff;
  72. padding: 10rpx 0 10rpx 20rpx;
  73. border-bottom: 1px solid #f0f0f0;
  74. font-size: 28rpx;
  75. font-family: PingFang SC;
  76. font-weight: 500;
  77. color: #ffffff;
  78. }
  79. .main {
  80. width: 90%;
  81. margin: 0 auto;
  82. padding: 20rpx;
  83. align-items: center;
  84. .left {
  85. justify-content: flex-start;
  86. .bank {
  87. margin-left: 10rpx;
  88. width: 48rpx;
  89. height: 40rpx;
  90. image {
  91. width: 100%;
  92. height: 100%;
  93. }
  94. }
  95. .avtor {
  96. background: #fff;
  97. width: 80rpx;
  98. height: 80rpx;
  99. border-radius: 50%;
  100. image {
  101. border-radius: 50%;
  102. width: 100%;
  103. height: 100%;
  104. }
  105. }
  106. .main-info {
  107. margin-left: 16rpx;
  108. .name {
  109. font-size: 30rpx;
  110. font-family: PingFang SC;
  111. font-weight: 500;
  112. color: #fad6b0;
  113. }
  114. .phone {
  115. font-size: 22rpx;
  116. font-family: PingFang SC;
  117. font-weight: 400;
  118. color: #fad6b0;
  119. opacity: 0.8;
  120. }
  121. }
  122. }
  123. .right {
  124. font-size: 30rpx;
  125. font-family: PingFang SC;
  126. font-weight: 500;
  127. color: #fad6b0;
  128. .right-box {
  129. width: 188rpx;
  130. height: 56rpx;
  131. background: linear-gradient(-74deg, #ce9c6d, #ffecd6);
  132. border-image: linear-gradient(115deg, #feebd5, #ffffff, #e1ad7d) 1 1;
  133. box-shadow: 3rpx 4rpx 5rpx 0px rgba(151, 118, 74, 0.5);
  134. border-radius: 28rpx;
  135. font-size: 30rpx;
  136. font-family: PingFang SC;
  137. font-weight: 500;
  138. color: #643912;
  139. text-align: center;
  140. line-height: 56rpx;
  141. }
  142. }
  143. }
  144. }
  145. .tishi {
  146. padding: 20rpx 0 0 24rpx;
  147. color: #fff;
  148. font-size: 26rpx;
  149. font-family: PingFang SC;
  150. font-weight: 500;
  151. color: #ffffff;
  152. }
  153. </style>