|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <view class="home">
|
|
|
+ <!-- <view class="home">
|
|
|
<view class="content">
|
|
|
<Header></Header>
|
|
|
<view class="home-img">
|
|
@@ -74,244 +74,243 @@
|
|
|
</up-swiper>
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { ref, onMounted, reactive } from "vue";
|
|
|
-import Header from "@/components/Header";
|
|
|
-import { useCounterStore } from "@/stores/counter";
|
|
|
-const counter = useCounterStore();
|
|
|
-counter.count++;
|
|
|
-// 自动补全! ✨
|
|
|
-counter.$patch({ count: counter.count + 1 });
|
|
|
-// 或使用 action 代替
|
|
|
-counter.increment();
|
|
|
-const star = ref(3);
|
|
|
-const count = ref(0);
|
|
|
-const list5 = reactive([1, 2, 3]);
|
|
|
+// import { ref, onMounted, reactive } from "vue";
|
|
|
+// import Header from "@/components/Header";
|
|
|
+// import { useCounterStore } from "@/stores/counter";
|
|
|
+// const counter = useCounterStore();
|
|
|
+// counter.count++;
|
|
|
+// // 自动补全! ✨
|
|
|
+// counter.$patch({ count: counter.count + 1 });
|
|
|
+// // 或使用 action 代替
|
|
|
+// counter.increment();
|
|
|
+// const star = ref(3);
|
|
|
+// const count = ref(0);
|
|
|
+// const list5 = reactive([1, 2, 3]);
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
-.home {
|
|
|
- position: absolute;
|
|
|
- top: 0;
|
|
|
- bottom: 0;
|
|
|
- right: 0;
|
|
|
- left: 0;
|
|
|
- overflow-y: auto;
|
|
|
-}
|
|
|
-.content {
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- align-items: center;
|
|
|
- width: 100%;
|
|
|
- min-height: 100%;
|
|
|
- padding: 32rpx;
|
|
|
- padding-top: 116rpx;
|
|
|
- box-sizing: border-box;
|
|
|
- background-image: url("@/static/image/home/page-bg.jpg");
|
|
|
- // background: url('../../static/image/home/page-bg.jpg');
|
|
|
- background-size: 100%;
|
|
|
- background-position: 0 0;
|
|
|
- background-repeat: no-repeat;
|
|
|
- .home-img {
|
|
|
- width: 100%;
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- align-items: center;
|
|
|
- image {
|
|
|
- width: 100%;
|
|
|
- }
|
|
|
- }
|
|
|
- .home-btn-box {
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- align-items: center;
|
|
|
- width: 100%;
|
|
|
- .home-btn-item {
|
|
|
- width: 184rpx;
|
|
|
- height: 68rpx;
|
|
|
- background-image: url("@/static/image/home/home-btn.png");
|
|
|
- background-size: 100% auto;
|
|
|
- background-repeat: no-repeat;
|
|
|
- text-align: center;
|
|
|
- color: #ecb2a8;
|
|
|
- font-style: italic;
|
|
|
- font-family: DOUYUFONT-2;
|
|
|
- font-weight: 400 !important;
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- align-items: center;
|
|
|
- }
|
|
|
- }
|
|
|
- .home-code {
|
|
|
- margin: 24rpx 0;
|
|
|
- width: 100%;
|
|
|
- padding: 20rpx;
|
|
|
- box-sizing: border-box;
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- align-items: center;
|
|
|
- background-image: url("@/static/image/home/home-border.png");
|
|
|
- background-position: center;
|
|
|
- background-size: 100%;
|
|
|
- background-repeat: no-repeat;
|
|
|
- .home-url {
|
|
|
- padding: 0 12rpx;
|
|
|
- flex: 1;
|
|
|
- overflow: hidden;
|
|
|
- .url {
|
|
|
- font-size: 32rpx;
|
|
|
- color: #fff;
|
|
|
- overflow: hidden;
|
|
|
- text-overflow: ellipsis;
|
|
|
- white-space: nowrap;
|
|
|
- }
|
|
|
- .btn {
|
|
|
- // width: 254rpx;
|
|
|
- margin-top: 24rpx;
|
|
|
- width: 300rpx;
|
|
|
- height: 70rpx;
|
|
|
- background-image: url("@/static/image/home/share-btn.png");
|
|
|
- background-position: center;
|
|
|
- background-size: 100% 100%;
|
|
|
- background-repeat: no-repeat;
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- align-items: center;
|
|
|
- color: #4f2917;
|
|
|
- font-size: 28rpx;
|
|
|
- font-weight: 600;
|
|
|
- }
|
|
|
- }
|
|
|
- .code-img {
|
|
|
- flex-shrink: 0;
|
|
|
- // background: yellow;
|
|
|
- width: 160rpx;
|
|
|
- height: 160rpx;
|
|
|
- image {
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- .home-title-box {
|
|
|
- position: relative;
|
|
|
- font-size: 32rpx;
|
|
|
- font-weight: 700;
|
|
|
- .home-title-english {
|
|
|
- color: #534135;
|
|
|
- text-transform: uppercase;
|
|
|
- }
|
|
|
- .home-title-china {
|
|
|
- color: #fff;
|
|
|
- position: absolute;
|
|
|
- left: 0;
|
|
|
- right: 0;
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- align-items: center;
|
|
|
- top: 18rpx;
|
|
|
- }
|
|
|
- }
|
|
|
- .home-game-box {
|
|
|
- width: 100%;
|
|
|
- display: grid;
|
|
|
- grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
|
- gap: 24rpx;
|
|
|
- margin-top: 36rpx;
|
|
|
- margin-bottom: 24rpx;
|
|
|
- .game-item {
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- align-items: center;
|
|
|
- border: 2rpx solid #90645a;
|
|
|
- background-color: hsla(0, 0%, 100%, 0.1);
|
|
|
- border-radius: 16rpx;
|
|
|
- height: 420rpx;
|
|
|
- padding: 24rpx;
|
|
|
- box-sizing: border-box;
|
|
|
- .border-game {
|
|
|
- width: 180rpx;
|
|
|
- height: 180rpx;
|
|
|
- background-image: url("@/static/image/home/game-border.png");
|
|
|
- background-position: center;
|
|
|
- background-size: 100% 100%;
|
|
|
- background-repeat: no-repeat;
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- align-items: center;
|
|
|
- image {
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- }
|
|
|
- }
|
|
|
- .game-tag {
|
|
|
- font-size: 32rpx;
|
|
|
- font-weight: 700;
|
|
|
- color: #bb8a57;
|
|
|
- }
|
|
|
- .game-desc {
|
|
|
- color: #e6b5aa;
|
|
|
- line-height: 48rpx;
|
|
|
- text-align: center;
|
|
|
- font-size: 28rpx;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- .home-swiper {
|
|
|
- border: 2rpx solid #90645a;
|
|
|
- background-color: hsla(0, 0%, 100%, 0.1);
|
|
|
- border-radius: 16rpx;
|
|
|
- margin-top: 36rpx;
|
|
|
- width: 100%;
|
|
|
- padding: 24rpx;
|
|
|
- box-sizing: border-box;
|
|
|
- .swiper-item {
|
|
|
- .game-item-index {
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- align-items: center;
|
|
|
- margin-bottom: 24rpx;
|
|
|
+// .home {
|
|
|
+// position: absolute;
|
|
|
+// top: 0;
|
|
|
+// bottom: 0;
|
|
|
+// right: 0;
|
|
|
+// left: 0;
|
|
|
+// overflow-y: auto;
|
|
|
+// }
|
|
|
+// .content {
|
|
|
+// display: flex;
|
|
|
+// flex-direction: column;
|
|
|
+// align-items: center;
|
|
|
+// width: 100%;
|
|
|
+// min-height: 100%;
|
|
|
+// padding: 32rpx;
|
|
|
+// padding-top: 116rpx;
|
|
|
+// box-sizing: border-box;
|
|
|
+// background-image: url("@/static/image/home/page-bg.jpg");
|
|
|
+// // background: url('../../static/image/home/page-bg.jpg');
|
|
|
+// background-size: 100%;
|
|
|
+// background-position: 0 0;
|
|
|
+// background-repeat: no-repeat;
|
|
|
+// .home-img {
|
|
|
+// width: 100%;
|
|
|
+// display: flex;
|
|
|
+// justify-content: center;
|
|
|
+// align-items: center;
|
|
|
+// image {
|
|
|
+// width: 100%;
|
|
|
+// }
|
|
|
+// }
|
|
|
+// .home-btn-box {
|
|
|
+// display: flex;
|
|
|
+// justify-content: space-between;
|
|
|
+// align-items: center;
|
|
|
+// width: 100%;
|
|
|
+// .home-btn-item {
|
|
|
+// width: 184rpx;
|
|
|
+// height: 68rpx;
|
|
|
+// background-image: url("@/static/image/home/home-btn.png");
|
|
|
+// background-size: 100% auto;
|
|
|
+// background-repeat: no-repeat;
|
|
|
+// text-align: center;
|
|
|
+// color: #ecb2a8;
|
|
|
+// font-style: italic;
|
|
|
+// font-family: DOUYUFONT-2;
|
|
|
+// font-weight: 400 !important;
|
|
|
+// display: flex;
|
|
|
+// justify-content: center;
|
|
|
+// align-items: center;
|
|
|
+// }
|
|
|
+// }
|
|
|
+// .home-code {
|
|
|
+// margin: 24rpx 0;
|
|
|
+// width: 100%;
|
|
|
+// padding: 20rpx;
|
|
|
+// box-sizing: border-box;
|
|
|
+// display: flex;
|
|
|
+// justify-content: space-between;
|
|
|
+// align-items: center;
|
|
|
+// background-image: url("@/static/image/home/home-border.png");
|
|
|
+// background-position: center;
|
|
|
+// background-size: 100%;
|
|
|
+// background-repeat: no-repeat;
|
|
|
+// .home-url {
|
|
|
+// padding: 0 12rpx;
|
|
|
+// flex: 1;
|
|
|
+// overflow: hidden;
|
|
|
+// .url {
|
|
|
+// font-size: 32rpx;
|
|
|
+// color: #fff;
|
|
|
+// overflow: hidden;
|
|
|
+// text-overflow: ellipsis;
|
|
|
+// white-space: nowrap;
|
|
|
+// }
|
|
|
+// .btn {
|
|
|
+// // width: 254rpx;
|
|
|
+// margin-top: 24rpx;
|
|
|
+// width: 300rpx;
|
|
|
+// height: 70rpx;
|
|
|
+// background-image: url("@/static/image/home/share-btn.png");
|
|
|
+// background-position: center;
|
|
|
+// background-size: 100% 100%;
|
|
|
+// background-repeat: no-repeat;
|
|
|
+// display: flex;
|
|
|
+// justify-content: center;
|
|
|
+// align-items: center;
|
|
|
+// color: #4f2917;
|
|
|
+// font-size: 28rpx;
|
|
|
+// font-weight: 600;
|
|
|
+// }
|
|
|
+// }
|
|
|
+// .code-img {
|
|
|
+// flex-shrink: 0;
|
|
|
+// // background: yellow;
|
|
|
+// width: 160rpx;
|
|
|
+// height: 160rpx;
|
|
|
+// image {
|
|
|
+// width: 100%;
|
|
|
+// height: 100%;
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
+// .home-title-box {
|
|
|
+// position: relative;
|
|
|
+// font-size: 32rpx;
|
|
|
+// font-weight: 700;
|
|
|
+// .home-title-english {
|
|
|
+// color: #534135;
|
|
|
+// text-transform: uppercase;
|
|
|
+// }
|
|
|
+// .home-title-china {
|
|
|
+// color: #fff;
|
|
|
+// position: absolute;
|
|
|
+// left: 0;
|
|
|
+// right: 0;
|
|
|
+// display: flex;
|
|
|
+// justify-content: center;
|
|
|
+// align-items: center;
|
|
|
+// top: 18rpx;
|
|
|
+// }
|
|
|
+// }
|
|
|
+// .home-game-box {
|
|
|
+// width: 100%;
|
|
|
+// display: grid;
|
|
|
+// grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
|
+// gap: 24rpx;
|
|
|
+// margin-top: 36rpx;
|
|
|
+// margin-bottom: 24rpx;
|
|
|
+// .game-item {
|
|
|
+// display: flex;
|
|
|
+// flex-direction: column;
|
|
|
+// align-items: center;
|
|
|
+// border: 2rpx solid #90645a;
|
|
|
+// background-color: hsla(0, 0%, 100%, 0.1);
|
|
|
+// border-radius: 16rpx;
|
|
|
+// height: 420rpx;
|
|
|
+// padding: 24rpx;
|
|
|
+// box-sizing: border-box;
|
|
|
+// .border-game {
|
|
|
+// width: 180rpx;
|
|
|
+// height: 180rpx;
|
|
|
+// background-image: url("@/static/image/home/game-border.png");
|
|
|
+// background-position: center;
|
|
|
+// background-size: 100% 100%;
|
|
|
+// background-repeat: no-repeat;
|
|
|
+// display: flex;
|
|
|
+// justify-content: center;
|
|
|
+// align-items: center;
|
|
|
+// image {
|
|
|
+// width: 100%;
|
|
|
+// height: 100%;
|
|
|
+// }
|
|
|
+// }
|
|
|
+// .game-tag {
|
|
|
+// font-size: 32rpx;
|
|
|
+// font-weight: 700;
|
|
|
+// color: #bb8a57;
|
|
|
+// }
|
|
|
+// .game-desc {
|
|
|
+// color: #e6b5aa;
|
|
|
+// line-height: 48rpx;
|
|
|
+// text-align: center;
|
|
|
+// font-size: 28rpx;
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
+// .home-swiper {
|
|
|
+// border: 2rpx solid #90645a;
|
|
|
+// background-color: hsla(0, 0%, 100%, 0.1);
|
|
|
+// border-radius: 16rpx;
|
|
|
+// margin-top: 36rpx;
|
|
|
+// width: 100%;
|
|
|
+// padding: 24rpx;
|
|
|
+// box-sizing: border-box;
|
|
|
+// .swiper-item {
|
|
|
+// .game-item-index {
|
|
|
+// display: flex;
|
|
|
+// justify-content: space-between;
|
|
|
+// align-items: center;
|
|
|
+// margin-bottom: 24rpx;
|
|
|
|
|
|
- .game-icon-name {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- image {
|
|
|
- border-radius: 16rpx;
|
|
|
- height: 88rpx;
|
|
|
- width: 88rpx;
|
|
|
- flex-shrink: 0;
|
|
|
- }
|
|
|
- .name-star {
|
|
|
- width: 100%;
|
|
|
- padding: 0 24rpx;
|
|
|
- box-sizing: border-box;
|
|
|
- .name {
|
|
|
- color: #fff;
|
|
|
- font-size: 28rpx;
|
|
|
- margin-bottom: 12rpx;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- .upload-btn {
|
|
|
- padding: 12rpx 24rpx;
|
|
|
- box-sizing: border-box;
|
|
|
- border-radius: 100rpx;
|
|
|
- background: linear-gradient(to bottom, #fff1ca, #fac21a);
|
|
|
- font-size: 28rpx;
|
|
|
- color: #4c220f;
|
|
|
- }
|
|
|
- }
|
|
|
- .game-item-index:last-child() {
|
|
|
- margin-bottom: 0;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-::v-deep .u-swiper {
|
|
|
- background: none !important;
|
|
|
-}
|
|
|
-</style>
|
|
|
- @/api/coinMoney
|
|
|
+// .game-icon-name {
|
|
|
+// display: flex;
|
|
|
+// align-items: center;
|
|
|
+// image {
|
|
|
+// border-radius: 16rpx;
|
|
|
+// height: 88rpx;
|
|
|
+// width: 88rpx;
|
|
|
+// flex-shrink: 0;
|
|
|
+// }
|
|
|
+// .name-star {
|
|
|
+// width: 100%;
|
|
|
+// padding: 0 24rpx;
|
|
|
+// box-sizing: border-box;
|
|
|
+// .name {
|
|
|
+// color: #fff;
|
|
|
+// font-size: 28rpx;
|
|
|
+// margin-bottom: 12rpx;
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
+// .upload-btn {
|
|
|
+// padding: 12rpx 24rpx;
|
|
|
+// box-sizing: border-box;
|
|
|
+// border-radius: 100rpx;
|
|
|
+// background: linear-gradient(to bottom, #fff1ca, #fac21a);
|
|
|
+// font-size: 28rpx;
|
|
|
+// color: #4c220f;
|
|
|
+// }
|
|
|
+// }
|
|
|
+// .game-item-index:last-child() {
|
|
|
+// margin-bottom: 0;
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
+// ::v-deep .u-swiper {
|
|
|
+// background: none !important;
|
|
|
+// }
|
|
|
+</style>
|