From ae768f8b8a6910550708475c3cca211e3c74c139 Mon Sep 17 00:00:00 2001 From: queenwuli <942534046@qq.com> Date: Thu, 24 Mar 2022 15:54:24 +0800 Subject: [PATCH] gx --- src/pages/index/index.vue | 159 ++++++++++++++++++++++++++++++++++++++++------------ 1 files changed, 121 insertions(+), 38 deletions(-) diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 3a9265d..0c062a5 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -57,27 +57,18 @@ </div> </van-overlay> <van-overlay :show="isShowWalletModal" @click="isShowWalletModal = false" class="wrapper"> - <div class="block" @click.stop> + <div class="walletconnect-modal-wrap" @click.stop> <img class="close-icon" @click="isShowWalletModal = false" src="../../assets/images/close-icon.png"> <div class="wallet-box"> + <div class="sub-title"> + <span>移动</span> + </div> <p class="title">选择你的钱包</p> - <div class="wallet-warp flex align-center justify-between"> - <div> - <img src="../../assets/images/icon8.png"> - <p>coinbase</p> - </div> - <div> - <img src="../../assets/images/icon8.png"> - <p>coinbase</p> - </div> - <div> - <img src="../../assets/images/icon8.png"> - <p>coinbase</p> - </div> - <div> - <img src="../../assets/images/icon8.png"> - <p>coinbase</p> - </div> + <div class="wallet-warp flex flex-wrap align-center justify-between"> + <a :href="item.link" target="_blank" v-for="item in dappList" class="item"> + <div class="icon" :style="{background: 'url(' + item.imgUrl +')'}"></div> + <p class="text">{{item.name}}</p> + </a> </div> </div> </div> @@ -171,7 +162,67 @@ walletAddress, //地址 hasApprove, //是否授权 - accountRef + accountRef, + dappList: [{ + name: 'TronLink', + link: 'https://www.tronlink.org/', + imgUrl: 'https://qny.ohmj.org/kylin/wallet/Tronlink.png' + }, + { + name: 'coinbase', + link: 'https://go.cb-w.com/MVotZpePHmb', + imgUrl: 'https://qny.ohmj.org/kylin/wallet/Coinbase.jpg' + }, + { + name: 'Trust', + link: 'https://link.trustwallet.com/open_url?coin_id=60&url=https://mining02.com/#/', + imgUrl: 'https://qny.ohmj.org/kylin/wallet/Trust.jpeg' + }, + { + name: 'MetaMask', + link: 'https://metamask.app.link/dapp/mining02.com', + imgUrl: 'https://qny.ohmj.org/kylin/wallet/MetaMask.jpeg' + }, + { + name: 'imToken', + link: 'imtokenv2://navigate?screen=DappView&url=https://mining02.com/#/', + imgUrl: 'https://qny.ohmj.org/kylin/wallet/ImToken.jpeg' + }, + { + name: 'TokenPocket', + link: '', + imgUrl: 'https://qny.ohmj.org/kylin/wallet/TokenPocket.jpeg' + }, + { + name: 'Gnosis Safe', + link: 'https://gnosis-safe.io//wc?uri=wc%3A53685339-13ee-445b-a359-c6bd9d55af1e%401%3Fbridge%3Dhttps%253A%252F%252Fe.bridge.walletconnect.org%26key%3D5f18973ce1f748013d7eed1f64de989cc5502bfe999479cae7ed2eceb83f918bhttps://mining02.com/#/', + imgUrl: 'https://qny.ohmj.org/kylin/wallet/Gnosis.jpeg' + }, + { + name: 'Crypto.com', + link: 'https://wallet.crypto.com/wc?uri=wc%3A53685339-13ee-445b-a359-c6bd9d55af1e%401%3Fbridge%3Dhttps%253A%252F%252Fe.bridge.walletconnect.org%26key%3D5f18973ce1f748013d7eed1f64de989cc5502bfe999479cae7ed2eceb83f918bhttps://mining02.com/#/', + imgUrl: 'https://qny.ohmj.org/kylin/wallet/Crypto.jpeg' + }, + { + name: 'Pillar', + link: 'pillarwallet://wc?uri=wc%3A53685339-13ee-445b-a359-c6bd9d55af1e%401%3Fbridge%3Dhttps%253A%252F%252Fe.bridge.walletconnect.org%26key%3D5f18973ce1f748013d7eed1f64de989cc5502bfe999479cae7ed2eceb83f918bhttps://mining02.com/#/', + imgUrl: 'https://qny.ohmj.org/kylin/wallet/Pillar.jpeg' + }, + { + name: 'Argent', + link: 'https://argent.link/app/wc?uri=wc%3A53685339-13ee-445b-a359-c6bd9d55af1e%401%3Fbridge%3Dhttps%253A%252F%252Fe.bridge.walletconnect.org%26key%3D5f18973ce1f748013d7eed1f64de989cc5502bfe999479cae7ed2eceb83f918bhttps://mining02.com/#/', + imgUrl: 'https://qny.ohmj.org/kylin/wallet/Argent.jpeg' + }, + { + name: 'MathWallet', + link: 'mathwallet://mathwallet.org?action=link&value=https://mining02.com/#/', + imgUrl: 'https://qny.ohmj.org/kylin/wallet/MathWallet.jpeg' + }, + { + name: 'BitPay', + link: 'https://link.bitpay.com/wallet/wc?uri=wc%3A53685339-13ee-445b-a359-c6bd9d55af1e%401%3Fbridge%3Dhttps%253A%252F%252Fe.bridge.walletconnect.org%26key%3D5f18973ce1f748013d7eed1f64de989cc5502bfe999479cae7ed2eceb83f918bhttps://mining02.com/#/', + imgUrl: 'https://qny.ohmj.org/kylin/wallet/BitPay.jpeg' + }] }; }, methods: { @@ -418,30 +469,62 @@ color: #080808; font-weight: bold; } -.wallet-box{ - padding: 20px; + +.walletconnect-modal-wrap{ + position: relative; + width: 83%; + background: #ffffff; + border-radius: 48px; + box-shadow: 0 10px 50px 5px rgb(0 0 0 / 40%); + padding: 24px 24px 22px; } -.wallet-box p{ - margin: 0; -} -.wallet-box .title{ +.walletconnect-modal-wrap .title{ font-size: 32px; - color: #080808; - font-weight: bold; + color: rgba(60, 66, 82, 0.6); + font-weight: 600; + margin: 20px 0 40px 0; } -.wallet-warp{ - box-sizing: border-box; - margin-top: 80px; +.walletconnect-modal-wrap .sub-title{ + width: 79%; + margin: 0 auto; + background: #d4d5d9; + padding: 8px; + border-radius: 16px; + margin-bottom: 36px; } -.wallet-warp img{ - width: 88px; - height: 88px; - border-radius: 20px; -} -.wallet-warp p{ +.walletconnect-modal-wrap .sub-title>span{ + display: block; font-size: 24px; - color: #080808; - margin-top: 15px; + background: #ffffff; + padding: 8px; + font-weight: 600; + border-radius: 10px; +} +.walletconnect-modal-wrap .wallet-box{ + padding: 24px 24px 22px; +} +.walletconnect-modal-wrap .wallet-warp{ + margin: 50px 0 20px; +} +.walletconnect-modal-wrap .wallet-warp .item{ + width: 25%; + padding: 16px 0; + box-sizing: border-box; +} +.walletconnect-modal-wrap .wallet-warp .icon{ + display: block; + margin: 0 auto; + width: 84px; + height: 84px; + border-radius: 16px; + background-size: cover!important; + box-shadow: 0 0.10667rem 0.32rem 0 rgb(37 41 46 / 25%); +} +.walletconnect-modal-wrap .wallet-warp .text{ + color: #424952; + font-weight: 600; + margin: 16px 0 0; + font-size: 24px; } .address{ width: 100px; -- Gitblit v1.9.1