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

@@ -42,7 +42,7 @@
<script setup>
import { ref, computed } from 'vue';
import { assetApi, orderApi } from '@/api/index.js';
import { assetApi, isAssetRealNameCompleted, orderApi } from '@/api/index.js';
import {
handlePaymentError,
isValidAlipayPaymentLink,
@@ -110,7 +110,7 @@
}
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: '当前资产下单前需要完成实名认证',

View File

@@ -18,14 +18,16 @@
{{ networkStatus == 1 ? '正常' : '停机' }}
</view>
</view>
<button class="renew-button" @tap.stop="emit('renew')">立即续费</button>
<button v-if="hasPackageName" class="renew-button" @tap.stop="emit('renew')">立即续费</button>
</view>
</template>
<script setup>
import { computed } from 'vue';
const emit = defineEmits(['renew']);
defineProps({
const props = defineProps({
currentCardNo: { type: String, default: '' },
deviceInfo: { type: Object, default: () => ({}) },
onlineStatus: { type: String, default: '离线' },
@@ -35,6 +37,11 @@
expiryDays: { type: [Number, String], default: null }
});
const hasPackageName = computed(() => {
const packageName = String(props.deviceInfo?.packageName || '').trim();
return Boolean(packageName && packageName !== '-');
});
</script>
<style scoped lang="scss">