feat: 网店管理-按钮文案从「停用/启用」改为「休息/营业」
This commit is contained in:
@@ -97,7 +97,7 @@
|
||||
v-if="row.toggleActionText"
|
||||
class="op"
|
||||
:class="[
|
||||
row.toggleActionText === '停用' ? 'opDanger' : 'opSuccess',
|
||||
row.toggleActionText === '休息' ? 'opDanger' : 'opSuccess',
|
||||
{ opDisabled: updatingStoreId === row.id },
|
||||
]"
|
||||
@tap="toggle(row)"
|
||||
@@ -234,7 +234,7 @@
|
||||
const normalizeRow = (store) => {
|
||||
const status = getStoreStatus(store);
|
||||
const statusConfig = statusMap[status] || { text: '--', className: '' };
|
||||
const toggleActionText = status === 1 ? '停用' : status === 2 || status === 3 ? '启用' : '';
|
||||
const toggleActionText = status === 1 ? '休息' : status === 2 || status === 3 ? '营业' : '';
|
||||
const progressInfo = getStoreProgressInfo(store);
|
||||
return {
|
||||
id: Number(store?.id || 0),
|
||||
@@ -336,7 +336,7 @@
|
||||
const toggle = (row) => {
|
||||
const storeId = Number(row?.id || 0);
|
||||
const nextStatus = row?.status === 1 ? 2 : row?.status === 2 || row?.status === 3 ? 1 : 0;
|
||||
const actionText = nextStatus === 1 ? '启用' : '停用';
|
||||
const actionText = nextStatus === 1 ? '营业' : '休息';
|
||||
if (!(storeId > 0) || !(nextStatus === 1 || nextStatus === 2) || updatingStoreId.value === storeId) return;
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
|
||||
Reference in New Issue
Block a user