fix: 只要任意一张实名了就可以不强制跳
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 59s

This commit is contained in:
luo
2026-07-29 15:48:22 +08:00
parent 34ca1c5eca
commit 6c3cf15165
7 changed files with 48 additions and 20 deletions

View File

@@ -86,7 +86,7 @@
<script setup>
import { ref, reactive, onMounted, computed } from 'vue';
import { onLoad, onShow } from '@dcloudio/uni-app';
import { assetApi, orderApi, walletApi } from '@/api/index.js';
import { assetApi, isAssetRealNameCompleted, orderApi, walletApi } from '@/api/index.js';
import { useUserStore } from '@/store/index.js';
import {
consumePendingPaymentRefresh,
@@ -208,7 +208,7 @@
const buyPackage = async (item) => {
await loadAssetType();
if (assetInfo.value.effective_realname_policy === 'before_order' &&
assetInfo.value.realname_required && Number(assetInfo.value.real_name_status) !== 1) {
assetInfo.value.realname_required && !isAssetRealNameCompleted(assetInfo.value)) {
uni.showModal({
title: '需要实名认证',
content: '当前资产下单前需要完成实名认证',