From 4bf19316dbc7f9de8cfa7afaf67735fdad8bca81 Mon Sep 17 00:00:00 2001 From: huangjinming Date: Wed, 21 Dec 2022 17:25:47 +0800 Subject: [PATCH] fix --- src/components/market/HeroBuyTop.vue | 209 ++++++++++++++-------- src/components/market/HeroSellTop.vue | 52 +++++- src/components/market/PieceSellTop.vue | 28 ++- src/components/market/TheBuyDialog.vue | 6 +- src/components/market/TheSellDialog.vue | 2 +- src/components/market/WeaponBuyDialog.vue | 46 ++++- src/components/market/WeaponSellTop.vue | 36 +++- src/components/market/nft/HeroNft.vue | 2 +- src/components/market/nft/WeaponList.vue | 1 + 9 files changed, 288 insertions(+), 94 deletions(-) diff --git a/src/components/market/HeroBuyTop.vue b/src/components/market/HeroBuyTop.vue index 1376137..4b2f92d 100644 --- a/src/components/market/HeroBuyTop.vue +++ b/src/components/market/HeroBuyTop.vue @@ -1,96 +1,161 @@ \ No newline at end of file +} +.piece-left { + width: 159px; + height: 177px; + position: relative; + background: url("../../assets/market/hero/type-1.png") no-repeat; + background-size: 100% 100%; + .hero-name { + // width: 46px; + height: 24px; + // max-width: 86px; + line-height: 24px; + padding-right: 14px; + padding-left: 14px; + background: url("../../assets/market/hero/name-bg.png") no-repeat; + background-size: 100% 100%; + position: absolute; + right: -1px; + text-align: center; + color: #fff; + bottom: 0px; + } +} +.piece-left-gen { + width: 159px; + height: 177px; + background: url("../../assets/market/hero/type-0.png") no-repeat; + background-size: 100% 100%; + position: relative; + .gen { + position: absolute; + left: 3px; + top: 6px; + } + .hero-name { + // width: 46px; + height: 24px; + // max-width: 86px; + line-height: 24px; + padding-right: 14px; + padding-left: 14px; + background: url("../../assets/market/hero/name-bg.png") no-repeat; + background-size: 100% 100%; + position: absolute; + right: -1px; + text-align: center; + color: #fff; + bottom: 0px; + } +} + diff --git a/src/components/market/HeroSellTop.vue b/src/components/market/HeroSellTop.vue index c37bf75..c327ea9 100644 --- a/src/components/market/HeroSellTop.vue +++ b/src/components/market/HeroSellTop.vue @@ -5,13 +5,22 @@
-
-
+
+ +
+
+ {{ data.detail.hero_name }} +
+
@@ -120,13 +129,50 @@ export default { .piece-left { width: 159px; height: 177px; + position: relative; background: url("../../assets/market/hero/type-1.png") no-repeat; background-size: 100% 100%; + .hero-name { + // width: 46px; + height: 24px; + // max-width: 86px; + line-height: 24px; + padding-right: 14px; + padding-left: 14px; + background: url("../../assets/market/hero/name-bg.png") no-repeat; + background-size: 100% 100%; + position: absolute; + right: -1px; + text-align: center; + color: #fff; + bottom: 0px; + } } .piece-left-gen { width: 159px; height: 177px; background: url("../../assets/market/hero/type-0.png") no-repeat; background-size: 100% 100%; + position: relative; + .gen { + position: absolute; + left: 3px; + top: 6px; + } + .hero-name { + // width: 46px; + height: 24px; + // max-width: 86px; + line-height: 24px; + padding-right: 14px; + padding-left: 14px; + background: url("../../assets/market/hero/name-bg.png") no-repeat; + background-size: 100% 100%; + position: absolute; + right: -1px; + text-align: center; + color: #fff; + bottom: 0px; + } } diff --git a/src/components/market/PieceSellTop.vue b/src/components/market/PieceSellTop.vue index 4bed5b5..45e15a5 100644 --- a/src/components/market/PieceSellTop.vue +++ b/src/components/market/PieceSellTop.vue @@ -1,7 +1,19 @@