|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div class="dialog">
|
|
|
+ <div class="dialog" :style="{'height': dialogStyle.height + 'px'}">
|
|
|
<!-- home -->
|
|
|
<div class="area-title">
|
|
|
<img :src="require('@/assets/svg/icon-close.svg')" @click="clickClose" />
|
|
@@ -87,6 +87,9 @@ import BtnLoading from '../components/btn-loading.vue'
|
|
|
import { getQueryString } from "@/uilts/help";
|
|
|
let pay_info = inject('pay_info');
|
|
|
const router = useRouter()
|
|
|
+let dialogStyle = reactive({
|
|
|
+ height: '800'
|
|
|
+})
|
|
|
let state = reactive({
|
|
|
data: {
|
|
|
salePlans: [
|
|
@@ -118,7 +121,19 @@ const clickJump = (item) => {
|
|
|
pay_info.home.sale_plan = item
|
|
|
router.push({ path: '/pay' });
|
|
|
}
|
|
|
+
|
|
|
+const setDialogStyle = () => {
|
|
|
+ let clientHeight = window.innerHeight;
|
|
|
+ if(clientHeight >= 840) {
|
|
|
+ dialogStyle.height = 800;
|
|
|
+ } else {
|
|
|
+ dialogStyle.height = clientHeight - 40;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
onMounted(() => {
|
|
|
+ setDialogStyle();
|
|
|
+
|
|
|
let nft_project_Id = router.currentRoute.value.query.nftProjectId
|
|
|
let nft_group_Id = router.currentRoute.value.query.nft_group_Id
|
|
|
if(nft_group_Id){
|
|
@@ -151,7 +166,6 @@ onMounted(() => {
|
|
|
max-width: 1000px;
|
|
|
min-width: 1000px;
|
|
|
max-height: 90%;
|
|
|
- min-height: 800px;
|
|
|
z-index: 23;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
@@ -184,7 +198,7 @@ onMounted(() => {
|
|
|
|
|
|
img {
|
|
|
width: 100%;
|
|
|
- height: 100%;
|
|
|
+ object-fit: contain;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -217,6 +231,7 @@ onMounted(() => {
|
|
|
display: flex;
|
|
|
padding: 15px 0;
|
|
|
min-height: 50px;
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
|
.buy5 {
|
|
|
border: 1px solid #1D9BF0;
|
|
@@ -233,6 +248,7 @@ onMounted(() => {
|
|
|
font-size: 14px;
|
|
|
cursor: pointer;
|
|
|
margin-right: 12px;
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
|
.left {
|
|
|
margin-right: 20px;
|
|
@@ -279,6 +295,7 @@ onMounted(() => {
|
|
|
justify-content: space-between;
|
|
|
padding: 0 15px 0 20px;
|
|
|
margin-right: 25px;
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
|
.left {
|
|
|
margin-right: 20px;
|