Dread 4 years ago
parent
commit
94ebf35bb2
  1. 9
      components/navigation/navigation.vue
  2. 7
      pages/menu/about/index.css
  3. 12
      pages/menu/about/index.vue
  4. 3
      pages/menu/sendToken/address/index.css
  5. 27
      pages/menu/sendToken/address/index.vue
  6. 7
      pages/menu/sendToken/transfer/index.vue
  7. 10
      pages/register/index.css
  8. 67
      pages/register/index.vue
  9. 9
      utils/locales/en.js
  10. 8
      utils/locales/zh-F.js
  11. 9
      utils/locales/zh.js

9
components/navigation/navigation.vue

@ -62,20 +62,23 @@
} }
.nav-head{ .nav-head{
line-height: 40rpx; height: 40rpx;
// background-color: #fff; // background-color: #fff;
text-align: center; text-align: center;
font-weight: 700; font-weight: 700;
font-size: 36rpx; font-size: 36rpx;
color: #000; color: #000;
position: relative; padding: 40rpx 16rpx;
padding: 0 16rpx;
margin-top: 50rpx; margin-top: 50rpx;
display: flex; display: flex;
justify-content: center; justify-content: center;
flex-direction: row-reverse; flex-direction: row-reverse;
align-items: center; align-items: center;
margin-top: 80rpx; margin-top: 80rpx;
position: sticky;
top: 40px;
width: 100%;
} }
.back{ .back{
width: 30rpx; width: 30rpx;

7
pages/menu/about/index.css

@ -1,3 +1,10 @@
.bitcooo{
text-align: center;
font-size: 60rpx;
font-weight: bold;
margin-top: 20rpx;
}
.main{ .main{
padding:0 24rpx padding:0 24rpx
} }

12
pages/menu/about/index.vue

@ -7,9 +7,10 @@
<view class="bot_con"> <view class="bot_con">
<view class="topcon"> <view class="topcon">
<!-- <image src="../../../static/tongyonh/Group285.png" mode="aspectFit" class="img"></image> -->
<image src="../../../static/tongyonh/Group285.png" mode="aspectFit" class="img"></image> <image src="../../../static/tongyonh/Group285.png" mode="aspectFit" class="img"></image>
<image src="../../../static/tongyonh/textt.png" mode="aspectFit" class="img2"></image> <view class="bitcooo">
BitCooo
</view>
</view> </view>
<view class="flex item"> <view class="flex item">
<view class="text1"> <view class="text1">
@ -19,12 +20,12 @@
{{version}} {{version}}
</view> </view>
</view> </view>
<view class="flex item"> <view class="flex item" @click="goWeb">
<view class="text1"> <view class="text1">
{{i18n.Officialwebsite}} {{i18n.Officialwebsite}}
</view> </view>
<view class="text2 gray"> <view class="text2 gray">
https://bitcooo.com https://www.bitcooo.com
</view> </view>
</view> </view>
<view class="flex item" @click="goTerms"> <view class="flex item" @click="goTerms">
@ -76,6 +77,9 @@
// #endif // #endif
}, },
methods: { methods: {
goWeb(){
plus.runtime.openURL('https://www.bitcooo.com/');
},
goTerms() { goTerms() {
uni.navigateTo({ uni.navigateTo({
url: './terms/index' url: './terms/index'

3
pages/menu/sendToken/address/index.css

@ -9,6 +9,9 @@
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
} }
/deep/ .u-empty{
margin-top: 180rpx !important;
}
.renYou{ .renYou{
width: 48rpx; width: 48rpx;
height: 48rpx; height: 48rpx;

27
pages/menu/sendToken/address/index.vue

@ -139,6 +139,8 @@
<u-mask z-index="10" :show="show" @click="show = false"></u-mask> <u-mask z-index="10" :show="show" @click="show = false"></u-mask>
<u-mask z-index="10" :show="show2" @click="show2 = false"></u-mask> <u-mask z-index="10" :show="show2" @click="show2 = false"></u-mask>
<u-mask z-index="10" :show="show3" @click="show3 = false"></u-mask> <u-mask z-index="10" :show="show3" @click="show3 = false"></u-mask>
<u-empty :text="teee" mode="list" v-if="showInfo"></u-empty>
</view> </view>
@ -150,14 +152,16 @@
export default { export default {
data() { data() {
return { return {
teee: this.$t('index').Nocontent,
showInfo: false,
sourcePage: '', sourcePage: '',
ethIndex: 0, ethIndex: 0,
btcIndex: 0, btcIndex: 0,
trxIndex: 0, trxIndex: 0,
showImte: false, showImte: false,
BTCAddressInfo: {}, BTCAddressInfo: [],
ETHAddressInfo: {}, ETHAddressInfo: [],
TRXAddressInfo: {}, TRXAddressInfo: [],
walletIndex: -1, walletIndex: -1,
itemCoin: '', itemCoin: '',
itemAddress: '', itemAddress: '',
@ -263,6 +267,9 @@
this.showImte = true; this.showImte = true;
this.show = false; this.show = false;
setTimeout(() => { setTimeout(() => {
uni.redirectTo({
url:'/pages/menu/sendToken/address/index'
})
this.showImte = false; this.showImte = false;
}, 1500) }, 1500)
@ -280,6 +287,9 @@
this.showImte = true; this.showImte = true;
this.show2 = false; this.show2 = false;
setTimeout(() => { setTimeout(() => {
uni.redirectTo({
url:'/pages/menu/sendToken/address/index'
})
this.showImte = false; this.showImte = false;
}, 1500) }, 1500)
@ -295,6 +305,9 @@
this.showImte = true; this.showImte = true;
this.show3 = false; this.show3 = false;
setTimeout(() => { setTimeout(() => {
uni.redirectTo({
url:'/pages/menu/sendToken/address/index'
})
this.showImte = false; this.showImte = false;
}, 1500) }, 1500)
@ -327,6 +340,14 @@
this.TRXAddressInfo = uni.getStorageSync('TRXAddressInfo') this.TRXAddressInfo = uni.getStorageSync('TRXAddressInfo')
console.log(this.TRXAddressInfo, 777) console.log(this.TRXAddressInfo, 777)
} }
console.log(this.BTCAddressInfo.length)
console.log(this.ETHAddressInfo.length)
console.log(this.TRXAddressInfo.length)
if(this.BTCAddressInfo.length==0&&this.ETHAddressInfo.length==0&&this.TRXAddressInfo.length==0){
this.showInfo=true;
}else{
this.showInfo=false;
}
} }
}; };
</script> </script>

7
pages/menu/sendToken/transfer/index.vue

@ -80,7 +80,7 @@
</view> </view>
</view> </view>
<view class="item"> <!-- <view class="item">
<view class="top flex"> <view class="top flex">
<view class="text1"> <view class="text1">
{{i18n.Transactionfee}} {{i18n.Transactionfee}}
@ -95,7 +95,7 @@
<text class="text2">{{coin.type}}</text> <text class="text2">{{coin.type}}</text>
</view> </view>
</view> </view>
</view> </view> -->
</view> </view>
</view> </view>
@ -452,7 +452,7 @@
// //
Confirm() { Confirm() {
// //
debugger // debugger
if (this.transInfoPass.amount == '') { if (this.transInfoPass.amount == '') {
uni.showToast({ uni.showToast({
title: this.$t('index').enterthetransferamount, title: this.$t('index').enterthetransferamount,
@ -485,7 +485,6 @@
}) })
return return
} }
let that = this let that = this
if (this.coin.type === 'ETH') { if (this.coin.type === 'ETH') {
if(!this.$Token.validateEth(this.transInfoPass.toAddress)) if(!this.$Token.validateEth(this.transInfoPass.toAddress))

10
pages/register/index.css

@ -1,3 +1,9 @@
.lans{
}
.main{ .main{
margin-top: 120rpx; margin-top: 120rpx;
} }
@ -37,7 +43,7 @@
} }
/deep/ uni-swiper .uni-swiper-dots-horizontal { /deep/ uni-swiper .uni-swiper-dots-horizontal {
left: 50%; left: 50%;
bottom: -5px; bottom: -76rpx;
} }
/deep/ .uni-swiper-dot{ /deep/ .uni-swiper-dot{
width: 20rpx !important; width: 20rpx !important;
@ -51,7 +57,7 @@
background-color: #5B53FF!important; background-color: #5B53FF!important;
} }
.reg_con{ .reg_con{
margin-top: 60rpx; margin-top: 100rpx;
padding: 0 40rpx; padding: 0 40rpx;
} }
.reg{ .reg{

67
pages/register/index.vue

@ -1,5 +1,9 @@
<template> <template>
<view class="main"> <view class="main">
<!-- <u-button @click="show = true">打开</u-button> -->
<view class="lans">
{{i18n.lans}}
</view>
<view class="wrap"> <view class="wrap">
<swiper class="swiper" :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval"> <swiper class="swiper" :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval">
<swiper-item> <swiper-item>
@ -7,31 +11,29 @@
<image src="../../static/tongyonh/phone_image.png" class="img1" mode="aspectFit"></image> <image src="../../static/tongyonh/phone_image.png" class="img1" mode="aspectFit"></image>
<view class="text_con"> <view class="text_con">
<view class="text1"> <view class="text1">
Decentralised wallets, {{i18n.Decentralised}}
self-directed assets
</view> </view>
<view class="text2"> <view class="text2">
Local storage of private keys, safe and secure {{i18n.Localstorage}}
</view> </view>
</view> </view>
</view> </view>
</swiper-item> </swiper-item>
<swiper-item> <swiper-item>
<view class="swiper-item"> <view class="swiper-item">
<image src="../../static/tongyonh/phone_image.png" class="img1" mode="aspectFit"></image> <image src="../../static/tongyonh/phone_image.png" class="img1" mode="aspectFit"></image>
<view class="text_con"> <view class="text_con">
<view class="text1"> <view class="text1">
Decentralised wallets, {{i18n.Decentralised}}
self-directed assets
</view>
<view class="text2">
Local storage of private keys, safe and secure
</view>
</view>
</view> </view>
</swiper-item> <view class="text2">
{{i18n.Localstorage}}
</view>
</view>
</view>
</swiper-item>
</swiper> </swiper>
</view> </view>
@ -47,10 +49,10 @@
</image> </image>
<view class="textcon"> <view class="textcon">
<view class="text1"> <view class="text1">
Create a wallet {{i18n.crewalllet}}
</view> </view>
<view class="text2"> <view class="text2">
One identity management {{i18n.Oneidentity}}
</view> </view>
</view> </view>
</view> </view>
@ -65,10 +67,10 @@
<image src="../../static/tongyonh/login_wallet.png" mode="aspectFit" class="letimg"></image> <image src="../../static/tongyonh/login_wallet.png" mode="aspectFit" class="letimg"></image>
<view class="textcon"> <view class="textcon">
<view class="text1"> <view class="text1">
Login to wallet {{i18n.Logintowallet}}
</view> </view>
<view class="text2"> <view class="text2">
Restore existing wallets {{i18n.Restoreexisting}}
</view> </view>
</view> </view>
</view> </view>
@ -84,12 +86,13 @@
<view class="select"> <view class="select">
<u-checkbox-group @change="checkboxGroupChange"> <u-checkbox-group @change="checkboxGroupChange">
<u-checkbox @change="checkboxChange" v-for="(item, index) in list2" :key="index" <u-checkbox @change="checkboxChange" v-for="(item, index) in list2" :key="index"
v-model="item.checked" :name="item.name" active-color="#5B53FF"> <text class="name">I have read and agree to the v-model="item.checked" :name="item.name" active-color="#5B53FF"> <text class="name">{{i18n.AgreementConfirmation}}
<text class="active" @click.stop="Terms">Terms of Service</text> <text class="active" @click.stop="Terms">{{i18n.TermsofService}}</text>
</text> </u-checkbox> </text> </u-checkbox>
</u-checkbox-group> </u-checkbox-group>
</view> </view>
</view> </view>
<u-select v-model="show" :list="list3"></u-select>
@ -106,6 +109,17 @@
export default { export default {
data() { data() {
return { return {
show: false,
list3: [
{
value: '1',
label: '江'
},
{
value: '2',
label: '湖'
}
],
list2: [{ list2: [{
name: '', name: '',
checked: false, checked: false,
@ -119,7 +133,11 @@
walletInfo: {}, walletInfo: {},
} }
}, },
computed: {
i18n() {
return this.$t('index')
},
},
onLoad() {}, onLoad() {},
onShow() { onShow() {
console.log(uni.getStorageSync('walletInfo')) console.log(uni.getStorageSync('walletInfo'))
@ -132,6 +150,7 @@
this.list2.checked = false; this.list2.checked = false;
}, },
methods: { methods: {
checkboxGroupChange() { checkboxGroupChange() {
}, },

9
utils/locales/en.js

@ -1,6 +1,15 @@
// en.js // en.js
export default { export default {
index: { index: {
// regis
Decentralised:'Decentralised wallets,self-directed assets',
Localstorage:'Local storage of private keys, safe and secure',
Oneidentity:'One identity management',
Logintowallet:'Login to wallet',
Restoreexisting:'Restore existing wallets',
tela:'Enter the token name or contract address', tela:'Enter the token name or contract address',
tokensfound:'No related tokens found', tokensfound:'No related tokens found',
thetokenname:'Please enter the token name or contract address to search', thetokenname:'Please enter the token name or contract address to search',

8
utils/locales/zh-F.js

@ -1,6 +1,14 @@
// zhf.js // zhf.js
export default { export default {
index: { index: {
// regis
Decentralised:'去中心化錢包,自主資產',
Localstorage:'私鑰本地存儲,安全有保障',
Oneidentity:'身份管理',
Logintowallet:'導入錢包',
Restoreexisting:'恢復現有錢包',
tela:'请輸入代幣名稱或合約地址', tela:'请輸入代幣名稱或合約地址',
tokensfound:'未找到相關代幣', tokensfound:'未找到相關代幣',
thetokenname:'請輸入要搜索的代幣名稱或合約地址', thetokenname:'請輸入要搜索的代幣名稱或合約地址',

9
utils/locales/zh.js

@ -1,6 +1,15 @@
// zh.js // zh.js
export default { export default {
index: { index: {
// regis
Decentralised:'去中心化钱包,自主资产',
Localstorage:'私钥本地存储,安全有保障',
Oneidentity:'身份管理',
Logintowallet:'导入钱包',
Restoreexisting:'恢复现有钱包',
tela:'请输入代币名称或合约地址', tela:'请输入代币名称或合约地址',
tokensfound:'未找到相关代币', tokensfound:'未找到相关代币',
thetokenname:'请输入要搜索的代币名称或合约地址', thetokenname:'请输入要搜索的代币名称或合约地址',

Loading…
Cancel
Save