bitcooo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

123 lines
2.8 KiB

<template>
<view class="">
<navigation :showBack="true" :bgnum="true">
{{addressInfo.name}} {{i18n.Receive}}
</navigation>
<view class="main">
<view class="main_con">
<image :src="addressInfo.icon" mode="aspectFit" class="logoimg"></image>
<view class="title">
{{addressInfo.name}} {{i18n.Receivingaddress}}
</view>
<view class="code_con">
<tki-qrcode ref="qrcode" :val="addressInfo.address" :size="size" :unit="unit"
:background="background" :foreground="foreground" :pdground="pdground" :lv="lv" :onval="onval"
:loadMake="loadMake" :showLoading="showLoading" :loadingText="loadingText" :icon="icon"
class="test" />
</view>
<view class="text1">
{{i18n.ScanQR}}
</view>
<view class="bottom_con">
<view class="text2">
{{addressInfo.address}}
</view>
<view class="text3 copy" @click="copyTextMethod">
<image src="../../../static/tongyonh/copy_24px_2.png" mode="aspectFit" class="copyImg"></image>
{{i18n.Copyaddress}}
</view>
<!-- <view class="text3">
<image src="../../../static/tongyonh/Frame58.png" mode="aspectFit" class="copyImg"></image>
Switching address
</view> -->
</view>
</view>
<view class="info_con green" :class="toTop?'goTop':''">
<image src="../../../static/tongyonh/copy_24px_2.png" mode="aspectFit" class="copyImg"></image>
{{i18n.CopySuccessful}}
</view>
</view>
</view>
</template>
<script>
import cont from "@/components/navigation/navigation.vue"
import tkiQrcode from "tki-qrcode"
export default {
components: {
tkiQrcode
},
data() {
return {
addressInfo: {},
toTop: false,
// 二维码的数据
showErweiMask: false,
ercodeText: '',
size: 400,
background: '#ffffff',
foreground: '#000000',
pdground: '#000000',
iconsize: 30,
lv: 3,
onval: true,
unit: 'upx',
loadMake: true,
icon: '',
showLoading: true,
loadingText: 'One moment please',
// 二维码的数据
}
},
computed: {
i18n() {
return this.$t('index')
},
},
methods: {
copyTextMethod() {
// #ifdef H5
this.$copyText(this.addressInfo.address).then(res => {
this.toTop = true;
setTimeout(() => {
this.toTop = false;
}, 1500)
})
// #endif
// #ifdef APP-PLUS
var that = this
console.log(123132)
uni.setClipboardData({
data: this.addressInfo.address,
success() {
uni.hideToast()
that.toTop = true;
setTimeout(() => {
that.toTop = false;
}, 1500)
}
})
// #endif
},
},
onLoad() {
this.addressInfo = uni.getStorageSync('coin')
}
};
</script>
<style scoped>
page {
background: #FAFAFA;
}
</style>
<style>
@import './index.css';
</style>