This commit is contained in:
@@ -18,8 +18,7 @@
|
|||||||
class="tab-swiper package-swiper"
|
class="tab-swiper package-swiper"
|
||||||
:current="packageTypeIndex"
|
:current="packageTypeIndex"
|
||||||
:circular="false"
|
:circular="false"
|
||||||
:acceleration="true"
|
:disable-touch="true"
|
||||||
@change="onPackageSwiperChange"
|
|
||||||
>
|
>
|
||||||
<swiper-item v-for="tab in packageTypeTabs" :key="tab.value" class="package-swiper-item">
|
<swiper-item v-for="tab in packageTypeTabs" :key="tab.value" class="package-swiper-item">
|
||||||
<scroll-view v-if="activePackageType === tab.value" scroll-y class="package-scroll">
|
<scroll-view v-if="activePackageType === tab.value" scroll-y class="package-scroll">
|
||||||
@@ -249,12 +248,6 @@
|
|||||||
loadPackages(packageType);
|
loadPackages(packageType);
|
||||||
};
|
};
|
||||||
|
|
||||||
const onPackageSwiperChange = (event) => {
|
|
||||||
const nextIndex = Number(event?.detail?.current);
|
|
||||||
const nextTab = packageTypeTabs[nextIndex];
|
|
||||||
if (nextTab) switchPackageType(nextTab.value);
|
|
||||||
};
|
|
||||||
|
|
||||||
const loadWalletBalance = async () => {
|
const loadWalletBalance = async () => {
|
||||||
try {
|
try {
|
||||||
const data = await walletApi.getDetail(userStore.state.identifier);
|
const data = await walletApi.getDetail(userStore.state.identifier);
|
||||||
@@ -724,9 +717,10 @@
|
|||||||
/* Screenshot-aligned package list skin */
|
/* Screenshot-aligned package list skin */
|
||||||
.container {
|
.container {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 88rpx;
|
/* Keep the page below the platform navigation bar on every screen size. */
|
||||||
|
top: var(--window-top);
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: var(--window-bottom);
|
||||||
left: 0;
|
left: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|||||||
Reference in New Issue
Block a user