|
@@ -0,0 +1,280 @@
|
|
|
+<template>
|
|
|
+ <div class="dialog">
|
|
|
+ <!-- home -->
|
|
|
+ <div class="area-title">
|
|
|
+ <img :src="require('@/assets/svg/icon-back.svg')" @click="clickBack" />
|
|
|
+ <div class="title">Payment</div>
|
|
|
+ </div>
|
|
|
+ <!-- 内容 -->
|
|
|
+ <div class="area-content">
|
|
|
+ <div class="left">
|
|
|
+ <img :src="require('@/assets/img/img-box5.png')" alt="">
|
|
|
+ <div class="tip">
|
|
|
+ <span>Mystery box*1</span>
|
|
|
+ <span>
|
|
|
+ <img src="" alt="">
|
|
|
+ 10
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="right">
|
|
|
+ <div class="card-content">
|
|
|
+ <div class="card-title">
|
|
|
+ <img class="img" :src="require('@/assets/subject/top-01.svg')" />
|
|
|
+ <div class="font">Deposit to Send Giveaway</div>
|
|
|
+ </div>
|
|
|
+ <top-up2 :asyncIng="false" :currentCurrencyInfo="{}" @topUpDone="topUpDone">
|
|
|
+ </top-up2>
|
|
|
+
|
|
|
+ <div class="card-title">
|
|
|
+ <img class="img" :src="require('@/assets/subject/top-02.svg')" />
|
|
|
+ <div class="font">Wait for the amount to arrive</div>
|
|
|
+ </div>
|
|
|
+ <preview-balance></preview-balance>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 底部 -->
|
|
|
+ <div class="footer">
|
|
|
+ <!-- <btn-loading></btn-loading> -->
|
|
|
+ <div class="pay" @click="clickPlay">Pay 10 USDT</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+<script setup >
|
|
|
+import router from "@/router/buy-nft.js";
|
|
|
+import { ref } from 'vue'
|
|
|
+import topUp2 from "@/view/iframe/publish/components/top-up2.vue";
|
|
|
+import PreviewBalance from "@/view/components/preview-balance.vue";
|
|
|
+import BtnLoading from '../components/btn-loading.vue'
|
|
|
+let currentCurrencyInfo = ref({
|
|
|
+ currencyCode: "",
|
|
|
+ currencyName: "",
|
|
|
+ balance: "",
|
|
|
+ currencyType: "",
|
|
|
+ iconPath: "",
|
|
|
+ minAmount: "",
|
|
|
+ tokenChain: "",
|
|
|
+ tokenSymbol: "",
|
|
|
+ usdEstimateBalance: ""
|
|
|
+});
|
|
|
+
|
|
|
+const clickBack = () => {
|
|
|
+ router.back()
|
|
|
+}
|
|
|
+const clickPlay = () => {
|
|
|
+ router.push({ path: '/open_box' });
|
|
|
+}
|
|
|
+
|
|
|
+// 刷新按钮旋转
|
|
|
+let refreshRotate = ref(false);
|
|
|
+
|
|
|
+/**
|
|
|
+ * 同步链上交易
|
|
|
+ */
|
|
|
+const asyncTokenRechRecord = (cb) => {
|
|
|
+ syncChainTokenRechargeRecord({
|
|
|
+ params: {
|
|
|
+ currencyCode: currentCurrencyInfo.value.currencyCode
|
|
|
+ }
|
|
|
+ }).then(res => {
|
|
|
+ cb && cb(res)
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+</script>
|
|
|
+<style lang="scss" scoped>
|
|
|
+.dialog {
|
|
|
+ background: #fff;
|
|
|
+ border-radius: 25px;
|
|
|
+ max-width: 90%;
|
|
|
+ min-width: 800px;
|
|
|
+ height: 90%;
|
|
|
+ z-index: 23;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+
|
|
|
+
|
|
|
+ .area-title {
|
|
|
+ width: 100%;
|
|
|
+ height: 48px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ border-bottom: 1px solid #D9D9D9;
|
|
|
+ font-weight: 500;
|
|
|
+ font-size: 16px;
|
|
|
+ letter-spacing: 0.3px;
|
|
|
+ color: #000000;
|
|
|
+
|
|
|
+ img {
|
|
|
+ width: 24p;
|
|
|
+ height: 24px;
|
|
|
+ margin-left: 14px;
|
|
|
+ margin-right: 12px;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .area-content {
|
|
|
+ display: flex;
|
|
|
+ overflow-y: auto;
|
|
|
+
|
|
|
+ .left {
|
|
|
+ width: 400px;
|
|
|
+ margin: 40px 56px 0 56px;
|
|
|
+
|
|
|
+ img {
|
|
|
+ max-width: 400px;
|
|
|
+ max-height: 400px;
|
|
|
+ width:100%;
|
|
|
+ height: auto;
|
|
|
+ }
|
|
|
+
|
|
|
+ .tip {
|
|
|
+ margin-top: 15px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+
|
|
|
+ img {
|
|
|
+ width: 14px;
|
|
|
+ height: 14px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .right {
|
|
|
+ margin: 30px 56px 0px 30px;
|
|
|
+
|
|
|
+ .card-content {
|
|
|
+ float: right;
|
|
|
+ width: 430px;
|
|
|
+
|
|
|
+ .card-title {
|
|
|
+ height: 32px;
|
|
|
+
|
|
|
+ .img {
|
|
|
+ float: left;
|
|
|
+ width: 20px;
|
|
|
+ height: 20px;
|
|
|
+ margin-right: 8px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .font {
|
|
|
+ float: left;
|
|
|
+ font-size: 17px;
|
|
|
+ font-weight: 500;
|
|
|
+
|
|
|
+ span {
|
|
|
+ color: #0091e9;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ .card-list {
|
|
|
+ padding: 20px;
|
|
|
+ border-radius: 20px;
|
|
|
+ border: 1px solid #E6E6E6;
|
|
|
+
|
|
|
+ .item {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ height: 47px;
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 500;
|
|
|
+ box-shadow: inset 0px -1px 0px #EAEAEA;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .pay {
|
|
|
+ width: 200px;
|
|
|
+ height: 50px;
|
|
|
+ font-weight: 700;
|
|
|
+ font-size: 18px;
|
|
|
+ margin-right: 30px;
|
|
|
+ color: #FFFFFF;
|
|
|
+ background: #1D9BF0;
|
|
|
+ border-radius: 10000px;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 50px;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+
|
|
|
+ .footer {
|
|
|
+ border-top: 1px solid #D9D9D9;
|
|
|
+ height: 80px;
|
|
|
+ width: 100%;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: flex-end;
|
|
|
+ position: relative;
|
|
|
+
|
|
|
+ .sold {
|
|
|
+ position: absolute;
|
|
|
+ left: 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .limit {
|
|
|
+ color: #AF934E;
|
|
|
+ margin-right: 25px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .buy5 {
|
|
|
+ border: 1px solid #1D9BF0;
|
|
|
+ background: rgba(29, 155, 240, 0.01);
|
|
|
+ border-radius: 100px;
|
|
|
+ color: #1D9BF0;
|
|
|
+ width: 217px;
|
|
|
+ height: 50px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ padding: 0 15px 0 20px;
|
|
|
+ font-weight: 700;
|
|
|
+ font-size: 18px;
|
|
|
+ cursor: pointer;
|
|
|
+ margin-right: 12px;
|
|
|
+
|
|
|
+ .off {
|
|
|
+ color: #AF934E;
|
|
|
+ font-weight: 700;
|
|
|
+ font-size: 14px;
|
|
|
+
|
|
|
+ letter-spacing: 0.3px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .usdt {
|
|
|
+ color: #1D9BF0;
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 700;
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .buy1 {
|
|
|
+ cursor: pointer;
|
|
|
+ background: #1D9BF0;
|
|
|
+ color: #fff;
|
|
|
+ border-radius: 100px;
|
|
|
+ width: 217px;
|
|
|
+ height: 50px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ font-size: 18px;
|
|
|
+ font-weight: 700;
|
|
|
+ justify-content: space-between;
|
|
|
+ padding: 0 15px 0 20px;
|
|
|
+ margin-right: 25px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|