| | |
| | | const activeTab = ref(['settings', 'rights', 'products', 'coupons'].includes(routeTab) ? routeTab : 'settings') |
| | | const couponMode = ref<'list' | 'edit'>('list') |
| | | const isEditMode = computed(() => route.query.mode === 'edit') |
| | | const isFoodMerchant = computed(() => form.merchantType === '餐饮服务') |
| | | const isServiceMerchant = computed(() => isFoodMerchant.value || form.merchantType === '景区服务') |
| | | const normalizedMerchantType = computed(() => String(form.merchantType || '').trim()) |
| | | const isFoodMerchant = computed(() => normalizedMerchantType.value === '餐饮服务') |
| | | const isServiceMerchant = computed(() => isFoodMerchant.value || normalizedMerchantType.value === '景区服务') |
| | | |
| | | function queryString(key: string, fallback = '') { |
| | | const value = route.query[key] |