解决登录显示、首页显示bug
This commit is contained in:
@@ -1,13 +1,6 @@
|
||||
<!-- 机构端 - 机构成长页(安读Tab4 -->
|
||||
<template>
|
||||
<view class="growth-page">
|
||||
<!-- #ifdef MP-WEIXIN -->
|
||||
<!-- Tab 页无返回按钮,显示顶部安全区 + 页面标题 -->
|
||||
<view class="mp-tab-navbar">
|
||||
<text class="mp-tab-title">机构成长</text>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
|
||||
<scroll-view direction="vertical" class="growth-scroll" :refresher-enabled="true" :refresher-triggered="refreshing" @refresherrefresh="onRefresh">
|
||||
|
||||
<!-- 成长等级卡片 -->
|
||||
@@ -139,6 +132,7 @@
|
||||
|
||||
<script lang="uts">
|
||||
import MerchantTabBar from '@/components/merchant-tabbar/MerchantTabBar.uvue'
|
||||
import { requireMerchantAuth } from '@/utils/merchantAuth.uts'
|
||||
|
||||
type TipType = {
|
||||
icon: string
|
||||
@@ -317,10 +311,15 @@
|
||||
},
|
||||
|
||||
onShow() {
|
||||
// 预留:后续可对接成长等级接口
|
||||
this.ensureMerchantAuth()
|
||||
},
|
||||
|
||||
methods: {
|
||||
async ensureMerchantAuth(): Promise<boolean> {
|
||||
const result = await requireMerchantAuth({ redirectOnFail: true, toastOnFail: true })
|
||||
return result.ok
|
||||
},
|
||||
|
||||
onRefresh() {
|
||||
this.refreshing = true
|
||||
// 预留:刷新成长数据
|
||||
@@ -372,7 +371,7 @@
|
||||
|
||||
.growth-scroll {
|
||||
flex: 1;
|
||||
padding: 24rpx;
|
||||
padding: calc(24rpx + var(--status-bar-height)) 24rpx 24rpx;
|
||||
}
|
||||
|
||||
/* 成长等级卡片 */
|
||||
|
||||
Reference in New Issue
Block a user