Browse Source

复制方法提交

master
j1ack 2 years ago
parent
commit
cbe6493f5b
  1. 1
      component/header.vue
  2. 4
      index.html
  3. 28
      pages/index/index.vue
  4. 1
      utils/language/en_US.js
  5. 2
      utils/language/zh_TW.js

1
component/header.vue

@ -60,6 +60,7 @@
uni.setStorageSync('current', this.current)
this.isShowLang = false
this.i++
window.location.href=''
},
showLang() {
this.i++

4
index.html

@ -143,10 +143,10 @@
<link rel="stylesheet" href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css" />
<link rel="icon" href="./static/images/logo2.png" />
<script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
<!-- <script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
<script>
var vConsole = new window.VConsole();
</script>
</script> -->
</head>
<body>

28
pages/index/index.vue

@ -93,7 +93,9 @@
} else {
this.form.supAddress = '0x622d7b79a904e00e5fcab06396ff009e441f0186'
}
this.init()
setTimeout(() => {
this.init()
}, 500)
},
onReachBottom() {
@ -103,17 +105,17 @@
methods: {
//
onCopy(v) {
uni.setClipboardData({
data: v,
success: () => {
uni.showToast({
title: 'success',
icon: 'none',
})
}
})
uni.setClipboardData({
data: v,
success: () => {
uni.$u.toast('success')
}
})
},
init() {
if (!web3x.hasRuntime()) {
uni.$u.toast(this.$t("tabBar").nosupport)
}
web3x.connectViaInPage()
.then(res => {
this.form.address = web3x.selectedAddress
@ -157,6 +159,8 @@
web3x.ippt.$creatCode(this.form.supAddress, web3x
.selectedAddress)
uni.hideLoading()
}).catch(() => {
uni.hideLoading()
})
} else {
web3x.usdt.$approve(ipptAddress, 0)
@ -172,12 +176,12 @@
web3x.ippt.$creatCode(this.form.supAddress, web3x
.selectedAddress)
uni.hideLoading()
}).catch(() => {
uni.hideLoading()
})
})
}
}
// USDT IPPT ( IPPT )
// web3x.usdt.approveMAX("0x622d7b79a904e00e5fcab06396ff009e441f0186")
// .on("transactionHash", async (receipt) => {

1
utils/language/en_US.js

@ -12,6 +12,7 @@ export default {
we: 'We believe that through a new mining plan, the ippswap fund will become a more prosperous and active community, bringing more opportunities and benefits to all participants. Welcome to join us! Thank you for your support and trust.',
ji: 'ippswap Foundation',
empty:'Inviter address is empty',
nosupport:'The current environment does not support',
},
}

2
utils/language/zh_TW.js

@ -12,7 +12,7 @@ export default {
we: '我們相信,通過全新的挖礦計畫,ippswap基金將成為更繁榮、活躍的社區,為所有參與者帶來更多機會和福利。歡迎加入我們!謝謝大家的支持和信任。',
ji: 'ippswap基金會',
empty:'邀請人地址為空',
nosupport:'當前環境不支持',
},
}

Loading…
Cancel
Save