Browse Source

代码

master
Dread 4 years ago
parent
commit
8aa7b6aba4
  1. 2
      components/tabBar/tabBar.vue
  2. 7
      manifest.json
  3. 432
      package-lock.json
  4. 4
      package.json
  5. 70
      pages.json
  6. 492
      pages/menu/backUp/backUp5/index.vue
  7. 65
      pages/menu/backUp/transPaw/index.vue
  8. 29
      pages/menu/collection/addCollection/index.css
  9. 84
      pages/menu/collection/addCollection/index.vue
  10. 46
      pages/menu/collection/collectionDetail/index.css
  11. 90
      pages/menu/collection/collectionDetail/index.vue
  12. 65
      pages/menu/collection/collectionDetailtrue/index.css
  13. 105
      pages/menu/collection/collectionDetailtrue/index.vue
  14. 248
      pages/menu/collection/index.css
  15. 134
      pages/menu/collection/index.vue
  16. 28
      pages/menu/index/index.vue
  17. 1
      pages/menu/market/index.vue
  18. 418
      pages/menu/sendToken/addAddress2/index.vue
  19. 51
      pages/menu/sendToken/address/index.vue
  20. 62
      pages/menu/token/btc/index.vue
  21. 336
      pages/menu/token/btc/index2.vue
  22. 39
      pages/menu/token/btctrue/index.vue
  23. 2
      pages/menu/wallet/cwallet/index.vue
  24. 38
      pages/menu/wallet/index.vue
  25. 79
      pages/menu/wallet/otherCoin/index.css
  26. 98
      pages/menu/wallet/otherCoin/index.vue
  27. 63
      pages/menu/wallet/search/index.css
  28. 36
      pages/menu/wallet/search/index.vue
  29. BIN
      static/tongyonh/img500.png
  30. BIN
      static/tongyonh/[email protected]
  31. BIN
      static/tongyonh/nft_icon2.png
  32. BIN
      static/tongyonh/search.png
  33. BIN
      static/tongyonh/tether_usd.png
  34. BIN
      unpackage/cache/apk/__UNI__1ECBEE1_cm.apk
  35. 2
      unpackage/cache/apk/apkurl
  36. 2
      unpackage/cache/apk/cmManifestCache.json
  37. 4
      unpackage/cache/wgt/__UNI__1ECBEE1/app-config-service.js
  38. 20
      unpackage/cache/wgt/__UNI__1ECBEE1/app-service.js
  39. 2
      unpackage/cache/wgt/__UNI__1ECBEE1/app-view.js
  40. 2
      unpackage/cache/wgt/__UNI__1ECBEE1/manifest.json
  41. BIN
      unpackage/cache/wgt/__UNI__1ECBEE1/static/tongyonh/IconGroup.png
  42. BIN
      unpackage/cache/wgt/__UNI__1ECBEE1/static/tongyonh/arrow-up-left_1.png
  43. BIN
      unpackage/cache/wgt/__UNI__1ECBEE1/static/tongyonh/copy_24px_2.png
  44. BIN
      unpackage/cache/wgt/__UNI__1ECBEE1/static/tongyonh/img500.png
  45. BIN
      unpackage/cache/wgt/__UNI__1ECBEE1/static/tongyonh/lu.png
  46. BIN
      unpackage/cache/wgt/__UNI__1ECBEE1/static/tongyonh/[email protected]
  47. BIN
      unpackage/cache/wgt/__UNI__1ECBEE1/static/tongyonh/nft_icon2.png
  48. BIN
      unpackage/cache/wgt/__UNI__1ECBEE1/static/tongyonh/search.png
  49. BIN
      unpackage/cache/wgt/__UNI__1ECBEE1/static/tongyonh/tether_usd.png
  50. 4
      unpackage/dist/build/app-plus/app-config-service.js
  51. 20
      unpackage/dist/build/app-plus/app-service.js
  52. 2
      unpackage/dist/build/app-plus/app-view.js
  53. 2
      unpackage/dist/build/app-plus/manifest.json
  54. BIN
      unpackage/dist/build/app-plus/static/tongyonh/IconGroup.png
  55. BIN
      unpackage/dist/build/app-plus/static/tongyonh/arrow-up-left_1.png
  56. BIN
      unpackage/dist/build/app-plus/static/tongyonh/copy_24px_2.png
  57. BIN
      unpackage/dist/build/app-plus/static/tongyonh/img500.png
  58. BIN
      unpackage/dist/build/app-plus/static/tongyonh/lu.png
  59. BIN
      unpackage/dist/build/app-plus/static/tongyonh/[email protected]
  60. BIN
      unpackage/dist/build/app-plus/static/tongyonh/nft_icon2.png
  61. BIN
      unpackage/dist/build/app-plus/static/tongyonh/search.png
  62. BIN
      unpackage/dist/build/app-plus/static/tongyonh/tether_usd.png
  63. BIN
      unpackage/dist/build/tongyonh/chevron_right_24px.png
  64. 4
      unpackage/dist/dev/app-plus/app-config-service.js
  65. 36723
      unpackage/dist/dev/app-plus/app-service.js
  66. 32316
      unpackage/dist/dev/app-plus/app-view.js
  67. 2
      unpackage/dist/dev/app-plus/manifest.json
  68. BIN
      unpackage/dist/dev/app-plus/static/tongyonh/img500.png
  69. BIN
      unpackage/dist/dev/app-plus/static/tongyonh/[email protected]
  70. BIN
      unpackage/dist/dev/app-plus/static/tongyonh/nft_icon2.png
  71. BIN
      unpackage/dist/dev/app-plus/static/tongyonh/search.png
  72. BIN
      unpackage/dist/dev/app-plus/static/tongyonh/tether_usd.png
  73. BIN
      unpackage/dist/dev/tongyonh/chevron_right_24px.png
  74. BIN
      unpackage/release/apk/__UNI__1ECBEE1__20211112182305.apk
  75. BIN
      unpackage/release/apk/__UNI__1ECBEE1__20211112183303.apk
  76. BIN
      unpackage/release/apk/__UNI__1ECBEE1__20211112190426.apk
  77. BIN
      unpackage/release/apk/__UNI__1ECBEE1__20211112222751.apk
  78. BIN
      unpackage/release/apk/__UNI__1ECBEE1__20211112233216.apk
  79. BIN
      unpackage/release/apk/__UNI__1ECBEE1__20211112234843.apk
  80. BIN
      unpackage/release/apk/__UNI__1ECBEE1__20211113010342.apk
  81. BIN
      unpackage/release/apk/__UNI__1ECBEE1__20211113012615.apk
  82. 114
      utils/EthUtil.js
  83. 46
      utils/TokenUtil.js
  84. 4
      utils/api.js

2
components/tabBar/tabBar.vue

@ -14,7 +14,7 @@
<view class="tabbar_item" @click="goToPage(2)"> <view class="tabbar_item" @click="goToPage(2)">
<view class="uni-tabbar_bd"> <view class="uni-tabbar_bd">
<view class="uni-tabbar_icon"> <view class="uni-tabbar_icon">
<image :src="'/static/tongyonh/'+(selectActive==2?'nft_icon':'nft_icon')+'.png'" mode="aspectFit" class="img1"></image> <image :src="'/static/tongyonh/'+(selectActive==2?'nft_icon2':'nft_icon')+'.png'" mode="aspectFit" class="img1"></image>
</view> </view>
<view class="uni-tabbar_label" :class="['text', selectActive==2?'active':'']"> <view class="uni-tabbar_label" :class="['text', selectActive==2?'active':'']">
NFT NFT

7
manifest.json

@ -84,7 +84,12 @@
}, },
"splashscreen" : { "splashscreen" : {
"androidStyle" : "default", "androidStyle" : "default",
"iosStyle" : "default" "iosStyle" : "default",
"android" : {
"hdpi" : "",
"xhdpi" : "",
"xxhdpi" : ""
}
} }
} }
}, },

432
package-lock.json

@ -12,24 +12,6 @@
"regenerator-runtime": "^0.13.4" "regenerator-runtime": "^0.13.4"
} }
}, },
"@ethereumjs/common": {
"version": "2.5.0",
"resolved": "https://registry.npmmirror.com/@ethereumjs/common/download/@ethereumjs/common-2.5.0.tgz?cache=0&sync_timestamp=1632736982733&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2F%40ethereumjs%2Fcommon%2Fdownload%2F%40ethereumjs%2Fcommon-2.5.0.tgz",
"integrity": "sha1-7GFVGzG+96adHcY02JMkaIZqQmg=",
"requires": {
"crc-32": "^1.2.0",
"ethereumjs-util": "^7.1.1"
}
},
"@ethereumjs/tx": {
"version": "3.3.2",
"resolved": "https://registry.npmmirror.com/@ethereumjs/tx/download/@ethereumjs/tx-3.3.2.tgz",
"integrity": "sha1-NI1GJL8kiqq2xE/sKuZyZe/j2wA=",
"requires": {
"@ethereumjs/common": "^2.5.0",
"ethereumjs-util": "^7.1.2"
}
},
"@ethersproject/abi": { "@ethersproject/abi": {
"version": "5.0.7", "version": "5.0.7",
"resolved": "https://registry.npmmirror.com/@ethersproject/abi/download/@ethersproject/abi-5.0.7.tgz", "resolved": "https://registry.npmmirror.com/@ethersproject/abi/download/@ethersproject/abi-5.0.7.tgz",
@ -482,7 +464,7 @@
}, },
"ajv": { "ajv": {
"version": "6.12.6", "version": "6.12.6",
"resolved": "https://registry.nlark.com/ajv/download/ajv-6.12.6.tgz?cache=0&sync_timestamp=1631470912358&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fajv%2Fdownload%2Fajv-6.12.6.tgz", "resolved": "https://registry.npmmirror.com/ajv/download/ajv-6.12.6.tgz?cache=0&sync_timestamp=1636406052395&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fajv%2Fdownload%2Fajv-6.12.6.tgz",
"integrity": "sha1-uvWmLoArB9l3A0WG+MO69a3ybfQ=", "integrity": "sha1-uvWmLoArB9l3A0WG+MO69a3ybfQ=",
"requires": { "requires": {
"fast-deep-equal": "^3.1.1", "fast-deep-equal": "^3.1.1",
@ -999,15 +981,6 @@
"vary": "^1" "vary": "^1"
} }
}, },
"crc-32": {
"version": "1.2.0",
"resolved": "https://registry.nlark.com/crc-32/download/crc-32-1.2.0.tgz",
"integrity": "sha1-yy224puIUI4y2d0OwWk+e0Ghggg=",
"requires": {
"exit-on-epipe": "~1.0.1",
"printj": "~1.1.0"
}
},
"create-ecdh": { "create-ecdh": {
"version": "4.0.4", "version": "4.0.4",
"resolved": "https://registry.nlark.com/create-ecdh/download/create-ecdh-4.0.4.tgz", "resolved": "https://registry.nlark.com/create-ecdh/download/create-ecdh-4.0.4.tgz",
@ -1314,6 +1287,11 @@
"js-sha3": "^0.8.0" "js-sha3": "^0.8.0"
} }
}, },
"ethereum-common": {
"version": "0.0.18",
"resolved": "https://registry.nlark.com/ethereum-common/download/ethereum-common-0.0.18.tgz",
"integrity": "sha1-L9w1dvIykDNYl26znaeDIT/5Uj8="
},
"ethereum-cryptography": { "ethereum-cryptography": {
"version": "0.1.3", "version": "0.1.3",
"resolved": "https://registry.npmmirror.com/ethereum-cryptography/download/ethereum-cryptography-0.1.3.tgz", "resolved": "https://registry.npmmirror.com/ethereum-cryptography/download/ethereum-cryptography-0.1.3.tgz",
@ -1338,59 +1316,46 @@
}, },
"ethereumjs-common": { "ethereumjs-common": {
"version": "1.5.2", "version": "1.5.2",
"resolved": "https://registry.nlark.com/ethereumjs-common/download/ethereumjs-common-1.5.2.tgz", "resolved": "https://registry.npmmirror.com/ethereumjs-common/download/ethereumjs-common-1.5.2.tgz",
"integrity": "sha1-IGXb6SFOhQ8ulVqA5lDLaZkGaXk=" "integrity": "sha1-IGXb6SFOhQ8ulVqA5lDLaZkGaXk="
}, },
"ethereumjs-tx": { "ethereumjs-tx": {
"version": "2.1.2", "version": "1.3.7",
"resolved": "https://registry.nlark.com/ethereumjs-tx/download/ethereumjs-tx-2.1.2.tgz", "resolved": "https://registry.npmmirror.com/ethereumjs-tx/download/ethereumjs-tx-1.3.7.tgz",
"integrity": "sha1-Xf52iL8Xe0XJoj+Gz5EE1H6jX+0=", "integrity": "sha1-iDI6LYdbEFSbg0fgn0hitUbz2Jo=",
"requires": { "requires": {
"ethereumjs-common": "^1.5.0", "ethereum-common": "^0.0.18",
"ethereumjs-util": "^6.0.0" "ethereumjs-util": "^5.0.0"
}, },
"dependencies": { "dependencies": {
"ethereumjs-util": { "ethereumjs-util": {
"version": "6.2.1", "version": "5.2.1",
"resolved": "https://registry.npmmirror.com/ethereumjs-util/download/ethereumjs-util-6.2.1.tgz?cache=0&sync_timestamp=1634210709178&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fethereumjs-util%2Fdownload%2Fethereumjs-util-6.2.1.tgz", "resolved": "https://registry.npmmirror.com/ethereumjs-util/download/ethereumjs-util-5.2.1.tgz?cache=0&sync_timestamp=1634210709178&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fethereumjs-util%2Fdownload%2Fethereumjs-util-5.2.1.tgz",
"integrity": "sha1-/LTk3Vzqy50jBUJqsaXNk+MWO2k=", "integrity": "sha1-qDPw5fyn5bNhOE3HYwGnIfU3v2U=",
"requires": { "requires": {
"@types/bn.js": "^4.11.3",
"bn.js": "^4.11.0", "bn.js": "^4.11.0",
"create-hash": "^1.1.2", "create-hash": "^1.1.2",
"elliptic": "^6.5.2", "elliptic": "^6.5.2",
"ethereum-cryptography": "^0.1.3", "ethereum-cryptography": "^0.1.3",
"ethjs-util": "0.1.6", "ethjs-util": "^0.1.3",
"rlp": "^2.2.3" "rlp": "^2.0.0",
"safe-buffer": "^5.1.1"
} }
} }
} }
}, },
"ethereumjs-util": { "ethereumjs-util": {
"version": "7.1.3", "version": "6.2.1",
"resolved": "https://registry.npmmirror.com/ethereumjs-util/download/ethereumjs-util-7.1.3.tgz?cache=0&sync_timestamp=1634210709178&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fethereumjs-util%2Fdownload%2Fethereumjs-util-7.1.3.tgz", "resolved": "https://registry.npmmirror.com/ethereumjs-util/download/ethereumjs-util-6.2.1.tgz?cache=0&sync_timestamp=1634210709178&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fethereumjs-util%2Fdownload%2Fethereumjs-util-6.2.1.tgz",
"integrity": "sha1-tV17ZN3j4+RXSeTEEogjjt7DLSM=", "integrity": "sha1-/LTk3Vzqy50jBUJqsaXNk+MWO2k=",
"requires": { "requires": {
"@types/bn.js": "^5.1.0", "@types/bn.js": "^4.11.3",
"bn.js": "^5.1.2", "bn.js": "^4.11.0",
"create-hash": "^1.1.2", "create-hash": "^1.1.2",
"elliptic": "^6.5.2",
"ethereum-cryptography": "^0.1.3", "ethereum-cryptography": "^0.1.3",
"rlp": "^2.2.4" "ethjs-util": "0.1.6",
}, "rlp": "^2.2.3"
"dependencies": {
"@types/bn.js": {
"version": "5.1.0",
"resolved": "https://registry.nlark.com/@types/bn.js/download/@types/bn.js-5.1.0.tgz",
"integrity": "sha1-MsXScVA6EmU8Ys9NK0Xm6rjOvGg=",
"requires": {
"@types/node": "*"
}
},
"bn.js": {
"version": "5.2.0",
"resolved": "https://registry.npm.taobao.org/bn.js/download/bn.js-5.2.0.tgz",
"integrity": "sha1-NYhgZ0OWxpl3canQUfzBtX1K4AI="
}
} }
}, },
"ethers": { "ethers": {
@ -1466,7 +1431,7 @@
}, },
"ethjs-util": { "ethjs-util": {
"version": "0.1.6", "version": "0.1.6",
"resolved": "https://registry.npm.taobao.org/ethjs-util/download/ethjs-util-0.1.6.tgz", "resolved": "https://registry.npmmirror.com/ethjs-util/download/ethjs-util-0.1.6.tgz",
"integrity": "sha1-8wi2Lxhfn+YjcTL7KpgYhmpc1TY=", "integrity": "sha1-8wi2Lxhfn+YjcTL7KpgYhmpc1TY=",
"requires": { "requires": {
"is-hex-prefixed": "1.0.0", "is-hex-prefixed": "1.0.0",
@ -1487,11 +1452,6 @@
"safe-buffer": "^5.1.1" "safe-buffer": "^5.1.1"
} }
}, },
"exit-on-epipe": {
"version": "1.0.1",
"resolved": "https://registry.nlark.com/exit-on-epipe/download/exit-on-epipe-1.0.1.tgz",
"integrity": "sha1-C92S6H1ShdJn2qgXHQ6wYVlolpI="
},
"express": { "express": {
"version": "4.17.1", "version": "4.17.1",
"resolved": "https://registry.nlark.com/express/download/express-4.17.1.tgz?cache=0&sync_timestamp=1618847120573&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fexpress%2Fdownload%2Fexpress-4.17.1.tgz", "resolved": "https://registry.nlark.com/express/download/express-4.17.1.tgz?cache=0&sync_timestamp=1618847120573&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fexpress%2Fdownload%2Fexpress-4.17.1.tgz",
@ -2078,7 +2038,7 @@
}, },
"json-schema": { "json-schema": {
"version": "0.2.3", "version": "0.2.3",
"resolved": "https://registry.npm.taobao.org/json-schema/download/json-schema-0.2.3.tgz?cache=0&sync_timestamp=1609553637722&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjson-schema%2Fdownload%2Fjson-schema-0.2.3.tgz", "resolved": "https://registry.npmmirror.com/json-schema/download/json-schema-0.2.3.tgz?cache=0&sync_timestamp=1636423494254&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fjson-schema%2Fdownload%2Fjson-schema-0.2.3.tgz",
"integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM="
}, },
"json-schema-traverse": { "json-schema-traverse": {
@ -2179,20 +2139,20 @@
}, },
"mime": { "mime": {
"version": "1.6.0", "version": "1.6.0",
"resolved": "https://registry.npmmirror.com/mime/download/mime-1.6.0.tgz?cache=0&sync_timestamp=1635900726749&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fmime%2Fdownload%2Fmime-1.6.0.tgz", "resolved": "https://registry.npmmirror.com/mime/download/mime-1.6.0.tgz",
"integrity": "sha1-Ms2eXGRVO9WNGaVor0Uqz/BJgbE=" "integrity": "sha1-Ms2eXGRVO9WNGaVor0Uqz/BJgbE="
}, },
"mime-db": { "mime-db": {
"version": "1.50.0", "version": "1.51.0",
"resolved": "https://registry.nlark.com/mime-db/download/mime-db-1.50.0.tgz", "resolved": "https://registry.npmmirror.com/mime-db/download/mime-db-1.51.0.tgz?cache=0&sync_timestamp=1636425951030&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fmime-db%2Fdownload%2Fmime-db-1.51.0.tgz",
"integrity": "sha1-q9SslOmNPA4YUBbGerRdX95AwR8=" "integrity": "sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g=="
}, },
"mime-types": { "mime-types": {
"version": "2.1.33", "version": "2.1.34",
"resolved": "https://registry.npmmirror.com/mime-types/download/mime-types-2.1.33.tgz?cache=0&sync_timestamp=1633108176041&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fmime-types%2Fdownload%2Fmime-types-2.1.33.tgz", "resolved": "https://registry.npmmirror.com/mime-types/download/mime-types-2.1.34.tgz?cache=0&sync_timestamp=1636432355847&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fmime-types%2Fdownload%2Fmime-types-2.1.34.tgz",
"integrity": "sha1-H6EqkERy+v0GjkjZ6EAfdNP3Dts=", "integrity": "sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A==",
"requires": { "requires": {
"mime-db": "1.50.0" "mime-db": "1.51.0"
} }
}, },
"mimic-response": { "mimic-response": {
@ -2474,11 +2434,6 @@
"resolved": "https://registry.nlark.com/prepend-http/download/prepend-http-2.0.0.tgz?cache=0&sync_timestamp=1628547439455&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fprepend-http%2Fdownload%2Fprepend-http-2.0.0.tgz", "resolved": "https://registry.nlark.com/prepend-http/download/prepend-http-2.0.0.tgz?cache=0&sync_timestamp=1628547439455&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fprepend-http%2Fdownload%2Fprepend-http-2.0.0.tgz",
"integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=" "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc="
}, },
"printj": {
"version": "1.1.2",
"resolved": "https://registry.nlark.com/printj/download/printj-1.1.2.tgz",
"integrity": "sha1-2Q3rKXWoufYA+zoclOP0xTx4oiI="
},
"process": { "process": {
"version": "0.11.10", "version": "0.11.10",
"resolved": "https://registry.npm.taobao.org/process/download/process-0.11.10.tgz", "resolved": "https://registry.npm.taobao.org/process/download/process-0.11.10.tgz",
@ -3085,6 +3040,11 @@
"which-boxed-primitive": "^1.0.2" "which-boxed-primitive": "^1.0.2"
} }
}, },
"underscore": {
"version": "1.9.1",
"resolved": "https://registry.nlark.com/underscore/download/underscore-1.9.1.tgz",
"integrity": "sha1-BtzjSg5op7q8KbNluOdLiSUgOWE="
},
"universalify": { "universalify": {
"version": "0.1.2", "version": "0.1.2",
"resolved": "https://registry.nlark.com/universalify/download/universalify-0.1.2.tgz", "resolved": "https://registry.nlark.com/universalify/download/universalify-0.1.2.tgz",
@ -3204,138 +3164,144 @@
} }
}, },
"web3": { "web3": {
"version": "1.6.0", "version": "1.3.4",
"resolved": "https://registry.npmmirror.com/web3/download/web3-1.6.0.tgz?cache=0&sync_timestamp=1633745194975&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fweb3%2Fdownload%2Fweb3-1.6.0.tgz", "resolved": "https://registry.npmmirror.com/web3/download/web3-1.3.4.tgz",
"integrity": "sha1-2PoM2ee/JS+f5Du3fcQrxmca/94=", "integrity": "sha1-MeAUhzNgqlhA6xf58XEZDJZ8/7c=",
"requires": { "requires": {
"web3-bzz": "1.6.0", "web3-bzz": "1.3.4",
"web3-core": "1.6.0", "web3-core": "1.3.4",
"web3-eth": "1.6.0", "web3-eth": "1.3.4",
"web3-eth-personal": "1.6.0", "web3-eth-personal": "1.3.4",
"web3-net": "1.6.0", "web3-net": "1.3.4",
"web3-shh": "1.6.0", "web3-shh": "1.3.4",
"web3-utils": "1.6.0" "web3-utils": "1.3.4"
} }
}, },
"web3-bzz": { "web3-bzz": {
"version": "1.6.0", "version": "1.3.4",
"resolved": "https://registry.npmmirror.com/web3-bzz/download/web3-bzz-1.6.0.tgz", "resolved": "https://registry.npmmirror.com/web3-bzz/download/web3-bzz-1.3.4.tgz",
"integrity": "sha1-WEtRM58h7t/xWavJI5tLfvbe2EA=", "integrity": "sha1-m+UpNTxAY7xoOVNwy12OQUxrbIc=",
"requires": { "requires": {
"@types/node": "^12.12.6", "@types/node": "^12.12.6",
"got": "9.6.0", "got": "9.6.0",
"swarm-js": "^0.1.40" "swarm-js": "^0.1.40",
"underscore": "1.9.1"
} }
}, },
"web3-core": { "web3-core": {
"version": "1.6.0", "version": "1.3.4",
"resolved": "https://registry.npmmirror.com/web3-core/download/web3-core-1.6.0.tgz?cache=0&sync_timestamp=1633745190480&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fweb3-core%2Fdownload%2Fweb3-core-1.6.0.tgz", "resolved": "https://registry.npmmirror.com/web3-core/download/web3-core-1.3.4.tgz",
"integrity": "sha1-FE6wD2UcmBL69xdqvX7pnV9F4hI=", "integrity": "sha1-LMe6fzXMFn96Ckb9WFX4blHTTOg=",
"requires": { "requires": {
"@types/bn.js": "^4.11.5", "@types/bn.js": "^4.11.5",
"@types/node": "^12.12.6", "@types/node": "^12.12.6",
"bignumber.js": "^9.0.0", "bignumber.js": "^9.0.0",
"web3-core-helpers": "1.6.0", "web3-core-helpers": "1.3.4",
"web3-core-method": "1.6.0", "web3-core-method": "1.3.4",
"web3-core-requestmanager": "1.6.0", "web3-core-requestmanager": "1.3.4",
"web3-utils": "1.6.0" "web3-utils": "1.3.4"
} }
}, },
"web3-core-helpers": { "web3-core-helpers": {
"version": "1.6.0", "version": "1.3.4",
"resolved": "https://registry.npmmirror.com/web3-core-helpers/download/web3-core-helpers-1.6.0.tgz", "resolved": "https://registry.npmmirror.com/web3-core-helpers/download/web3-core-helpers-1.3.4.tgz",
"integrity": "sha1-d+FhtrqTCkAIoN+ASrN54Kp+Hn8=", "integrity": "sha1-uFSXQL8k1ccWiNicPN2ALY02tOQ=",
"requires": { "requires": {
"web3-eth-iban": "1.6.0", "underscore": "1.9.1",
"web3-utils": "1.6.0" "web3-eth-iban": "1.3.4",
"web3-utils": "1.3.4"
} }
}, },
"web3-core-method": { "web3-core-method": {
"version": "1.6.0", "version": "1.3.4",
"resolved": "https://registry.npmmirror.com/web3-core-method/download/web3-core-method-1.6.0.tgz", "resolved": "https://registry.npmmirror.com/web3-core-method/download/web3-core-method-1.3.4.tgz",
"integrity": "sha1-6+TqUfWk+oCbtoGFV2GGNZ05guk=", "integrity": "sha1-bCgS2W3WyBG55sil0lBQ0sIrlSc=",
"requires": { "requires": {
"@ethereumjs/common": "^2.4.0",
"@ethersproject/transactions": "^5.0.0-beta.135", "@ethersproject/transactions": "^5.0.0-beta.135",
"web3-core-helpers": "1.6.0", "underscore": "1.9.1",
"web3-core-promievent": "1.6.0", "web3-core-helpers": "1.3.4",
"web3-core-subscriptions": "1.6.0", "web3-core-promievent": "1.3.4",
"web3-utils": "1.6.0" "web3-core-subscriptions": "1.3.4",
"web3-utils": "1.3.4"
} }
}, },
"web3-core-promievent": { "web3-core-promievent": {
"version": "1.6.0", "version": "1.3.4",
"resolved": "https://registry.npmmirror.com/web3-core-promievent/download/web3-core-promievent-1.6.0.tgz", "resolved": "https://registry.npmmirror.com/web3-core-promievent/download/web3-core-promievent-1.3.4.tgz",
"integrity": "sha1-i2BTroPLRxZFQBZ/w2FGn8YE0t0=", "integrity": "sha1-0WYjkBLZFJbNy+kdXVQHHqgYvHM=",
"requires": { "requires": {
"eventemitter3": "4.0.4" "eventemitter3": "4.0.4"
} }
}, },
"web3-core-requestmanager": { "web3-core-requestmanager": {
"version": "1.6.0", "version": "1.3.4",
"resolved": "https://registry.npmmirror.com/web3-core-requestmanager/download/web3-core-requestmanager-1.6.0.tgz", "resolved": "https://registry.npmmirror.com/web3-core-requestmanager/download/web3-core-requestmanager-1.3.4.tgz",
"integrity": "sha1-jvOjuJzQiYO9lFdPnFiT9wqKauo=", "integrity": "sha1-4QXO1zXCtfzt1XceDs+Yea6cNz8=",
"requires": { "requires": {
"underscore": "1.9.1",
"util": "^0.12.0", "util": "^0.12.0",
"web3-core-helpers": "1.6.0", "web3-core-helpers": "1.3.4",
"web3-providers-http": "1.6.0", "web3-providers-http": "1.3.4",
"web3-providers-ipc": "1.6.0", "web3-providers-ipc": "1.3.4",
"web3-providers-ws": "1.6.0" "web3-providers-ws": "1.3.4"
} }
}, },
"web3-core-subscriptions": { "web3-core-subscriptions": {
"version": "1.6.0", "version": "1.3.4",
"resolved": "https://registry.npmmirror.com/web3-core-subscriptions/download/web3-core-subscriptions-1.6.0.tgz", "resolved": "https://registry.npmmirror.com/web3-core-subscriptions/download/web3-core-subscriptions-1.3.4.tgz",
"integrity": "sha1-jCOxW0NKfJ+TdlLsykXXEI4sVN8=", "integrity": "sha1-ewDpK94h95JiDNAublCPz09MMdM=",
"requires": { "requires": {
"eventemitter3": "4.0.4", "eventemitter3": "4.0.4",
"web3-core-helpers": "1.6.0" "underscore": "1.9.1",
"web3-core-helpers": "1.3.4"
} }
}, },
"web3-eth": { "web3-eth": {
"version": "1.6.0", "version": "1.3.4",
"resolved": "https://registry.npmmirror.com/web3-eth/download/web3-eth-1.6.0.tgz", "resolved": "https://registry.npmmirror.com/web3-eth/download/web3-eth-1.3.4.tgz",
"integrity": "sha1-TJ1ftOzPn4dEgoKBdX5up2r1jL0=", "integrity": "sha1-fEYHaF5mocQ+PjFeUmyVnyT5aQc=",
"requires": { "requires": {
"web3-core": "1.6.0", "underscore": "1.9.1",
"web3-core-helpers": "1.6.0", "web3-core": "1.3.4",
"web3-core-method": "1.6.0", "web3-core-helpers": "1.3.4",
"web3-core-subscriptions": "1.6.0", "web3-core-method": "1.3.4",
"web3-eth-abi": "1.6.0", "web3-core-subscriptions": "1.3.4",
"web3-eth-accounts": "1.6.0", "web3-eth-abi": "1.3.4",
"web3-eth-contract": "1.6.0", "web3-eth-accounts": "1.3.4",
"web3-eth-ens": "1.6.0", "web3-eth-contract": "1.3.4",
"web3-eth-iban": "1.6.0", "web3-eth-ens": "1.3.4",
"web3-eth-personal": "1.6.0", "web3-eth-iban": "1.3.4",
"web3-net": "1.6.0", "web3-eth-personal": "1.3.4",
"web3-utils": "1.6.0" "web3-net": "1.3.4",
"web3-utils": "1.3.4"
} }
}, },
"web3-eth-abi": { "web3-eth-abi": {
"version": "1.6.0", "version": "1.3.4",
"resolved": "https://registry.npmmirror.com/web3-eth-abi/download/web3-eth-abi-1.6.0.tgz", "resolved": "https://registry.npmmirror.com/web3-eth-abi/download/web3-eth-abi-1.3.4.tgz",
"integrity": "sha1-QiVgj2HrsGB9gISbsrIPkQeAJT0=", "integrity": "sha1-EPXYtggNu2y6obzvfgxwVz2mVm8=",
"requires": { "requires": {
"@ethersproject/abi": "5.0.7", "@ethersproject/abi": "5.0.7",
"web3-utils": "1.6.0" "underscore": "1.9.1",
"web3-utils": "1.3.4"
} }
}, },
"web3-eth-accounts": { "web3-eth-accounts": {
"version": "1.6.0", "version": "1.3.4",
"resolved": "https://registry.npmmirror.com/web3-eth-accounts/download/web3-eth-accounts-1.6.0.tgz", "resolved": "https://registry.npmmirror.com/web3-eth-accounts/download/web3-eth-accounts-1.3.4.tgz",
"integrity": "sha1-Uwkn9MW3jfk7PqEgOru0Z94pzQQ=", "integrity": "sha1-z1E9eFMcE84Hml54YoIFcDUOeaU=",
"requires": { "requires": {
"@ethereumjs/common": "^2.3.0",
"@ethereumjs/tx": "^3.2.1",
"crypto-browserify": "3.12.0", "crypto-browserify": "3.12.0",
"eth-lib": "0.2.8", "eth-lib": "0.2.8",
"ethereumjs-util": "^7.0.10", "ethereumjs-common": "^1.3.2",
"ethereumjs-tx": "^2.1.1",
"scrypt-js": "^3.0.1", "scrypt-js": "^3.0.1",
"underscore": "1.9.1",
"uuid": "3.3.2", "uuid": "3.3.2",
"web3-core": "1.6.0", "web3-core": "1.3.4",
"web3-core-helpers": "1.6.0", "web3-core-helpers": "1.3.4",
"web3-core-method": "1.6.0", "web3-core-method": "1.3.4",
"web3-utils": "1.6.0" "web3-utils": "1.3.4"
}, },
"dependencies": { "dependencies": {
"eth-lib": { "eth-lib": {
@ -3348,6 +3314,15 @@
"xhr-request-promise": "^0.1.2" "xhr-request-promise": "^0.1.2"
} }
}, },
"ethereumjs-tx": {
"version": "2.1.2",
"resolved": "https://registry.npmmirror.com/ethereumjs-tx/download/ethereumjs-tx-2.1.2.tgz",
"integrity": "sha1-Xf52iL8Xe0XJoj+Gz5EE1H6jX+0=",
"requires": {
"ethereumjs-common": "^1.5.0",
"ethereumjs-util": "^6.0.0"
}
},
"uuid": { "uuid": {
"version": "3.3.2", "version": "3.3.2",
"resolved": "https://registry.npmmirror.com/uuid/download/uuid-3.3.2.tgz", "resolved": "https://registry.npmmirror.com/uuid/download/uuid-3.3.2.tgz",
@ -3356,118 +3331,135 @@
} }
}, },
"web3-eth-contract": { "web3-eth-contract": {
"version": "1.6.0", "version": "1.3.4",
"resolved": "https://registry.npmmirror.com/web3-eth-contract/download/web3-eth-contract-1.6.0.tgz", "resolved": "https://registry.npmmirror.com/web3-eth-contract/download/web3-eth-contract-1.3.4.tgz",
"integrity": "sha1-3rlGhnrYbTK8u6iZ1zO2gbJepnQ=", "integrity": "sha1-HqLdcb4MSpz0dy1Pdduy+pl1FHI=",
"requires": { "requires": {
"@types/bn.js": "^4.11.5", "@types/bn.js": "^4.11.5",
"web3-core": "1.6.0", "underscore": "1.9.1",
"web3-core-helpers": "1.6.0", "web3-core": "1.3.4",
"web3-core-method": "1.6.0", "web3-core-helpers": "1.3.4",
"web3-core-promievent": "1.6.0", "web3-core-method": "1.3.4",
"web3-core-subscriptions": "1.6.0", "web3-core-promievent": "1.3.4",
"web3-eth-abi": "1.6.0", "web3-core-subscriptions": "1.3.4",
"web3-utils": "1.6.0" "web3-eth-abi": "1.3.4",
"web3-utils": "1.3.4"
} }
}, },
"web3-eth-ens": { "web3-eth-ens": {
"version": "1.6.0", "version": "1.3.4",
"resolved": "https://registry.npmmirror.com/web3-eth-ens/download/web3-eth-ens-1.6.0.tgz", "resolved": "https://registry.npmmirror.com/web3-eth-ens/download/web3-eth-ens-1.3.4.tgz",
"integrity": "sha1-rxOFIWjVb6cbkZjrCX6W+5ODHCo=", "integrity": "sha1-p+S7GEgfsOLOW/s7PaL7sK14zv4=",
"requires": { "requires": {
"content-hash": "^2.5.2", "content-hash": "^2.5.2",
"eth-ens-namehash": "2.0.8", "eth-ens-namehash": "2.0.8",
"web3-core": "1.6.0", "underscore": "1.9.1",
"web3-core-helpers": "1.6.0", "web3-core": "1.3.4",
"web3-core-promievent": "1.6.0", "web3-core-helpers": "1.3.4",
"web3-eth-abi": "1.6.0", "web3-core-promievent": "1.3.4",
"web3-eth-contract": "1.6.0", "web3-eth-abi": "1.3.4",
"web3-utils": "1.6.0" "web3-eth-contract": "1.3.4",
"web3-utils": "1.3.4"
} }
}, },
"web3-eth-iban": { "web3-eth-iban": {
"version": "1.6.0", "version": "1.3.4",
"resolved": "https://registry.npmmirror.com/web3-eth-iban/download/web3-eth-iban-1.6.0.tgz", "resolved": "https://registry.npmmirror.com/web3-eth-iban/download/web3-eth-iban-1.3.4.tgz",
"integrity": "sha1-7b5GztxbFI1T+kVe3qa07vU7K+c=", "integrity": "sha1-XrelZODc9ocw1o9I+V3SB80XPYE=",
"requires": { "requires": {
"bn.js": "^4.11.9", "bn.js": "^4.11.9",
"web3-utils": "1.6.0" "web3-utils": "1.3.4"
} }
}, },
"web3-eth-personal": { "web3-eth-personal": {
"version": "1.6.0", "version": "1.3.4",
"resolved": "https://registry.npmmirror.com/web3-eth-personal/download/web3-eth-personal-1.6.0.tgz?cache=0&sync_timestamp=1633745189113&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fweb3-eth-personal%2Fdownload%2Fweb3-eth-personal-1.6.0.tgz", "resolved": "https://registry.npmmirror.com/web3-eth-personal/download/web3-eth-personal-1.3.4.tgz",
"integrity": "sha1-t1phwHN7i4vMEdBdsu17/OfksmI=", "integrity": "sha1-DQ4KvqNEcoPX7lZY7TEpkMm/SN0=",
"requires": { "requires": {
"@types/node": "^12.12.6", "@types/node": "^12.12.6",
"web3-core": "1.6.0", "web3-core": "1.3.4",
"web3-core-helpers": "1.6.0", "web3-core-helpers": "1.3.4",
"web3-core-method": "1.6.0", "web3-core-method": "1.3.4",
"web3-net": "1.6.0", "web3-net": "1.3.4",
"web3-utils": "1.6.0" "web3-utils": "1.3.4"
} }
}, },
"web3-net": { "web3-net": {
"version": "1.6.0", "version": "1.3.4",
"resolved": "https://registry.npmmirror.com/web3-net/download/web3-net-1.6.0.tgz?cache=0&sync_timestamp=1633745190651&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fweb3-net%2Fdownload%2Fweb3-net-1.6.0.tgz", "resolved": "https://registry.npmmirror.com/web3-net/download/web3-net-1.3.4.tgz",
"integrity": "sha1-LCj4eHBzEQp8IxAzaInS2tZH5QA=", "integrity": "sha1-12FYvwtKezsUNStPlUctue/Feio=",
"requires": { "requires": {
"web3-core": "1.6.0", "web3-core": "1.3.4",
"web3-core-method": "1.6.0", "web3-core-method": "1.3.4",
"web3-utils": "1.6.0" "web3-utils": "1.3.4"
} }
}, },
"web3-providers-http": { "web3-providers-http": {
"version": "1.6.0", "version": "1.3.4",
"resolved": "https://registry.npmmirror.com/web3-providers-http/download/web3-providers-http-1.6.0.tgz", "resolved": "https://registry.npmmirror.com/web3-providers-http/download/web3-providers-http-1.3.4.tgz",
"integrity": "sha1-jbTliav3GX9dZbEq8b+XJsRfQWA=", "integrity": "sha1-iTieGOJxSPqi/vWIQnQP+tvdqMw=",
"requires": { "requires": {
"web3-core-helpers": "1.6.0", "web3-core-helpers": "1.3.4",
"xhr2-cookies": "1.1.0" "xhr2-cookies": "1.1.0"
} }
}, },
"web3-providers-ipc": { "web3-providers-ipc": {
"version": "1.6.0", "version": "1.3.4",
"resolved": "https://registry.npmmirror.com/web3-providers-ipc/download/web3-providers-ipc-1.6.0.tgz", "resolved": "https://registry.npmmirror.com/web3-providers-ipc/download/web3-providers-ipc-1.3.4.tgz",
"integrity": "sha1-ajQQ/UemfEo2cZ+5f5lTSuEqrJg=", "integrity": "sha1-uWNRiYmxt4RwY83UYf9zuDhVg0o=",
"requires": { "requires": {
"oboe": "2.1.5", "oboe": "2.1.5",
"web3-core-helpers": "1.6.0" "underscore": "1.9.1",
"web3-core-helpers": "1.3.4"
} }
}, },
"web3-providers-ws": { "web3-providers-ws": {
"version": "1.6.0", "version": "1.3.4",
"resolved": "https://registry.npmmirror.com/web3-providers-ws/download/web3-providers-ws-1.6.0.tgz", "resolved": "https://registry.npmmirror.com/web3-providers-ws/download/web3-providers-ws-1.3.4.tgz",
"integrity": "sha1-3BXcGMMAie/amSAV/VJUvSt3r18=", "integrity": "sha1-uUwuDsUaDEcqvexTpHK1v4F2vsE=",
"requires": { "requires": {
"eventemitter3": "4.0.4", "eventemitter3": "4.0.4",
"web3-core-helpers": "1.6.0", "underscore": "1.9.1",
"web3-core-helpers": "1.3.4",
"websocket": "^1.0.32" "websocket": "^1.0.32"
} }
}, },
"web3-shh": { "web3-shh": {
"version": "1.6.0", "version": "1.3.4",
"resolved": "https://registry.npmmirror.com/web3-shh/download/web3-shh-1.6.0.tgz", "resolved": "https://registry.npmmirror.com/web3-shh/download/web3-shh-1.3.4.tgz",
"integrity": "sha1-g4o0NdzhA59mmkjlPpSAYt4ZeTE=", "integrity": "sha1-t9KeEY8mQWwadFdeWFvjecwBp3o=",
"requires": { "requires": {
"web3-core": "1.6.0", "web3-core": "1.3.4",
"web3-core-method": "1.6.0", "web3-core-method": "1.3.4",
"web3-core-subscriptions": "1.6.0", "web3-core-subscriptions": "1.3.4",
"web3-net": "1.6.0" "web3-net": "1.3.4"
} }
}, },
"web3-utils": { "web3-utils": {
"version": "1.6.0", "version": "1.3.4",
"resolved": "https://registry.npmmirror.com/web3-utils/download/web3-utils-1.6.0.tgz", "resolved": "https://registry.npmmirror.com/web3-utils/download/web3-utils-1.3.4.tgz",
"integrity": "sha1-GXXF7lt9uKCDbrcASEinzZYtHdw=", "integrity": "sha1-mxqjDXVJ+GC1c+e7fmkJmecZIZg=",
"requires": { "requires": {
"bn.js": "^4.11.9", "bn.js": "^4.11.9",
"eth-lib": "0.2.8",
"ethereum-bloom-filters": "^1.0.6", "ethereum-bloom-filters": "^1.0.6",
"ethereumjs-util": "^7.1.0",
"ethjs-unit": "0.1.6", "ethjs-unit": "0.1.6",
"number-to-bn": "1.7.0", "number-to-bn": "1.7.0",
"randombytes": "^2.1.0", "randombytes": "^2.1.0",
"underscore": "1.9.1",
"utf8": "3.0.0" "utf8": "3.0.0"
},
"dependencies": {
"eth-lib": {
"version": "0.2.8",
"resolved": "https://registry.npm.taobao.org/eth-lib/download/eth-lib-0.2.8.tgz",
"integrity": "sha1-sZQFi+9LIgrRLqSXQx1stqoGI8g=",
"requires": {
"bn.js": "^4.11.6",
"elliptic": "^6.4.0",
"xhr-request-promise": "^0.1.2"
}
}
} }
}, },
"websocket": { "websocket": {
@ -3523,7 +3515,7 @@
}, },
"ws": { "ws": {
"version": "3.3.3", "version": "3.3.3",
"resolved": "https://registry.npmmirror.com/ws/download/ws-3.3.3.tgz?cache=0&sync_timestamp=1633200039582&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fws%2Fdownload%2Fws-3.3.3.tgz", "resolved": "https://registry.npmmirror.com/ws/download/ws-3.3.3.tgz",
"integrity": "sha1-8c+E/i1ekB686U767OeF8YeiKPI=", "integrity": "sha1-8c+E/i1ekB686U767OeF8YeiKPI=",
"requires": { "requires": {
"async-limiter": "~1.0.0", "async-limiter": "~1.0.0",

4
package.json

@ -18,12 +18,12 @@
"bip32": "^2.0.6", "bip32": "^2.0.6",
"bip39": "^3.0.4", "bip39": "^3.0.4",
"bitcoinjs-lib": "^5.2.0", "bitcoinjs-lib": "^5.2.0",
"ethereumjs-tx": "^2.1.2", "ethereumjs-tx": "^1.3.7",
"ethers": "^5.5.1", "ethers": "^5.5.1",
"js-md5": "^0.7.3", "js-md5": "^0.7.3",
"tki-qrcode": "^0.1.6", "tki-qrcode": "^0.1.6",
"tronweb": "^4.0.0", "tronweb": "^4.0.0",
"vue-clipboard2": "^0.3.3", "vue-clipboard2": "^0.3.3",
"web3": "^1.6.0" "web3": "^1.3.4"
} }
} }

70
pages.json

@ -3,6 +3,52 @@
"^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue" "^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue"
}, },
"pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages "pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages
{
"path": "pages/register/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/menu/index/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/menu/index/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/menu/token/btc/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/menu/wallet/search/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/menu/collection/collectionDetailtrue/index",
"style": {
"navigationStyle": "custom"
}
},
{ {
"path": "pages/menu/collection/addCollection/index", "path": "pages/menu/collection/addCollection/index",
"style": { "style": {
@ -24,13 +70,7 @@
} }
}, },
{
"path": "pages/register/index",
"style": {
"navigationStyle": "custom"
}
},
{ {
"path": "pages/menu/token/btctrue/index", "path": "pages/menu/token/btctrue/index",
"style": { "style": {
@ -52,13 +92,7 @@
} }
}, },
{
"path": "pages/menu/index/index",
"style": {
"navigationStyle": "custom"
}
},
{ {
"path": "pages/menu/backUp/index", "path": "pages/menu/backUp/index",
@ -247,15 +281,15 @@
{
"path": "pages/menu/token/btc/index2",
{
"path": "pages/menu/token/btc/index",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {

492
pages/menu/backUp/backUp5/index.vue

@ -4,63 +4,67 @@
Import via private key Import via private key
</navigation> </navigation>
<view class="main"> <view class="main">
<view class="title"> <view class="title">
Private key import verification Private key import verification
</view> </view>
<view class="title2"> <view class="title2">
Please enter your private key and do not disclose it to othersThe external address cannot be recovered by mnemonics. Please keep it properly Please enter your private key and do not disclose it to othersThe external address cannot be recovered
</view> by mnemonics. Please keep it properly
<textarea v-model="wordInfo" class="textareaa" placeholder="Please enter your private key" placeholder-style="color:rgb(224,229,242)"> </view>
<textarea v-model="wordInfo" class="textareaa" placeholder="Please enter your private key"
placeholder-style="color:rgb(224,229,242)">
</textarea> </textarea>
<u-button class="custom-style" @click="confirm">Confirm</u-button> <u-button class="custom-style" @click="confirm">Confirm</u-button>
<view class="info_con" v-if="show"> <view class="info_con" v-if="show">
<image src="../../../../static/tongyonh/xg.png" mode="aspectFit" class="img2" @click="show=false"></image> <image src="../../../../static/tongyonh/xg.png" mode="aspectFit" class="img2" @click="show=false">
<image src="../../../../static/tongyonh/Frame60.png" mode="aspectFit" class="img"></image> </image>
<view class="info"> <image src="../../../../static/tongyonh/Frame60.png" mode="aspectFit" class="img"></image>
Successful <view class="info">
</view> Successful
<view class="text"> </view>
Backup mnemonic completed! <view class="text">
</view> Backup mnemonic completed!
<view class="btn"> </view>
Confirm <view class="btn">
</view> Confirm
</view> </view>
</view>
<view class="info_con" v-if="show2">
<image src="../../../../static/tongyonh/xg.png" mode="aspectFit" class="img2" @click="show2=false"></image> <view class="info_con" v-if="show2">
<image src="../../../../static/tongyonh/Subtract.png" mode="aspectFit" class="img"></image> <image src="../../../../static/tongyonh/xg.png" mode="aspectFit" class="img2" @click="show2=false">
<view class="info"> </image>
Invalid Seed <image src="../../../../static/tongyonh/Subtract.png" mode="aspectFit" class="img"></image>
</view> <view class="info">
<view class="text"> Invalid Seed
You entered the wrong booster words, <br>please try again. </view>
</view> <view class="text">
<view class="btncon"> You entered the wrong booster words, <br>please try again.
<view class="can" @click="show2=false"> </view>
Cancel <view class="btncon">
</view> <view class="can" @click="show2=false">
<view class="con" @click="restart"> Cancel
Confirm </view>
</view> <view class="con" @click="restart">
Confirm
</view> </view>
</view>
</view>
</view>
<u-mask :show="show" z-index="10"></u-mask>
<u-mask :show="show2" z-index="10"></u-mask>
</view> <u-mask :show="show" z-index="10"></u-mask>
<u-mask :show="show2" z-index="10"></u-mask>
</view> </view>
</view> </view>
</view>
</template> </template>
<script> <script>
@ -68,199 +72,222 @@
export default { export default {
data() { data() {
return { return {
mnemonics:[], mnemonics: [],
wordArr:[], wordArr: [],
show: false, show: false,
index:0, index: 0,
returnIndex:0, returnIndex: 0,
// //
mnemonics2:[], mnemonics2: [],
show2:false, show2: false,
wordInfo:'', wordInfo: '',
walletInfo:{}, walletInfo: {},
go:false, go: false,
name:'', name: '',
info: {},
}; };
}, },
methods: { methods: {
// //
goTranPaw(){ goTranPaw() {
uni.navigateTo({ uni.navigateTo({
url:'/pages/menu/backUp/transPaw/index' url: '/pages/menu/backUp/transPaw/index'
}) })
}, },
// //
restart(){ restart() {
uni.redirectTo({ uni.redirectTo({
url:'../backUp4/index' url: '../backUp4/index'
}) })
}, },
// //
confirm(){ confirm() {
if(this.wordInfo==''){ this.walletInfo = uni.getStorageSync('walletInfo');
uni.showToast({ if (this.wordInfo == '') {
title: 'Cannot be empty', uni.showToast({
icon: 'none', title: 'Cannot be empty',
duration: 1500 icon: 'none',
}) duration: 1500
return; })
} return;
}
var a=uni.getStorageSync('createWalletName')
console.log(a) var a = uni.getStorageSync('createWalletName')
if(a=='BTC'&&a!=''&&a!=undefined){ console.log(a)
try { if (a == 'BTC' && a != '' && a != undefined) {
this.walletInfo=uni.getStorageSync('walletInfo'); try {
var mnemonic=this.wordInfo; this.walletInfo = uni.getStorageSync('walletInfo');
uni.setStorageSync('privateKey',mnemonic); var mnemonic = this.wordInfo;
console.log(mnemonic) uni.setStorageSync('privateKey', mnemonic);
console.log(mnemonic)
let btc=this.$Token.importBtcPrivateKey(mnemonic);
let btc = this.$Token.importBtcPrivateKey(mnemonic);
for(var i=0;i<this.walletInfo.BTC.length;i++){
if(this.walletInfo.BTC[i].privateKey==btc.privateKey){ for (var i = 0; i < this.walletInfo.BTC.length; i++) {
uni.showToast({ if (this.walletInfo.BTC[i].privateKey == btc.privateKey) {
title: 'The wallet has been imported', uni.showToast({
icon: 'none', title: 'The wallet has been imported',
duration: 1500 icon: 'none',
}) duration: 1500
this.go=false; })
}else{ this.go = false;
this.go=true; } else {
this.go = true;
}
}
} catch (err) {
uni.showToast({
title: 'Private key does not exist',
icon: 'none',
duration: 1500
})
}
if (this.go) {
uni.showToast({
title: 'Import succeeded',
icon: 'success',
duration: 1500
})
setTimeout(() => {
uni.navigateTo({
url: '/pages/menu/backUp/transPaw2/index'
})
}, 1500)
}
} }
} if (a == 'ETH' && a != '' && a != undefined) {
} try {
catch(err){ this.walletInfo = uni.getStorageSync('walletInfo');
uni.showToast({ var mnemonic = this.wordInfo;
title: 'Private key does not exist', uni.setStorageSync('privateKey', mnemonic);
icon: 'none', console.log(mnemonic)
duration: 1500
}) let eth = this.$Token.importEthPrivateKey(mnemonic);
}
if(this.go){ for (var i = 0; i < this.walletInfo.ETH.length; i++) {
uni.showToast({ if (this.walletInfo.ETH[i].privateKey == eth.privateKey) {
title: 'Import succeeded', uni.showToast({
icon: 'success', title: 'The wallet has been imported',
duration: 1500 icon: 'none',
}) duration: 1500
setTimeout(()=>{ })
uni.navigateTo({ this.go = false;
url:'/pages/menu/backUp/transPaw2/index' } else {
}) this.go = true;
},1500) }
} }
} } catch (err) {
uni.showToast({
if(a=='ETH'&&a!=''&&a!=undefined){ title: 'Private key does not exist',
try { icon: 'none',
this.walletInfo=uni.getStorageSync('walletInfo'); duration: 1500
var mnemonic=this.wordInfo; })
uni.setStorageSync('privateKey',mnemonic);
console.log(mnemonic) }
if (this.go) {
let eth=this.$Token.importEthPrivateKey(mnemonic); uni.showToast({
title: 'Import succeeded',
icon: 'success',
for(var i=0;i<this.walletInfo.ETH.length;i++){ duration: 1500
if(this.walletInfo.ETH[i].privateKey==eth.privateKey){ })
uni.showToast({ setTimeout(() => {
title: 'The wallet has been imported', uni.navigateTo({
icon: 'none', url: '/pages/menu/backUp/transPaw2/index'
duration: 1500 })
}) }, 1500)
this.go=false;
}else{ }
this.go=true; }
}
}
} if (a == 'TRX' && a != '' && a != undefined) {
catch(err){ try {
uni.showToast({ this.walletInfo = uni.getStorageSync('walletInfo');
title: 'Private key does not exist', var mnemonic = this.wordInfo;
icon: 'none', console.log(this.wordInfo)
duration: 1500 uni.setStorageSync('privateKey', mnemonic);
}) console.log(mnemonic)
} this.info = this.$Token.importTronPrivateKey(mnemonic);
if(this.go){
uni.showToast({
title: 'Import succeeded', for (var i = 0; i < this.walletInfo.TRON.length; i++) {
icon: 'success', if (this.walletInfo.TRON[i].privateKey == this.info.privateKey) {
duration: 1500 uni.showToast({
}) title: 'The wallet has been imported',
setTimeout(()=>{ icon: 'none',
uni.navigateTo({ duration: 1500
url:'/pages/menu/backUp/transPaw2/index' })
}) this.go = false;
},1500) } else {
} this.go = true;
} }
}
} catch (err) {
if(a=='TRX'&&a!=''&&a!=undefined){ console.log(err)
try { uni.showToast({
this.walletInfo=uni.getStorageSync('walletInfo'); title: 'Private key does not exist',
var mnemonic=this.wordInfo; icon: 'none',
uni.setStorageSync('privateKey',mnemonic); duration: 1500
console.log(mnemonic) })
let tron=this.$Token.importTronPrivateKey(mnemonic); }
if (this.go) {
console.log(this.info, 111)
for(var i=0;i<this.walletInfo.Tron.length;i++){ this.$store.commit('addTroni', 1)
if(this.walletInfo.Tron[i].privateKey==tron.privateKey){ let that = this;
uni.showToast({ this.$TronUtil.getTronBalance(this.info.address).then((res) => {
title: 'The wallet has been imported', that.info.balance = res
icon: 'none',
duration: 1500 }).catch(err => {
}) console.log(err)
this.go=false; })
}else{ this.info.coinList = [{
this.go=true; name: "TRX",
} name2: "TRX",
xname: 'TRON',
} icon: require('@/static/tongyonh/tron1.png'),
} balance: this.info.balance
catch(err){ }];
uni.showToast({ uni.setStorageSync('wallet', this.info)
title: 'Private key does not exist', uni.setStorageSync('walleti', this.info.privateKey)
icon: 'none',
duration: 1500 this.walletInfo.TRON[this.$store.state.troni] = this.info
}) uni.setStorageSync('walletInfo', this.walletInfo)
uni.showToast({
} title: 'Import succeeded',
if(this.go){ icon: 'success',
uni.showToast({ duration: 1500
title: 'Import succeeded', })
icon: 'success', setTimeout(() => {
duration: 1500 uni.navigateTo({
}) url: '/pages/menu/backUp/transPaw2/index'
setTimeout(()=>{ })
uni.navigateTo({ }, 1500)
url:'/pages/menu/backUp/transPaw2/index'
}) }
},1500) }
}
}
}, },
}, },
onLoad(item) { onLoad(item) {
if(item!=''||item!=undefined){ if (item != '' || item != undefined) {
uni.setStorageSync('createWalletName',item.name) uni.setStorageSync('createWalletName', item.name)
} }
}, },
}; };
@ -269,12 +296,13 @@
.custom-style { .custom-style {
height: 112rpx; height: 112rpx;
text-align: center; text-align: center;
color: #fff; color: #fff;
background-color: #5B53FF !important; background-color: #5B53FF !important;
border-radius: 40rpx; border-radius: 40rpx;
margin-top: 50rpx; margin-top: 50rpx;
} }
.u-default-hover{
.u-default-hover {
background-color: #5B53FF !important; background-color: #5B53FF !important;
border-radius: 40rpx !important; border-radius: 40rpx !important;
color: #fff !important; color: #fff !important;
@ -283,7 +311,5 @@
</style> </style>
<style> <style>
@import './index.css'; @import './index.css';
</style> </style>

65
pages/menu/backUp/transPaw/index.vue

@ -80,28 +80,56 @@
icon: require('@/static/tongyonh/bye.png'), icon: require('@/static/tongyonh/bye.png'),
balance: this.btcBalance balance: this.btcBalance
}]; }];
this.$EthUtil.getBalance(this.walletInfo.ETH[0].address).then((res) => {
this.walletInfo.ETH[0].balance = res
this.walletInfo.ETH[0].coinList = [{
name: "ETH",
name2: "ETH",
xname: 'Ethereum',
icon: require('@/static/tongyonh/Frame3299.png'),
balance: res
}];
}).catch(err => { // this.$EthUtil.getBalance(eth.address,function(res){
console.log(err) // eth.balance = res
}) // this.ethBbalance = res;
// });
let that=this
console.log(this.walletInfo.ETH[0].address,2222222)
this.$EthUtil.getBalance(this.walletInfo.ETH[0].address,function(res){
console.log(res,787878)
that.walletInfo.ETH[0].balance = res
console.log(res,4444455555)
that.walletInfo.ETH[0].coinList = [
{
name: "ETH",
name2: "ETH",
xname: 'Ethereum',
icon: require('@/static/tongyonh/Frame3299.png'),
balance: res
},
{
name:"USDT",
name2:"ERC20-USDT",
xname:'Tether USD',
contractAddress:'0xdac17f958d2ee523a2206206994597c13d831ec7',
icon:require('@/static/tongyonh/img500.png')
}
]
});
this.$TronUtil.getTronBalance(this.walletInfo.TRON[0].address).then((res) => { this.$TronUtil.getTronBalance(this.walletInfo.TRON[0].address).then((res) => {
this.walletInfo.TRON[0].balance = res this.walletInfo.TRON[0].balance = res
this.walletInfo.TRON[0].coinList = [{ this.walletInfo.TRON[0].coinList = [
{
name: "TRX", name: "TRX",
name2: "TRX", name2: "TRX",
xname: 'TRON', xname: 'TRON',
icon: require('@/static/tongyonh/tron1.png'), icon: require('@/static/tongyonh/tron1.png'),
balance: res balance: res
}]; },
{
name:"USDT",
name2:"TRC20-USDT",
xname:'Tether USD',
contractAddress:'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t',
icon:require('@/static/tongyonh/tether_usd.png')
}
]
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)
@ -133,7 +161,7 @@
btc.mnemonic = mnemonic; btc.mnemonic = mnemonic;
btc.password = e; btc.password = e;
this.$api.getBtcBalance().then((res) => { this.$api.getBtcBalance().then((res) => {
var b = res.data.data[0] var b = res.data.data[0]
for (var k in b) { for (var k in b) {
@ -187,13 +215,10 @@
eth.mnemonic = mnemonic; eth.mnemonic = mnemonic;
eth.password = e; eth.password = e;
this.$EthUtil.getBalance(eth.address).then((res) => { this.$EthUtil.getBalance(eth.address,function(res){
eth.balance = res eth.balance = res
this.ethBbalance = res; this.ethBbalance = res;
console.log(eth,456465465) });
}).catch(err => {
console.log(err)
})
eth.coinList = [{ eth.coinList = [{

29
pages/menu/collection/addCollection/index.css

@ -12,7 +12,8 @@ page{
padding: 0 24rpx; padding: 0 24rpx;
background-color: #fff; background-color: #fff;
border-radius: 24rpx; border-radius: 24rpx;
padding-bottom: 160rpx; box-shadow: 0 24rpx 24rpx 24rpx #EBEEF1;
padding-bottom: 80rpx;
} }
.flex{ .flex{
display: flex; display: flex;
@ -20,7 +21,7 @@ page{
align-items: center; align-items: center;
} }
.main_con .item{ .main_con .item{
padding: 32rpx 0; padding: 48rpx 0;
border-bottom: 2rpx solid #F5F5F5; border-bottom: 2rpx solid #F5F5F5;
margin-bottom: 48rpx; margin-bottom: 48rpx;
} }
@ -40,13 +41,29 @@ page{
} }
.main_con .item2 .input{ .main_con .item2 .input{
height: 100rpx; height: 100rpx;
border-bottom: 2rpx solid #F5F5F5; background-color: #FAFAFA;
border-radius: 20rpx;
padding-left: 24rpx;
margin-top: 20rpx;
} }
.main_con .btn{ .main_con .btn{
line-height: 96rpx; line-height: 96rpx;
background-color: #E9ECF5; background-color: #5B53FF;
text-align: center; text-align: center;
color: #fff; color: #fff;
border-radius: 32rpx; border-radius: 32rpx;
margin-top: 120rpx; margin-top: 80rpx;
} }
.lfetimg{
width: 24rpx;
height: 24rpx;
margin-left: 30rpx;
}
.back{
width: 16rpx;
height: 24rpx;
position: absolute;
left:36rpx;
top: 50%;
transform: translateY(-50%);
}

84
pages/menu/collection/addCollection/index.vue

@ -1,34 +1,36 @@
<template> <template>
<view class="maintoP"> <view class="maintoP">
<navigation :showBack="true" :bgnum="true" class="aaa"> <navigation :showBack="false" :bgnum="true" class="aaa">
<image src="../../../../static/tongyonh/Vector.png" mode="aspectFit" class="back" @click="back()" ></image>
<text class="big_title"> <text class="big_title">
Add collection NFT collections
</text> </text>
</navigation> </navigation>
<view class="main"> <view class="main">
<view class="main_con"> <view class="main_con">
<view class="flex item"> <view class="flex item">
<view class="imgcon flex2"> <view class="imgcon flex2">
<image src="../../../../static/tongyonh/bye.png" mode="aspectFit" class="img"></image> <image :src="wallet.coinList[0].icon" mode="aspectFit" class="img"></image>
<text class="tex1">ETH</text> <text class="tex1">{{wallet.coinList[0].name2}}</text>
</view> </view>
<view class="text1"> <view class="text1">
TStUWD...mBmh {{wallet.address}}
<image src="../../../../static/tongyonh/chevron_right_24px.png" mode="aspectFit" class="lfetimg"></image>
</view> </view>
</view> </view>
<view class="item2"> <view class="item2">
<view class="title"> <view class="title">
Contract address Contract address
</view> </view>
<input type="text" value="" class="input" placeholder-style="color:#BEBEBE;fontSize:14px" placeholder="Please enter the contract address"/> <input type="text" v-model="caddress" value="" class="input" placeholder-style="color:#BEBEBE;fontSize:14px" placeholder="Please enter the contract address"/>
</view> </view>
<view class="item2"> <view class="item2">
<view class="title"> <view class="title">
Token ID Token ID
</view> </view>
<input type="text" value="" class="input" placeholder-style="color:#BEBEBE;fontSize:14px" placeholder="Please enter token ID"/> <input type="text" v-model="tid" value="" class="input" placeholder-style="color:#BEBEBE;fontSize:14px" placeholder="Please enter token ID"/>
</view> </view>
<view class="btn"> <view class="btn" @click="Add">
Confirm Confirm
</view> </view>
</view> </view>
@ -44,20 +46,80 @@
export default { export default {
data() { data() {
return { return {
caddress:'',
tid:'',
wallet:{},
nftIndex:0,
nftContrct:[[]],
walletInfo:{},
address:'',
proid:'',
} }
}, },
onLoad() { onLoad() {
if(uni.getStorageSync('wallet')){
this.address=uni.getStorageSync('wallet').address
this.wallet=uni.getStorageSync('wallet')
this.wallet.address = this.wallet.address.substring(0, 6) + '...' + this.wallet.address
.substring(25, this.wallet.address.length);
}else{
this.wallet=uni.getStorageSync('walletInfo').BTC[0]
this.wallet.address = this.wallet.address.substring(0, 6) + '...' + this.wallet.address
console.log(this.wallet,111)
}
}, },
methods: { methods: {
back(){
uni.reLaunch({
url:'../collectionDetail/index'
})
},
Add(){
this.proid=uni.getStorageSync('proid')
uni.request({
header: {
'Content-Type': 'application/x-www-form-urlencoded'
},
url: 'http://wallet-api.weirui0755.com/api/nft/addNftCollection', //
method: 'POST',
data: {
address:this.address,
contract:this.caddress,
tonkenId:this.tid,
nftProjectId:this.proid
},
dataType:'json',
success: (res) => {
if(res.data.code==200){
uni.showToast({
title: 'Successfully',
icon: 'success',
duration: 1500
})
setTimeout(()=>{
uni.navigateTo({
url:'../addCollection/index'
})
},1500)
}
}
});
},
}
},
}; };
</script> </script>

46
pages/menu/collection/collectionDetail/index.css

@ -4,24 +4,58 @@
position: absolute; position: absolute;
right: 30rpx; right: 30rpx;
} }
page{
background-color: #FAFAFA;
}
.aaa{
background-color: #FAFAFA !important;
}
.main{ .main{
margin-top: 50rpx; margin-top: 50rpx;
padding: 0 24rpx; padding: 0 24rpx;
padding-bottom: 100rpx;
} }
.main .item{ .main .item{
background-color: #F2F2F2; background-color: #fff;
border-radius: 8rpx; border-radius: 24rpx;
padding: 24rpx; padding: 0 30rpx;
box-shadow: 0 12rpx 12rpx 12rpx #E9ECEF;
margin-bottom: 40rpx;
}
.lfet{
position: absolute;
right: 0rpx;
top: 50%;
transform: translateY(-50%);
} }
.main .item .top{ .main .item .top{
margin-bottom: 20rpx; position: relative;
font-size: 32rpx; font-size: 32rpx;
display: flex; display: flex;
align-items: center;
word-break: break-word; word-break: break-word;
padding: 32rpx 0;
border-bottom: 2rpx solid #F4F7FE;
}
.main .item .top:last-child{
border-bottom: none;
} }
.main .item .top .img{ .main .item .top .img{
width: 48rpx; width: 48rpx;
height: 48rpx; height: 48rpx;
margin-right: 16rpx; margin-right: 16rpx;
} }
.textleft{
color: #7D87A6;
margin-right: 24rpx;
}
.texttt{
width: 80rpx;
}
.back{
width: 16rpx;
height: 24rpx;
position: absolute;
left:36rpx;
top: 50%;
transform: translateY(-50%);
}

90
pages/menu/collection/collectionDetail/index.vue

@ -1,25 +1,27 @@
<template> <template>
<view class="maintoP"> <view class="maintoP">
<navigation :showBack="true" :bgnum="true"> <navigation :showBack="false" :bgnum="true" class="aaa">
<image src="../../../../static/tongyonh/Vector.png" mode="aspectFit" class="back" @click="back()" ></image>
<image src="../../../../static/tongyonh/IconGroup.png" mode="aspectFit" @click="goAdd" class="renYou2" slot="logo"></image> <image src="../../../../static/tongyonh/IconGroup.png" mode="aspectFit" @click="goAdd" class="renYou2" slot="logo"></image>
<text class="big_title"> <text class="big_title">
Binance NFT {{item.projectName}}
</text> </text>
</navigation> </navigation>
<view class="main"> <view class="main">
<view class="item">
<view class="item" v-for="item,index in result" :key="index">
<view class="top"> <view class="top">
<image src="../../../../static/tongyonh/bye.png" mode="aspectFit" class="img"></image> <image :src="item.chainIconUrl" mode="aspectFit" class="img"></image>
0x0Cc6...08E9 {{item.address}}
<image src="../../../../static/tongyonh/[email protected]" mode="aspectFit" class="img lfet" @click="goDetail(index)"></image>
</view> </view>
<view class="top"> <view class="top">
合约0xf7a2...490a <text class="textleft">Contracts: </text>{{item.contract}}
</view> </view>
<view class="top"> <view class="top">
ID624869217469673946369844112959321786979269186132 <text class="textleft texttt">ID: </text>{{item.id}}
</view> </view>
</view> </view>
</view> </view>
</view> </view>
@ -31,20 +33,88 @@
export default { export default {
data() { data() {
return { return {
item:{},
wallet:{},
address:'',
result:[],
result2:[],
pageSize:10,
pageNum:1,
} }
}, },
onLoad() { onLoad(option) {
if(uni.getStorageSync('wallet')){
this.address=uni.getStorageSync('wallet').address
this.wallet=uni.getStorageSync('wallet')
this.wallet.address = this.wallet.address.substring(0, 6) + '...' + this.wallet.address
.substring(25, this.wallet.address.length);
}else{
this.wallet=uni.getStorageSync('walletInfo').BTC[0]
this.wallet.address = this.wallet.address.substring(0, 6) + '...' + this.wallet.address.substring(25, this.wallet.address.length);
console.log(this.wallet,111)
}
this.item=uni.getStorageSync('nftitem')
this.getProject()
this.getProject2()
},
onReachBottom() {
this.pageSize+=5
this.getProject()
this.getProject2()
}, },
methods: { methods: {
back(){
uni.reLaunch({
url:'../index'
})
},
// http://wallet-api.weirui0755.com/api/nft/getNftCollectionList?nftProjectId=1&address=
getProject(){
uni.request({
url: 'http://wallet-api.weirui0755.com/api/nft/getNftCollectionList?'+'nftProjectId='+this.item.id+'&'+'address='+this.address+'&'+'pageSize='+this.pageSize+'&'+'pageNum='+this.pageNum, //
header: {
'content-type': 'application/x-www-form-urlencoded', //
},
success: (res) => {
this.result=res.data.data.rows
for(var i =0;i<this.result.length;i++){
this.result[i].address = this.result[i].address.substring(0, 6) + '...' + this.result[i].address
.substring(25, this.result[i].address.length);
}
}
});
},
getProject2(){
uni.request({
url: 'http://wallet-api.weirui0755.com/api/nft/getNftCollectionList?'+'nftProjectId='+this.item.id+'&'+'address='+this.address+'&'+'pageSize='+this.pageSize+'&'+'pageNum='+this.pageNum, //
header: {
'content-type': 'application/x-www-form-urlencoded', //
},
success: (res) => {
this.result2=res.data.data.rows
console.log( this.result2,7878)
}
});
},
goAdd(){ goAdd(){
uni.navigateTo({ uni.navigateTo({
url:'../addCollection/index' url:'../addCollection/index'
}) })
},
goDetail(index){
console.log(this.result2[index])
uni.setStorageSync('nftOneItem',this.result2[index])
uni.navigateTo({
url:'../collectionDetailtrue/index'
})
} }

65
pages/menu/collection/collectionDetailtrue/index.css

@ -0,0 +1,65 @@
page{
background-color: #fafafa;
}
.aaa{
background-color: #fafafa !important;
}
.main{
padding: 0 24rpx;
margin-top: 80rpx;
}
.main_con{
padding: 0 24rpx;
background-color: #fff;
border-radius: 24rpx;
box-shadow: 0 24rpx 24rpx 24rpx #EBEEF1;
padding-bottom: 80rpx;
padding-top: 24rpx;
}
.flex{
display: flex;
justify-content: space-between;
align-items: center;
}
.main_con .item{
padding: 24rpx 0;
border-bottom: 2rpx solid #F5F5F5;
}
.main_con .item .imgcon .img{
width: 54rpx;
height: 54rpx;
margin-right: 24rpx;
}
.flex2{
display: flex;
align-items: center;
}
.main_con .item2{
margin-bottom: 50rpx;
}
.main_con .item2 .title{
}
.main_con .item2 .input{
height: 100rpx;
background-color: #FAFAFA;
border-radius: 20rpx;
padding-left: 24rpx;
margin-top: 20rpx;
}
.main_con .btn{
line-height: 96rpx;
background-color: #5B53FF;
text-align: center;
color: #fff;
border-radius: 32rpx;
margin-top: 80rpx;
}
.lfetimg{
width: 24rpx;
height: 24rpx;
margin-left: 30rpx;
}
.text1one{
word-break: break-word;
margin-top: 24rpx;
}

105
pages/menu/collection/collectionDetailtrue/index.vue

@ -0,0 +1,105 @@
<template>
<view class="maintoP">
<navigation :showBack="true" :bgnum="true" class="aaa">
<text class="big_title">
Collection details
</text>
</navigation>
<view class="main">
<view class="main_con">
<view class="item">
<view class="imgcon flex2">
<image :src="item.chainIconUrl" mode="aspectFit" class="img"></image>
<text class="tex1">{{wallet.coinList[0].name2}}</text>
</view>
<view class="text1one">
{{item.address}}
</view>
</view>
<view class="item">
<view class="title">
Contract address
</view>
<view class="text1one">
{{item.contract}}
</view>
</view>
<view class="item">
<view class="title">
Token ID
</view>
<view class="text1one">
{{item.tonkenId}}
</view>
</view>
<view class="btn" @click="test">
Confirm
</view>
</view>
</view>
</view>
</template>
<script>
import cont from "@/components/navigation/navigation.vue"
import token from "@/utils/TokenUtil"
export default {
data() {
return {
wallet:{},
nftIndex:0,
walletInfo:{},
// nftContrct:{
// // [
// // {
// // }
// // ]
// },
}
},
onLoad() {
console.log(uni.getStorageSync('nftOneItem'),4444)
this.item=uni.getStorageSync('nftOneItem')
if(uni.getStorageSync('wallet')){
this.wallet=uni.getStorageSync('wallet')
this.wallet.address = this.wallet.address.substring(0, 6) + '...' + this.wallet.address
.substring(25, this.wallet.address.length);
}else{
this.wallet=uni.getStorageSync('walletInfo').BTC[0]
this.wallet.address = this.wallet.address.substring(0, 6) + '...' + this.wallet.address
console.log(this.wallet,111)
}
},
methods: {
test(){
this.nftIndex=uni.getStorageSync('nftIndex')
}
}
};
</script>
<style scoped>
</style>
<style>
@import './index.css';
</style>

248
pages/menu/collection/index.css

@ -1,16 +1,23 @@
.maintoP{ .maintoP{
margin-top: 100rpx; margin-top: 100rpx;
position: relative;
} }
/* .aaa{ .big_con{
padding: 0 32rpx;
padding-bottom: 300rpx;
}
.aaa{
background: #FAFAFA !important; background: #FAFAFA !important;
} */ }
/* page { page {
background: #FAFAFA; background: #FAFAFA;
} */ }
.main{ .main{
padding: 0 48rpx; padding: 0 24rpx;
margin-top: 50rpx; margin-top: 50rpx;
background: #fff; background: #fff;
border-radius: 24rpx;
box-shadow: 0 18rpx 18rpx 18rpx #EAEDF0;
} }
.title{ .title{
height: 150rpx; height: 150rpx;
@ -31,12 +38,12 @@
.main_con .item .left .img{ .main_con .item .left .img{
width: 80rpx; width: 80rpx;
height: 80rpx; height: 80rpx;
border-radius: 100rpx;
} }
.main_con .item{ .main_con .item{
height: 150rpx; height: 180rpx;
border-bottom: 2rpx solid #F6F8FD; border-bottom: 2rpx solid #F6F8FD;
border-radius: 24rpx; border-radius: 24rpx;
} }
.main_con .item .img{ .main_con .item .img{
width: 48rpx; width: 48rpx;
@ -51,4 +58,229 @@
.main_con .textcon .text2{ .main_con .textcon .text2{
font-size: 24rpx; font-size: 24rpx;
color: #999; color: #999;
} }
.letImg{
width: 24rpx;
height: 24rpx;
}
.bottom_con{
position: fixed;
bottom:0rpx;
z-index: 9999;
}
.bottom_con{
width: 100%;
background-color:#F7F8FA;
padding: 0 24rpx;
border-radius: 16rpx 16rpx 0 0;
padding-bottom: 40rpx;
}
.title_con{
padding: 30rpx 0;
text-align: center;
color: #7A7A81;
}
.money_con{
background-color: #fff;
padding: 70rpx 30rpx;
border-radius: 16rpx 16rpx 0 0;
}
.money_con .money{
display: flex;
justify-content: center;
align-items: center;
}
.money_con .money .tex1{
font-size: 64rpx;
margin-right: 10rpx;
}
.money_con .img{
width: 48rpx;
height: 48rpx;
position: absolute;
left: 12rpx;
top: 24rpx;
}
.money_con .img2{
width: 28rpx;
height: 28rpx;
position: absolute;
left: 32rpx;
top: 32rpx;
}
.money_con .money .tex2{
font-size: 42rpx;
}
.money_con .money .text{
}
.info_con{
margin-top: 40rpx;
}
.info_con .item{
display: flex;
padding-bottom: 24rpx;
border-bottom: 2rpx solid #DDDDDD;
background-color: #6747D1;
}
.info_con .item:last-child{
border-bottom: none;
}
.info_con .item .text1{
color: #9B9C9E;
margin-right: 50rpx;
}
.info_con .item .text2{
word-break: break-word;
}
.bottom_con .btn{
line-height: 96rpx;
background-color: #5B53FF;
text-align: center;
color: #fff;
border-radius: 32rpx;
margin-top: 50rpx;
}
.money_con2{
height: 400rpx;
}
.btn2{
line-height: 96rpx;
background-color: #E9ECF5;
text-align: center;
color: #fff;
border-radius: 32rpx;
margin-top: 50rpx;
}
.btncolor{
background-color: #5B53FF;
}
.btncolor2{
background-color: #E9ECF5;
}
.bot_con .item{
width: 575rpx;
height: 164rpx;
background-image: linear-gradient(to right, #FF9913, #FFB60C);
padding: 44rpx 0;
padding-left: 25rpx;
padding-right: 32rpx;
border-radius: 24rpx;
margin-bottom: 28rpx;
position: relative;
box-shadow: 0 8rpx 8rpx 8rpx #EFF1F3;
}
.flexx{
display: flex;
justify-content: space-between;
}
.bot_con .item .left .img1{
width: 84rpx;
height: 84rpx;
margin-right: 20rpx;
}
.bot_con .item .left .textcon .text1{
font-size: 36rpx;
color: #fff;
}
.bot_con .item .left .textcon{
width: auto;
flex: 1;
}
.bot_con .item .left .textcon .text2{
font-size: 28rpx;
color: rgba(255,255,255,.5);
word-break: break-all;
}
.bot_con .item .rig{
text-align: right;
color: #fff;
font-size: 34rpx;
}
.bot_con .item .rig .text1{
font-size: 36rpx;
}
.bot_con .item .rig .text2{
font-size: 28rpx;
color: #B0BBD5;
}
.opc{
opacity: .4;
}
.rimg{
width: 28rpx;
height: 28rpx;
}
.letConimg{
display: block;
width: 84rpx;
height: 84rpx;
margin-bottom: 68rpx;
}
.pur{
background-image: linear-gradient(to right, #6846D2, #887BFE) !important;
}
.red{
background-image: linear-gradient(to right, #B4142C, #F04850) !important;
}
.green{
background-image: linear-gradient(to right, #13BB9C, #23D7AF) !important;
}
.gou{
width: 80rpx;
height: 74rpx;
background-size: cover;
position: absolute;
bottom: 0;
right: 0;
}
.gou .img{
position: absolute;
left: 75%;
top: 65%;
transform: translate(-50%,-50%);
width: 28rpx;
height: 28rpx;
}
.bl{
display: block !important;
}
.dis{
display: none !important;
}
.ethimg1{
width: 80rpx;
height: 80rpx;
margin-right: 30rpx;
}
.ethimg2{
width: 32rpx;
height: 32rpx;
position: absolute;
top: 20rpx;
left: 20rpx;
}
.info_con .item{
border-radius: 24rpx;
padding: 24rpx;
margin-bottom: 50rpx;
}
.text111{
color: #fff !important;
}
.textcon .text2{
color: #fff;
}

134
pages/menu/collection/index.vue

@ -1,46 +1,71 @@
<template> <template>
<view class="maintoP"> <view class="maintoP">
<navigation :showBack="true" :bgnum="true" class="aaa"> <navigation :showBack="false" :bgnum="true" class="aaa">
NFT collection NFT collection
</navigation> </navigation>
<view class="big_con">
<view class="main"> <view class="main">
<view class="main_con"> <view class="main_con">
<view class="item flex" @click="goDetail"> <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="../../../static/tongyonh/bye.png" mode="aspectFit" class="img"></image> <image :src="item.projectIconUrlAbs" mode="aspectFit" class="img"></image>
<view class="textcon"> <view class="textcon">
<view class="text1"> <view class="text1">
Binance NFT {{item.projectName}}
</view> </view>
<view class="text2"> <view class="text2">
0 collections {{item.collectionTotal}} collections
</view>
<view class="text2">
{{item.chainName}}
</view> </view>
</view> </view>
</view> </view>
<image src="../../../../tongyonh/chevron_right_24px.png" mode="aspectFit" class="letImg"></image>
</view> </view>
<view class="item flex">
<view class="left flex2">
<image src="../../../static/tongyonh/bye.png" mode="aspectFit" class="img"></image>
<view class="textcon">
<view class="text1">
Binance NFT
</view>
<view class="text2">
0 collections
</view>
</view>
</view>
</view>
</view> </view>
<tab-bar :selectActive="2"></tab-bar> <tab-bar :selectActive="2"></tab-bar>
</view> </view>
</view>
<view class="bottom_con" v-if="showbottom">
<image src="../../../static/tongyonh/xg.png" mode="aspectFit" class="ethimg2" @click="showbottom=false"></image>
<view class="title_con">
Select Wallet
</view>
<view class="money_con">
<view class="info_con">
<view class="item flexx pur" @click="goDetail2(item)" v-for="item,index in ethInfo" :key="index">
<view class="left flex">
<image src="../../../static/tongyonh/ETH_icon.png" mode="aspectFit" class="ethimg1"></image>
<view class="textcon">
<view class="text1 text111">
{{item.coinList[0].name}}
</view>
<view class="text2">
{{item.address}}
</view>
</view>
</view>
<!-- <view class="gou">
<image src="../../../static/tongyonh/Shape.png" mode="aspectFit" class="img"></image>
</view> -->
</view>
</view>
</view>
</view> </view>
<u-mask :show="showbottom" z-index="8888"></u-mask>
</view>
</template> </template>
<script> <script>
@ -49,22 +74,79 @@
export default { export default {
data() { data() {
return { return {
address:'',
collectinInfo:[],
ethInfo:{},
showbottom:false,
test:{},
testindex:0,
} }
}, },
onLoad() { onLoad() {
this.ethInfo=uni.getStorageSync('walletInfo').ETH;
console.log( this.ethInfo,444)
if(uni.getStorageSync('wallet')){
this.address=uni.getStorageSync('wallet').address
}else{
this.address=uni.getStorageSync('walletInfo').BTC[0].address
}
this.getCollection();
}, },
methods: { methods: {
goDetail(){ showMsg(item,index){
this.test=item
this.testindex=index
if(uni.getStorageSync('wallet').coinList[0].name2=='ETH'){
this.showbottom=false
this.goDetail();
}else{
this.showbottom=true
}
},
//
getCollection(){
uni.request({
url: 'http://wallet-api.weirui0755.com/api/nft/getNftProjectList?address='+this.address, //
header: {
'content-type': 'application/x-www-form-urlencoded', //
},
success: (res) => {
this.collectinInfo=res.data.data
console.log(this.collectinInfo,2222)
},
fail(err) {
console.log(err,2222)
}
});
},
goDetail2(itemm,index){
uni.setStorageSync('proid',this.test.id)
uni.setStorageSync('wallet',itemm)
uni.setStorageSync('walleti',itemm.privateKey)
console.log(itemm,444)
uni.setStorageSync('nftIndex',this.testindex)
let item = JSON.stringify(this.test)
uni.setStorageSync('nftitem',this.test)
uni.navigateTo({ uni.navigateTo({
url:'./collectionDetail/index' url:'./collectionDetail/index?type='+item
}) })
} this.showbottom=false;
},
goDetail(itemm,index){
uni.setStorageSync('proid',this.test.id)
uni.setStorageSync('nftIndex',this.testindex)
let item = JSON.stringify(this.test)
uni.setStorageSync('nftitem',this.test)
uni.navigateTo({
url:'./collectionDetail/index?type='+item
})
this.showbottom=false;
}
}, },

28
pages/menu/index/index.vue

@ -13,15 +13,29 @@
data() { data() {
return { return {
eth: '', eth: '',
trc: 'Hello' trc: 'Hello',
param : {
'address':"0x5b1F11800D6DdD262A5Feda2Cc6e3256A905c280",
'pageNum':1,
'pageSize':10,
},
} }
}, },
async onLoad() { onLoad() {
this.$EthUtil.getBalance('0x939cF3748a33deA9f64F7ac28910Bee3Cb2f0AbB').then((res) => { uni.request({
console.log(res,'eth') url: 'http://scan.weirui0755.com/btc/api/address/btc/'+this.param.address+'/'+this.param.pageNum+'/'+this.param.pageSize, //
}).catch(err => { header: {
console.log(err) 'content-type': 'application/x-www-form-urlencoded', //
}) },
success: (res) => {
console.log(res,78978979)
}
});
this.$EthUtil.getBalance('0x4f6742badb049791cd9a37ea913f2bac38d01279',function(b){
console.log(b,'8888')
});
this.$TronUtil.getTronBalance('TGPirBtr42YvWtwDNgVEgv3YYhiCkE8hJq').then((res) => { this.$TronUtil.getTronBalance('TGPirBtr42YvWtwDNgVEgv3YYhiCkE8hJq').then((res) => {

1
pages/menu/market/index.vue

@ -89,6 +89,7 @@
}, },
onLoad() { onLoad() {
this.getHomeSlideFunc() this.getHomeSlideFunc()

418
pages/menu/sendToken/addAddress2/index.vue

@ -106,6 +106,7 @@
bigAddress:'', bigAddress:'',
save:true, save:true,
AddressIndex:-1, AddressIndex:-1,
gai:{},
show: false, show: false,
checked: false, checked: false,
list: [ list: [
@ -134,7 +135,8 @@ show: false,
} }
}, },
onLoad() { onLoad() {
if(uni.getStorageSync('AddressInfo',this.info)){ if(uni.getStorageSync('AddressInfo')){
console.log()
this.info=uni.getStorageSync('AddressInfo') this.info=uni.getStorageSync('AddressInfo')
this.AddressInfo=uni.getStorageSync('AddressInfo') this.AddressInfo=uni.getStorageSync('AddressInfo')
this.addressName=this.AddressInfo.name this.addressName=this.AddressInfo.name
@ -157,6 +159,8 @@ show: false,
}); });
// ass() // ass()
}, },
handove2(item){ handove2(item){
this.value=item.name; this.value=item.name;
this.show=false; this.show=false;
@ -187,10 +191,144 @@ show: false,
}) })
return; return;
} }
if(this.info.coinList[0].name2=='TRX'){
if(this.info.coinList[0].name=='BTC'){ if(this.value=='ETH'){
console.log(uni.getStorageSync('BTCAddressInfo'),777) this.gai = uni.getStorageSync('ETHAddressInfo')
if(uni.getStorageSync('BTCAddressInfo').length>0){ this.gai2 = uni.getStorageSync('TRXAddressInfo')
var index=uni.getStorageSync('editIndex')
let eth=new Object;
eth.address=this.bigAddress;
eth.name=this.addressName
eth.coinList=[{
name:"ETH",
name2:"ETH",
xname:'Ethereum',
icon:require('@/static/tongyonh/Frame3299.png')
}];
this.gai2.splice(index,1)
uni.setStorageSync('TRXAddressInfo',this.gai2)
this.gai.push(eth);
uni.setStorageSync('ETHAddressInfo',this.gai)
uni.showToast({
title: 'Successfully',
icon: 'success',
duration: 1500
})
uni.navigateTo({
url:'../address/index'
})
}
if(this.value=='TRX'){
this.gai = uni.getStorageSync('TRXAddressInfo')
var index=uni.getStorageSync('editIndex')
let trx=new Object;
trx.address=this.bigAddress;
trx.name=this.addressName
trx.coinList=[{
name:"TRX",
name2:"TRX",
xname:'TRON',
icon:require('@/static/tongyonh/tron1.png')
}];
this.gai[index]=trx;
uni.setStorageSync( 'TRXAddressInfo',this.gai)
uni.showToast({
title: 'Successfully',
icon: 'success',
duration: 1500
})
uni.navigateTo({
url:'../address/index'
})
}
if(this.value=='BTC'){
this.gai = uni.getStorageSync('BTCAddressInfo')
this.gai2 = uni.getStorageSync('TRXAddressInfo')
var index=uni.getStorageSync('editIndex')
let btc=new Object;
btc.address=this.bigAddress;
btc.name=this.addressName
btc.coinList=[{
name:"BTC",
name2:"BTC",
xname:'Bitcoin',
icon:require('@/static/tongyonh/bye.png')
}];
this.gai2.splice(index,1)
uni.setStorageSync('TRXAddressInfo',this.gai2)
this.gai.push(btc);
uni.setStorageSync('BTCAddressInfo',this.gai)
uni.showToast({
title: 'Successfully',
icon: 'success',
duration: 1500
})
uni.navigateTo({
url:'../address/index'
})
}
}
if(this.info.coinList[0].name2=='ETH'){
if(this.value=='TRX'){
this.gai = uni.getStorageSync('TRXAddressInfo')
this.gai2 = uni.getStorageSync('ETHAddressInfo')
var index=uni.getStorageSync('editIndex')
let trx=new Object;
trx.address=this.bigAddress;
trx.name=this.addressName
trx.coinList=[{
name:"TRX",
name2:"TRX",
xname:'TRON',
icon:require('@/static/tongyonh/tron1.png')
}];
this.gai2.splice(index,1)
uni.setStorageSync('ETHAddressInfo',this.gai2)
this.gai.push(trx);
uni.setStorageSync('TRXAddressInfo',this.gai)
uni.showToast({
title: 'Successfully',
icon: 'success',
duration: 1500
})
uni.navigateTo({
url:'../address/index'
})
}
if(this.value=='ETH'){
this.gai = uni.getStorageSync('ETHAddressInfo')
var index=uni.getStorageSync('editIndex')
let eth=new Object;
eth.address=this.bigAddress;
eth.name=this.addressName
eth.coinList=[{
name:"ETH",
name2:"ETH",
xname:'Ethereum',
icon:require('@/static/tongyonh/Frame3299.png')
}];
this.gai[index]=eth;
uni.setStorageSync('ETHAddressInfo',this.gai)
uni.showToast({
title: 'Successfully',
icon: 'success',
duration: 1500
})
uni.navigateTo({
url:'../address/index'
})
}
if(this.value=='BTC'){
this.gai = uni.getStorageSync('BTCAddressInfo')
this.gai2 = uni.getStorageSync('ETHAddressInfo')
var index=uni.getStorageSync('editIndex')
let btc=new Object; let btc=new Object;
btc.address=this.bigAddress; btc.address=this.bigAddress;
btc.name=this.addressName btc.name=this.addressName
@ -200,188 +338,102 @@ show: false,
xname:'Bitcoin', xname:'Bitcoin',
icon:require('@/static/tongyonh/bye.png') icon:require('@/static/tongyonh/bye.png')
}]; }];
let BTCAddressInfo=[] this.gai2.splice(index,1)
BTCAddressInfo=uni.getStorageSync('BTCAddressInfo') uni.setStorageSync('ETHAddressInfo',this.gai2)
BTCAddressInfo[this.AddressIndex]=btc this.gai.push(btc);
uni.setStorageSync('BTCAddressInfo',BTCAddressInfo) uni.setStorageSync('BTCAddressInfo',this.gai)
console.log(BTCAddressInfo,1111) uni.showToast({
uni.showToast({ title: 'Successfully',
title: 'Successfully', icon: 'success',
icon: 'success', duration: 1500
duration: 1500 })
}) uni.navigateTo({
uni.navigateTo({ url:'../address/index'
url:'../address/index' })
}) }
}else{ }
let btc=new Object;
btc.address=this.bigAddress;
btc.name=this.addressName
btc.coinList=[{
name:"BTC",
name2:"BTC",
xname:'Bitcoin',
icon:require('@/static/tongyonh/bye.png')
}];
console.log(btc,4444)
let BTCAddressInfo=[]
BTCAddressInfo.push(btc)
console.log(BTCAddressInfo,4444)
uni.setStorageSync('BTCAddressInfo',BTCAddressInfo)
uni.showToast({
title: 'Successfully',
icon: 'success',
duration: 1500
})
setTimeout(()=>{
uni.reLaunch({
url:'../address/index'
})
},1500)
}
}
if(this.info.coinList[0].name=='ETH'){ if(this.info.coinList[0].name2=='BTC'){
console.log(uni.getStorageSync('ETHAddressInfo'),777) if(this.value=='TRX'){
if(uni.getStorageSync('ETHAddressInfo').length>0){ this.gai = uni.getStorageSync('TRXAddressInfo')
let eth=new Object; this.gai2 = uni.getStorageSync('BTCAddressInfo')
eth.address=this.bigAddress; var index=uni.getStorageSync('editIndex')
eth.name=this.addressName
eth.coinList=[{
name:"ETH",
name2:"ETH",
xname:'Ethereum',
icon:require('@/static/tongyonh/Frame3299.png')
}];
let ETHAddressInfo=[]
ETHAddressInfo=uni.getStorageSync('ETHAddressInfo')
ETHAddressInfo[this.AddressIndex]=eth
uni.setStorageSync('ETHAddressInfo',ETHAddressInfo)
console.log(ETHAddressInfo,1111)
uni.showToast({
title: 'Successfully',
icon: 'success',
duration: 1500
})
setTimeout(()=>{
uni.reLaunch({
url:'../address/index'
})
},1500)
}else{
let eth=new Object;
eth.address=this.bigAddress;
eth.name=this.addressName
eth.coinList=[{
name:"ETH",
name2:"ETH",
xname:'Ethereum',
icon:require('@/static/tongyonh/Frame3299.png')
}];
console.log(eth,4444)
let ETHAddressInfo=[]
ETHAddressInfo.push(eth)
console.log(ETHAddressInfo,4444)
uni.setStorageSync('ETHAddressInfo',ETHAddressInfo)
uni.showToast({
title: 'Successfully',
icon: 'success',
duration: 1500
})
setTimeout(()=>{
uni.reLaunch({
url:'../address/index'
})
},1500)
}
}
if(this.info.coinList[0].name=='TRX'){
console.log(uni.getStorageSync('TRXAddressInfo'),777)
if(uni.getStorageSync('TRXAddressInfo').length>0){
let trx=new Object; let trx=new Object;
trx.address=this.bigAddress; trx.address=this.bigAddress;
trx.name=this.addressName trx.name=this.addressName
trx.coinList=[{
name:"TRX",
name2:"TRX",
xname:'TRON',
icon:require('@/static/tongyonh/tron1.png')
}];
this.gai2.splice(index,1)
uni.setStorageSync('BTCAddressInfo',this.gai2)
this.gai.push(trx);
uni.setStorageSync('TRXAddressInfo',this.gai)
uni.showToast({
title: 'Successfully',
icon: 'success',
duration: 1500
})
uni.navigateTo({
url:'../address/index'
})
}
if(this.value=='BTC'){
this.gai = uni.getStorageSync('BTCAddressInfo')
var index=uni.getStorageSync('editIndex')
let btc=new Object;
btc.address=this.bigAddress;
btc.name=this.addressName
btc.coinList=[{
name:"BTC",
name2:"BTC",
xname:'Bitcoin',
icon:require('@/static/tongyonh/bye.png')
}];
this.gai[index]=btc;
uni.setStorageSync('BTCAddressInfo',this.gai)
uni.showToast({
title: 'Successfully',
icon: 'success',
duration: 1500
})
uni.navigateTo({
url:'../address/index'
})
}
trx.coinList=[{ if(this.value=='ETH'){
name:"TRX", this.gai = uni.getStorageSync('ETHAddressInfo')
name2:"TRX", this.gai2 = uni.getStorageSync('BTCAddressInfo')
xname:'TRON', var index=uni.getStorageSync('editIndex')
icon:require('@/static/tongyonh/tron1.png') let eth=new Object;
}]; eth.address=this.bigAddress;
// if(this.value=='BTC'){ eth.name=this.addressName
// trx.coinList=[{ eth.coinList=[{
// name:"BTC", name:"ETH",
// xname:'Bitcoin', name2:"ETH",
// icon:require('@/static/tongyonh/bye.png') xname:'Ethereum',
// }]; icon:require('@/static/tongyonh/Frame3299.png')
// } }];
// if(this.value=='ETH'){ this.gai2.splice(index,1)
// trx.coinList=[{ uni.setStorageSync('BTCAddressInfo',this.gai2)
// name:"ETH", this.gai.push(eth);
// xname:'Ethereum', uni.setStorageSync('ETHAddressInfo',this.gai)
// icon:require('@/static/tongyonh/Frame3299.png') uni.showToast({
// }]; title: 'Successfully',
// } icon: 'success',
// if(this.value=='TRX'){ duration: 1500
// trx.coinList=[{ })
// name:"TRX", uni.navigateTo({
// xname:'TRON', url:'../address/index'
// icon:require('@/static/tongyonh/tron1.png') })
// }]; }
// } }
let TRXAddressInfo=[]
TRXAddressInfo=uni.getStorageSync('TRXAddressInfo')
TRXAddressInfo[this.AddressIndex]=trx
uni.setStorageSync('TRXAddressInfo',TRXAddressInfo)
console.log(TRXAddressInfo,1111)
uni.showToast({
title: 'Successfully',
icon: 'success',
duration: 1500
})
setTimeout(()=>{
uni.reLaunch({
url:'../address/index'
})
},1500)
}else{
let trx=new Object;
trx.address=this.bigAddress;
trx.name=this.addressName
trx.coinList=[{
name:"TRX",
name2:"TRX",
xname:'TRON',
icon:require('@/static/tongyonh/tron1.png')
}];
let TRXAddressInfo=[]
TRXAddressInfo.push(trx)
console.log(TRXAddressInfo,4444)
uni.setStorageSync('TRXAddressInfo',TRXAddressInfo)
uni.showToast({
title: 'Successfully',
icon: 'success',
duration: 1500
})
setTimeout(()=>{
uni.reLaunch({
url:'../address/index'
})
},1500)
}
}
}, },
showSelect(){ showSelect(){
this.show=true; this.show=true;

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

@ -30,7 +30,7 @@
<view class="set_con" v-if="show" v-show="index==btcIndex"> <view class="set_con" v-if="show" v-show="index==btcIndex">
<image src="../../../../static/tongyonh/xg.png" mode="aspectFit" class="img1" @click="show = false"></image> <image src="../../../../static/tongyonh/xg.png" mode="aspectFit" class="img1" @click="show = false"></image>
<view class="itemm flexx" @click="editItem()"> <view class="itemm flexx" @click="editItem(index)">
<image src="../../../../static/tongyonh/create_24px.png" mode="aspectFit" class="img"></image> <image src="../../../../static/tongyonh/create_24px.png" mode="aspectFit" class="img"></image>
Edit Edit
</view> </view>
@ -61,7 +61,7 @@
<view class="set_con" v-if="show2" v-show="index==ethIndex"> <view class="set_con" v-if="show2" v-show="index==ethIndex">
<image src="../../../../static/tongyonh/xg.png" mode="aspectFit" class="img1" @click="show2 = false"></image> <image src="../../../../static/tongyonh/xg.png" mode="aspectFit" class="img1" @click="show2 = false"></image>
<view class="itemm flexx" @click="editItem()"> <view class="itemm flexx" @click="editItem(index)">
<image src="../../../../static/tongyonh/create_24px.png" mode="aspectFit" class="img"></image> <image src="../../../../static/tongyonh/create_24px.png" mode="aspectFit" class="img"></image>
Edit Edit
</view> </view>
@ -96,7 +96,7 @@
<view class="set_con" v-if="show3" v-show="index==trxIndex"> <view class="set_con" v-if="show3" v-show="index==trxIndex">
<image src="../../../../static/tongyonh/xg.png" mode="aspectFit" class="img1" @click="show3 = false"></image> <image src="../../../../static/tongyonh/xg.png" mode="aspectFit" class="img1" @click="show3 = false"></image>
<view class="itemm flexx" @click="editItem()"> <view class="itemm flexx" @click="editItem(index)">
<image src="../../../../static/tongyonh/create_24px.png" mode="aspectFit" class="img"></image> <image src="../../../../static/tongyonh/create_24px.png" mode="aspectFit" class="img"></image>
Edit Edit
</view> </view>
@ -178,7 +178,9 @@ show3: false,
url:'/pages/menu/profile/index' url:'/pages/menu/profile/index'
}) })
}, },
editItem(){ editItem(index){
console.log(index,78787)
uni.setStorageSync('editIndex',index)
uni.setStorageSync('AddressInfo',this.info) uni.setStorageSync('AddressInfo',this.info)
uni.setStorageSync('AddressName',this.itemCoin) uni.setStorageSync('AddressName',this.itemCoin)
uni.setStorageSync('AddressIndex',this.walletIndex) uni.setStorageSync('AddressIndex',this.walletIndex)
@ -204,6 +206,7 @@ show3: false,
this.walletIndex=index; this.walletIndex=index;
}, },
deleteItem(){ deleteItem(){
console.log(this.walletIndex,4444444)
if(this.itemCoin=='BTC'){ if(this.itemCoin=='BTC'){
console.log(this.BTCAddressInfo.length,'length') console.log(this.BTCAddressInfo.length,'length')
if(this.BTCAddressInfo.length==1){ if(this.BTCAddressInfo.length==1){
@ -213,18 +216,14 @@ show3: false,
} }
console.log(this.BTCAddressInfo,1111) console.log(this.BTCAddressInfo,1111)
console.log(this.walletIndex,44444) console.log(this.walletIndex,44444)
let BTCAddressInfo=[]
BTCAddressInfo=uni.getStorageSync('BTCAddressInfo') this.BTCAddressInfo.splice(this.walletIndex,1)
console.log(BTCAddressInfo,'删除前') console.log(this.BTCAddressInfo,'删除后')
BTCAddressInfo=BTCAddressInfo.splice(this.walletIndex,1) uni.setStorageSync('BTCAddressInfo', this.BTCAddressInfo)
console.log(BTCAddressInfo,'删除后')
uni.setStorageSync('BTCAddressInfo',BTCAddressInfo)
this.showImte=true; this.showImte=true;
this.show=false; this.show=false;
setTimeout(()=>{ setTimeout(()=>{
uni.reLaunch({ this.showImte=false;
url:'../address/index'
})
},1500) },1500)
} }
@ -236,18 +235,12 @@ show3: false,
} }
console.log(this.ETHAddressInfo,1111) console.log(this.ETHAddressInfo,1111)
console.log(this.walletIndex,44444) console.log(this.walletIndex,44444)
let ETHAddressInfo=[] this.ETHAddressInfo.splice(this.walletIndex,1)
ETHAddressInfo=uni.getStorageSync('ETHAddressInfo') uni.setStorageSync('ETHAddressInfo',this.ETHAddressInfo)
ETHAddressInfo=ETHAddressInfo.splice(this.walletIndex-1,1)
console.log(ETHAddressInfo,77777)
uni.setStorageSync('ETHAddressInfo',ETHAddressInfo)
this.showImte=true; this.showImte=true;
console.log(ETHAddressInfo,2222)
this.show2=false; this.show2=false;
setTimeout(()=>{ setTimeout(()=>{
uni.reLaunch({ this.showImte=false;
url:'../address/index'
})
},1500) },1500)
} }
@ -257,20 +250,12 @@ show3: false,
uni.setStorageSync('TRXAddressInfo',TRXAddressInfo) uni.setStorageSync('TRXAddressInfo',TRXAddressInfo)
} }
console.log(this.TRXAddressInfo,1111) this.TRXAddressInfo.splice(this.walletIndex,1)
console.log(this.walletIndex,44444) uni.setStorageSync('TRXAddressInfo',this.TRXAddressInfo)
let TRXAddressInfo=[]
TRXAddressInfo=uni.getStorageSync('TRXAddressInfo')
TRXAddressInfo=TRXAddressInfo.splice(this.walletIndex-1,1)
console.log(TRXAddressInfo,77777)
uni.setStorageSync('TRXAddressInfo',TRXAddressInfo)
this.showImte=true; this.showImte=true;
console.log(TRXAddressInfo,2222)
this.show3=false; this.show3=false;
setTimeout(()=>{ setTimeout(()=>{
uni.reLaunch({ this.showImte=false;
url:'../address/index'
})
},1500) },1500)
} }

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

@ -247,6 +247,36 @@
this.address2 = this.infoWallet.address this.address2 = this.infoWallet.address
this.param.address=this.address this.param.address=this.address
this.userObject = this.infoWallet this.userObject = this.infoWallet
// #ifdef APP-PLUS
uni.request({
url: 'http://scan.weirui0755.com/eth/api/eth/address/normal/'+this.param.address+'/'+this.param.pageNum+'/'+this.param.pageSize, //
header: {
'content-type': 'application/x-www-form-urlencoded', //
},
success: (res) => {
console.log(res, 77)
if (res.data.code == 404) {
this.showInfo = true;
return;
}
if (res.data.data.network == 'ETH') {
this.trxs = res.data.data.txs
for (var i = 0; i < this.trxs.length; i++) {
this.trxs[i].from = this.trxs[i].from.substring(0, 6) + '...' + this.trxs[i].from
.substring(35, this.trxs[i].from.length);
this.trxs[i].to = this.trxs[i].to.substring(0, 6) + '...' + this.trxs[i].to.substring(
35, this.trxs[i].to.length);
this.trxs[i].time = index.formatyymmddhhmmss(this.trxs[i].time);
this.trxs[i].value = parseFloat(this.trxs[i].value).toFixed(5)
}
}
}
});
// #endif
// #ifdef H5
const post = api.address( const post = api.address(
this.param this.param
) )
@ -269,6 +299,7 @@
} }
}) })
// #endif
this.address = this.address.substring(0, 6) + '...' + this.address.substring(35, this.address.length); this.address = this.address.substring(0, 6) + '...' + this.address.substring(35, this.address.length);
this.getInfo() this.getInfo()
} else if (this.infoWallet.coinList[0].xname == 'TRON') { } else if (this.infoWallet.coinList[0].xname == 'TRON') {
@ -276,6 +307,36 @@
this.param.address=this.address this.param.address=this.address
this.address2 = this.infoWallet.address this.address2 = this.infoWallet.address
this.userObject =this.infoWallet this.userObject =this.infoWallet
// #ifdef APP-PLUS
uni.request({
url: 'http://scan.weirui0755.com/trx/api/trx/address/normal/'+this.param.address+'/'+this.param.pageNum+'/'+this.param.pageSize, //
header: {
'content-type': 'application/x-www-form-urlencoded', //
},
success: (res) => {
console.log(res, 77)
if (res.data.code == 404) {
this.showInfo = true;
return;
}
if (res.data.data.network == 'ETH') {
this.trxs = res.data.data.txs
for (var i = 0; i < this.trxs.length; i++) {
this.trxs[i].from = this.trxs[i].from.substring(0, 6) + '...' + this.trxs[i].from
.substring(35, this.trxs[i].from.length);
this.trxs[i].to = this.trxs[i].to.substring(0, 6) + '...' + this.trxs[i].to.substring(
35, this.trxs[i].to.length);
this.trxs[i].time = index.formatyymmddhhmmss(this.trxs[i].time);
this.trxs[i].value = parseFloat(this.trxs[i].value).toFixed(5)
}
}
}
});
// #endif
// #ifdef H5
const post = api.addresstrx( const post = api.addresstrx(
this.param this.param
) )
@ -297,6 +358,7 @@
} }
}) })
// #endif
this.address = this.address.substring(0, 6) + '...' + this.address.substring(35, this.address.length); this.address = this.address.substring(0, 6) + '...' + this.address.substring(35, this.address.length);
} }
}, },

336
pages/menu/token/btc/index2.vue

@ -0,0 +1,336 @@
<template>
<view class="">
<navigation :showBack="true" :bgnum="true">
<text class="big_title">
{{userObjectss.name2}}
</text>
</navigation>
<view class="main">
<view class="money_con"
:class="{'money_con': userObject.coinList[0].xname=='Ethereum', 'money_con2': userObject.coinList[0].xname=='Bitcoin', 'money_con3': userObject.coinList[0].xname=='TRON'}">
<view class="textcon1">
<text class="text1">
<view class="" v-if="userObject.coinList[0].xname=='Bitcoin'">
0.00 BTC
</view>
<view class="" v-if="userObject.coinList[0].xname=='Ethereum'">
0.00
</view>
<view class="" v-if="userObject.coinList[0].xname=='TRON'">
0.00 TRX
</view>
<text class="text2"> $0.0</text>
</text>
<!-- <image src="../../../../static/tongyonh/ethereum.png" mode="aspectFit" class="img1"
v-if="userObject.coinList[0].xname=='Ethereum'"></image>
<image src="../../../../static/tongyonh/Frame28.png" mode="aspectFit" class="img1"
v-if="userObject.coinList[0].xname=='Bitcoin'"></image>
<image src="../../../../static/tongyonh/tronicon.png" mode="aspectFit" class="img1"
v-if="userObject.coinList[0].xname=='TRON'"></image> -->
</view>
<view class="textcon1">
<view class="v1">
<view class="t1">
0.0
</view>
<view class="t2">
Existing balance
</view>
</view>
<view class="v1 v2">
<view class="t1">
0.0
</view>
<view class="t2">
Freeze balance
</view>
</view>
</view>
</view>
<view class="select_con">
<view class="select">
<u-tabs height="120" bar-width="172" active-color="#6F69FF" inactive-color="#A3AED0" :list="list"
:is-scroll="false" :current="current" @change="change"></u-tabs>
<u-empty text="No content" mode="list" v-if="showInfo"></u-empty>
<view class="" v-if="!showInfo">
<view class="item1" v-for="(item,index) in trxs" v-if="current==1&&address==item.from"
@click="goDetail(item,index)">
<view class="lef_con">
<image src="../../../../static/tongyonh/arrow-up-left_1.png" mode="aspectFit"
class="img1" v-if="address==item.from"></image>
<view class="textcon">
<view class="text1" v-if="address==item.from">
{{item.to}}
</view>
<view class="text2" v-if="address==item.from">
{{item.time}}
</view>
</view>
</view>
<view class="rig_con">
<view class="text1">
<text v-if="address==item.from">-</text>
{{item.value}}
<text class="">
{{item.network}}
</text>
</view>
<image src="../../../../static/tongyonh/Shape.png" mode="aspectFit" class="img1">
</image>
</view>
</view>
<view class="item1" v-for="(item,index) in trxs" v-if="current==0"
@click="goDetail(item,index)">
<view class="lef_con">
<image src="../../../../static/tongyonh/arrow-up-left.png" mode="aspectFit" class="img1"
v-if="address==item.to"></image>
<image src="../../../../static/tongyonh/arrow-up-left_1.png" mode="aspectFit"
class="img1" v-if="address==item.from"></image>
<view class="textcon">
<view class="text1" v-if="address==item.from">
{{item.to}}
</view>
<view class="text1" v-if="address==item.to">
{{item.from}}
</view>
<view class="text2">
{{item.time}}
</view>
</view>
</view>
<view class="rig_con">
<view class="text1">
<text v-if="address==item.to">+</text>
<text v-if="address==item.from">-</text>
{{item.value}}
<text class="">
{{item.network}}
</text>
</view>
<image src="../../../../static/tongyonh/Shape.png" mode="aspectFit" class="img1">
</image>
</view>
</view>
<view class="item1" v-for="(item,index) in trxs" v-if="current==2&&address==item.to"
@click="goDetail(item,index)">
<view class="lef_con">
<image src="../../../../static/tongyonh/arrow-up-left.png" mode="aspectFit" class="img1"
v-if="address==item.to"></image>
<view class="textcon">
<view class="text1" v-if="address==item.to">
{{item.from}}
</view>
<view class="text2" v-if="address==item.to">
{{item.time}}
</view>
</view>
</view>
<view class="rig_con">
<view class="text1">
<text v-if="address==item.to">+</text>
{{item.value}}
<text class="">
{{item.network}}
</text>
</view>
<image src="../../../../static/tongyonh/Shape.png" mode="aspectFit" class="img1">
</image>
</view>
</view>
</view>
</view>
</view>
<view class="btnconn">
<view class="btn active" @click="goSend">
<image src="../../../../static/tongyonh/arrow-up-leftw.png" mode="aspectFit" class="arrow-up-left">
</image>
Send
</view>
<view class="btn" @click="goReceive">
<image src="../../../../static/tongyonh/arrow-up-leftp.png" mode="aspectFit" class="arrow-up-left">
</image>
<text class="btn13">Receive</text>
</view>
</view>
</view>
</view>
</template>
<script>
import cont from "@/components/navigation/navigation.vue"
import api from '@/utils/api'
import index from '@/utils/index.js'
export default {
data() {
return {
// address
coinInfo: {},
trxs: [],
trxs2: [],
address: '',
userObject: {},
userObjectss: {},
showInfo: false,
list: [{
name: 'All'
}, {
name: 'Send'
}, {
name: 'Receive',
}],
infoWallet:{},
current: 0,
pageSize:10,
pageNum:1,
param : {
'address':'',
'pageNum':1,
'pageSize':10,
'address2':'',
},
}
},
methods: {
goSend(){
let itemm = JSON.stringify(this.infoWallet)
uni.navigateTo({
url: '/pages/menu/sendToken/transfer2/index?item=' + itemm
})
},
goReceive() {
let itemm = JSON.stringify(this.infoWallet)
uni.navigateTo({
url: '/pages/menu/sendToken/index?item=' + itemm
})
},
goDetail(item, index) {
let itemm = JSON.stringify(this.trxs2[index])
uni.navigateTo({
url: '/pages/menu/transction/detail/index?item=' + itemm
})
},
change(index) {
console.log(index)
this.current = index;
console.log(this.current)
},
getWalletInfo(){
if (this.infoWallet.coinList[0].xname == 'Ethereum') {
this.param.address2=this.infoWallet.address
this.address = this.userObjectss.contractAddress
this.address2 =this.userObjectss.contractAddress
console.log( this.userObjectss.contractAddress,111)
this.param.address= this.userObjectss.contractAddress
console.log(this.param,2222)
this.userObject = this.infoWallet
const post = api.addressOther(
this.param
)
post.then(res => {
console.log(res, 77)
if (res.data.code == 404) {
this.showInfo = true;
return;
}
this.trxs = res.data.data
console.log(this.trxs,7878)
for (var i = 0; i < this.trxs.length; i++) {
this.trxs[i].from = this.trxs[i].from.substring(0, 6) + '...' + this.trxs[i].from
.substring(35, this.trxs[i].from.length);
this.trxs[i].to = this.trxs[i].to.substring(0, 6) + '...' + this.trxs[i].to.substring(
35, this.trxs[i].to.length);
this.trxs[i].time = index.formatyymmddhhmmss(this.trxs[i].time);
this.trxs[i].value = parseFloat(this.trxs[i].value).toFixed(0)
}
})
this.address = this.address.substring(0, 6) + '...' + this.address.substring(35, this.address.length);
this.getInfo()
} else if (this.infoWallet.coinList[0].xname == 'TRON') {
this.address = this.infoWallet.address
this.param.address=this.address
this.address2 = this.infoWallet.address
this.userObject =this.infoWallet
const post = api.addresstrx(
this.param
)
post.then(res => {
if (res.data.code == 404) {
this.showInfo = true;
return;
}
if (res.data.data.network == 'TRX') {
this.trxs = res.data.data.txs
for (var i = 0; i < this.trxs.length; i++) {
this.trxs[i].from = this.trxs[i].from.substring(0, 6) + '...' + this.trxs[i].from
.substring(35, this.trxs[i].from.length);
this.trxs[i].to = this.trxs[i].to.substring(0, 6) + '...' + this.trxs[i].to.substring(
35, this.trxs[i].to.length);
this.trxs[i].time = index.formatyymmddhhmmss(this.trxs[i].time);
this.trxs[i].value = parseFloat(this.trxs[i].value).toFixed(5)
}
}
})
this.address = this.address.substring(0, 6) + '...' + this.address.substring(35, this.address.length);
}
},
getInfo() {
this.param.address=this.address2
const post = api.addressOther(
this.param
)
post.then(res => {
this.trxs2 = res.data.data.txs
})
}
},
onLoad(option) {
this.userObjectss=uni.getStorageSync('daiInfo')
console.log(this.userObjectss,777)
const item = JSON.parse(option.item);
this.infoWallet = item
this.getWalletInfo()
},
onReachBottom() {
this.param.pageSize+=5;
this.getWalletInfo()
}
};
</script>
<style scoped>
page {
background: #FAFAFA;
}
</style>
<style>
@import './index.css';
</style>

39
pages/menu/token/btctrue/index.vue

@ -267,12 +267,42 @@
// btc // btc
getWalletInfo() { getWalletInfo() {
if (this.infoWallet.coinList[0].xname == 'Bitcoin') { if (this.infoWallet.coinList[0].xname == 'Bitcoin') {
// this.address = item.address this.address = this.infoWallet.address
// this.address2 = item.address this.address2 =this.infoWallet.address
this.address2 = '14sA8jqYQgMRQV9zUtGFvpeMEw7YDn77SK'; // this.address2 = '14sA8jqYQgMRQV9zUtGFvpeMEw7YDn77SK';
this.address = '14sA8jqYQgMRQV9zUtGFvpeMEw7YDn77SK'; // this.address = '14sA8jqYQgMRQV9zUtGFvpeMEw7YDn77SK';
this.param.address = this.address this.param.address = this.address
this.userObject = this.infoWallet this.userObject = this.infoWallet
// #ifdef APP-PLUS
uni.request({
url: 'http://scan.weirui0755.com/btc/api/address/btc/'+this.param.address+'/'+this.param.pageNum+'/'+this.param.pageSize, //
header: {
'content-type': 'application/x-www-form-urlencoded', //
},
success: (res) => {
console.log(res, 77)
if (res.data.code == 404) {
this.showInfo = true;
return;
}
if (res.data.data.network == 'ETH') {
this.trxs = res.data.data.txs
for (var i = 0; i < this.trxs.length; i++) {
this.trxs[i].from = this.trxs[i].from.substring(0, 6) + '...' + this.trxs[i].from
.substring(35, this.trxs[i].from.length);
this.trxs[i].to = this.trxs[i].to.substring(0, 6) + '...' + this.trxs[i].to.substring(
35, this.trxs[i].to.length);
this.trxs[i].time = index.formatyymmddhhmmss(this.trxs[i].time);
this.trxs[i].value = parseFloat(this.trxs[i].value).toFixed(5)
}
}
}
});
// #endif
// #ifdef H5
const post = api.addressbtc( const post = api.addressbtc(
this.param this.param
) )
@ -309,6 +339,7 @@
} }
}) })
// #endif
this.address = this.address.substring(0, 6) + '...' + this.address.substring(30, this.address.length); this.address = this.address.substring(0, 6) + '...' + this.address.substring(30, this.address.length);
this.getInfo() this.getInfo()
} }

2
pages/menu/wallet/cwallet/index.vue

@ -137,7 +137,7 @@
},5) },5)
} }
if(index.coinList[0].xname=="TRON"){ if(index.coinList[0].xname=="TRON"){
console.log(this.walletInfoTRX2[i]) console.log(this.walletInfoTRX2[i],454654646465)
uni.setStorageSync('wallet',this.walletInfoTRX2[i]) uni.setStorageSync('wallet',this.walletInfoTRX2[i])
setTimeout(()=>{ setTimeout(()=>{
uni.reLaunch({ uni.reLaunch({

38
pages/menu/wallet/index.vue

@ -38,7 +38,7 @@
<image src="../../../static/tongyonh/IconGroup.png" mode="aspectFit" class="jiaimg" v-if="userObj.coinList[0].xname!='Bitcoin'&&userObj.coinList[0].xname!='TRON'" @click="goOther"></image> <image src="../../../static/tongyonh/IconGroup.png" mode="aspectFit" class="jiaimg" v-if="userObj.coinList[0].xname!='Bitcoin'&&userObj.coinList[0].xname!='TRON'" @click="goOther"></image>
</view> </view>
<view class="item flexx" @click="goTrans()" v-for="item,index in this.userObj.coinList"> <view class="item flexx" @click="goTrans(item,index)" v-for="item,index in this.userObj.coinList">
<view class="left flex"> <view class="left flex">
<image :src="item.icon" mode="aspectFit" class="img1"></image> <image :src="item.icon" mode="aspectFit" class="img1"></image>
<view class="textcon"> <view class="textcon">
@ -91,12 +91,12 @@
onLoad() { onLoad() {
this.setStorage(); this.setStorage();
this.getWalletBalance(); // this.getWalletBalance();
var a=uni.getStorageSync('wallet') var a=uni.getStorageSync('wallet')
if(a!=''){ if(a!=''){
this.userObj=uni.getStorageSync('wallet'); this.userObj=uni.getStorageSync('wallet');
console.log(this.userObj,777) console.log(this.userObj,777789798798)
this.userObj2=uni.getStorageSync('wallet'); this.userObj2=uni.getStorageSync('wallet');
this.userObj.address = this.userObj.address.substring(0, 6)+'...'+this.userObj.address.substring(25,this.userObj.address.length); this.userObj.address = this.userObj.address.substring(0, 6)+'...'+this.userObj.address.substring(25,this.userObj.address.length);
} }
@ -117,12 +117,14 @@
} }
var walletInfo=uni.getStorageSync('walletInfo') var walletInfo=uni.getStorageSync('walletInfo')
for(let i=0;i<walletInfo.ETH.length;i++){ for(let i=0;i<walletInfo.ETH.length;i++){
this.$EthUtil.getBalance(walletInfo.ETH[i].address).then((res) => { this.$EthUtil.getBalance(this.walletInfo.ETH[0].address,function(res){
walletInfo.ETH[i].balance= res walletInfo.ETH[i].balance= res
uni.setStorageSync('walletInfo',walletInfo) uni.setStorageSync('walletInfo',walletInfo)
}).catch(err => {
console.log(err)
}) });
} }
var walletInfo=uni.getStorageSync('walletInfo') var walletInfo=uni.getStorageSync('walletInfo')
@ -138,9 +140,10 @@
}, },
goOther(){ goOther(){
console.log(this.userObj2.coinList[0].name2,1111) console.log(this.userObj2,8888)
let item = JSON.stringify(this.userObj2)
uni.navigateTo({ uni.navigateTo({
url:'otherCoin/index?type='+this.userObj2.coinList[0].name2 url:'otherCoin/index?type='+item
}) })
}, },
showMoney(){ showMoney(){
@ -157,16 +160,25 @@
this.userObj.address = this.userObj.address.substring(0, 6)+'...'+this.userObj.address.substring(25,this.userObj.address.length); this.userObj.address = this.userObj.address.substring(0, 6)+'...'+this.userObj.address.substring(25,this.userObj.address.length);
console.log(this.walletInfo.BTC[0]) console.log(this.walletInfo.BTC[0])
}, },
goTrans() { goTrans(itemm,index) {
console.log(index,444)
let item = JSON.stringify(this.userObj2) let item = JSON.stringify(this.userObj2)
if(this.userObj2.coinList[0].xname=='Bitcoin'){ if(this.userObj2.coinList[0].xname=='Bitcoin'){
uni.navigateTo({ uni.navigateTo({
url:'/pages/menu/token/btctrue/index?item='+item url:'/pages/menu/token/btctrue/index?item='+item
}) })
}else{ }else{
uni.navigateTo({ if(index==0){
url:'/pages/menu/token/btc/index?item='+item uni.navigateTo({
}) url:'/pages/menu/token/btc/index?item='+item
})
}else{
uni.setStorageSync('daiInfo',itemm)
uni.navigateTo({
url:'/pages/menu/token/btc/index2?item='+item
})
}
} }

79
pages/menu/wallet/otherCoin/index.css

@ -1,19 +1,19 @@
.maintoP{ .maintoP{
margin-top: 100rpx; margin-top: 100rpx;
} }
/* .aaa{ .aaa{
background: #FAFAFA !important; display: block;
} */ }
/* page { page {
background: #FAFAFA; height: 100%;
} */ }
.main{ .main{
padding: 0 48rpx; padding: 0 24rpx;
margin-top: 30rpx; margin-top: 30rpx;
background: #fff; background: #fff;
} }
.title{ .title{
height: 100rpx; height: 160rpx;
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 32rpx; font-size: 32rpx;
@ -33,7 +33,7 @@
height: 80rpx; height: 80rpx;
} }
.main_con .item{ .main_con .item{
height: 150rpx; height: 160rpx;
border-bottom: 2rpx solid #F6F8FD; border-bottom: 2rpx solid #F6F8FD;
border-radius: 24rpx; border-radius: 24rpx;
@ -41,7 +41,6 @@
.main_con .item .img{ .main_con .item .img{
width: 48rpx; width: 48rpx;
height: 48rpx; height: 48rpx;
transition: .5s all;
} }
.main_con .textcon{ .main_con .textcon{
margin-left: 20rpx; margin-left: 20rpx;
@ -52,6 +51,7 @@
.main_con .textcon .text2{ .main_con .textcon .text2{
font-size: 24rpx; font-size: 24rpx;
color: #999; color: #999;
word-break: break-word;
} }
.back{ .back{
width: 16rpx; width: 16rpx;
@ -63,4 +63,61 @@
} }
.opci{ .opci{
opacity: 0.5; opacity: 0.5;
} }
.topview{
background-color: #FAFAFA;
width: 100%;
border-radius: 32rpx;
position: relative;
}
.topinput{
width: 100%;
height: 70rpx;
padding-left: 100rpx;
}
.searchimg{
width: 48rpx;
height: 48rpx;
position: absolute;
left: 30rpx;
top: 50%;
transform: translateY(-50%);
}
.info_con{
width: 702rpx;
height: 120rpx;
display: flex;
align-items: center;
position: fixed;
bottom: -150rpx;
z-index: 999;
border-radius: 26rpx;
left: 50%;
padding: 0 48rpx;
transform: translateX(-50%);
color: #fff;
transition: .8s all;
}
.goTop{
position: fixed;
bottom: 60rpx !important;
}
.green{
background-color: #6AD6A8;
}
.info_con .text{
}
.info_con .text2{
font-size: 700;
font-size: 32rpx;
}
.goTop{
position: fixed;
bottom: 60rpx !important;
}
.copyImg{
width: 48rpx;
height: 48rpx;
margin-right: 10rpx;
}

98
pages/menu/wallet/otherCoin/index.vue

@ -5,32 +5,37 @@
Add token Add token
</navigation> </navigation>
<view class="main"> <view class="main">
<view class="topview">
<image src="../../../../static/tongyonh/search.png" mode="aspectFit" class="searchimg"></image>
<input type="text" value="" class="topinput" @focus="goSearch"/>
</view>
<view class="title"> <view class="title">
Hot assets Hot assets
</view> </view>
<view class="main_con"> <view class="main_con">
<view class="item flex" v-for="item,index in coinInfo" :key="index"> <view class="item flex" v-for="item,index in coinInfo" :key="index">
<view class="left flex2"> <view class="left flex2">
<image :src="item.chainIconUrl" mode="aspectFit" class="img"></image> <image :src="item.contractIconUrlAbs" mode="aspectFit" class="img"></image>
<view class="textcon"> <view class="textcon">
<view class="text1"> <view class="text1">
{{item.chainName}} {{item.contractName}}
</view> </view>
<view class="text2"> <view class="text2">
{{item.contractAddress}} {{item.contractAddress}}
</view> </view>
</view> </view>
</view> </view>
<image src="../../../../static/tongyonh/IconGroup.png" mode="aspectFit" class="img" @click="addOther(item,index)" v-if="index!=imgindex[index]" ></image>
<image src="../../../../static/tongyonh/IconGroup.png" mode="aspectFit" class="img" @click="addOther(item,index)" v-if="index!=imgindex"></image> <image src="../../../../static/tongyonh/x-circle.png" mode="aspectFit" class="img opci" v-if="index==imgindex[index]"></image>
<image src="../../../../static/tongyonh/x-circle.png" mode="aspectFit" class="img opci" v-if="index==imgindex"></image>
</view> </view>
</view> </view>
<view class="info_con green" :class="toTop?'goTop':''">
<image src="../../../../static/tongyonh/copy_24px_2.png" mode="aspectFit" class="copyImg"></image>
Added successfully
</view>
</view> </view>
@ -45,17 +50,31 @@
return { return {
coinType:'', coinType:'',
coinInfo:[], coinInfo:[],
imgindex:-1, imgindex:[],
walletInfo:{}, walletInfo:{},
coinAddress:'',
toTop:false,
tmoney:0
} }
}, },
onLoad(item) { onLoad(option) {
this.coinType=item.type const item = JSON.parse(option.type);
if(uni.getStorageSync('imgindex').length>0){
this.imgindex=uni.getStorageSync('imgindex')
}
this.coinAddress=item.address
this.coinType=item.coinList[0].name2
console.log(this.coinAddress,this.coinType,444)
this.walletInfo=uni.getStorageSync('walletInfo') this.walletInfo=uni.getStorageSync('walletInfo')
this.getCoin(); this.getCoin();
}, },
methods: { methods: {
goSearch(){
uni.navigateTo({
url:'/pages/menu/wallet/search/index'
})
},
back(){ back(){
uni.reLaunch({ uni.reLaunch({
url:'/pages/menu/wallet/index' url:'/pages/menu/wallet/index'
@ -63,23 +82,48 @@
}, },
// //
addOther(item,index){ addOther(item,index){
this.imgindex=index
console.log(item,444) console.log(item,444)
// eth if(uni.getStorageSync('imgindex').length>0){
this.$EthUtil.getTokenBalance(item.contractAddress,item.contractName).then((res) => { this.imgindex.push(index)
console.log(res) this.toTop=true
}).catch(err => { setTimeout(()=>{
console.log(err) this.toTop=false
}) },1500)
uni.setStorageSync('imgindex',this.imgindex)
}else{
this.imgindex.push(index)
this.toTop=true
setTimeout(()=>{
this.toTop=false
},1500)
uni.setStorageSync('imgindex',this.imgindex)
}
if(this.coinType=='ETH'){ if(this.coinType=='ETH'){
if(uni.getStorageSync('itype')){ if(uni.getStorageSync('itype')){
// eth
console.log(this.coinAddress
,item.contractAddress)
setTimeout(()=>{
this.$EthUtil.getTokenBalance(this.coinAddress
,item.contractAddress,function(balance){
console.log(balance,123132)
this.tmoney=balance
});
},1000)
var a=uni.getStorageSync('ethi') var a=uni.getStorageSync('ethi')
var b={ var b={
name:item.chainName, name:item.chainName,
name2:item.chainName, name2:item.contractName,
xname:item.chainName, xname:item.chainName,
icon:item.chainIconUrl icon:item.contractIconUrlAbs,
contractAddress:item.contractAddress,
balance:this.tmoney,
}; };
this.walletInfo.ETH[a].coinList.push(b) this.walletInfo.ETH[a].coinList.push(b)
uni.setStorageSync('walletInfo',this.walletInfo) uni.setStorageSync('walletInfo',this.walletInfo)
@ -87,11 +131,21 @@
} }
if(uni.getStorageSync('itype')==false){ if(uni.getStorageSync('itype')==false){
var a=uni.getStorageSync('ethiSe') var a=uni.getStorageSync('ethiSe')
setTimeout(()=>{
this.$EthUtil.getTokenBalance(this.coinAddress
,item.contractAddress,function(balance){
console.log(balance,123132)
this.tmoney=balance
});
},1000)
var b={ var b={
name:item.chainName, name:item.chainName,
name2:item.chainName, name2:item.contractName,
xname:item.chainName, xname:item.chainName,
icon:item.chainIconUrl icon:item.contractIconUrlAbs,
contractAddress:item.contractAddress,
balance:this.tmoney,
}; };
this.walletInfo.ETH[a].coinList.push(b) this.walletInfo.ETH[a].coinList.push(b)
uni.setStorageSync('wallet',this.walletInfo.ETH[a]) uni.setStorageSync('wallet',this.walletInfo.ETH[a])
@ -117,7 +171,7 @@
'content-type': 'application/x-www-form-urlencoded', // 'content-type': 'application/x-www-form-urlencoded', //
}, },
success: (res) => { success: (res) => {
this.coinInfo=res.data.data; this.coinInfo=res.data.data
} }
}); });
}, },

63
pages/menu/wallet/search/index.css

@ -0,0 +1,63 @@
page{
height: 100%;
}
.main{
padding: 0 24rpx;
margin-top: 150rpx;
}
.topview{
background-color: #FAFAFA;
width: 80%;
border-radius: 32rpx;
position: relative;
}
.topinput{
width: 100%;
height: 70rpx;
padding-left: 100rpx;
}
.searchimg{
width: 48rpx;
height: 48rpx;
position: absolute;
left: 30rpx;
top: 50%;
transform: translateY(-50%);
}
.custom-style{
width: 100%;
height: 80rpx;
padding-left: 150rpx;
}
/deep/ uni-input {
height: 40px !important;
padding-left: 90rpx !important;
}
.flex .text{
font-size: 32rpx;
color: #5B53FF;
}
.flex{
display: flex;
align-items: center;
justify-content: space-between;
}
/deep/ .u-empty{
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
z-index: -1;
}
.searchimg{
width: 48rpx;
height: 48rpx;
position: absolute;
left: 30rpx;
top: 50%;
transform: translateY(-50%);
}
/deep/ .u-icon__label {
line-height: 1.5 !important;
}

36
pages/menu/wallet/search/index.vue

@ -0,0 +1,36 @@
<template>
<view class="main">
<view class="flex">
<view class="topview">
<image src="../../../../static/tongyonh/search.png" mode="aspectFit" class="searchimg"></image>
<u-input placeholderStyle="fontSize:12px;color:#D0D0D2" placeholder="Enter the token name or contract address" v-model="value" :focus="true" :type="type" :border="border" class="custom-style" />
</view>
<text class="text" @click="back">Cancel</text>
</view>
<u-empty text="Please enter the token name or contract address to search" mode="list"></u-empty>
</view>
</template>
<script>
export default {
data() {
return {
value: '',
type: 'text',
show: false,
border: false,
}
},
methods: {
back(){
uni.navigateBack({
})
}
}
}
</script>
<style>
@import './index.css';
</style>

BIN
static/tongyonh/img500.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
static/tongyonh/[email protected]

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 B

BIN
static/tongyonh/nft_icon2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 387 B

BIN
static/tongyonh/search.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

BIN
static/tongyonh/tether_usd.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

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/7f5439d0-3e5a-11ec-a595-9f7faa4d5fb0 https://ide.dcloud.net.cn/build/download/a3d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GXWxqz63bwZ2gUV2QtSFSbpdsCOdTR/16CM0eMUhm1JX6N4YKKyJe09yPP+XPP3LDRAuPYZ2g6QDkJh97di7TUrYifacxXK6efFGUqisVEFOjuymRuNTjQwq1AlU73QySunzCJnQ/d1U2RCfCWlDDxrEpb673spqH4bq2kpBV5QzAsw

4
unpackage/cache/wgt/__UNI__1ECBEE1/app-config-service.js

File diff suppressed because one or more lines are too long

20
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

2
unpackage/cache/wgt/__UNI__1ECBEE1/manifest.json

@ -1 +1 @@
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__1ECBEE1","name":"BITCOOO","version":{"name":"1.0","code":"100"},"description":"","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"render":"always","id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#fff"},"compatible":{"ignoreVersion":true},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"distribute":{"icons":{"android":{"hdpi":"icon-android-hdpi.png","xhdpi":"icon-android-xhdpi.png","xxhdpi":"icon-android-xxhdpi.png","xxxhdpi":"icon-android-xxxhdpi.png"},"ios":{"appstore":"unpackage/res/icons/1024x1024.png","ipad":{"app":"unpackage/res/icons/76x76.png","app@2x":"unpackage/res/icons/152x152.png","proapp@2x":"unpackage/res/icons/167x167.png","spotlight":"unpackage/res/icons/40x40.png","spotlight@2x":"unpackage/res/icons/80x80.png","settings":"unpackage/res/icons/29x29.png","settings@2x":"unpackage/res/icons/58x58.png","notification":"unpackage/res/icons/20x20.png","notification@2x":"unpackage/res/icons/40x40.png"},"iphone":{"app@2x":"unpackage/res/icons/120x120.png","app@3x":"unpackage/res/icons/180x180.png","spotlight@2x":"unpackage/res/icons/80x80.png","spotlight@3x":"unpackage/res/icons/120x120.png","settings@2x":"unpackage/res/icons/58x58.png","settings@3x":"unpackage/res/icons/87x87.png","notification@2x":"unpackage/res/icons/40x40.png","notification@3x":"unpackage/res/icons/60x60.png"},"prerendered":"false"}},"splashscreen":{"androidStyle":"default","iosStyle":"default"},"google":{"permissions":["<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-feature android:name=\"android.hardware.camera\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"],"packagename":"com.bitcooo","password":"owEUXhIlikr8dyWwHO6U9A==","aliasname":"jack501","keystore":"google-keystore","custompermissions":true},"apple":{"devices":"universal"},"plugins":{"ad":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}},"orientation":["portrait-primary"]},"allowsInlineMediaPlayback":true,"uni-app":{"compilerVersion":"3.2.12","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"launch_path":"__uniappview.html","adid":"127964190008"}} {"@platforms":["android","iPhone","iPad"],"id":"__UNI__1ECBEE1","name":"BITCOOO","version":{"name":"1.0","code":"100"},"description":"","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"render":"always","id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#fff"},"compatible":{"ignoreVersion":true},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"distribute":{"icons":{"android":{"hdpi":"icon-android-hdpi.png","xhdpi":"icon-android-xhdpi.png","xxhdpi":"icon-android-xxhdpi.png","xxxhdpi":"icon-android-xxxhdpi.png"},"ios":{"appstore":"unpackage/res/icons/1024x1024.png","ipad":{"app":"unpackage/res/icons/76x76.png","app@2x":"unpackage/res/icons/152x152.png","proapp@2x":"unpackage/res/icons/167x167.png","spotlight":"unpackage/res/icons/40x40.png","spotlight@2x":"unpackage/res/icons/80x80.png","settings":"unpackage/res/icons/29x29.png","settings@2x":"unpackage/res/icons/58x58.png","notification":"unpackage/res/icons/20x20.png","notification@2x":"unpackage/res/icons/40x40.png"},"iphone":{"app@2x":"unpackage/res/icons/120x120.png","app@3x":"unpackage/res/icons/180x180.png","spotlight@2x":"unpackage/res/icons/80x80.png","spotlight@3x":"unpackage/res/icons/120x120.png","settings@2x":"unpackage/res/icons/58x58.png","settings@3x":"unpackage/res/icons/87x87.png","notification@2x":"unpackage/res/icons/40x40.png","notification@3x":"unpackage/res/icons/60x60.png"},"prerendered":"false"}},"splashscreen":{"androidStyle":"default","iosStyle":"default","android":{"hdpi":"","xhdpi":"","xxhdpi":""}},"google":{"permissions":["<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-feature android:name=\"android.hardware.camera\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"],"packagename":"com.bitcooo","password":"owEUXhIlikr8dyWwHO6U9A==","aliasname":"jack501","keystore":"google-keystore","custompermissions":true},"apple":{"devices":"universal"},"plugins":{"ad":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}},"orientation":["portrait-primary"]},"allowsInlineMediaPlayback":true,"uni-app":{"compilerVersion":"3.2.12","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"launch_path":"__uniappview.html","adid":"127964190008"}}

BIN
unpackage/cache/wgt/__UNI__1ECBEE1/static/tongyonh/IconGroup.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 709 B

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
unpackage/cache/wgt/__UNI__1ECBEE1/static/tongyonh/arrow-up-left_1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 692 B

BIN
unpackage/cache/wgt/__UNI__1ECBEE1/static/tongyonh/copy_24px_2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 638 B

BIN
unpackage/cache/wgt/__UNI__1ECBEE1/static/tongyonh/img500.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
unpackage/cache/wgt/__UNI__1ECBEE1/static/tongyonh/lu.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
unpackage/cache/wgt/__UNI__1ECBEE1/static/tongyonh/[email protected]

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 B

BIN
unpackage/cache/wgt/__UNI__1ECBEE1/static/tongyonh/nft_icon2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 387 B

BIN
unpackage/cache/wgt/__UNI__1ECBEE1/static/tongyonh/search.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

BIN
unpackage/cache/wgt/__UNI__1ECBEE1/static/tongyonh/tether_usd.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

4
unpackage/dist/build/app-plus/app-config-service.js

File diff suppressed because one or more lines are too long

20
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/build/app-plus/manifest.json

@ -1 +1 @@
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__1ECBEE1","name":"BITCOOO","version":{"name":"1.0","code":"100"},"description":"","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"render":"always","id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#fff"},"compatible":{"ignoreVersion":true},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"distribute":{"icons":{"android":{"hdpi":"unpackage/res/icons/72x72.png","xhdpi":"unpackage/res/icons/96x96.png","xxhdpi":"unpackage/res/icons/144x144.png","xxxhdpi":"unpackage/res/icons/192x192.png"},"ios":{"appstore":"unpackage/res/icons/1024x1024.png","ipad":{"app":"unpackage/res/icons/76x76.png","app@2x":"unpackage/res/icons/152x152.png","notification":"unpackage/res/icons/20x20.png","notification@2x":"unpackage/res/icons/40x40.png","proapp@2x":"unpackage/res/icons/167x167.png","settings":"unpackage/res/icons/29x29.png","settings@2x":"unpackage/res/icons/58x58.png","spotlight":"unpackage/res/icons/40x40.png","spotlight@2x":"unpackage/res/icons/80x80.png"},"iphone":{"app@2x":"unpackage/res/icons/120x120.png","app@3x":"unpackage/res/icons/180x180.png","notification@2x":"unpackage/res/icons/40x40.png","notification@3x":"unpackage/res/icons/60x60.png","settings@2x":"unpackage/res/icons/58x58.png","settings@3x":"unpackage/res/icons/87x87.png","spotlight@2x":"unpackage/res/icons/80x80.png","spotlight@3x":"unpackage/res/icons/120x120.png"}}},"splashscreen":{"androidStyle":"default","iosStyle":"default"},"google":{"permissions":["<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-feature android:name=\"android.hardware.camera\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"]},"apple":{},"plugins":{"ad":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"allowsInlineMediaPlayback":true,"uni-app":{"compilerVersion":"3.2.12","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"launch_path":"__uniappview.html"}} {"@platforms":["android","iPhone","iPad"],"id":"__UNI__1ECBEE1","name":"BITCOOO","version":{"name":"1.0","code":"100"},"description":"","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"render":"always","id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#fff"},"compatible":{"ignoreVersion":true},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"distribute":{"icons":{"android":{"hdpi":"unpackage/res/icons/72x72.png","xhdpi":"unpackage/res/icons/96x96.png","xxhdpi":"unpackage/res/icons/144x144.png","xxxhdpi":"unpackage/res/icons/192x192.png"},"ios":{"appstore":"unpackage/res/icons/1024x1024.png","ipad":{"app":"unpackage/res/icons/76x76.png","app@2x":"unpackage/res/icons/152x152.png","notification":"unpackage/res/icons/20x20.png","notification@2x":"unpackage/res/icons/40x40.png","proapp@2x":"unpackage/res/icons/167x167.png","settings":"unpackage/res/icons/29x29.png","settings@2x":"unpackage/res/icons/58x58.png","spotlight":"unpackage/res/icons/40x40.png","spotlight@2x":"unpackage/res/icons/80x80.png"},"iphone":{"app@2x":"unpackage/res/icons/120x120.png","app@3x":"unpackage/res/icons/180x180.png","notification@2x":"unpackage/res/icons/40x40.png","notification@3x":"unpackage/res/icons/60x60.png","settings@2x":"unpackage/res/icons/58x58.png","settings@3x":"unpackage/res/icons/87x87.png","spotlight@2x":"unpackage/res/icons/80x80.png","spotlight@3x":"unpackage/res/icons/120x120.png"}}},"splashscreen":{"androidStyle":"default","iosStyle":"default","android":{"hdpi":"","xhdpi":"","xxhdpi":""}},"google":{"permissions":["<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-feature android:name=\"android.hardware.camera\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"]},"apple":{},"plugins":{"ad":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"allowsInlineMediaPlayback":true,"uni-app":{"compilerVersion":"3.2.12","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"launch_path":"__uniappview.html"}}

BIN
unpackage/dist/build/app-plus/static/tongyonh/IconGroup.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 709 B

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
unpackage/dist/build/app-plus/static/tongyonh/arrow-up-left_1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 692 B

BIN
unpackage/dist/build/app-plus/static/tongyonh/copy_24px_2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 638 B

BIN
unpackage/dist/build/app-plus/static/tongyonh/img500.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
unpackage/dist/build/app-plus/static/tongyonh/lu.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
unpackage/dist/build/app-plus/static/tongyonh/[email protected]

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 B

BIN
unpackage/dist/build/app-plus/static/tongyonh/nft_icon2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 387 B

BIN
unpackage/dist/build/app-plus/static/tongyonh/search.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

BIN
unpackage/dist/build/app-plus/static/tongyonh/tether_usd.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
unpackage/dist/build/tongyonh/chevron_right_24px.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 432 B

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

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

2
unpackage/dist/dev/app-plus/manifest.json

@ -1 +1 @@
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__1ECBEE1","name":"BITCOOO","version":{"name":"1.0","code":"100"},"description":"","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"render":"always","id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#fff"},"compatible":{"ignoreVersion":true},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"distribute":{"icons":{"android":{"hdpi":"unpackage/res/icons/72x72.png","xhdpi":"unpackage/res/icons/96x96.png","xxhdpi":"unpackage/res/icons/144x144.png","xxxhdpi":"unpackage/res/icons/192x192.png"},"ios":{"appstore":"unpackage/res/icons/1024x1024.png","ipad":{"app":"unpackage/res/icons/76x76.png","app@2x":"unpackage/res/icons/152x152.png","notification":"unpackage/res/icons/20x20.png","notification@2x":"unpackage/res/icons/40x40.png","proapp@2x":"unpackage/res/icons/167x167.png","settings":"unpackage/res/icons/29x29.png","settings@2x":"unpackage/res/icons/58x58.png","spotlight":"unpackage/res/icons/40x40.png","spotlight@2x":"unpackage/res/icons/80x80.png"},"iphone":{"app@2x":"unpackage/res/icons/120x120.png","app@3x":"unpackage/res/icons/180x180.png","notification@2x":"unpackage/res/icons/40x40.png","notification@3x":"unpackage/res/icons/60x60.png","settings@2x":"unpackage/res/icons/58x58.png","settings@3x":"unpackage/res/icons/87x87.png","spotlight@2x":"unpackage/res/icons/80x80.png","spotlight@3x":"unpackage/res/icons/120x120.png"}}},"splashscreen":{"androidStyle":"default","iosStyle":"default"},"google":{"permissions":["<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-feature android:name=\"android.hardware.camera\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"]},"apple":{},"plugins":{"ad":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"allowsInlineMediaPlayback":true,"uni-app":{"compilerVersion":"3.2.12","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"launch_path":"__uniappview.html"}} {"@platforms":["android","iPhone","iPad"],"id":"__UNI__1ECBEE1","name":"BITCOOO","version":{"name":"1.0","code":"100"},"description":"","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"render":"always","id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#fff"},"compatible":{"ignoreVersion":true},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"distribute":{"icons":{"android":{"hdpi":"unpackage/res/icons/72x72.png","xhdpi":"unpackage/res/icons/96x96.png","xxhdpi":"unpackage/res/icons/144x144.png","xxxhdpi":"unpackage/res/icons/192x192.png"},"ios":{"appstore":"unpackage/res/icons/1024x1024.png","ipad":{"app":"unpackage/res/icons/76x76.png","app@2x":"unpackage/res/icons/152x152.png","notification":"unpackage/res/icons/20x20.png","notification@2x":"unpackage/res/icons/40x40.png","proapp@2x":"unpackage/res/icons/167x167.png","settings":"unpackage/res/icons/29x29.png","settings@2x":"unpackage/res/icons/58x58.png","spotlight":"unpackage/res/icons/40x40.png","spotlight@2x":"unpackage/res/icons/80x80.png"},"iphone":{"app@2x":"unpackage/res/icons/120x120.png","app@3x":"unpackage/res/icons/180x180.png","notification@2x":"unpackage/res/icons/40x40.png","notification@3x":"unpackage/res/icons/60x60.png","settings@2x":"unpackage/res/icons/58x58.png","settings@3x":"unpackage/res/icons/87x87.png","spotlight@2x":"unpackage/res/icons/80x80.png","spotlight@3x":"unpackage/res/icons/120x120.png"}}},"splashscreen":{"androidStyle":"default","iosStyle":"default","android":{"hdpi":"","xhdpi":"","xxhdpi":""}},"google":{"permissions":["<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-feature android:name=\"android.hardware.camera\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"]},"apple":{},"plugins":{"ad":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"allowsInlineMediaPlayback":true,"uni-app":{"compilerVersion":"3.2.12","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"launch_path":"__uniappview.html"}}

BIN
unpackage/dist/dev/app-plus/static/tongyonh/img500.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
unpackage/dist/dev/app-plus/static/tongyonh/[email protected]

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 B

BIN
unpackage/dist/dev/app-plus/static/tongyonh/nft_icon2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 387 B

BIN
unpackage/dist/dev/app-plus/static/tongyonh/search.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

BIN
unpackage/dist/dev/app-plus/static/tongyonh/tether_usd.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
unpackage/dist/dev/tongyonh/chevron_right_24px.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 432 B

BIN
unpackage/release/apk/__UNI__1ECBEE1__20211112182305.apk

Binary file not shown.

BIN
unpackage/release/apk/__UNI__1ECBEE1__20211112183303.apk

Binary file not shown.

BIN
unpackage/release/apk/__UNI__1ECBEE1__20211112190426.apk

Binary file not shown.

BIN
unpackage/release/apk/__UNI__1ECBEE1__20211112222751.apk

Binary file not shown.

BIN
unpackage/release/apk/__UNI__1ECBEE1__20211112233216.apk

Binary file not shown.

BIN
unpackage/release/apk/__UNI__1ECBEE1__20211112234843.apk

Binary file not shown.

BIN
unpackage/release/apk/__UNI__1ECBEE1__20211113010342.apk

Binary file not shown.

BIN
unpackage/release/apk/__UNI__1ECBEE1__20211113012615.apk

Binary file not shown.

114
utils/EthUtil.js

@ -1,27 +1,28 @@
import abi from './EthAbi.js' import abi from 'utils/EthAbi.js'
const Web3 = require('web3'); const Web3 = require('web3');
var Tx = require('ethereumjs-tx'); const Tx = require('ethereumjs-tx');
let web3; let web3;
web3 = new Web3(new Web3.providers.HttpProvider("https://http-mainnet-node.huobichain.com")); // let tx;
web3 = new Web3();
let eth = { let eth = {
//获取主币eth余额 // //获取主币eth余额
getBalance: async function(address, type) { // getBalance: async function(address, type) {
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)
var myContract = new web3.eth.Contract(abi, contract, { // var myContract = new web3.eth.Contract(abi, contract, {
from: address // from: address
}); // });
var decimals = await myContract.methods.decimals().call(); // var decimals = await myContract.methods.decimals().call();
var balance = await myContract.methods.balanceOf(address).call(); // var balance = await myContract.methods.balanceOf(address).call();
return Number(balance) / Math.pow(10, decimals); // return Number(balance) / Math.pow(10, decimals);
}, // },
getGas: async function() { getGas: async function() {
const gasPrice = await web3.eth.getGasPrice().then((v) => { const gasPrice = await web3.eth.getGasPrice().then((v) => {
return v return v
@ -29,6 +30,77 @@ let eth = {
return Number(nubmerJs.strip(gas * gasPrice / 10 ** 18).toFixed(6)) return Number(nubmerJs.strip(gas * gasPrice / 10 ** 18).toFixed(6))
}, },
//获取主币eth余额
getBalance: function(address,success) {
const data = {
'jsonrpc': '2.0',
'id': '1',
'method': 'eth_getBalance',
'params': [address, "latest"]
};
uni.request({
url: 'https://mainnet.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161', //仅为示例,并非真实接口地址。
method: 'POST',
data: data,
dataType: 'json',
success: (res) => {
console.log()
let balance = Number(web3.utils.hexToNumberString(res['data']['result'])) / Math.pow(10, 18)
console.log(balance,45465465)
success(balance)
}
});
let result =
console.log(result)
try {
let web3 = new Web3();
return balance
} catch (e) {
return 0;
}
},
addPreZero: function(num) {
let t = (num + '').length,
s = '';
for (let i = 0; i < 64 - t; i++) {
s += '0';
}
return s + num;
},
// 获取bms,bmdt,usdt/erc余额
getTokenBalance: function(address, contract,success) {
const data = {
'jsonrpc': '2.0',
'id': '1',
'method': 'eth_call',
'params': [{
"data": '0x70a08231' + this.addPreZero(address.replace('0x', '')),
"to": contract,
}, "latest"]
};
uni.request({
url: 'https://mainnet.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161', //仅为示例,并非真实接口地址。
method: 'POST',
data: data,
dataType: 'json',
success: (res) => {
console.log(res,45454)
let balance = Number(web3.utils.hexToNumberString(res['data']['result'])) / Math.pow(10, 18)
console.log(balance,45454)
success(balance)
}
});
},
transaction: async function(fromAddress, toAddress, value, privateKey, success) { transaction: async function(fromAddress, toAddress, value, privateKey, success) {
var nonce = await web3.eth.getTransactionCount(fromAddress); var nonce = await web3.eth.getTransactionCount(fromAddress);
@ -71,7 +143,7 @@ let eth = {
if (!err) { if (!err) {
success(hash, undefined); success(hash, undefined);
} else { } else {
console.log(err,789798) console.log(err, 789798)
success(undefined, err); success(undefined, err);
} }
}); });

46
utils/TokenUtil.js

@ -100,24 +100,6 @@ let token = {
initialWallet:function(mnemonic,password){ initialWallet:function(mnemonic,password){
var btcInfo = new Object();
btcInfo.name = "BTC";
btcInfo.xname = "Bitcoin";
btcInfo.iconB=require('@/static/tongyonh/bye.png')
var ethInfo = new Object();
ethInfo.name = "ETH";
ethInfo.xname = "Ethereum";
ethInfo.iconB=require('@/static/tongyonh/Frame3299.png')
var troInfo = new Object();
troInfo.name = "TRX";
troInfo.xname = "Tron";
troInfo.iconB=require('@/static/tongyonh/tron1.png')
let btc=this.generateBtc(mnemonic); let btc=this.generateBtc(mnemonic);
btc.mnemonic=mnemonic; btc.mnemonic=mnemonic;
btc.password=password; btc.password=password;
@ -132,19 +114,39 @@ let token = {
eth.mnemonic=mnemonic; eth.mnemonic=mnemonic;
eth.coinList=[{ eth.coinList=[{
name:"ETH", name:"ETH",
name2:"ETH", name2:"ETH",
xname:'Ethereum', xname:'Ethereum',
icon:require('@/static/tongyonh/Frame3299.png') icon:require('@/static/tongyonh/Frame3299.png')
}]; },
{
name:"USDT",
name2:"ERC20-USDT",
xname:'Tether USD',
contractAddress:'0xdac17f958d2ee523a2206206994597c13d831ec7',
icon:require('@/static/tongyonh/img500.png')
}
];
console.log(eth.coinList,4444)
console.log(eth,2224)
let tron=this.generateTron(mnemonic); let tron=this.generateTron(mnemonic);
tron.password=password; tron.password=password;
tron.mnemonic=mnemonic; tron.mnemonic=mnemonic;
tron.coinList=[{ tron.coinList=[
{
name:"TRX", name:"TRX",
name2:"TRX", name2:"TRX",
xname:'TRON', xname:'TRON',
icon:require('@/static/tongyonh/tron1.png') icon:require('@/static/tongyonh/tron1.png')
}]; },
{
name:"USDT",
name2:"TRC20-USDT",
xname:'Tether USD',
contractAddress:'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t',
icon:require('@/static/tongyonh/tether_usd.png')
},
];
let wallrtInfo={ let wallrtInfo={
"BTC":[ "BTC":[
btc btc

4
utils/api.js

@ -14,6 +14,10 @@ addressbtc: (params) => Vue.prototype.$axios.get('/btc/api/address/btc/'+params.
// 拿btc余额 // 拿btc余额
getBtcBalance: () => Vue.prototype.$axios.get('/btc/api/address/balancetrend/btc/1AgypUbAc4joKjsiVd66mtemwXgFKXWa1R'), getBtcBalance: () => Vue.prototype.$axios.get('/btc/api/address/balancetrend/btc/1AgypUbAc4joKjsiVd66mtemwXgFKXWa1R'),
getOtherCoin: (params) => Vue.prototype.$axios.get('/api/contract/getContractInfoList/ETH'), getOtherCoin: (params) => Vue.prototype.$axios.get('/api/contract/getContractInfoList/ETH'),
addressOther: (params) => Vue.prototype.$axios.get('/eth/api/eth/address/tokentrans/'+params.address2+'/'+params.address+'/'+params.pageNum+'/'+params.pageSize),
// 质押地址 // 质押地址
// getPledgeAddress: (params) => Vue.prototype.$axios.get('/api/identity/getPledgeAddress/'+params), // getPledgeAddress: (params) => Vue.prototype.$axios.get('/api/identity/getPledgeAddress/'+params),

Loading…
Cancel
Save