diff --git a/.env.development b/.env.development index 7a4fc53..f754aac 100644 --- a/.env.development +++ b/.env.development @@ -1,3 +1,4 @@ VUE_APP_WALLET_INFURAID='e7743d46923911fa8850619b7a7f6d9d' VUE_APP_CHAIN_ID=97 VUE_APP_CHAIN_RPC='https://data-seed-prebsc-1-s1.binance.org:8545/' +VUE_APP_BASE_API='https://game2006api-test.kingsome.cn' diff --git a/.env.production b/.env.production index 7a4fc53..98e24bc 100644 --- a/.env.production +++ b/.env.production @@ -1,3 +1,4 @@ VUE_APP_WALLET_INFURAID='e7743d46923911fa8850619b7a7f6d9d' VUE_APP_CHAIN_ID=97 VUE_APP_CHAIN_RPC='https://data-seed-prebsc-1-s1.binance.org:8545/' +VUE_APP_BASE_API='https://game2006api.kingsome.cn' diff --git a/src/api/Mall.ts b/src/api/Mall.ts new file mode 100644 index 0000000..bdb9c69 --- /dev/null +++ b/src/api/Mall.ts @@ -0,0 +1,29 @@ +import request from '@/utils/request' + +export const searchBox = (data: any) => + request({ + url: '/webapp/index.php?c=Market&a=searchBox', + method: 'get', + data + }) + +export const getNftList = (data: any) => + request({ + url: '/webapp/index.php?c=Market&a=getMyNftList', + method: 'get', + data + }) + +export const getNftDetail = (data: any) => + request({ + url: '/webapp/index.php?c=Market&a=getNftDetail', + method: 'get', + data + }) + +export const buyBox = (data: any) => + request({ + url: '/webapp/index.php?c=Market&a=buyBox', + method: 'get', + data + }) diff --git a/src/assets/main/card/class_1.png b/src/assets/main/card/class_1.png index 7af4b59..07f8eed 100644 Binary files a/src/assets/main/card/class_1.png and b/src/assets/main/card/class_1.png differ diff --git a/src/assets/main/card/class_2.png b/src/assets/main/card/class_2.png index 07f8eed..7af4b59 100644 Binary files a/src/assets/main/card/class_2.png and b/src/assets/main/card/class_2.png differ diff --git a/src/assets/main/card/class_3.png b/src/assets/main/card/class_3.png new file mode 100644 index 0000000..b410b3e Binary files /dev/null and b/src/assets/main/card/class_3.png differ diff --git a/src/assets/main/card/class_guardian.png b/src/assets/main/card/class_guardian.png new file mode 100644 index 0000000..7af4b59 Binary files /dev/null and b/src/assets/main/card/class_guardian.png differ diff --git a/src/assets/main/card/class_warrior.png b/src/assets/main/card/class_warrior.png new file mode 100644 index 0000000..07f8eed Binary files /dev/null and b/src/assets/main/card/class_warrior.png differ diff --git a/src/components/main/CardScroller.vue b/src/components/main/CardScroller.vue index 79e6777..9b4c4d3 100644 --- a/src/components/main/CardScroller.vue +++ b/src/components/main/CardScroller.vue @@ -7,7 +7,6 @@
-
@@ -26,125 +25,25 @@ @@ -67,6 +113,7 @@ export default class extends Vue { font-family: "zitic",serif; font-size: 20px; margin-top: 20px; + white-space: pre-wrap; } } .count-label { @@ -88,10 +135,55 @@ export default class extends Vue { } .card-scroller { height: 70vh; + font-size: 11px; } .title .text{ font-size: 14px; } } +@media (max-width: 415px) { + .card-scroller { + height: 70vh; + font-size: 10px; + bottom: 30px; + } + .count-label { + bottom: 10px; + } + .info { + top: 40px; + padding: 0 8px; + .text{ + font-size: 15px; + } + .count-down{ + .time { + font-size: 30px; + } + .title { + font-size: 20px; + } + } + } +} + +@media (min-width: 321px) and (max-width: 375px) { + .info { + top: 40px; + padding: 0 8px; + .text{ + font-size: 12px; + margin-top: 1px; + } + .count-down{ + .time { + font-size: 30px; + } + .title { + font-size: 20px; + } + } + } +} diff --git a/src/components/market/CardList.vue b/src/components/market/CardList.vue index 43db30d..e037a7e 100644 --- a/src/components/market/CardList.vue +++ b/src/components/market/CardList.vue @@ -24,7 +24,7 @@ export default class extends Vue { created() { for (let i = 0; i < 10; i++) { - this.cardList.push({ id: 'hero2_10' + i, type: 0, skelName: 'n_aoi', name: 'miffy', price: '10', class: 0, repeat: false }) + this.cardList.push({ id: 'hero2_10' + i, type: 0, skelName: 'n_aoi', name: 'miffy', price: 10, class: 0, repeat: false }) } } } diff --git a/src/components/market/NftItem.vue b/src/components/market/NftItem.vue index e161430..7405395 100644 --- a/src/components/market/NftItem.vue +++ b/src/components/market/NftItem.vue @@ -1,15 +1,18 @@