diff --git a/locale/index-nvue.js b/locale/index-nvue.js index 2ee8d2c8..bfbac891 100644 --- a/locale/index-nvue.js +++ b/locale/index-nvue.js @@ -18,7 +18,11 @@ export default { "common_complaint": "举报", "upload_b33f08": "上传图片", "common_warm_tips": "温馨提示", - "order_psi67g": "删除后不可恢复、继续吗?" + "order_psi67g": "删除后不可恢复、继续吗?", + "common_internet_error_tips": "网络错误,请稍后重试", + "common_sub_error_retry_tips": "提交失败,请重试", + "video_detail_98yyuf": "请输入评论内容", + "common_delete_confirm_tips": "删除后不可恢复、继续吗?" }, "en": { "common_reply": "Reply", @@ -39,6 +43,10 @@ export default { "common_complaint": "Complaint", "upload_b33f08": "Upload", "common_warm_tips": "Kind reminder", - "order_psi67g": "Unable to recover or continue after deletion?" + "order_psi67g": "Unable to recover or continue after deletion?", + "common_internet_error_tips": "Network error, please try again later", + "common_sub_error_retry_tips": "Submission failed, please try again", + "video_detail_98yyuf": "Please enter comment content", + "common_delete_confirm_tips": "Unable to recover or continue after deletion?" } } \ No newline at end of file diff --git a/pages/plugins/video/detail/detail.nvue b/pages/plugins/video/detail/detail.nvue index ddf9986d..8c4e656a 100644 --- a/pages/plugins/video/detail/detail.nvue +++ b/pages/plugins/video/detail/detail.nvue @@ -242,10 +242,10 @@ import componentCommon from '@/components/common/common'; // 多语言 //#ifdef APP-NVUE - import i18n from '@/locale/index.js'; + import i18n from '@/locale/index.js'; // nvue页面在方法中使用时的处理 - import { initVueI18n } from '@dcloudio/uni-i18n'; - import indexNvue from '@/locale/index-nvue.js'; + import { initVueI18n } from '@dcloudio/uni-i18n'; + import indexNvue from '@/locale/index-nvue.js'; const { t } = initVueI18n(indexNvue) //#endif // 状态栏高度 @@ -539,7 +539,7 @@ }, fail: (err) => { this.data_list_loding_status = 2; - this.data_list_loding_msg = $t('common.internet_error_tips'); + this.data_list_loding_msg = t('common_internet_error_tips'); } }); } catch (error) { @@ -1325,7 +1325,7 @@ } }) } - // 清空输入框, 更新数据内容 + // 清空输入框,更新数据内容 this.active_comments = this.active_comments; this.form_images_list = []; this.comment_input_value = ''; @@ -1334,16 +1334,15 @@ if (app.globalData.is_login_check(res.data)) { app.globalData.showToast(res.data.msg); } else { - app.globalData.showToast($t('common.sub_error_retry_tips')); + app.globalData.showToast(t('common_sub_error_retry_tips')); } } } }); } catch (error) { - console.error('send_comment error:', error); + console.error('send_comment error:', error); } }, - // 展开子评论 open_sub_comment(id, is_level) { try { @@ -1508,7 +1507,7 @@ if (app.globalData.is_login_check(res.data)) { app.globalData.showToast(res.data.msg); } else { - app.globalData.showToast($t('common.sub_error_retry_tips')); + app.globalData.showToast(t('common_sub_error_retry_tips')); } } } @@ -1744,13 +1743,13 @@ if (app.globalData.is_login_check(res.data)) { app.globalData.showToast(res.data.msg); } else { - app.globalData.showToast($t('common.sub_error_retry_tips')); + app.globalData.showToast(t('common_sub_error_retry_tips')); } } } }); } catch (error) { - console.error('delete_comment error:', error); + console.error('send_comment error:', error); } }, // 删除评论数据处理 @@ -1902,7 +1901,7 @@ if (app.globalData.is_login_check(res.data)) { app.globalData.showToast(res.data.msg); } else { - app.globalData.showToast($t('common.sub_error_retry_tips')); + app.globalData.showToast(t('common_sub_error_retry_tips')); } } }