Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Commit

Permalink
npm run format
Browse files Browse the repository at this point in the history
  • Loading branch information
Arondight committed Oct 25, 2021
1 parent 600cdb2 commit 75dff6c
Show file tree
Hide file tree
Showing 5 changed files with 550 additions and 512 deletions.
11 changes: 0 additions & 11 deletions config_defaults/pool_eggs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
# ==============================================================================

items:

#
# 角色
#

-
type: 角色
star: 5
Expand Down Expand Up @@ -40,12 +35,6 @@ items:
#
- 钟离
- 阿贝多


#
# 武器
#

-
type: 武器
star: 5
Expand Down
189 changes: 92 additions & 97 deletions src/views/component/card/card.css
Original file line number Diff line number Diff line change
Expand Up @@ -214,154 +214,149 @@ img {
box-shadow: 0 0 5px rgba(255, 255, 255, 0.925);
}


.exploration {
position: absolute;
color: rgb(255, 255, 255);
font-size: 25px;
width: 1030px;
top: 641px;
left: 400px;
display: flex;
flex-wrap: wrap;
position: absolute;
color: rgb(255, 255, 255);
font-size: 25px;
width: 1030px;
top: 641px;
left: 400px;
display: flex;
flex-wrap: wrap;
}

.mondstadt,
.liyue,
.dragonspine,
.inazuma {
width: 290px;
padding-right: 225px;
padding-bottom: 93px;
width: 290px;
padding-right: 225px;
padding-bottom: 93px;
}

.exp,
.level {
width: 45px;
width: 45px;
}

.exp {
margin-bottom: 20px;
margin-bottom: 20px;
}

.inazuma {
margin-top: -9px;
margin-top: -9px;
}

.inazuma .exp,
.inazuma .level {
margin-bottom: 0.15cm;
margin-bottom: 0.15cm;
}
.home {
position: absolute;
width: 296px;
height: 750px;
left: 1088px;
top: 64px;
border-radius: 20px;
background-color: rgb(228, 222, 213);
.home {
position: absolute;
width: 296px;
height: 750px;
left: 1088px;
top: 64px;
border-radius: 20px;
background-color: rgb(228, 222, 213);
}

.home .title-and-level,
.home .comfort-num {
position: relative;
color: rgb(64, 64, 64);
width: 296px;
text-align: center;
.home .title-and-level,
.home .comfort-num {
position: relative;
color: rgb(64, 64, 64);
width: 296px;
text-align: center;
}

.home .title-and-level {
font-size: 28px;
top: 13px;
.home .title-and-level {
font-size: 28px;
top: 13px;
}

.home .comfort-num {
font-size: 22px;
top: 23px;
.home .comfort-num {
font-size: 22px;
top: 23px;
}

.home .map {
position: relative;
top: 7px
.home .map {
position: relative;
top: 7px;
}





.home-box {
position: relative;
margin-top: -5px;
top: 16px;
.home-box {
position: relative;
margin-top: -5px;
top: 16px;
}

.home-box .home-background {
width: 184px;
margin-bottom: 15px;
margin-left: 56px;
border-radius: 32px;
z-index: 1;
.home-box .home-background {
width: 184px;
margin-bottom: 15px;
margin-left: 56px;
border-radius: 32px;
z-index: 1;
}

.home-box .unlock,
.home-box .locked {
position: absolute;
top: 0;
.home-box .unlock,
.home-box .locked {
position: absolute;
top: 0;
}

.home-box .box-block {
width: 184px;
height: 184px;
margin-left: 56px;
border-radius: 32px;
.home-box .box-block {
width: 184px;
height: 184px;
margin-left: 56px;
border-radius: 32px;
}

.home-box .locked-block {
background-color: rgba(0, 0, 0, 0.6);
.home-box .locked-block {
background-color: rgba(0, 0, 0, 0.6);
}

.home-box .lock-icon {
position: absolute;
height: 80px;
width: 66px;
top: 52px;
left: 115px;
.home-box .lock-icon {
position: absolute;
height: 80px;
width: 66px;
top: 52px;
left: 115px;
}

.home-box .unlock-block {
background-color: rgba(0, 0, 0, 0.22);
.home-box .unlock-block {
background-color: rgba(0, 0, 0, 0.22);
}

.home-box .unlock-content-block {
position: relative;
background-color: rgba(0, 0, 0, 0.3);
height: 122px;
top: -153px;
border-radius: 0;
.home-box .unlock-content-block {
position: relative;
background-color: rgba(0, 0, 0, 0.3);
height: 122px;
top: -153px;
border-radius: 0;
}

.home-box .box-content {
position: relative;
width: 184px;
text-align: center;
.home-box .box-content {
position: relative;
width: 184px;
text-align: center;
}

.home-box .name {
position: relative;
color: rgb(242, 210, 134);
padding-top: 14px;
font-size: 25px;
padding-bottom: 12px;
.home-box .name {
position: relative;
color: rgb(242, 210, 134);
padding-top: 14px;
font-size: 25px;
padding-bottom: 12px;
}

.home-box .level {
font-size: 22px;
color: rgb(227, 221, 194);
.home-box .level {
font-size: 22px;
color: rgb(227, 221, 194);
}

.home-box .comfort {
font-size: 20px;
color: rgb(255, 255, 255);
margin-top: 2px;
-webkit-text-stroke: 0.012cm rgb(92, 82, 4);
}
.home-box .comfort {
font-size: 20px;
color: rgb(255, 255, 255);
margin-top: 2px;
-webkit-text-stroke: 0.012cm rgb(92, 82, 4);
}
20 changes: 10 additions & 10 deletions src/views/component/card/card.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ const upper = {
nickname: String,
level: Number,
profile: Number,
homeslevel:Number,
maxcomfort:Number,
homeslevel: Number,
maxcomfort: Number,
maps: Object,
exploration: {
type: Object,
Expand Down Expand Up @@ -39,19 +39,19 @@ const upper = {
},
},
},
methods: {
findMap(type) {
let info = this.maps.find((el) => el.name === type);
return info ? info : { name: type, level: -1 };
},
methods: {
findMap(type) {
let info = this.maps.find((el) => el.name === type);
return info ? info : { name: type, level: -1 };
},
},
computed: {
Picture() {
return (
"http://localhost:9934/resources/characters/profile/" +
this.profile +
".png"
)
);
},
worldLevel() {
if (this.level >= 55) {
Expand Down Expand Up @@ -95,8 +95,8 @@ const upper = {
}
};
},
homedata(){
let homedata =[];
homedata() {
let homedata = [];
homedata.push(this.findMap("罗浮洞"));
homedata.push(this.findMap("翠黛峰"));
homedata.push(this.findMap("清琼岛"));
Expand Down
Loading

0 comments on commit 75dff6c

Please sign in to comment.