修复:电子书VIP套餐页“白块”问题
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<nav-bar :title="$t('vip.bookVip')" />
|
||||
|
||||
<!-- VIP介绍卡片 -->
|
||||
<view class="vip-intro-card">
|
||||
<view class="vip-intro-card mt-2!">
|
||||
<view class="vip-intro-header">
|
||||
<text class="vip-intro-title">📚 读书VIP特权</text>
|
||||
<!-- <text class="vip-intro-subtitle">畅享海量电子图书</text> -->
|
||||
@@ -58,14 +58,15 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, onMounted } from 'vue'
|
||||
import { ref } from 'vue'
|
||||
import { onShow } from '@dcloudio/uni-app'
|
||||
import { useUserStore } from '@/stores/user'
|
||||
import { vipApi } from '@/api/modules/vip'
|
||||
import type { IVipBook } from '@/types/vip'
|
||||
|
||||
const userStore = useUserStore()
|
||||
|
||||
const vipList = ref([])
|
||||
const vipList = ref<IVipBook[]>([])
|
||||
const getVipList = async () => {
|
||||
const res = await vipApi.getBookVipList()
|
||||
// 模拟推荐标识,实际项目中应该从后端获取
|
||||
@@ -100,7 +101,10 @@ onShow(() => {
|
||||
<style lang="scss" scoped>
|
||||
.page-wrapper {
|
||||
padding: 20rpx;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
// background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
background-color: #6E63C4;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user