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

@@ -4,38 +4,38 @@
<!-- 修改用户名 -->
<view v-if="indent == 'username'" class="edit-info">
<view class="edit-info-box">
<text class="info-name">{{ $lang('member.username') }}</text>
<input class="uni-input info-content input-len" type="text" maxlength="30" :placeholder="$lang('form.inputPlaceholder')" v-model="formData.username" />
<text class="info-name">用户名</text>
<input class="uni-input info-content input-len" type="text" maxlength="30" placeholder="请输入" v-model="formData.username" />
</view>
<view class="color-tip font-size-goods-tag set-pass-tips">{{ $lang('member.usernameTip') }}</view>
<view class="color-tip font-size-goods-tag set-pass-tips">用户名仅可修改一次,请谨慎设置</view>
<view class="save-item" @click="save('username')">
<button type="primary">{{ $lang('form.save') }}</button>
<button type="primary">保存</button>
</view>
</view>
<!-- 修改昵称 -->
<view v-if="indent == 'name'" class="edit-info">
<view class="edit-info-box">
<text class="info-name">{{ $lang('member.nickname') }}</text>
<input class="uni-input info-content input-len" type="text" maxlength="30" :placeholder="$lang('form.inputPlaceholder')" v-model="formData.nickName" />
<text class="info-name">昵称</text>
<input class="uni-input info-content input-len" type="text" maxlength="30" placeholder="请输入" v-model="formData.nickName" />
</view>
<view class="save-item" @click="save('name')">
<button type="primary">{{ $lang('form.save') }}</button>
<button type="primary">保存</button>
</view>
</view>
<!-- 修改真实姓名 -->
<view v-if="indent == 'realName'" class="edit-info">
<view class="edit-info-box">
<text class="info-name">{{ $lang('member.realName') }}</text>
<input class="uni-input info-content input-len" type="text" maxlength="30" :placeholder="$lang('form.inputPlaceholder')" v-model="formData.realName" />
<text class="info-name">姓名</text>
<input class="uni-input info-content input-len" type="text" maxlength="30" placeholder="请输入" v-model="formData.realName" />
</view>
<view class="save-item" @click="save('realName')">
<button type="primary">{{ $lang('form.save') }}</button>
<button type="primary">保存</button>
</view>
</view>
<!-- 修改性别 -->
<view v-if="indent == 'sex'" class="edit-info">
<view class="edit-info-box">
<text class="info-name">{{ $lang('member.sex') }}</text>
<text class="info-name">性别</text>
<radio-group @change="radioChange" class="edit-sex-list">
<label class="uni-list-cell uni-list-cell-pd" v-for="(item, index) in items" :key="item.value">
<view>
@@ -46,19 +46,19 @@
</radio-group>
</view>
<view class="save-item" @click="save('sex')">
<button type="primary">{{ $lang('form.save') }}</button>
<button type="primary">保存</button>
</view>
</view>
<!-- 修改生日 -->
<view v-if="indent == 'birthday'" class="edit-info edit-birthday-list">
<view class="edit-info-box">
<text class="info-name">{{ $lang('member.birthday') }}</text>
<text class="info-name">生日</text>
<picker mode="date" :value="formData.birthday" :start="startDate" :end="endDate" @change="bindDateChange">
<view class="uni-input">{{ formData.birthday ? formData.birthday : $lang('form.selectDate') }}</view>
<view class="uni-input">{{ formData.birthday ? formData.birthday : '请选择生日' }}</view>
</picker>
</view>
<view class="save-item" @click="save('birthday')">
<button type="primary">{{ $lang('form.save') }}</button>
<button type="primary">保存</button>
</view>
</view>
<!-- 修改密码 -->
@@ -68,87 +68,87 @@
<view class="empty_img">
<image :src="$util.img('public/uniapp/common/common-empty.png')" mode="aspectFit" show-menu-by-longpress></image>
</view>
<view class="color-tip margin-top margin-bottom">{{ $lang('member.bindMobileTip') }}</view>
<button type="primary" size="mini" class="mini button color-base-bg" @click="modifyInfo('mobile')">{{ $lang('member.bindNow') }}</button>
<view class="color-tip margin-top margin-bottom">请先绑定手机再执行该操作</view>
<button type="primary" size="mini" class="mini button color-base-bg" @click="modifyInfo('mobile')">立即绑定</button>
</view>
</block>
<block v-else>
<view class="edit-info-box" v-if="memberInfo.password">
<text class="info-name">{{ $lang('member.oldPassword') }}</text>
<input class="uni-input info-content input-len" type="password" maxlength="30" :placeholder="$lang('form.inputPlaceholder')" v-model="formData.currentPassword" />
<text class="info-name">原密码</text>
<input class="uni-input info-content input-len" type="password" maxlength="30" placeholder="请输入" v-model="formData.currentPassword" />
</view>
<block v-else>
<view class="edit-info-box">
<text class="info-name">{{ $lang('member.newPassword') }}</text>
<input class="uni-input info-content" type="number" maxlength="4" :placeholder="$lang('form.inputPlaceholder')" v-model="formData.mobileVercode" />
<text class="info-name">新密码</text>
<input class="uni-input info-content" type="number" maxlength="4" placeholder="请输入" v-model="formData.mobileVercode" />
<image :src="captcha.img" class="captcha" @click="getCaptcha" show-menu-by-longpress></image>
</view>
<view class="edit-info-box">
<text class="info-name">{{ $lang('member.confirmPassword') }}</text>
<input class="uni-input info-content" type="number" maxlength="6" :placeholder="$lang('form.inputPlaceholder')" v-model="formData.mobileDynacode" />
<text class="info-name">再次输入</text>
<input class="uni-input info-content" type="number" maxlength="6" placeholder="请输入" v-model="formData.mobileDynacode" />
<button type="primary" class="dynacode" @click="passwordMoblieCode()">{{ formData.mobileCodeText }}</button>
</view>
<view class="color-tip font-size-goods-tag set-pass-tips">
{{ $lang('member.getDynamicCodeTip') }}{{ memberInfoformData.mobile | mobile }}{{ $lang('member.sendVerificationCode') }}</view>
点击“获取动态码”,将会向您已绑定的手机号{{ memberInfoformData.mobile | mobile }}发送验证码</view>
</block>
<view class="edit-info-box">
<text class="info-name">{{ $lang('member.newPassword') }}</text>
<input class="uni-input info-content input-len" type="password" maxlength="30" :placeholder="$lang('form.inputPlaceholder')" v-model="formData.newPassword" />
<text class="info-name">新密码</text>
<input class="uni-input info-content input-len" type="password" maxlength="30" placeholder="请输入" v-model="formData.newPassword" />
</view>
<view class="edit-info-box">
<text class="info-name">{{ $lang('member.confirmPassword') }}</text>
<input class="uni-input info-content input-len" type="password" maxlength="30" :placeholder="$lang('form.inputPlaceholder')" v-model="formData.confirmPassword" />
<text class="info-name">再次输入</text>
<input class="uni-input info-content input-len" type="password" maxlength="30" placeholder="请输入" v-model="formData.confirmPassword" />
</view>
<view class="save-item" @click="save('password')">
<button type="primary">{{ $lang('form.save') }}</button>
<button type="primary">保存</button>
</view>
</block>
</view>
<!-- 修改手机号 -->
<view v-if="indent == 'mobile'" class="edit-info">
<view class="edit-info-box">
<text class="info-name">{{ $lang('member.mobile') }}</text>
<input class="uni-input info-content" type="number" maxlength="11" :placeholder="$lang('form.inputPlaceholder')" v-model="formData.mobile" />
<text class="info-name">手机号</text>
<input class="uni-input info-content" type="number" maxlength="11" placeholder="请输入" v-model="formData.mobile" />
</view>
<view class="edit-info-box">
<text class="info-name">{{ $lang('member.verificationCode') }}</text>
<input class="uni-input info-content" type="number" maxlength="4" :placeholder="$lang('form.inputPlaceholder')" v-model="formData.mobileVercode" />
<text class="info-name">验证码</text>
<input class="uni-input info-content" type="number" maxlength="4" placeholder="请输入" v-model="formData.mobileVercode" />
<image :src="captcha.img" class="captcha" @click="getCaptcha" show-menu-by-longpress></image>
</view>
<view class="edit-info-box">
<text class="info-name">{{ $lang('member.smsVerificationCode') }}</text>
<input class="uni-input info-content" type="number" maxlength="6" :placeholder="$lang('form.inputPlaceholder')" v-model="formData.mobileDynacode" />
<text class="info-name">短信验证码</text>
<input class="uni-input info-content" type="number" maxlength="6" placeholder="请输入" v-model="formData.mobileDynacode" />
<button type="primary" class="dynacode" @click="bindMoblieCode()">{{ formData.mobileCodeText }}</button>
</view>
<view class="save-item" @click="save('mobile')">
<button type="primary">{{ $lang('form.save') }}</button>
<button type="primary">保存</button>
</view>
</view>
<!-- 绑定手机号 -->
<view v-if="indent == 'bind_mobile'" class="edit-info">
<view class="save-item bind-mobile">
<button type="primary" open-type="getPhoneNumber" @getphonenumber="mobileAuth">{{ $lang('member.oneClickAuth') }}</button>
<button type="primary" open-type="getPhoneNumber" @getphonenumber="mobileAuth">一键授权绑定</button>
</view>
<view class="save-item bind-mobile">
<button type="primary" @click="manualBinding">{{ $lang('member.manualBind') }}</button>
<button type="primary" @click="manualBinding">手动绑定</button>
</view>
</view>
<view v-if="indent == 'address'" class="edit-info">
<view class="edit-info-box">
<text class="info-name">{{ $lang('member.region') }}</text>
<text class="info-name">所在地区</text>
<pick-regions :default-regions="defaultRegions" select-arr="3" @getRegions="handleGetRegions">
<text class="select-address " :class="{'color-tip': !formData.fullAddress }">
{{ formData.fullAddress ? formData.fullAddress : $lang('member.selectRegion') }}
{{ formData.fullAddress ? formData.fullAddress : '请选择省市区县' }}
</text>
</pick-regions>
</view>
<view class="edit-info-box">
<text class="info-name">{{ $lang('member.addressDetail') }}</text>
<input class="uni-input info-content" type="text" :placeholder="$lang('member.addressDetail')" v-model="formData.address" />
<text class="info-name">详细地址</text>
<input class="uni-input info-content" type="text" placeholder="详细地址" v-model="formData.address" />
</view>
<view class="save-item" @click="save('address')">
<button type="primary">{{ $lang('form.save') }}</button>
<button type="primary">保存</button>
</view>
</view>
</template>