info.vue 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  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" v-if="item.system_get == 1">{{ $t('foo.xtptwsf')}}</view>
  6. <view class="title" v-else >{{ $t('foo.sjyhskxxs') }}{{ index + 1 }}{{ $t('foo.j') }}</view>
  7. <view class="type">
  8. {{ item.status == '1' ? $t('foo.cg') : item.status == '2' ? $t('foo.sb') : item.status == '0' && item.voucherimages != null ? $t('foo.shz') : '' }}
  9. </view>
  10. </view>
  11. <view class="main flex" style="border-bottom: 1px solid #F0F0F0;">
  12. <view class="left flex">
  13. <view class="avtor" v-if="item.system_get == 0"><image :src="item.checker.avatar || '../../static/error/missing-face.png'" mode=""></image></view>
  14. <view class="main-info">
  15. <view class="name" v-if="item.system_get == 1">{{ $t('foo.xtpt') }}</view>
  16. <view class="name" v-else>{{ item.checker.nickname || 'null' }}</view>
  17. <view class="phone" v-if="item.system_get == 0">{{ item.checker.mobile }}</view>
  18. </view>
  19. </view>
  20. <view class="right" v-if="item.system_get == 0">{{ $t('foo.yzje') }}:¥{{ item.money * 1 }}</view>
  21. <view class="right" v-if="item.system_get == 1">{{ $t('foo.xtptwhf')}}:{{ item.money * 1 }}U</view>
  22. </view>
  23. <view class="main flex" v-if="item.system_get == 0">
  24. <view class="left flex">
  25. <!-- <view class="bank"><image src="../../static/img/bank.png" mode=""></image></view>
  26. <view class="main-info">
  27. <view class="name">{{ item.checker.bank_of_deposit || '暂无' }}</view>
  28. <view class="name">{{ item.checker.bank_card_no || '暂无' }}</view>
  29. </view> -->
  30. <view class="right-box" @click="navTo(item)" style="width: 228rpx;">{{ $t('foo.yzfkxx') }}</view>
  31. </view>
  32. <view class="right">
  33. <view class="right-box" @click="nav(item,2)">{{ $t('foo.scpz') }}</view>
  34. </view>
  35. </view>
  36. <view class="" v-if="item.system_get == 1">
  37. <view class="change">{{ $t('foo.qxz') }}</view>
  38. <view class="erweima">
  39. <tki-qrcode
  40. :cid="cid"
  41. ref="qrcode"
  42. :val="num"
  43. :size="size"
  44. :unit="unit"
  45. :background="background"
  46. :foreground="foreground"
  47. :pdground="pdground"
  48. :iconSize="iconSize"
  49. :lv="lv"
  50. :onval="onval"
  51. :loadMake="loadMake"
  52. :usingComponents="usingComponents"
  53. />
  54. </view>
  55. <view class="address">{{ num }}</view>
  56. <view class="btn" style="margin-top: 50rpx;" @click="setData">{{ $t('foo.zfcbdz') }}</view>
  57. <view class="btn" @click="nav(item,1)">{{ $t('foo.scpz') }}</view>
  58. </view>
  59. </view>
  60. <view class="tishi">*{{ $t('foo.qxxyzbbcjtxgpzbsc') }}{{ list[0].money*1 || 0}}{{ $t('foo.ysclbjt') }}</view>
  61. </view>
  62. </template>
  63. <script>
  64. import { activity } from '@/api/active.js';
  65. import tkiQrcode from '@/components/tki-qrcode/tki-qrcode.vue';
  66. export default {
  67. data() {
  68. return {
  69. list: [],
  70. id: '',
  71. cid: 'cid',
  72. size: 150,
  73. unit: '150',
  74. background: '#000000',
  75. foreground: '#FFFFFF',
  76. pdground: '#FFFFFF',
  77. icon: '',
  78. num: '',
  79. iconSize: 40,
  80. lv: 3,
  81. onval: true,
  82. loadMake: true,
  83. usingComponents: true
  84. };
  85. },
  86. onLoad(option) {
  87. uni.setNavigationBarTitle({
  88. title: this.$t('foo.dkxx')
  89. });
  90. this.id = option.id;
  91. this.loadData();
  92. },
  93. methods: {
  94. loadData() {
  95. const obj = this;
  96. activity({}, this.id).then(e => {
  97. console.log(e);
  98. if (e.data.check) {
  99. this.list = e.data.check;
  100. this.list.forEach(e => {
  101. console.log(e);
  102. if (e.checker.usdt_address) {
  103. obj.num = e.checker.usdt_address;
  104. }
  105. });
  106. } else {
  107. uni.showToast({
  108. title: e.msg,
  109. duration: 1500,
  110. mask: false,
  111. icon: 'none'
  112. });
  113. }
  114. });
  115. },
  116. nav(item,type) {
  117. console.log(type)
  118. if (item.voucherimages != null) {
  119. uni.showModal({
  120. title: this.$t('foo.ts'),
  121. content: this.$t('foo.yscpzsfcxsc'),
  122. success: function(res) {
  123. if (res.confirm) {
  124. console.log('用户点击确定');
  125. uni.navigateTo({
  126. url: '/pages/upload/upload?id=' + item.id + '&type=' + type
  127. });
  128. } else if (res.cancel) {
  129. console.log('用户点击取消');
  130. }
  131. }
  132. });
  133. } else {
  134. uni.navigateTo({
  135. url: '/pages/upload/upload?id=' + item.id + '&type=' + type
  136. });
  137. }
  138. },
  139. navTo(item) {
  140. console.log(item);
  141. let ali = '';
  142. let wechat = '';
  143. let bank_card_no = '';
  144. let bank_of_deposit = '';
  145. let name ='';
  146. let phone = '';
  147. if (item.checker.ali) {
  148. ali = item.checker.ali;
  149. }
  150. if (item.checker.wechat) {
  151. wechat = item.checker.wechat;
  152. }
  153. if (item.checker.bank_card_no) {
  154. bank_card_no = item.checker.bank_card_no;
  155. }
  156. if (item.checker.nickname) {
  157. name = item.checker.nickname;
  158. }
  159. if (item.checker.ext_mobile) {
  160. phone = item.checker.ext_mobile;
  161. }
  162. if (item.checker.bank_of_deposit) {
  163. bank_of_deposit = item.checker.bank_of_deposit;
  164. }
  165. uni.navigateTo({
  166. url: '/pages/index/male?ali=' + ali + '&wei=' + wechat + '&bank=' + bank_of_deposit + '&info=' + bank_card_no + '&name=' + name + '&phone=' + phone
  167. });
  168. },
  169. setData() {
  170. // #ifdef APP-PLUS
  171. uni.setClipboardData({
  172. data: this.num,
  173. success: e => {
  174. uni.showToast({
  175. title: this.$t('this.fzcg')
  176. });
  177. },
  178. fail(e) {
  179. uni.showToast({
  180. title: this.$t('this.fzsb'),
  181. icon: false
  182. });
  183. console.log(e);
  184. }
  185. });
  186. // #endif
  187. }
  188. }
  189. };
  190. </script>
  191. <style lang="scss">
  192. .box {
  193. padding-top: 10rpx;
  194. color: #fad6b0;
  195. .box-top {
  196. border-bottom: 1px solid #f0f0f0;
  197. padding: 10rpx 10rpx 10rpx 20rpx;
  198. color: #fff;
  199. font-size: 28rpx;
  200. .title {
  201. font-family: PingFang SC;
  202. font-weight: 500;
  203. color: #ffffff;
  204. }
  205. }
  206. .main {
  207. width: 90%;
  208. margin: 0 auto;
  209. padding: 20rpx;
  210. align-items: center;
  211. .left {
  212. justify-content: flex-start;
  213. .bank {
  214. margin-left: 10rpx;
  215. width: 48rpx;
  216. height: 40rpx;
  217. image {
  218. width: 100%;
  219. height: 100%;
  220. }
  221. }
  222. .avtor {
  223. background: #fff;
  224. width: 80rpx;
  225. height: 80rpx;
  226. border-radius: 50%;
  227. image {
  228. border-radius: 50%;
  229. width: 100%;
  230. height: 100%;
  231. }
  232. }
  233. .main-info {
  234. margin-left: 16rpx;
  235. .name {
  236. font-size: 30rpx;
  237. font-family: PingFang SC;
  238. font-weight: 500;
  239. color: #fad6b0;
  240. }
  241. .phone {
  242. font-size: 22rpx;
  243. font-family: PingFang SC;
  244. font-weight: 400;
  245. color: #fad6b0;
  246. opacity: 0.8;
  247. }
  248. }
  249. }
  250. .right {
  251. text-align: right;
  252. font-size: 30rpx;
  253. font-family: PingFang SC;
  254. font-weight: 500;
  255. color: #fad6b0;
  256. }
  257. .right-box {
  258. overflow: hidden;
  259. width: 188rpx;
  260. height: 56rpx;
  261. background: linear-gradient(-74deg, #ce9c6d, #ffecd6);
  262. border-image: linear-gradient(115deg, #feebd5, #ffffff, #e1ad7d) 1 1;
  263. box-shadow: 3rpx 4rpx 5rpx 0px rgba(151, 118, 74, 0.5);
  264. border-radius: 28rpx;
  265. font-size: 30rpx;
  266. font-family: PingFang SC;
  267. font-weight: 500;
  268. color: #643912;
  269. text-align: center;
  270. line-height: 56rpx;
  271. }
  272. }
  273. }
  274. .tishi {
  275. padding: 20rpx 0 120rpx 24rpx;
  276. color: #fff;
  277. font-size: 26rpx;
  278. font-family: PingFang SC;
  279. font-weight: 500;
  280. color: #ffffff;
  281. }
  282. .change {
  283. padding: 10rpx 0 0 40rpx;
  284. font-size: 30rpx;
  285. }
  286. .erweima {
  287. margin: 16rpx auto 0;
  288. width: 300rpx;
  289. height: 300rpx;
  290. image {
  291. width: 100%;
  292. height: 100%;
  293. }
  294. }
  295. .address {
  296. margin-top: 20rpx;
  297. text-align: center;
  298. }
  299. .btn {
  300. margin: 20rpx auto 0;
  301. width: 500rpx;
  302. height: 60rpx;
  303. background: linear-gradient(-74deg, #ce9c6d, #ffecd6);
  304. border-image: linear-gradient(115deg, #feebd5, #ffffff, #e1ad7d) 1 1;
  305. border-radius: 30px;
  306. line-height: 60rpx;
  307. text-align: center;
  308. font-size: 26rpx;
  309. font-family: PingFang SC;
  310. font-weight: 500;
  311. color: #643912;
  312. }
  313. </style>