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

@@ -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">