整合api请求、添加购买会员卡页面、登陆页面

This commit is contained in:
future
2026-06-23 22:17:53 +08:00
parent 1c547a717e
commit 8d8c823616
70 changed files with 7666 additions and 2656 deletions
@@ -1,5 +1,5 @@
<template>
<view class="tab-page__header">
<view class="tab-page__header" :style="{ padding: `${statusBarHeight}rpx`, height: `${statusBarHeight + 80}rpx` }">
<view v-if="showBack" :class="['tab-page__back-btn', { 'tab-page__back-btn--animate': isAnimating }]" @tap="goBack">
<text class="tab-page__back-icon"></text>
</view>
@@ -29,8 +29,11 @@ const props = defineProps({
})
const isAnimating = ref(false)
const statusBarHeight = ref(20)
onMounted(() => {
const sysInfo = uni.getSystemInfoSync()
statusBarHeight.value = sysInfo.statusBarHeight || 20
if (props.showBack) {
isAnimating.value = true
}
@@ -49,7 +52,7 @@ function goBack() {
<style lang="scss" scoped>
.tab-page__header {
padding: 48rpx 32rpx 16rpx;
padding: 0 32rpx;
display: flex;
align-items: center;
position: relative;
@@ -89,7 +92,7 @@ function goBack() {
font-size: 36rpx;
color: $text-dark;
font-weight: bold;
line-height: 1;
line-height: 28rpx;
}
.tab-page__title-wrap {