info.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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" 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. width: 100%;
  102. height: 100%;
  103. }
  104. }
  105. .main-info {
  106. margin-left: 16rpx;
  107. .name {
  108. font-size: 30rpx;
  109. font-family: PingFang SC;
  110. font-weight: 500;
  111. color: #fad6b0;
  112. }
  113. .phone {
  114. font-size: 22rpx;
  115. font-family: PingFang SC;
  116. font-weight: 400;
  117. color: #fad6b0;
  118. opacity: 0.8;
  119. }
  120. }
  121. }
  122. .right {
  123. font-size: 30rpx;
  124. font-family: PingFang SC;
  125. font-weight: 500;
  126. color: #fad6b0;
  127. .right-box {
  128. width: 188rpx;
  129. height: 56rpx;
  130. background: linear-gradient(-74deg, #ce9c6d, #ffecd6);
  131. border-image: linear-gradient(115deg, #feebd5, #ffffff, #e1ad7d) 1 1;
  132. box-shadow: 3rpx 4rpx 5rpx 0px rgba(151, 118, 74, 0.5);
  133. border-radius: 28rpx;
  134. font-size: 30rpx;
  135. font-family: PingFang SC;
  136. font-weight: 500;
  137. color: #643912;
  138. text-align: center;
  139. line-height: 56rpx;
  140. }
  141. }
  142. }
  143. }
  144. .tishi {
  145. padding: 20rpx 0 0 24rpx;
  146. color: #fff;
  147. font-size: 26rpx;
  148. font-family: PingFang SC;
  149. font-weight: 500;
  150. color: #ffffff;
  151. }
  152. </style>