info.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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('/pages/upload/upload')">上传凭证</view></view>
  24. </view>
  25. </view>
  26. <view class="tishi">
  27. *请线下打款并保存截图相关凭证并上传
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. import { activity } from '@/api/active.js'
  33. export default {
  34. data(){
  35. return {
  36. list:[],
  37. id:'',
  38. }
  39. },
  40. onLoad(option) {
  41. this.id = option.id;
  42. this.loadData();
  43. },
  44. methods: {
  45. loadData(){
  46. activity({},this.id).then(({data}) =>{
  47. console.log(data)
  48. this.list = data.check
  49. })
  50. },
  51. nav(url){
  52. uni.navigateTo({
  53. url
  54. })
  55. }
  56. }
  57. }
  58. </script>
  59. <style lang="scss">
  60. .box {
  61. padding-top: 10rpx;
  62. color: #fad6b0;
  63. .title {
  64. color: #fff;
  65. padding: 10rpx 0 10rpx 20rpx;
  66. border-bottom: 1px solid #f0f0f0;
  67. font-size: 28rpx;
  68. font-family: PingFang SC;
  69. font-weight: 500;
  70. color: #ffffff;
  71. }
  72. .main {
  73. width: 90%;
  74. margin: 0 auto;
  75. padding: 20rpx;
  76. align-items: center;
  77. .left {
  78. justify-content: flex-start;
  79. .bank {
  80. margin-left: 10rpx;
  81. width: 48rpx;
  82. height: 40rpx;
  83. image {
  84. width: 100%;
  85. height: 100%;
  86. }
  87. }
  88. .avtor {
  89. background: #fff;
  90. width: 80rpx;
  91. height: 80rpx;
  92. border-radius: 50%;
  93. image {
  94. width: 100%;
  95. height: 100%;
  96. }
  97. }
  98. .main-info {
  99. margin-left: 16rpx;
  100. .name {
  101. font-size: 30rpx;
  102. font-family: PingFang SC;
  103. font-weight: 500;
  104. color: #fad6b0;
  105. }
  106. .phone {
  107. font-size: 22rpx;
  108. font-family: PingFang SC;
  109. font-weight: 400;
  110. color: #fad6b0;
  111. opacity: 0.8;
  112. }
  113. }
  114. }
  115. .right {
  116. font-size: 30rpx;
  117. font-family: PingFang SC;
  118. font-weight: 500;
  119. color: #fad6b0;
  120. .right-box {
  121. width: 188rpx;
  122. height: 56rpx;
  123. background: linear-gradient(-74deg, #ce9c6d, #ffecd6);
  124. border-image: linear-gradient(115deg, #feebd5, #ffffff, #e1ad7d) 1 1;
  125. box-shadow: 3rpx 4rpx 5rpx 0px rgba(151, 118, 74, 0.5);
  126. border-radius: 28rpx;
  127. font-size: 30rpx;
  128. font-family: PingFang SC;
  129. font-weight: 500;
  130. color: #643912;
  131. text-align: center;
  132. line-height: 56rpx;
  133. }
  134. }
  135. }
  136. }
  137. .tishi {
  138. padding: 20rpx 0 0 24rpx;
  139. color: #fff;
  140. font-size: 26rpx;
  141. font-family: PingFang SC;
  142. font-weight: 500;
  143. color: #FFFFFF;
  144. }
  145. </style>