Browse Source

1123

master
Dread 4 years ago
parent
commit
81cb6d8e0b
  1. 8
      pages.json
  2. 2
      pages/menu/collection/index.css
  3. 20
      pages/menu/collection/index.vue
  4. 9
      pages/menu/token/btc/index.vue
  5. 5
      pages/menu/transction/detail/index.vue
  6. 5
      pages/menu/wallet/index.vue
  7. BIN
      unpackage/cache/apk/__UNI__1ECBEE1_cm.apk
  8. 2
      unpackage/cache/apk/apkurl
  9. 2
      unpackage/cache/apk/cmManifestCache.json
  10. 14
      unpackage/cache/wgt/__UNI__1ECBEE1/app-service.js
  11. 2
      unpackage/cache/wgt/__UNI__1ECBEE1/app-view.js
  12. 14
      unpackage/dist/build/app-plus/app-service.js
  13. 2
      unpackage/dist/build/app-plus/app-view.js
  14. 2
      unpackage/dist/dev/app-plus/app-config-service.js
  15. 58
      unpackage/dist/dev/app-plus/app-service.js
  16. 10
      unpackage/dist/dev/app-plus/app-view.js
  17. BIN
      unpackage/release/apk/bitcooo1.0.apk
  18. BIN
      unpackage/release/apk/bitcooo1.0.zip
  19. 56
      utils/EthUtil.js
  20. 27
      utils/locales/zh-F.js
  21. 12
      utils/locales/zh.js

8
pages.json

@ -20,7 +20,9 @@
{ {
"path": "pages/menu/token/btc/index", "path": "pages/menu/token/btc/index",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom",
"enablePullDownRefresh": true,
"onReachBottomDistance": 10
} }
}, },
@ -56,7 +58,9 @@
{ {
"path": "pages/menu/collection/index", "path": "pages/menu/collection/index",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom",
"enablePullDownRefresh": true,
"onReachBottomDistance": 10
} }
}, },

2
pages/menu/collection/index.css

@ -30,8 +30,6 @@ page {
background: #fff; background: #fff;
border-radius: 24rpx; border-radius: 24rpx;
box-shadow: 0 18rpx 18rpx 18rpx #EAEDF0; box-shadow: 0 18rpx 18rpx 18rpx #EAEDF0;
max-height: 1200rpx;
overflow-y: scroll;
} }
.title { .title {

20
pages/menu/collection/index.vue

@ -5,7 +5,7 @@
</navigation> </navigation>
<view class="big_con"> <view class="big_con">
<view class="main"> <view class="main">
<view class="main_con"> <scroll-view :scroll-y="true" class="main_con" style="max-height: 1080rpx;" lower-threshold="50">
<view class="item flex" @click="showMsg(item,index)" v-for="item,index in collectinInfo" :key="index"> <view class="item flex" @click="showMsg(item,index)" v-for="item,index in collectinInfo" :key="index">
<view class="left flex2"> <view class="left flex2">
<image :src="item.projectIconUrlAbs" mode="aspectFit" class="img"></image> <image :src="item.projectIconUrlAbs" mode="aspectFit" class="img"></image>
@ -25,7 +25,7 @@
</view> </view>
</view> </scroll-view>
<tab-bar :selectActive="2"></tab-bar> <tab-bar :selectActive="2"></tab-bar>
@ -101,13 +101,15 @@
return this.$t('index') return this.$t('index')
}, },
}, },
// onPullDownRefresh() {
// console.log('refresh'); onPullDownRefresh() {
// this.getCollection(); console.log('refresh');
// setTimeout(function() { this.getCollection();
// uni.stopPullDownRefresh(); setTimeout(function() {
// }, 500); uni.stopPullDownRefresh();
// }, }, 500);
},
methods: { methods: {
showMsg(item,index){ showMsg(item,index){
this.test=item this.test=item

9
pages/menu/token/btc/index.vue

@ -52,7 +52,7 @@
<u-tabs height="120" bar-width="172" active-font="13" inactive-font="13" active-color="#6F69FF" <u-tabs height="120" bar-width="172" active-font="13" inactive-font="13" active-color="#6F69FF"
inactive-color="#A3AED0" :list="list" :is-scroll="false" :current="current" @change="change"> inactive-color="#A3AED0" :list="list" :is-scroll="false" :current="current" @change="change">
</u-tabs> </u-tabs>
<u-empty :text="teee" mode="list" v-if="showInfo"></u-empty> <u-empty :text="teee" mode="list" v-if="showInfo"></u-empty>
<scroll-view v-if="!showInfo":scroll-y="true" style="max-height: 880rpx;" @scrolltolower="scrollToPage" lower-threshold="50"> <scroll-view v-if="!showInfo":scroll-y="true" style="max-height: 880rpx;" @scrolltolower="scrollToPage" lower-threshold="50">
<view class="item1" v-for="(item,index) in trxs" @click="goDetail(item,index)"> <view class="item1" v-for="(item,index) in trxs" @click="goDetail(item,index)">
@ -147,6 +147,13 @@
return this.$t('index') return this.$t('index')
}, },
}, },
onPullDownRefresh() {
console.log('refresh');
this.getWalletInfo();
setTimeout(function() {
uni.stopPullDownRefresh();
}, 500);
},
methods: { methods: {
back() { back() {
uni.reLaunch({ uni.reLaunch({

5
pages/menu/transction/detail/index.vue

@ -68,7 +68,7 @@
</view> </view>
<view class="text2"> <view class="text2">
{{info.toAddress}} {{info.toAddress}}
<image @click="copyTextMethod(info.to)" src="../../../../static/tongyonh/copy_24px.png" mode="aspectFit" class="img"></image> <image @click="copyTextMethod(info.toAddress)" src="../../../../static/tongyonh/copy_24px.png" mode="aspectFit" class="img"></image>
</view> </view>
</view> </view>
</view> </view>
@ -137,11 +137,12 @@
// #ifdef APP-PLUS // #ifdef APP-PLUS
var that = this var that = this
console.log(123132) console.log(123132)
uni.hideToast();
uni.setClipboardData({ uni.setClipboardData({
data: text, data: text,
success() { success() {
uni.showToast({ uni.showToast({
title: this.$t('index').CopySuccessful, title: that.$t('index').CopySuccessful,
icon: 'none', icon: 'none',
duration: 1500 duration: 1500
}) })

5
pages/menu/wallet/index.vue

@ -112,7 +112,7 @@
uni.setStorageSync('isWallet', false); uni.setStorageSync('isWallet', false);
}, },
async onLoad() { async onLoad() {
console.log('eth有走这吗')
let currency = uni.getStorageSync('currency'); let currency = uni.getStorageSync('currency');
if (currency) { if (currency) {
this.currency = currency; this.currency = currency;
@ -122,7 +122,8 @@
//console.log(this.$TronUtil.decode("TBk72yKTJWppCsa7XrsU7Qhfo4yNvbm8rE")) //console.log(this.$TronUtil.decode("TBk72yKTJWppCsa7XrsU7Qhfo4yNvbm8rE"))
this.userObj = uni.getStorageSync('wallet'); this.userObj = uni.getStorageSync('wallet');
this.userObj = await this.$walletUtil.updateBalance(); this.userObj = await this.$walletUtil.updateBalance();
console.log('eth有走这吗')
uni.setStorageSync('isWallet', false); uni.setStorageSync('isWallet', false);
// #ifdef APP-PLUS // #ifdef APP-PLUS
this.appVersion() this.appVersion()

BIN
unpackage/cache/apk/__UNI__1ECBEE1_cm.apk

Binary file not shown.

2
unpackage/cache/apk/apkurl

@ -1 +1 @@
https://ide.dcloud.net.cn/build/download/3b988a30-4b80-11ec-9d4b-29472ed858a4 https://ide.dcloud.net.cn/build/download/2b6dbb20-4b9b-11ec-83ec-c959e633baf4

2
unpackage/cache/apk/cmManifestCache.json

File diff suppressed because one or more lines are too long

14
unpackage/cache/wgt/__UNI__1ECBEE1/app-service.js

File diff suppressed because one or more lines are too long

2
unpackage/cache/wgt/__UNI__1ECBEE1/app-view.js

File diff suppressed because one or more lines are too long

14
unpackage/dist/build/app-plus/app-service.js

File diff suppressed because one or more lines are too long

2
unpackage/dist/build/app-plus/app-view.js

File diff suppressed because one or more lines are too long

2
unpackage/dist/dev/app-plus/app-config-service.js

File diff suppressed because one or more lines are too long

58
unpackage/dist/dev/app-plus/app-service.js

File diff suppressed because one or more lines are too long

10
unpackage/dist/dev/app-plus/app-view.js

File diff suppressed because one or more lines are too long

BIN
unpackage/release/apk/bitcooo1.0.apk

Binary file not shown.

BIN
unpackage/release/apk/bitcooo1.0.zip

Binary file not shown.

56
utils/EthUtil.js

@ -13,12 +13,12 @@ if (typeof web3 !== 'undefined') {
let eth = { let eth = {
// //获取主币eth余额 // //获取主币eth余额
// getBalance: async function(address) { getBalance: async function(address) {
// web3 = new Web3(new Web3.providers.HttpProvider(systemConfiguration.constant.ethNode)); web3 = new Web3(new Web3.providers.HttpProvider(systemConfiguration.constant.ethNode));
// let balance = await web3.eth.getBalance(address); let balance = await web3.eth.getBalance(address);
// console.log("余额:",balance) console.log("余额:",balance)
// return Number(balance) / Math.pow(10, 18); return Number(balance) / Math.pow(10, 18);
// }, },
// //获取eth代币币余额 // //获取eth代币币余额
// getTokenBalance: async function(address, contract) { // getTokenBalance: async function(address, contract) {
// console.log(address, contract) // console.log(address, contract)
@ -38,28 +38,28 @@ let eth = {
return gasPrice; return gasPrice;
}, },
//获取主币eth余额 // //获取主币eth余额
getBalance: async function(address) { // getBalance: async function(address) {
web3 = new Web3(); // web3 = new Web3();
const data = { // const data = {
'jsonrpc': '2.0', // 'jsonrpc': '2.0',
'id': '1', // 'id': '1',
'method': 'eth_getBalance', // 'method': 'eth_getBalance',
'params': [address, "latest"] // 'params': [address, "latest"]
}; // };
let res = await uni.request({ // let res = await uni.request({
url: systemConfiguration.constant.ethNode, //仅为示例,并非真实接口地址。 // url: systemConfiguration.constant.ethNode, //仅为示例,并非真实接口地址。
method: 'POST', // method: 'POST',
data: data, // data: data,
dataType: 'json' // dataType: 'json'
}); // });
try { // try {
let balance = Number(web3.utils.hexToNumberString(res[1].data.result)) / Math.pow(10, 18) // let balance = Number(web3.utils.hexToNumberString(res[1].data.result)) / Math.pow(10, 18)
return balance // return balance
} catch (e) { // } catch (e) {
return 0; // return 0;
} // }
}, // },
addPreZero: function(num) { addPreZero: function(num) {
let t = (num + '').length, let t = (num + '').length,
s = ''; s = '';

27
utils/locales/zh-F.js

@ -28,11 +28,7 @@ export default {
apps: '應用設置', apps: '應用設置',
magew: '管理錢包', magew: '管理錢包',
addBook: '地址本', addBook: '地址本',
<<<<<<< HEAD
Settings: '設置', Settings: '設置',
=======
Settings: '設定',
>>>>>>> 60b1293a0d93612ba30d4165773ea5873286f77c
helpcen: '幫助中心', helpcen: '幫助中心',
aboutus: '關於我們', aboutus: '關於我們',
Hardware: '硬件', Hardware: '硬件',
@ -129,17 +125,10 @@ export default {
// nftCollection // nftCollection
NFTcollection: 'NFT收藏品', NFTcollection: 'NFT收藏品',
Contractaddress: '合約地址', Contractaddress: '合約地址',
<<<<<<< HEAD
TokenID: '令牌ID', TokenID: '令牌ID',
entercontractaddress: '請輸入合約地址', entercontractaddress: '請輸入合約地址',
entertokenID: '請輸入令牌ID', entertokenID: '請輸入令牌ID',
Contracts: '合約', Contracts: '合約',
=======
TokenID: '令牌標識',
entercontractaddress: '請輸入契约地址',
entertokenID: '請輸入令牌標識',
Contracts: '契约',
>>>>>>> 60b1293a0d93612ba30d4165773ea5873286f77c
ID: 'ID', ID: 'ID',
Collectiondetails: '收藏品詳情', Collectiondetails: '收藏品詳情',
// btc index // btc index
@ -151,11 +140,7 @@ export default {
// sendToken index // sendToken index
Receivingaddress: '接收地址', Receivingaddress: '接收地址',
ReceivingaddressError: '接收地址錯誤', ReceivingaddressError: '接收地址錯誤',
<<<<<<< HEAD
ScanQR: '掃描二維碼以轉移到資產',
=======
ScanQR: '掃描二維碼轉賬至資產', ScanQR: '掃描二維碼轉賬至資產',
>>>>>>> 60b1293a0d93612ba30d4165773ea5873286f77c
Copyaddress: '複製地址', Copyaddress: '複製地址',
CopySuccessful: '複製地址成功!', CopySuccessful: '複製地址成功!',
// transfer // transfer
@ -165,11 +150,7 @@ export default {
Balance: '餘額', Balance: '餘額',
ALL: "所有", ALL: "所有",
Remark: '備註', Remark: '備註',
<<<<<<< HEAD
Transactionfee: '礦工費', Transactionfee: '礦工費',
=======
Transactionfee: '交易費',
>>>>>>> 60b1293a0d93612ba30d4165773ea5873286f77c
Transferconfirmation: '轉帳確認', Transferconfirmation: '轉帳確認',
Amount: '金額', Amount: '金額',
Sendaddress: '發送地址', Sendaddress: '發送地址',
@ -193,11 +174,7 @@ export default {
// backup5 // backup5
Importviaprivatekey: '通過私鑰導入', Importviaprivatekey: '通過私鑰導入',
Privatekeyimportverification: '私鑰導入驗證', Privatekeyimportverification: '私鑰導入驗證',
<<<<<<< HEAD
privatekeyanddo: '請輸入您的私鑰,不要將其洩露給其他人外部地址無法通過助記鍵恢復。 請妥善保管',
=======
privatekeyanddo: '請輸入您的私鑰,不要洩露給他人,外部地址無法通過助記詞恢復。請妥善保管', privatekeyanddo: '請輸入您的私鑰,不要洩露給他人,外部地址無法通過助記詞恢復。請妥善保管',
>>>>>>> 60b1293a0d93612ba30d4165773ea5873286f77c
enteryourprivatekey: '請輸入您的私鑰', enteryourprivatekey: '請輸入您的私鑰',
beempty: '不能為空', beempty: '不能為空',
beenimported: '錢包已經被導入', beenimported: '錢包已經被導入',
@ -224,11 +201,7 @@ export default {
Transactiondetails: '交易詳情', Transactiondetails: '交易詳情',
Confirmed: '成功', Confirmed: '成功',
Time: '時間', Time: '時間',
<<<<<<< HEAD
TxFee: '礦工費', TxFee: '礦工費',
=======
TxFee: '交易费用',
>>>>>>> 60b1293a0d93612ba30d4165773ea5873286f77c
TransactionID: '交易ID', TransactionID: '交易ID',
others: '其他', others: '其他',
me: '我', me: '我',

12
utils/locales/zh.js

@ -138,11 +138,7 @@ export default {
// sendToken index // sendToken index
Receivingaddress: '接收地址', Receivingaddress: '接收地址',
ReceivingaddressError: '接收地址错误', ReceivingaddressError: '接收地址错误',
<<<<<<< HEAD
ScanQR: '扫描二维码以转移到资产',
=======
ScanQR: '扫描二维码转账至资产', ScanQR: '扫描二维码转账至资产',
>>>>>>> 60b1293a0d93612ba30d4165773ea5873286f77c
Copyaddress: '复制地址', Copyaddress: '复制地址',
CopySuccessful: '复制地址成功!', CopySuccessful: '复制地址成功!',
// transfer // transfer
@ -152,11 +148,7 @@ export default {
Balance: '余额', Balance: '余额',
ALL: "所有", ALL: "所有",
Remark: '备注', Remark: '备注',
<<<<<<< HEAD
Transactionfee: '矿工费', Transactionfee: '矿工费',
=======
Transactionfee: '交易费',
>>>>>>> 60b1293a0d93612ba30d4165773ea5873286f77c
Transferconfirmation: '转账确认', Transferconfirmation: '转账确认',
Amount: '金额', Amount: '金额',
Sendaddress: '发送地址', Sendaddress: '发送地址',
@ -207,11 +199,7 @@ export default {
Transactiondetails: '交易详情', Transactiondetails: '交易详情',
Confirmed: '成功', Confirmed: '成功',
Time: '时间', Time: '时间',
<<<<<<< HEAD
TxFee: '矿工费', TxFee: '矿工费',
=======
TxFee: '交易费用',
>>>>>>> 60b1293a0d93612ba30d4165773ea5873286f77c
TransactionID: '交易ID', TransactionID: '交易ID',
others: '其他', others: '其他',
me: '我', me: '我',

Loading…
Cancel
Save