feat(古尔邦节): 调整页面
This commit is contained in:
parent
10ae5532ac
commit
7e19e528d0
@ -459,7 +459,7 @@
|
|||||||
"active_game_reward_frame": "Customized Frames * 365 Days",
|
"active_game_reward_frame": "Customized Frames * 365 Days",
|
||||||
"active_game_reward_ride": "Customized Vehicles * 60 Days",
|
"active_game_reward_ride": "Customized Vehicles * 60 Days",
|
||||||
"active_game_reward_banner": "Customized Banners * 15 Days",
|
"active_game_reward_banner": "Customized Banners * 15 Days",
|
||||||
"rule": "rule",
|
"rule": "RULE",
|
||||||
"history": "history",
|
"history": "history",
|
||||||
"CollectCards to Win Prizes": "CollectCards to Win Prizes",
|
"CollectCards to Win Prizes": "CollectCards to Win Prizes",
|
||||||
"Personal Rank": "Personal Rank",
|
"Personal Rank": "Personal Rank",
|
||||||
|
|||||||
@ -2140,8 +2140,10 @@ const visibleChildTabs = computed(() => {
|
|||||||
|
|
||||||
return children.tabs.items
|
return children.tabs.items
|
||||||
.map((item, index) => {
|
.map((item, index) => {
|
||||||
const section = children.sections?.[index]
|
|
||||||
const value = typeof item === 'string' ? item : item.value
|
const value = typeof item === 'string' ? item : item.value
|
||||||
|
const section =
|
||||||
|
children.sections?.find((childSection) => childSection?.name === value) ||
|
||||||
|
children.sections?.[index]
|
||||||
return {
|
return {
|
||||||
value,
|
value,
|
||||||
label: typeof item === 'string' ? item : item.label || item.labelKey || value,
|
label: typeof item === 'string' ? item : item.label || item.labelKey || value,
|
||||||
|
|||||||
@ -132,8 +132,8 @@ export const pageConfig = {
|
|||||||
children: {
|
children: {
|
||||||
tabs: {
|
tabs: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
defaultValue: 'Reward',
|
defaultValue: 'Ranking',
|
||||||
items: ['Reward', 'Ranking'],
|
items: ['Ranking', 'Reward'],
|
||||||
},
|
},
|
||||||
sections: [
|
sections: [
|
||||||
{
|
{
|
||||||
@ -170,8 +170,8 @@ export const pageConfig = {
|
|||||||
children: {
|
children: {
|
||||||
tabs: {
|
tabs: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
defaultValue: 'Reward',
|
defaultValue: 'Ranking',
|
||||||
items: ['Reward', 'Ranking'],
|
items: ['Ranking', 'Reward'],
|
||||||
},
|
},
|
||||||
sections: [
|
sections: [
|
||||||
{
|
{
|
||||||
|
|||||||
@ -202,10 +202,10 @@
|
|||||||
"children": {
|
"children": {
|
||||||
"tabs": {
|
"tabs": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"defaultValue": "Reward",
|
"defaultValue": "Ranking",
|
||||||
"items": [
|
"items": [
|
||||||
"Reward",
|
"Ranking",
|
||||||
"Ranking"
|
"Reward"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"sections": [
|
"sections": [
|
||||||
@ -246,10 +246,10 @@
|
|||||||
"children": {
|
"children": {
|
||||||
"tabs": {
|
"tabs": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"defaultValue": "Reward",
|
"defaultValue": "Ranking",
|
||||||
"items": [
|
"items": [
|
||||||
"Reward",
|
"Ranking",
|
||||||
"Ranking"
|
"Reward"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"sections": [
|
"sections": [
|
||||||
@ -1073,6 +1073,12 @@
|
|||||||
|
|
||||||
- `activeLotteryIndex` 默认值保持 `0`,页面初始时第一个奖品位置展示 `lotteryPrizeActiveBg`。
|
- `activeLotteryIndex` 默认值保持 `0`,页面初始时第一个奖品位置展示 `lotteryPrizeActiveBg`。
|
||||||
- 切换 `lotteryBg` 的 R/SR/SSR 奖池后,也将 `activeLotteryIndex` 重置为 `0`,默认展示当前奖池第一个位置的 active 图。
|
- 切换 `lotteryBg` 的 R/SR/SSR 奖池后,也将 `activeLotteryIndex` 重置为 `0`,默认展示当前奖池第一个位置的 active 图。
|
||||||
|
|
||||||
|
## 本次同步:Personal Rank / Room Rank 二级标签顺序
|
||||||
|
|
||||||
|
- `Personal Rank` 和 `Room Rank` 下的二级标签顺序调整为 `Ranking`、`Reward`。
|
||||||
|
- 两个一级标签进入时默认打开 `Ranking` 小标签页。
|
||||||
|
- Vue 渲染二级标签时按 section `name` 匹配内容区,不再依赖 `items` 和 `sections` 的数组下标,避免后续只调整按钮顺序时内容错位。
|
||||||
- 点击抽奖后动画从当前 `activeLotteryIndex` 位置继续向后滚动,最终停留在接口返回中奖奖品对应的位置;下一次抽奖继续从上一次停留位置开始模拟转圈。
|
- 点击抽奖后动画从当前 `activeLotteryIndex` 位置继续向后滚动,最终停留在接口返回中奖奖品对应的位置;下一次抽奖继续从上一次停留位置开始模拟转圈。
|
||||||
|
|
||||||
## 本次同步:抽奖 active 图唯一渲染
|
## 本次同步:抽奖 active 图唯一渲染
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user