Skip to content

Commit

Permalink
feat pvx优化
Browse files Browse the repository at this point in the history
新增cardbannerlist通用组件 优化替换掉原先的list通用组件,目前已经对原先使用的地方都进行了替换
  • Loading branch information
liuchuana committed Apr 1, 2024
1 parent 92d75d3 commit d257a21
Show file tree
Hide file tree
Showing 18 changed files with 432 additions and 250 deletions.
3 changes: 2 additions & 1 deletion src/assets/css/adventure/item.less
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
.m-adventure-item {
.pr;
.size(212px,224px);
.size(auto,224px);
.r(10px);
display: block;
flex-shrink: 0;
box-sizing: border-box;
border: 6px solid #fff;
Expand Down
19 changes: 9 additions & 10 deletions src/assets/css/book/card.less
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
.m-book-card {
.r(10px);
.w(190px);
padding: 20px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
.u-book-info {
.u-book-info {
.pr;
.size(100%,280px);
.pointer;
Expand Down Expand Up @@ -74,7 +73,7 @@
}
}
&:hover {
.u-book-info{
.u-book-info {
box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.85);
}
.u-desc-info {
Expand All @@ -87,10 +86,10 @@
}
}
}

// @media screen and (max-width: @phone) {
// .m-book-card {
// width: 100%;
// text-align: center;
// }
// }
.cross-wrapper,
.m-book-all,
.book-list-wrapper {
.m-book-card {
.w(190px);
}
}
10 changes: 8 additions & 2 deletions src/assets/css/book/home.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
.p-book {
.pt(40px);
.m-content {
.u-tips {
font-size: 14px;
color: #777;
letter-spacing: 2px;
}
}
.m-common-tabs {
background-color: #fff;
.u-tab {
Expand All @@ -10,9 +17,8 @@
color: #fff;
}
}
.u-search .u-search-input{
.u-search .u-search-input {
.w(100%);

}
}

Expand Down
4 changes: 3 additions & 1 deletion src/assets/css/face/item.less
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@
}
}
body &.m-body-item {
.size(200px,368px);
// .size(200px,368px);
width: 100%;
height: 368px;
.m-img {
// .size(160px,264px);
height: 264px;
Expand Down
6 changes: 6 additions & 0 deletions src/assets/css/face/single.less
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,12 @@
background-color: #786cbb;
}
}
.p-face-single .m-face-item.m-body-item {
width: 200px;
}
.p-face-single .m-face-item {
width: 190px;
}
.m-face-download {
.flex;
.mt(40px);
Expand Down
6 changes: 4 additions & 2 deletions src/assets/css/horse/card.less
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
@import "./pop.less";
.m-horse-card {
.pointer;
.size(200px,289px);
// .size(200px,289px);
.r(10px);
display: block;
height: 289px;
background-color: #fff;
box-sizing: border-box;
border: 1px solid #fff;
Expand Down Expand Up @@ -78,7 +80,7 @@
}

@media screen and (max-width: @phone) {
.m-horse-card {
.m-horse-card {
flex-shrink: 0;
}
}
2 changes: 1 addition & 1 deletion src/assets/css/horse/same_item.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.flex;
.r(10px);
.pointer;
.size(190px, 128px);
.size(auto, 128px);
flex-direction: column;
box-sizing: border-box;
padding: 20px 15px;
Expand Down
132 changes: 66 additions & 66 deletions src/assets/data/horse.json
Original file line number Diff line number Diff line change
@@ -1,66 +1,66 @@
{
"list": [
{
"type": "",
"value": -1,
"name": "全部",
"label": "全部",
"page": 1,
"pages": 1,
"list": []
},
{
"type": 0,
"value": 1,
"name": "普通坐骑",
"label": "普通坐骑",
"page": 1,
"pages": 1,
"list": []
},
{
"type": 1,
"value": 2,
"name": "奇趣坐骑",
"label": "奇趣坐骑",
"page": 1,
"pages": 1,
"list": []
},
{
"type": 2,
"value": 3,
"name": "马具",
"label": "马具",
"page": 1,
"pages": 1,
"list": []
}
],
"searchType": [
{
"key": "feed",
"type": "checkbox",
"name": "喂食饲料",
"list": [],
"checked": []
},
{
"key": "attr",
"type": "checkbox",
"name": "属性",
"list": [],
"checked": []
}
],
"showTypes": [
{
"value": "list",
"label": "列表"
},
{
"value": "card",
"label": "卡片"
}
]
}
{
"list": [
{
"type": "",
"value": -1,
"name": "全部",
"label": "全部",
"page": 1,
"pages": 1,
"list": []
},
{
"type": 0,
"value": 1,
"name": "普通坐骑",
"label": "普通坐骑",
"page": 1,
"pages": 1,
"list": []
},
{
"type": 1,
"value": 2,
"name": "奇趣坐骑",
"label": "奇趣坐骑",
"page": 1,
"pages": 1,
"list": []
},
{
"type": 2,
"value": 3,
"name": "马具",
"label": "马具",
"page": 1,
"pages": 1,
"list": []
}
],
"searchType": [
{
"key": "feed",
"type": "checkbox",
"name": "喂食饲料",
"list": [],
"checked": []
},
{
"key": "attr",
"type": "checkbox",
"name": "属性",
"list": [],
"checked": []
}
],
"showTypes": [
{
"value": "list",
"label": "列表"
},
{
"value": "card",
"label": "卡片"
}
]
}
2 changes: 1 addition & 1 deletion src/components/body/item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div class="m-mark-left">
<i class="u-mark u-mark--star" v-if="!!item.star">编辑推荐</i>
<i class="u-mark u-mark--new" v-if="!!item.is_unlimited">可新建</i>
</div>
</div>
<i class="u-mark u-mark--pay" v-if="!!~~item.price_type && !!item.price_count">付费</i>
</div>

Expand Down
Loading

0 comments on commit d257a21

Please sign in to comment.