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

@@ -1,7 +1,7 @@
<template>
<view class="address-edit-content" :style="themeColor">
<view class="edit-wrap">
<view class="tip">{{ $lang('address.addressInfo') }}</view>
<view class="tip">地址信息</view>
<view class="edit-item">
<text class="tit">
{{ $lang('consignee') }}
@@ -41,7 +41,7 @@
<text>*</text>
</text>
<view class="text_inp" :class="{ empty: !formData.full_address, 'color-tip': !formData.full_address }" @click="selectAddress">
{{ formData.full_address ? formData.full_address : $lang('member.selectRegion') }}
{{ formData.full_address ? formData.full_address : '请选择省市区县' }}
</view>
<text @click="selectAddress" class="padding-left iconfont icon-location"></text>
@@ -55,7 +55,7 @@
</text>
<pick-regions :default-regions="defaultRegions" @getRegions="handleGetRegions">
<text class="select-address " :class="{ empty: !formData.full_address, 'color-tip': !formData.full_address }">
{{ formData.full_address ? formData.full_address : $lang('member.selectRegion') }}
{{ formData.full_address ? formData.full_address : '请选择省市区县' }}
</text>
</pick-regions>
</view>
@@ -135,11 +135,11 @@
onShow() {
if (this.formData.id) {
uni.setNavigationBarTitle({
title: this.$lang('address.editAddress')
title: '编辑收货地址'
});
} else {
uni.setNavigationBarTitle({
title: this.$lang('address.addAddress')
title: '新增收货地址'
});
}
},
@@ -197,7 +197,7 @@
this.addressValue += res.data.district_id != undefined ? '-' + res.data.district_id : '';
} else {
this.showToast({
title: this.$lang('member.dataError')
title: '数据有误'
});
}
}
@@ -230,15 +230,15 @@
var statu = res.authSetting;
if (!statu['scope.userLocation']) {
uni.showModal({
title: this.$lang('member.authLocationTitle'),
content: this.$lang('member.authLocationContent'),
title: '是否授权当前位置',
content: '需要获取您的地理位置,请确认授权,否则地图功能将无法使用',
success(tip) {
if (tip.confirm) {
uni.openSetting({
success: function (data) {
if (data.authSetting['scope.userLocation'] === true) {
this.$util.showToast({
title: this.$lang('member.authSuccess')
title: '授权成功'
});
//授权成功之后,再调用chooseLocation选择地方
setTimeout(function () {
@@ -256,7 +256,7 @@
});
} else {
this.$util.showToast({
title: this.$lang('member.authFailed')
title: '授权失败'
});
}
}
@@ -296,27 +296,27 @@
var rule = [{
name: 'name',
checkType: 'required',
errorMsg: this.$lang('form.inputName')
errorMsg: '请输入姓名'
},
{
name: 'mobile',
checkType: 'required',
errorMsg: this.$lang('form.inputMobile')
errorMsg: '请输入手机号'
},
{
name: 'mobile',
checkType: 'phoneno',
errorMsg: this.$lang('form.inputCorrectMobile')
errorMsg: '请输入正确的手机号'
},
{
name: 'full_address',
checkType: 'required',
errorMsg: this.$lang('form.selectRegion')
errorMsg: '请选择省市区县'
},
{
name: 'address',
checkType: 'required',
errorMsg: this.$lang('form.addressNotEmpty')
errorMsg: '详细地址不能为空'
}
];
var checkRes = validate.check(this.formData, rule);