fix:修复bug
This commit is contained in:
+14
-14
@@ -78,13 +78,13 @@
|
||||
} from '@/utils/i18n.js'
|
||||
|
||||
const {
|
||||
t: $t
|
||||
t
|
||||
} = useI18n()
|
||||
|
||||
// 设置页面标题
|
||||
onMounted(() => {
|
||||
uni.setNavigationBarTitle({
|
||||
title: $t('feedback.recordList')
|
||||
title: t('feedback.recordList')
|
||||
})
|
||||
})
|
||||
|
||||
@@ -100,25 +100,25 @@
|
||||
// 状态标签
|
||||
const statusTabs = reactive([{
|
||||
get text() {
|
||||
return $t('common.all')
|
||||
return t('common.all')
|
||||
},
|
||||
status: ''
|
||||
},
|
||||
{
|
||||
get text() {
|
||||
return $t('feedback.pending')
|
||||
return t('feedback.pending')
|
||||
},
|
||||
status: 'pending'
|
||||
},
|
||||
{
|
||||
get text() {
|
||||
return $t('feedback.processing')
|
||||
return t('feedback.processing')
|
||||
},
|
||||
status: 'in_progress'
|
||||
},
|
||||
{
|
||||
get text() {
|
||||
return $t('feedback.completed')
|
||||
return t('feedback.completed')
|
||||
},
|
||||
status: 'resolved'
|
||||
}
|
||||
@@ -176,14 +176,14 @@
|
||||
}
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg || $t('feedback.getListFailed'),
|
||||
title: res.msg || t('feedback.getListFailed'),
|
||||
icon: 'none'
|
||||
});
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('获取投诉列表失败:', error);
|
||||
uni.showToast({
|
||||
title: $t('feedback.getListFailed'),
|
||||
title: t('feedback.getListFailed'),
|
||||
icon: 'none'
|
||||
});
|
||||
} finally {
|
||||
@@ -211,11 +211,11 @@
|
||||
// 获取状态文本
|
||||
const getStatusText = (status) => {
|
||||
const statusMap = {
|
||||
'pending': $t('feedback.pending'),
|
||||
'in_progress': $t('feedback.processing'),
|
||||
'resolved': $t('feedback.completed')
|
||||
'pending': t('feedback.pending'),
|
||||
'in_progress': t('feedback.processing'),
|
||||
'resolved': t('feedback.completed')
|
||||
};
|
||||
return statusMap[status] || $t('feedback.pending');
|
||||
return statusMap[status] || t('feedback.pending');
|
||||
};
|
||||
|
||||
// 获取状态样式类
|
||||
@@ -231,8 +231,8 @@
|
||||
// 获取类型文本
|
||||
const getTypeText = (type) => {
|
||||
const typeMap = {
|
||||
'complain': $t('feedback.complain'),
|
||||
'suggestion': $t('feedback.suggestion')
|
||||
'complain': t('feedback.complain'),
|
||||
'suggestion': t('feedback.suggestion')
|
||||
};
|
||||
return typeMap[type] || type || '-';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user