info.vue 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <template>
  2. <view class="center">
  3. <view class="box" v-for="(item, index) in list" :key="index">
  4. <view class="box-top flex">
  5. <view class="title">上级用户收款信息(上{{ index + 1 }}级)</view>
  6. <view class="type">{{ item.status == '1' ? '成功' : item.status == '2' ? '失败' : item.status == '0' && item.voucherimages != null ? '审核中' : '' }}</view>
  7. </view>
  8. <view class="main flex" style="border-bottom: 1px solid #F0F0F0;">
  9. <view class="left flex">
  10. <view class="avtor" v-if="item.system_get == 0"><image :src="item.checker.avatar || '../../static/error/missing-face.png'" mode=""></image></view>
  11. <view class="main-info">
  12. <view class="name" v-if="item.system_get == 1">系统平台</view>
  13. <view class="name" v-else>{{ item.checker.nickname || 'null' }}</view>
  14. <view class="phone" v-if="item.system_get == 0">{{ item.checker.mobile }}</view>
  15. </view>
  16. </view>
  17. <view class="right" v-if="item.system_get == 0">援助金额:¥{{ item.money * 1 }}</view>
  18. <view class="right" v-if="item.system_get == 1">援助金额:{{ item.money * 1 }}U</view>
  19. </view>
  20. <view class="main flex" v-if="item.system_get == 0">
  21. <view class="left flex">
  22. <view class="bank"><image src="../../static/img/bank.png" mode=""></image></view>
  23. <view class="main-info">
  24. <view class="name">{{ item.checker.bank_of_deposit || '暂无' }}</view>
  25. <view class="name">{{ item.checker.bank_card_no || '暂无' }}</view>
  26. </view>
  27. </view>
  28. <view class="right"><view class="right-box" @click="nav(item)">上传凭证</view></view>
  29. </view>
  30. <view class="" v-if="item.system_get == 1">
  31. <view class="change">
  32. 请选择TRC20
  33. </view>
  34. <view class="erweima">
  35. <tki-qrcode
  36. :cid="cid"
  37. ref="qrcode"
  38. :val="num"
  39. :size="size"
  40. :unit="unit"
  41. :background="background"
  42. :foreground="foreground"
  43. :pdground="pdground"
  44. :iconSize="iconSize"
  45. :lv="lv"
  46. :onval="onval"
  47. :loadMake="loadMake"
  48. :usingComponents="usingComponents"
  49. />
  50. </view>
  51. <view class="address">{{ num }}</view>
  52. <view class="btn" style="margin-top: 50rpx;" @click="setData">复制充币地址</view>
  53. <view class="btn" @click="nav(item.id)">上传凭证</view>
  54. </view>
  55. </view>
  56. <view class="tishi">*请线下援助并保存截图相关凭证并上传</view>
  57. </view>
  58. </template>
  59. <script>
  60. import { activity } from '@/api/active.js';
  61. import tkiQrcode from '@/components/tki-qrcode/tki-qrcode.vue';
  62. export default {
  63. data() {
  64. return {
  65. list: [],
  66. id: '',
  67. cid: 'cid',
  68. size: 150,
  69. unit: '150',
  70. background: '#000000',
  71. foreground: '#FFFFFF',
  72. pdground: '#FFFFFF',
  73. icon: '',
  74. num: '',
  75. iconSize: 40,
  76. lv: 3,
  77. onval: true,
  78. loadMake: true,
  79. usingComponents: true
  80. };
  81. },
  82. onLoad(option) {
  83. this.id = option.id;
  84. this.loadData();
  85. },
  86. methods: {
  87. loadData() {
  88. const obj = this;
  89. activity({}, this.id).then(e => {
  90. console.log(e);
  91. if (e.data.check) {
  92. this.list = e.data.check;
  93. this.list.forEach(e => {
  94. console.log(e);
  95. if (e.checker.usdt_address) {
  96. obj.num = e.checker.usdt_address;
  97. }
  98. });
  99. } else {
  100. uni.showToast({
  101. title: e.msg,
  102. duration: 1500,
  103. mask: false,
  104. icon: 'none'
  105. });
  106. }
  107. });
  108. },
  109. nav(item) {
  110. if (item.voucherimages) {
  111. uni.showModal({
  112. title: '提示',
  113. content: '已上传凭证,是否重新上传',
  114. success: function(res) {
  115. if (res.confirm) {
  116. console.log('用户点击确定');
  117. uni.navigateTo({
  118. url: '/pages/upload/upload?id=' + item.id
  119. });
  120. } else if (res.cancel) {
  121. console.log('用户点击取消');
  122. }
  123. }
  124. });
  125. }else {
  126. uni.navigateTo({
  127. url: '/pages/upload/upload?id=' + item.id
  128. });
  129. }
  130. },
  131. setData() {
  132. // #ifdef APP-PLUS
  133. uni.setClipboardData({
  134. data: this.num,
  135. success: e => {
  136. uni.showToast({
  137. title: '复制成功!'
  138. });
  139. },
  140. fail(e) {
  141. uni.showToast({
  142. title: '复制失败',
  143. icon: false
  144. });
  145. console.log(e);
  146. }
  147. });
  148. // #endif
  149. }
  150. }
  151. };
  152. </script>
  153. <style lang="scss">
  154. .box {
  155. padding-top: 10rpx;
  156. color: #fad6b0;
  157. .box-top {
  158. border-bottom: 1px solid #f0f0f0;
  159. padding: 10rpx 10rpx 10rpx 20rpx;
  160. color: #fff;
  161. font-size: 28rpx;
  162. .title {
  163. font-family: PingFang SC;
  164. font-weight: 500;
  165. color: #ffffff;
  166. }
  167. }
  168. .main {
  169. width: 90%;
  170. margin: 0 auto;
  171. padding: 20rpx;
  172. align-items: center;
  173. .left {
  174. justify-content: flex-start;
  175. .bank {
  176. margin-left: 10rpx;
  177. width: 48rpx;
  178. height: 40rpx;
  179. image {
  180. width: 100%;
  181. height: 100%;
  182. }
  183. }
  184. .avtor {
  185. background: #fff;
  186. width: 80rpx;
  187. height: 80rpx;
  188. border-radius: 50%;
  189. image {
  190. border-radius: 50%;
  191. width: 100%;
  192. height: 100%;
  193. }
  194. }
  195. .main-info {
  196. margin-left: 16rpx;
  197. .name {
  198. font-size: 30rpx;
  199. font-family: PingFang SC;
  200. font-weight: 500;
  201. color: #fad6b0;
  202. }
  203. .phone {
  204. font-size: 22rpx;
  205. font-family: PingFang SC;
  206. font-weight: 400;
  207. color: #fad6b0;
  208. opacity: 0.8;
  209. }
  210. }
  211. }
  212. .right {
  213. font-size: 30rpx;
  214. font-family: PingFang SC;
  215. font-weight: 500;
  216. color: #fad6b0;
  217. .right-box {
  218. width: 188rpx;
  219. height: 56rpx;
  220. background: linear-gradient(-74deg, #ce9c6d, #ffecd6);
  221. border-image: linear-gradient(115deg, #feebd5, #ffffff, #e1ad7d) 1 1;
  222. box-shadow: 3rpx 4rpx 5rpx 0px rgba(151, 118, 74, 0.5);
  223. border-radius: 28rpx;
  224. font-size: 30rpx;
  225. font-family: PingFang SC;
  226. font-weight: 500;
  227. color: #643912;
  228. text-align: center;
  229. line-height: 56rpx;
  230. }
  231. }
  232. }
  233. }
  234. .tishi {
  235. padding: 20rpx 0 120rpx 24rpx;
  236. color: #fff;
  237. font-size: 26rpx;
  238. font-family: PingFang SC;
  239. font-weight: 500;
  240. color: #ffffff;
  241. }
  242. .change {
  243. padding: 10rpx 0 0 40rpx;
  244. font-size: 30rpx;
  245. }
  246. .erweima {
  247. margin: 16rpx auto 0;
  248. width: 300rpx;
  249. height: 300rpx;
  250. image {
  251. width: 100%;
  252. height: 100%;
  253. }
  254. }
  255. .address {
  256. margin-top: 20rpx;
  257. text-align: center;
  258. }
  259. .btn {
  260. margin: 20rpx auto 0;
  261. width: 500rpx;
  262. height: 60rpx;
  263. background: linear-gradient(-74deg, #ce9c6d, #ffecd6);
  264. border-image: linear-gradient(115deg, #feebd5, #ffffff, #e1ad7d) 1 1;
  265. border-radius: 30px;
  266. line-height: 60rpx;
  267. text-align: center;
  268. font-size: 26rpx;
  269. font-family: PingFang SC;
  270. font-weight: 500;
  271. color: #643912;
  272. }
  273. </style>