diff --git a/src/views/cabinet/shop/card.vue b/src/views/cabinet/shop/card.vue index f20d436..0b73bd0 100644 --- a/src/views/cabinet/shop/card.vue +++ b/src/views/cabinet/shop/card.vue @@ -145,10 +145,9 @@ function getPaymentMethods(mode: number): Array<{ label: string; type: string }> </text> </svg> - <el-descriptions class="cabinet-info" :column="2"> + <el-descriptions class="cabinet-info" :column="1"> <!-- <el-descriptions-item class="type">模式:{{ item.belongType === 0 ? '借还模式' : '固资模式' }}</el-descriptions-item> --> - <el-descriptions-item class="mode">运行模式:</el-descriptions-item> - <el-descriptions-item class="mode"><el-tag :type="getModeType(item.mode)">{{ + <el-descriptions-item class="mode">运行模式:<el-tag :type="getModeType(item.mode)">{{ getModeText(item.mode) }}</el-tag></el-descriptions-item> <!-- <el-descriptions-item class="payment-methods">支付方式: </el-descriptions-item> @@ -198,7 +197,7 @@ function getPaymentMethods(mode: number): Array<{ label: string; type: string }> justify-content: space-between; .cabinet-image { - width: 50%; + width: 40%; height: 130px; padding: 0 3px; object-fit: contain; @@ -214,7 +213,7 @@ function getPaymentMethods(mode: number): Array<{ label: string; type: string }> .cabinet-info { text-align: left; - padding: 26px 0px; + padding: 16px 0px; .name, .type, diff --git a/src/views/cabinet/shop/shop-form-modal.vue b/src/views/cabinet/shop/shop-form-modal.vue index 1346722..3e01e6b 100644 --- a/src/views/cabinet/shop/shop-form-modal.vue +++ b/src/views/cabinet/shop/shop-form-modal.vue @@ -113,7 +113,7 @@ const beforeAvatarUpload = (rawFile) => { }; const currentPaymentMethods = computed(() => { - if (!formData.value.mode) return []; + if (typeof formData.value.mode !== 'number') return []; const methodValues = modeToPaymentMethodMap[formData.value.mode] || []; return methodValues.map(value => { const option = paymentMethodOptions.find(item => item.value === value);