feat: 修改铸造页面的样式

This commit is contained in:
zheng020 2026-06-03 22:12:51 +08:00
parent fa83788fd0
commit 0284bd6951
3 changed files with 24 additions and 14 deletions

View File

@ -135,16 +135,16 @@ export default {
categoryList: [{ name: "星卡" }, { name: "吧唧" }, { name: "海报" }], categoryList: [{ name: "星卡" }, { name: "吧唧" }, { name: "海报" }],
cardListMap: { cardListMap: {
星卡: [ 星卡: [
{
name: "镭射卡",
image: "/static/castlove/leisheka.png",
comingSoon: false,
},
{ {
name: "光栅卡", name: "光栅卡",
image: "/static/castlove/guangshanka.png", image: "/static/castlove/guangshanka.png",
comingSoon: false, comingSoon: false,
}, },
{
name: "镭射卡",
image: "/static/castlove/leisheka.png",
comingSoon: false,
},
{ {
name: "拍立得", name: "拍立得",
@ -268,6 +268,12 @@ export default {
currentCenterIndex() { currentCenterIndex() {
return Math.floor(this.currentCardCount / 2); return Math.floor(this.currentCardCount / 2);
}, },
// selectedIndex
// data() ," 2 "
// "",
defaultSelectedIndex() {
return 1;
},
}, },
methods: { methods: {
// type // type
@ -280,11 +286,8 @@ export default {
}, },
selectCategory(index) { selectCategory(index) {
this.selectedCategoryIndex = index; this.selectedCategoryIndex = index;
// , // ,()
// ( cardListMap computed tick ) this.selectedIndex = this.defaultSelectedIndex;
const newCount =
this.cardListMap[this.categoryList[index]?.name]?.length || 0;
this.selectedIndex = Math.floor(newCount / 2);
this.dragOffset = 0; this.dragOffset = 0;
this.isDragging = false; this.isDragging = false;
}, },
@ -528,14 +531,21 @@ export default {
.card-name { .card-name {
position: absolute; position: absolute;
bottom: 0; bottom: -16rpx;
left: 32rpx; left: 32rpx;
background: linear-gradient(
93.1deg,
rgba(224, 180, 247, 0.71) -12.06%,
rgba(178, 246, 204, 0.71) 52.09%,
rgba(98, 178, 244, 0.71) 163.5%
);
backdrop-filter: blur(11.699999809265137px);
color: #fffabd; color: #fffabd;
text-shadow: -1px 1px 4px #ce0909d6; text-shadow: -1px 1px 4px #ce0909d6;
font-size: 28rpx;
font-size: 32rpx;
font-weight: 400; font-weight: 400;
padding: 0 16rpx;
border-radius: 16rpx;
} }
.text-panel { .text-panel {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 583 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 734 KiB