fix: 只要任意一张实名了就可以不强制跳
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 59s
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 59s
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user