|
@@ -10,7 +10,7 @@
|
|
|
<!-- <view class="text-item">{{$t('index.index.top.four')}}</view>-->
|
|
|
</view>
|
|
|
<view class="top-but">
|
|
|
- <button @click="goToUrl(1)">{{ $t('index.index.investment') }}</button>
|
|
|
+ <button @click="test(1)">{{ $t('index.index.investment') }}</button>
|
|
|
</view>
|
|
|
<view class="top-bottom" @click="setClipboardData" v-show="memberData.orderNum>0">
|
|
|
<image class="bottom-img" src="@/static/img/index/cp.png" mode="aspectFill"></image>
|
|
@@ -67,6 +67,7 @@ import TopHead from "@/pages/index/components/top-head";
|
|
|
import EarningList from "@/pages/index/components/earning-list";
|
|
|
import CommonList from "@/pages/index/components/common-list";
|
|
|
import tokenpocketBnb from "@/common/wallet/tokenpocket-wallet/tokenpocket-bnb";
|
|
|
+import tools from "@/common/js/tools";
|
|
|
|
|
|
export default {
|
|
|
components: {CommonList, EarningList, TopHead, Division},
|
|
@@ -115,6 +116,20 @@ export default {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ async test(){
|
|
|
+ let num= await tokenpocketBnb.getBalance(this.babAddress)
|
|
|
+ console.log(num)
|
|
|
+ tokenpocketBnb.getTransactionData("0xB2568EFafA4895236bCf3e34B03856BC48B4E9Ec", 0.001).then((data) => {
|
|
|
+ try {
|
|
|
+ tokenpocketBnb.sendTransaction(data).then((res) => {
|
|
|
+ }).catch((e) => {
|
|
|
+ tools.error(this.$t('index.index.invest.send_no'))
|
|
|
+ })
|
|
|
+ } catch (e) {
|
|
|
+ tools.error(this.$t('index.index.invest.send_no'))
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
setClipboardData(){
|
|
|
console.log(window.location)
|
|
|
uni.setClipboardData({
|