fix: 过期时间
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 53s

This commit is contained in:
sexygoat
2026-05-06 10:16:06 +08:00
parent 52c36dfc9b
commit 9fadbd297b
3 changed files with 37 additions and 13 deletions

View File

@@ -3,7 +3,7 @@
<view class="card-header">
<view class="title">功能菜单</view>
<!-- <view class="header-actions">
<button class="btn-apple btn-primary" @tap="$emit('sync')">运营数据同步</button>
<button class="btn-apple btn-primary" @tap="$emit('sync')">运营数据同步</button>
</view> -->
</view>
<view class="function-grid">
@@ -82,9 +82,9 @@
<view class="function-item interactive card-interactive" @tap="$emit('enter', 'wallet')" role="button"
tabindex="0">
<view class="function-icon">
<image src="/static/wallet.png" mode="aspectFit" alt="我的钱包"></image>
<image src="/static/wallet.png" mode="aspectFit" alt="钱包"></image>
</view>
<view class="function-name">我的钱包</view>
<view class="function-name">{{ walletText }}</view>
</view>
<view class="function-item interactive card-interactive" v-if="isDevice" @tap="$emit('enter', 'recover')"
role="button" tabindex="0">
@@ -114,6 +114,8 @@
</template>
<script setup>
import { computed } from 'vue';
const props = defineProps({
realNameStatus: {
type: String,
@@ -126,17 +128,21 @@
isDevice: {
type: Boolean,
default: true
},
walletBalance: {
type: [Number, String],
default: 0
}
});
const emit = defineEmits(['enter', 'sync']);
const walletText = computed(() => '钱包(¥:' + (props.walletBalance ?? 0) + '');
const handleBindPhone = () => {
if (props.alreadyBindPhone) {
// 已绑定,不可点击
return;
}
// 未绑定,可以点击进入绑定页面
emit('enter', 'bind');
};
</script>
@@ -189,4 +195,4 @@
.text-primary {
color: var(--primary) !important;
}
</style>
</style>