info.vue 7.6 KB

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