info.vue 6.5 KB

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