鸿蒙点击问题
This commit is contained in:
parent
a8c0f76d2b
commit
34fa2cb21b
|
|
@ -52,7 +52,9 @@
|
|||
>
|
||||
<view
|
||||
class="wallet-button wallet-button--primary"
|
||||
@click="currentWallet ? openEditDialog() : saveCurrentAddress()"
|
||||
@touchend.stop.prevent="handlePrimaryAction"
|
||||
@tap.stop="handlePrimaryAction"
|
||||
@click.stop="handlePrimaryAction"
|
||||
>
|
||||
{{ currentWallet ? "修改钱包地址" : savingAddress ? "保存中..." : "保存" }}
|
||||
</view>
|
||||
|
|
@ -164,6 +166,7 @@ export default {
|
|||
successTipVisible: false,
|
||||
successTipText: "",
|
||||
successTipTimer: null,
|
||||
primaryActionAt: 0,
|
||||
walletFlowImages: [
|
||||
"https://imgs.agrimedia.cn/bm-bmt/wallect-1.png",
|
||||
"https://imgs.agrimedia.cn/bm-bmt/wallect-2.png",
|
||||
|
|
@ -259,8 +262,27 @@ export default {
|
|||
current: currentUrl,
|
||||
});
|
||||
},
|
||||
handlePrimaryAction() {
|
||||
const now = Date.now();
|
||||
if (now - this.primaryActionAt < 350) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.primaryActionAt = now;
|
||||
|
||||
if (this.currentWallet) {
|
||||
this.openEditDialog();
|
||||
return;
|
||||
}
|
||||
|
||||
this.saveCurrentAddress();
|
||||
},
|
||||
openEditDialog() {
|
||||
if (!this.currentWallet) {
|
||||
uni.showToast({
|
||||
title: "钱包地址加载中,请稍后",
|
||||
icon: "none",
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>白马交易所</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
|
||||
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/bmt/static/index.883130ca.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/bmt/static/js/chunk-vendors.a58c62f3.js></script><script src=/bmt/static/js/index.3308b635.js></script></body></html>
|
||||
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/bmt/static/index.883130ca.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/bmt/static/js/chunk-vendors.a58c62f3.js></script><script src=/bmt/static/js/index.8b3c4206.js></script></body></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue