Commit f79626f5 authored by hewenhao's avatar hewenhao

feat: ipad 支持

parent f7215c00
...@@ -19,7 +19,7 @@ export default { ...@@ -19,7 +19,7 @@ export default {
'pages/game/battle/index', 'pages/game/battle/index',
], ],
subPackages: {{packages}}, subPackages: {{packages}},
resizable: true, resizable: false,
preloadRule: {{preloadRule}}, preloadRule: {{preloadRule}},
tabBar: { tabBar: {
custom: true, custom: true,
......
@import '@/styles/mixins.scss'; @import '@/styles/mixins.scss';
.thead { .thead {
height: 40PX; height: 80px;
background: #F7F9FC; background: #F7F9FC;
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 12PX; font-size: 24px;
padding: 0 32px; padding: 0 32px;
color: rgba(70,81,100,0.5); color: rgba(70,81,100,0.5);
&_index { &_index {
width: 80px; width: 80px;
text-align: center; text-align: center;
padding-left: 3PX; padding-left: 6px;
margin-right: 23PX; margin-right: 46px;
} }
&_username { &_username {
...@@ -22,9 +22,9 @@ ...@@ -22,9 +22,9 @@
&_result { &_result {
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 12PX; font-size: 24px;
font-weight: 400; font-weight: 400;
gap: 6PX; gap: 12px;
color: rgba(70,81,100,0.7); color: rgba(70,81,100,0.7);
&_best { &_best {
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
.spinWrap { .spinWrap {
color: #9999; color: #9999;
padding: 12PX 0; padding: 24px 0;
text-align: center; text-align: center;
} }
...@@ -82,11 +82,11 @@ ...@@ -82,11 +82,11 @@
display: flex; display: flex;
flex: 1; flex: 1;
align-items: center; align-items: center;
padding-right: 4PX; padding-right: 8px;
&_text { &_text {
font-size: 14PX; font-size: 28px;
font-weight: 600; font-weight: 600;
color: #465164; color: #465164;
} }
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
} }
&_result { &_result {
@include flexLayout(row, center, center); @include flexLayout(row, center, center);
font-size: 12PX; font-size: 24px;
font-weight: 400; font-weight: 400;
gap: 6PX; gap: 6PX;
color: rgba(70,81,100,0.7); color: rgba(70,81,100,0.7);
...@@ -124,13 +124,13 @@ ...@@ -124,13 +124,13 @@
border-top-color: inherit; border-top-color: inherit;
border-radius: 50%; border-radius: 50%;
animation: spin 1s linear infinite; animation: spin 1s linear infinite;
width: 18PX; width: 36px;
height: 18PX; height: 36px;
} }
.spinText { .spinText {
font-size: 14PX; font-size: 28px;
margin-left: 12PX; margin-left: 24px;
} }
@keyframes spin { @keyframes spin {
......
@import '@/styles/mixins.scss'; @import '@/styles/mixins.scss';
.thead { .thead {
height: 40PX; height: 80px;
background: #F7F9FC; background: #F7F9FC;
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 12PX; font-size: 24px;
padding: 0 32px; padding: 0 32px;
color: rgba(70,81,100,0.5); color: rgba(70,81,100,0.5);
&_index { &_index {
width: 80px; width: 80px;
text-align: center; text-align: center;
padding-left: 3PX; padding-left: 6px;
margin-right: 23PX; margin-right: 46px;
} }
&_username { &_username {
...@@ -22,9 +22,9 @@ ...@@ -22,9 +22,9 @@
&_result { &_result {
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 12PX; font-size: 24px;
font-weight: 400; font-weight: 400;
gap: 6PX; gap: 12px;
color: rgba(70,81,100,0.7); color: rgba(70,81,100,0.7);
&_best { &_best {
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
.spinWrap { .spinWrap {
color: #9999; color: #9999;
padding: 12PX 0; padding: 24px 0;
text-align: center; text-align: center;
} }
...@@ -82,11 +82,11 @@ ...@@ -82,11 +82,11 @@
display: flex; display: flex;
flex: 1; flex: 1;
align-items: center; align-items: center;
padding-right: 4PX; padding-right: 8px;
&_text { &_text {
font-size: 14PX; font-size: 28px;
font-weight: 600; font-weight: 600;
color: #465164; color: #465164;
} }
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
} }
&_result { &_result {
@include flexLayout(row, center, center); @include flexLayout(row, center, center);
font-size: 12PX; font-size: 24px;
font-weight: 400; font-weight: 400;
gap: 6PX; gap: 6PX;
color: rgba(70,81,100,0.7); color: rgba(70,81,100,0.7);
...@@ -124,13 +124,13 @@ ...@@ -124,13 +124,13 @@
border-top-color: inherit; border-top-color: inherit;
border-radius: 50%; border-radius: 50%;
animation: spin 1s linear infinite; animation: spin 1s linear infinite;
width: 18PX; width: 36px;
height: 18PX; height: 36px;
} }
.spinText { .spinText {
font-size: 14PX; font-size: 28px;
margin-left: 12PX; margin-left: 24px;
} }
@keyframes spin { @keyframes spin {
......
...@@ -174,6 +174,7 @@ ...@@ -174,6 +174,7 @@
position: absolute; position: absolute;
top: -304px; top: -304px;
left: 0; left: 0;
pointer-events: none;
animation-name: fadeInUp; animation-name: fadeInUp;
animation-duration: .5s; animation-duration: .5s;
animation-timing-function: ease-out; animation-timing-function: ease-out;
......
...@@ -59,6 +59,12 @@ ...@@ -59,6 +59,12 @@
margin-right: 32px; margin-right: 32px;
} }
.input_inner {
line-height: 50px;
height: 50px;
font-size: 36px;
}
.input_tip { .input_tip {
margin-top: 32px; margin-top: 32px;
display: flex; display: flex;
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
transition: transform .5s cubic-bezier(0.175,0.885,0.32,1.0); transition: transform .5s cubic-bezier(0.175,0.885,0.32,1.0);
border-radius: 32px 32px 0px 0px; border-radius: 32px 32px 0px 0px;
text-align: center; text-align: center;
padding: 32PX 24PX; padding: 64px 48px;
&.visible { &.visible {
transform: translateY(0); transform: translateY(0);
...@@ -36,37 +36,37 @@ ...@@ -36,37 +36,37 @@
.close { .close {
position: absolute; position: absolute;
width: 20PX; width: 40px;
height: 20PX; height: 40px;
top: 12PX; top: 24px;
right: 24PX; right: 48px;
} }
.title { .title {
font-size: 24PX; font-size: 48px;
font-weight: 600; font-weight: 600;
color: #586170; color: #586170;
margin-bottom: 32px; margin-bottom: 32px;
} }
.tips { .tips {
font-size: 18PX; font-size: 36px;
font-weight: 400; font-weight: 400;
color: #586170; color: #586170;
margin-bottom: 24PX; margin-bottom: 48px;
} }
.footer { .footer {
@include flexLayout(column); @include flexLayout(column);
gap: 12PX; gap: 24px;
.studyTribe { .studyTribe {
@include flexLayout(row, center, center); @include flexLayout(row, center, center);
height: 56PX; height: 112px;
background-image: url('../assets/btn-border.png'); background-image: url('../assets/btn-border.png');
background-size: 100% 100%; background-size: 100% 100%;
text-align: center; text-align: center;
font-size: 18PX; font-size: 26px;
font-weight: 500; font-weight: 500;
color: #1786F7; color: #1786F7;
} }
......
...@@ -23,18 +23,18 @@ ...@@ -23,18 +23,18 @@
.label { .label {
@include flexLayout(row, center); @include flexLayout(row, center);
font-size: 12PX; font-size: 24px;
font-weight: 400; font-weight: 400;
color: #FFFFFF; color: #FFFFFF;
padding: 8PX; padding: 16px;
background: rgba(226,233,255,0.2); background: rgba(226,233,255,0.2);
border-radius: 6PX; border-radius: 12px;
gap: 3PX; gap: 6px;
animation: scaleTitle 1s ease-in-out forwards; animation: scaleTitle 1s ease-in-out forwards;
.icon { .icon {
width: 16PX; width: 32px;
height: 16PX; height: 32px;
} }
} }
} }
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
border-radius: 30px; border-radius: 30px;
border: 1px solid #FFFFFF; border: 1px solid #FFFFFF;
@include flexLayout(row, center); @include flexLayout(row, center);
font-size: 15PX; font-size: 30px;
font-weight: 500; font-weight: 500;
color: #FFFFFF; color: #FFFFFF;
padding: 32px 0; padding: 32px 0;
...@@ -65,24 +65,24 @@ ...@@ -65,24 +65,24 @@
.performance { .performance {
animation: fadeInLeft 1s ease-in-out forwards; animation: fadeInLeft 1s ease-in-out forwards;
width: 50%; width: 50%;
.performanceInner { .performanceInner {
margin: 0 24PX; margin: 0 48px;
padding: 12PX 0; padding: 24px 0;
} }
.details { .details {
@include flexLayout(row, center, center); @include flexLayout(row, center, center);
gap: 6PX; gap: 12px;
margin-top: 12PX; margin-top: 24px;
.logo { .logo {
width: 24PX; width: 48px;
height: 24PX; height: 48px;
} }
.consume { .consume {
font-size: 18PX; font-size: 36px;
} }
} }
} }
...@@ -96,13 +96,13 @@ ...@@ -96,13 +96,13 @@
} }
.details, .beforeDetails { .details, .beforeDetails {
margin-top: 12PX; margin-top: 24px;
@include flexLayout(row, center, center); @include flexLayout(row, center, center);
gap: 20px; gap: 20px;
.logo { .logo {
width: 32PX; width: 64px;
height: 32PX; height: 64px;
} }
} }
...@@ -115,12 +115,12 @@ ...@@ -115,12 +115,12 @@
position: absolute; position: absolute;
right: 0; right: 0;
left: 0; left: 0;
.logo { .logo {
// visibility: hidden; // visibility: hidden;
opacity: 0; opacity: 0;
} }
.show { .show {
animation: fadeUp 1.3s ease-out forwards; animation: fadeUp 1.3s ease-out forwards;
animation-delay: 1s; animation-delay: 1s;
...@@ -137,10 +137,10 @@ ...@@ -137,10 +137,10 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
margin-bottom: 12PX; margin-bottom: 24px;
text-align: center; text-align: center;
font-size: 16PX; font-size: 32px;
font-weight: 500; font-weight: 500;
color: #FFFFFF; color: #FFFFFF;
position: relative; position: relative;
...@@ -151,10 +151,10 @@ ...@@ -151,10 +151,10 @@
background-color: #fff; background-color: #fff;
transform: scaleY(0.5); transform: scaleY(0.5);
&:first-child { &:first-child {
margin-right: 10PX; margin-right: 20px;
} }
&:last-child { &:last-child {
margin-left: 10PX; margin-left: 20px;
} }
} }
...@@ -171,24 +171,24 @@ ...@@ -171,24 +171,24 @@
.againDetails { .againDetails {
@include flexLayout(column); @include flexLayout(column);
gap: 12PX; gap: 24px;
// animation: fadeInLeft 1s ease-in-out forwards; // animation: fadeInLeft 1s ease-in-out forwards;
.againDetail { .againDetail {
// animation: fadeInScale 1s ease-in backwards; // animation: fadeInScale 1s ease-in backwards;
@include flexLayout(row, center, space-between); @include flexLayout(row, center, space-between);
background: rgba(226,233,255,0.3); background: rgba(226,233,255,0.3);
border-radius: 12PX; border-radius: 24px;
color: #fff; color: #fff;
&:nth-child(1) { &:nth-child(1) {
animation-delay: 0.3s; animation-delay: 0.3s;
} }
&:nth-child(2) { &:nth-child(2) {
animation-delay: 0.6s; animation-delay: 0.6s;
} }
&:nth-child(3) { &:nth-child(3) {
animation-delay: 0.9s; animation-delay: 0.9s;
} }
...@@ -204,14 +204,14 @@ ...@@ -204,14 +204,14 @@
.center { .center {
@include flexLayout(row, center); @include flexLayout(row, center);
gap: 4PX; gap: 8px;
font-size: 12PX; font-size: 24px;
} }
} }
.icon { .icon {
width: 22PX; width: 44px;
height: 22PX; height: 44px;
} }
.score { .score {
...@@ -220,15 +220,15 @@ ...@@ -220,15 +220,15 @@
.icon { .icon {
position: relative; position: relative;
right: -10PX; right: -20px;
} }
.text { .text {
background: #0084FF; background: #0084FF;
border-radius: 14px; border-radius: 14px;
font-size: 10PX; font-size: 20px;
width: 72px; width: 72px;
padding: 1PX 6PX; padding: 2px 12px;
} }
} }
} }
...@@ -301,7 +301,7 @@ ...@@ -301,7 +301,7 @@
100% { 100% {
opacity: 1; opacity: 1;
transform: scale(1) translateY(-44PX); transform: scale(1) translateY(-88px);
} }
} }
...@@ -313,4 +313,4 @@ ...@@ -313,4 +313,4 @@
100% { 100% {
opacity: 0; opacity: 0;
} }
} }
\ No newline at end of file
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
.mask { .mask {
position: absolute; position: absolute;
background-color: #fff; background-color: #fff;
top: 48PX; top: 96px;
bottom: 0; bottom: 0;
left: 0; left: 0;
right: 0; right: 0;
...@@ -18,9 +18,9 @@ ...@@ -18,9 +18,9 @@
.tabBar { .tabBar {
display: flex; display: flex;
height: 88PX; height: 176px;
background-size: 100% 100%; background-size: 100% 100%;
&.active_1 { &.active_1 {
background-image: url('../assets/tab-1.png'); background-image: url('../assets/tab-1.png');
} }
...@@ -32,11 +32,11 @@ ...@@ -32,11 +32,11 @@
.tab { .tab {
flex: 1; flex: 1;
height: 48PX; height: 96px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
letter-spacing: 2PX; letter-spacing: 4px;
font-size: 32px; font-size: 32px;
font-weight: 400; font-weight: 400;
color: #FFFFFF; color: #FFFFFF;
...@@ -48,11 +48,11 @@ ...@@ -48,11 +48,11 @@
&::before { &::before {
position: absolute; position: absolute;
content: ""; content: "";
width: 16PX; width: 32px;
bottom: 6PX; bottom: 12px;
height: 3PX; height: 6px;
background: #1786F7; background: #1786F7;
border-radius: 6PX; border-radius: 12px;
} }
} }
} }
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
overflow: hidden; overflow: hidden;
background-color: #fff; background-color: #fff;
position: relative; position: relative;
top: -40PX; top: -80px;
.tabPane { .tabPane {
height: auto; height: auto;
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
grid-column: 1; grid-column: 1;
transition: transform 0.3s ease-in-out; transition: transform 0.3s ease-in-out;
pointer-events: none; pointer-events: none;
&.active { &.active {
pointer-events: auto; pointer-events: auto;
} }
......
...@@ -179,7 +179,8 @@ ...@@ -179,7 +179,8 @@
} }
.short_image { .short_image {
width: 100PX; width: 200px;
white-space: nowrap;
background-image: url('https://cdn.jkwljy.com/pk-math/2ayn5bKxZJJfH9SbWwTazgMRF8BT/260x112'); background-image: url('https://cdn.jkwljy.com/pk-math/2ayn5bKxZJJfH9SbWwTazgMRF8BT/260x112');
} }
...@@ -237,7 +238,7 @@ ...@@ -237,7 +238,7 @@
} }
.buy_card { .buy_card {
height: 56PX; height: 112px;
@include flexLayout(row, center, center); @include flexLayout(row, center, center);
background-size: 100% 100%; background-size: 100% 100%;
background-image: url('./assets/btn-primary.png'); background-image: url('./assets/btn-primary.png');
...@@ -250,28 +251,28 @@ ...@@ -250,28 +251,28 @@
} }
&_spin { &_spin {
margin-right: 8PX; margin-right: 16px;
} }
.inner { .inner {
@include flexLayout(row, center, center); @include flexLayout(row, center, center);
font-size: 18PX; font-size: 36px;
font-weight: 500; font-weight: 500;
& > { & > {
.logo { .logo {
width: 32PX; width: 64px;
height: 32PX; height: 64px;
margin-right: 4PX; margin-right: 8px;
} }
.buy { .buy {
margin: 0 12PX; margin: 0 24px;
} }
.balance { .balance {
font-weight: 400; font-weight: 400;
font-size: 14PX; font-size: 28px;
} }
} }
} }
...@@ -344,15 +345,15 @@ ...@@ -344,15 +345,15 @@
} }
.tutorialFail { .tutorialFail {
top: -180PX; top: -360px;
display: flex; display: flex;
left: 10PX; left: 20px;
right: 10PX; right: 20px;
flex-direction: row; flex-direction: row;
.tutorialFailInner { .tutorialFailInner {
flex: 1; flex: 1;
margin-left: 12PX; margin-left: 24px;
display: flex; display: flex;
align-items: center; align-items: center;
line-height: 1.6; line-height: 1.6;
...@@ -365,7 +366,7 @@ ...@@ -365,7 +366,7 @@
.tutorial_arrow { .tutorial_arrow {
left: 50%; left: 50%;
bottom: -30PX; bottom: -60px;
transform: translateX(-50%); transform: translateX(-50%);
position: absolute; position: absolute;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment