123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319 |
- <template>
- <view class="center">
- <view class="box" v-for="(item, index) in list" :key="index">
- <view class="box-top flex">
- <view class="title" v-if="item.system_get == 1">{{ $t('foo.xtptwsf')}}</view>
- <view class="title" v-else >{{ $t('foo.sjyhskxxs') }}{{ index + 1 }}{{ $t('foo.j') }}</view>
- <view class="type">
- {{ item.status == '1' ? $t('foo.cg') : item.status == '2' ? $t('foo.sb') : item.status == '0' && item.voucherimages != null ? $t('foo.shz') : '' }}
- </view>
- </view>
- <view class="main flex" style="border-bottom: 1px solid #F0F0F0;">
- <view class="left flex">
- <view class="avtor" v-if="item.system_get == 0"><image :src="item.checker.avatar || '../../static/error/missing-face.png'" mode=""></image></view>
- <view class="main-info">
- <view class="name" v-if="item.system_get == 1">{{ $t('foo.xtpt') }}</view>
- <view class="name" v-else>{{ item.checker.nickname || 'null' }}</view>
- <view class="phone" v-if="item.system_get == 0">{{ item.checker.mobile }}</view>
- </view>
- </view>
- <view class="right" v-if="item.system_get == 0">{{ $t('foo.yzje') }}:¥{{ item.money * 1 }}</view>
- <view class="right" v-if="item.system_get == 1">{{ $t('foo.xtptwhf')}}:¥{{ item.money * 6.5 }}</view>
- </view>
- <view class="main flex" v-if="item.system_get == 0">
- <view class="left flex">
- <!-- <view class="bank"><image src="../../static/img/bank.png" mode=""></image></view>
- <view class="main-info">
- <view class="name">{{ item.checker.bank_of_deposit || '暂无' }}</view>
- <view class="name">{{ item.checker.bank_card_no || '暂无' }}</view>
- </view> -->
- <view class="right-box" @click="navTo(item)" style="width: 228rpx;">{{ $t('foo.yzfkxx') }}</view>
- </view>
- <view class="right">
- <view class="right-box" @click="nav(item,2)">{{ $t('foo.scpz') }}</view>
- </view>
- </view>
- <view class="main" v-if="item.system_get == 1">
- <!-- <view class="change">{{ $t('foo.qxz') }}</view> -->
- <!-- <view class="erweima">
- <tki-qrcode
- :cid="cid"
- ref="qrcode"
- :val="num"
- :size="size"
- :unit="unit"
- :background="background"
- :foreground="foreground"
- :pdground="pdground"
- :iconSize="iconSize"
- :lv="lv"
- :onval="onval"
- :loadMake="loadMake"
- :usingComponents="usingComponents"
- />
- </view> -->
- <view class="address">{{ num }}</view>
- <view class="right flex" style="margin-top: 50rpx;">
- <view class="right-box" @click="setData">{{ $t('foo.zfcbdz') }}</view>
- <view class="right-box" @click="nav(item,1)">{{ $t('foo.scpz') }}</view>
- </view>
- </view>
- </view>
- <view class="tishi">*{{ $t('foo.qxxyzbbcjtxgpzbsc') }}{{ list[0].money*1 || 0}}{{ $t('foo.ysclbjt') }}</view>
- </view>
- </template>
- <script>
- import { activity } from '@/api/active.js';
- import tkiQrcode from '@/components/tki-qrcode/tki-qrcode.vue';
- export default {
- data() {
- return {
- list: [],
- id: '',
- cid: 'cid',
- size: 150,
- unit: '150',
- background: '#000000',
- foreground: '#FFFFFF',
- pdground: '#FFFFFF',
- icon: '',
- num: '',
- iconSize: 40,
- lv: 3,
- onval: true,
- loadMake: true,
- usingComponents: true
- };
- },
- onLoad(option) {
- uni.setNavigationBarTitle({
- title: this.$t('foo.dkxx')
- });
- this.id = option.id;
- this.loadData();
- },
- methods: {
- loadData() {
- const obj = this;
- activity({}, this.id).then(e => {
- console.log(e);
- if (e.data.check) {
- this.list = e.data.check;
- this.list.forEach(e => {
- console.log(e);
- if (e.checker.usdt_address) {
- obj.num = e.checker.usdt_address;
- }
- });
- } else {
- uni.showToast({
- title: e.msg,
- duration: 1500,
- mask: false,
- icon: 'none'
- });
- }
- });
- },
- nav(item,type) {
- console.log(type)
- if (item.voucherimages != null) {
- uni.showModal({
- title: this.$t('foo.ts'),
- content: this.$t('foo.yscpzsfcxsc'),
- success: function(res) {
- if (res.confirm) {
- console.log('用户点击确定');
- uni.navigateTo({
- url: '/pages/upload/upload?id=' + item.id + '&type=' + type
- });
- } else if (res.cancel) {
- console.log('用户点击取消');
- }
- }
- });
- } else {
- uni.navigateTo({
- url: '/pages/upload/upload?id=' + item.id + '&type=' + type
- });
- }
- },
- navTo(item) {
- console.log(item);
- let ali = '';
- let wechat = '';
- let bank_card_no = '';
- let bank_of_deposit = '';
- let name ='';
- let phone = '';
- if (item.checker.ali) {
- ali = item.checker.ali;
- }
- if (item.checker.wechat) {
- wechat = item.checker.wechat;
- }
- if (item.checker.bank_card_no) {
- bank_card_no = item.checker.bank_card_no;
- }
- if (item.checker.nickname) {
- name = item.checker.nickname;
- }
- if (item.checker.ext_mobile) {
- phone = item.checker.ext_mobile;
- }
- if (item.checker.bank_of_deposit) {
- bank_of_deposit = item.checker.bank_of_deposit;
- }
- uni.navigateTo({
- url: '/pages/index/male?ali=' + ali + '&wei=' + wechat + '&bank=' + bank_of_deposit + '&info=' + bank_card_no + '&name=' + name + '&phone=' + phone
- });
- },
- setData() {
- // #ifdef APP-PLUS
- uni.setClipboardData({
- data: this.num,
- success: e => {
- uni.showToast({
- title: this.$t('this.fzcg')
- });
- },
- fail(e) {
- uni.showToast({
- title: this.$t('this.fzsb'),
- icon: false
- });
- console.log(e);
- }
- });
- // #endif
- }
- }
- };
- </script>
- <style lang="scss">
- .box {
- padding-top: 10rpx;
- color: #fad6b0;
- .box-top {
- border-bottom: 1px solid #f0f0f0;
- padding: 10rpx 10rpx 10rpx 20rpx;
- color: #fff;
- font-size: 28rpx;
- .title {
- font-family: PingFang SC;
- font-weight: 500;
- color: #ffffff;
- }
- }
- .main {
- width: 90%;
- margin: 0 auto;
- padding: 20rpx;
- align-items: center;
- .left {
- justify-content: flex-start;
- .bank {
- margin-left: 10rpx;
- width: 48rpx;
- height: 40rpx;
- image {
- width: 100%;
- height: 100%;
- }
- }
- .avtor {
- background: #fff;
- width: 80rpx;
- height: 80rpx;
- border-radius: 50%;
- image {
- border-radius: 50%;
- width: 100%;
- height: 100%;
- }
- }
- .main-info {
- margin-left: 16rpx;
- .name {
- font-size: 30rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #fad6b0;
- }
- .phone {
- font-size: 22rpx;
- font-family: PingFang SC;
- font-weight: 400;
- color: #fad6b0;
- opacity: 0.8;
- }
- }
- }
- .right {
- text-align: right;
- font-size: 30rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #fad6b0;
- }
- .right-box {
- overflow: hidden;
- width: 188rpx;
- height: 56rpx;
- background: linear-gradient(-74deg, #ce9c6d, #ffecd6);
- border-image: linear-gradient(115deg, #feebd5, #ffffff, #e1ad7d) 1 1;
- box-shadow: 3rpx 4rpx 5rpx 0px rgba(151, 118, 74, 0.5);
- border-radius: 28rpx;
- font-size: 30rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #643912;
- text-align: center;
- line-height: 56rpx;
- }
- }
- }
- .tishi {
- padding: 20rpx 0 120rpx 24rpx;
- color: #fff;
- font-size: 26rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #ffffff;
- }
- .change {
- padding: 10rpx 0 0 40rpx;
- font-size: 30rpx;
- }
- .erweima {
- margin: 16rpx auto 0;
- width: 300rpx;
- height: 300rpx;
- image {
- width: 100%;
- height: 100%;
- }
- }
- .address {
- margin-top: 20rpx;
- text-align: center;
- }
- .btn {
- margin: 20rpx auto 0;
- width: 500rpx;
- height: 60rpx;
- background: linear-gradient(-74deg, #ce9c6d, #ffecd6);
- border-image: linear-gradient(115deg, #feebd5, #ffffff, #e1ad7d) 1 1;
- border-radius: 30px;
- line-height: 60rpx;
- text-align: center;
- font-size: 26rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #643912;
- }
- </style>
|