refactor: 替换多页面国际化文本为硬编码中文内容

移除项目内大部分$lang()国际化调用,替换为直接中文文本,统一前端展示文案
This commit is contained in:
2026-06-23 08:55:16 +08:00
parent 750ed2dac7
commit f258987e0e
180 changed files with 2207 additions and 4701 deletions

View File

@@ -14,8 +14,8 @@
</view>
<block v-if="g0>0">
<view class="foot">
<view @tap="generateImage" class="item" style="margin-right:30rpx;">{{ $lang('seal.exportImage') }}</view>
<view @tap="generatePdf" class="item">{{ $lang('seal.exportPdf') }}</view>
<view @tap="generateImage" class="item" style="margin-right:30rpx;">导出图片</view>
<view @tap="generatePdf" class="item">导出PDF</view>
</view>
</block>
</view>
@@ -26,7 +26,7 @@
export default {
data() {
return {
title: this.$lang("seal.searchResult"),
title: "搜索结果",
info: {},
list: [],
keyword: "",
@@ -50,7 +50,7 @@ export default {
methods: {
generatePdf() {
const url = this.$util.img(this.info.files_url);
uni.showLoading({ title: this.$lang('cases.loading') });
uni.showLoading({ title: '正在加载' });
try {
uni.downloadFile({
url: url,
@@ -70,7 +70,7 @@ export default {
},
complete: (res) => {
if (res.statusCode === 404) {
uni.showToast({ title: this.$lang('cases.fileNotExist'), icon: 'none' });
uni.showToast({ title: '文件不存在', icon: 'none' });
}
}
});
@@ -80,7 +80,7 @@ export default {
},
generateImage() {
const url = this.$util.img(this.info.img_url);
uni.showLoading({ title: this.$lang('cases.loading') });
uni.showLoading({ title: '正在加载' });
uni.downloadFile({
url: url,
success: (res) => {
@@ -89,21 +89,21 @@ export default {
uni.saveImageToPhotosAlbum({
filePath: res.tempFilePath,
success: () => {
this.$util.showToast({ title: this.$lang('seal.saveSuccess') });
this.$util.showToast({ title: '保存成功' });
},
fail: (err) => {
if (err.errMsg !== 'saveImageToPhotosAlbum:fail auth deny' && err.errMsg !== 'saveImageToPhotosAlbum:fail:auth denied') {
this.$util.showToast({ title: this.$lang('seal.saveFail') });
this.$util.showToast({ title: '保存失败,请稍后重试' });
}
}
});
} else {
this.$util.showToast({ title: this.$lang('seal.downloadFail') });
this.$util.showToast({ title: '下载失败' });
}
},
fail: (err) => {
uni.hideLoading();
this.$util.showToast({ title: this.$lang('seal.downloadFail') });
this.$util.showToast({ title: '下载失败' });
}
});
},

View File

@@ -3,7 +3,7 @@
<view class="content">
<view class="cate-search">
<view class="search-box">
<input class="uni-input" maxlength="50" confirm-type="search" :focus="true" :placeholder="$lang('seal.inputMediumName')" v-model="inputValue" @focus="inputFocus" @confirm="search" @input="inputChange" />
<input class="uni-input" maxlength="50" confirm-type="search" :focus="true" placeholder="请输入介质名称 '如汽油'" v-model="inputValue" @focus="inputFocus" @confirm="search" @input="inputChange" />
<text @tap="search" class="iconfont icon-sousuo3"></text>
</view>
</view>
@@ -12,7 +12,7 @@
<view class="history">
<view class="history-box">
<view class="history-top">
<view class="title">{{ $lang('seal.searchResult') }}</view>
<view class="title">搜索结果</view>
</view>
<view class="history-bottom">
<block v-for="(item, index) in list" :key="index">
@@ -25,7 +25,7 @@
</view>
</block>
<view>
<ns-empty v-if="list.length === 0" isIndex="false" :text="$lang('seal.noData')"></ns-empty>
<ns-empty v-if="list.length === 0" isIndex="false" text="暂无数据"></ns-empty>
</view>
</view>
</view>
@@ -78,8 +78,8 @@ export default {
},
deleteHistoryList() {
uni.showModal({
title: this.$lang('form.tip'),
content: this.$lang('seal.confirmDeleteAllHistory'),
title: "提示",
content: "确认删除全部历史记录?",
success: (res) => {
if (res.confirm) {
uni.setStorageSync("search", []);
@@ -90,8 +90,8 @@ export default {
},
deleteItem(item, index) {
uni.showModal({
title: this.$lang('form.tip'),
content: this.$lang('seal.confirmDeleteHistory'),
title: "提示",
content: "确认删除该条历史记录?",
success: (res) => {
if (res.confirm) {
let search = uni.getStorageSync("search");