refactor(contact page): 统一使用带命名空间的语言包键值

将页面内所有语言引用都改为contact.contact下的完整命名空间键名,统一语言包调用方式
This commit is contained in:
2026-07-03 10:48:53 +08:00
parent f05eebad43
commit 2705038c36

View File

@@ -11,7 +11,7 @@
style="background: #1daa39;width: 100%;border-radius: 10rpx;"> style="background: #1daa39;width: 100%;border-radius: 10rpx;">
<view class="bl bor" style="box-sizing: border-box;"> <view class="bl bor" style="box-sizing: border-box;">
<image mode="heightFix" :src="$util.img('public/static/img/liuyan.png')" show-menu-by-longpress></image> <image mode="heightFix" :src="$util.img('public/static/img/liuyan.png')" show-menu-by-longpress></image>
<view class="name bl line1" style="margin-top: 6rpx;">{{ $lang('onlineMessage') }} <view class="name bl line1" style="margin-top: 6rpx;">{{ $lang('contact.contact.onlineMessage') }}
</view> </view>
</view> </view>
</view> </view>
@@ -23,13 +23,13 @@
<button class="bl bor" hoverClass="none" openType="contact" sessionFrom="weapp" <button class="bl bor" hoverClass="none" openType="contact" sessionFrom="weapp"
showMessageCard="true" style="margin: 0;"> showMessageCard="true" style="margin: 0;">
<image mode="heightFix" :src="$util.img('public/static/img/kefu.png')" show-menu-by-longpress></image> <image mode="heightFix" :src="$util.img('public/static/img/kefu.png')" show-menu-by-longpress></image>
<view class="name bl line1">{{ $lang('exclusiveCustomerService') }}</view> <view class="name bl line1">{{ $lang('contact.contact.exclusiveCustomerService') }}</view>
</button> </button>
</view> </view>
<view @click="tapMessage" class="view_li w50_li text-center"> <view @click="tapMessage" class="view_li w50_li text-center">
<view class="bl bor" style="box-sizing: border-box;"> <view class="bl bor" style="box-sizing: border-box;">
<image mode="heightFix" :src="$util.img('public/static/img/liuyan.png')" show-menu-by-longpress></image> <image mode="heightFix" :src="$util.img('public/static/img/liuyan.png')" show-menu-by-longpress></image>
<view class="name bl line1" style="margin-top: 6rpx;">{{ $lang('onlineMessage') }} <view class="name bl line1" style="margin-top: 6rpx;">{{ $lang('contact.contact.onlineMessage') }}
</view> </view>
</view> </view>
</view> </view>
@@ -55,7 +55,7 @@
style="margin-top: 8rpx;margin-right: 10rpx;" show-menu-by-longpress></image> style="margin-top: 8rpx;margin-right: 10rpx;" show-menu-by-longpress></image>
<view style="flex: 1; font-size:26rpx;">{{ item.mobile }}</view> <view style="flex: 1; font-size:26rpx;">{{ item.mobile }}</view>
<view class="btn-container" @click="Tel(item.mobile)"><span class="contact-btn" <view class="btn-container" @click="Tel(item.mobile)"><span class="contact-btn"
style="background: #0054a5;">{{ $lang('call') }}</span> style="background: #0054a5;">{{ $lang('contact.contact.call') }}</span>
</view> </view>
</view> </view>
<view class="contact_name" v-if="item.email" <view class="contact_name" v-if="item.email"
@@ -64,7 +64,7 @@
style="margin-top: 8rpx;margin-right: 10rpx;" show-menu-by-longpress></image> style="margin-top: 8rpx;margin-right: 10rpx;" show-menu-by-longpress></image>
<view style="flex: 1; font-size:24rpx;">{{ item.email }}</view> <view style="flex: 1; font-size:24rpx;">{{ item.email }}</view>
<view class="btn-container" @click="copy(item.email)"><span class="contact-btn" <view class="btn-container" @click="copy(item.email)"><span class="contact-btn"
style="background: #0054a5;">{{ $lang('copy') }}</span> style="background: #0054a5;">{{ $lang('contact.contact.copy') }}</span>
</view> </view>
</view> </view>
</view> </view>
@@ -73,7 +73,7 @@
<!-- 企业文件 --> <!-- 企业文件 -->
<view class="view_files_container" v-if="showFileListDiy && fileList.length > 0"> <view class="view_files_container" v-if="showFileListDiy && fileList.length > 0">
<view class="section-title">{{ $lang('enterpriseFiles') }}</view> <view class="section-title">{{ $lang('contact.contact.enterpriseFiles') }}</view>
<view class="files-list"> <view class="files-list">
<view v-for="(file, index) in fileList" :key="index" class="file-item"> <view v-for="(file, index) in fileList" :key="index" class="file-item">
<image mode="aspectFill" :src="$util.img('public/static/img/pdf-icon.png')" <image mode="aspectFill" :src="$util.img('public/static/img/pdf-icon.png')"
@@ -81,7 +81,7 @@
<view class="file-info"> <view class="file-info">
<view class="file-name">{{ file.name }}</view> <view class="file-name">{{ file.name }}</view>
<view class="file-actions"> <view class="file-actions">
<button class="file-btn share-btn" @click="shareFile(file)">{{ $lang('share') <button class="file-btn share-btn" @click="shareFile(file)">{{ $lang('contact.contact.share')
}}</button> }}</button>
</view> </view>
</view> </view>
@@ -90,7 +90,7 @@
</view> </view>
<!-- 企业视频 --> <!-- 企业视频 -->
<view class="view_videos_container" v-if="showVideoListDiy && videoList.length > 0"> <view class="view_videos_container" v-if="showVideoListDiy && videoList.length > 0">
<view class="section-title">{{ $lang('enterpriseVideos') }}</view> <view class="section-title">{{ $lang('contact.contact.enterpriseVideos') }}</view>
<view class="videos-list"> <view class="videos-list">
<view v-for="(video, index) in videoList" :key="index" class="video-item" <view v-for="(video, index) in videoList" :key="index" class="video-item"
@click="playVideo(video)"> @click="playVideo(video)">
@@ -123,7 +123,7 @@
:longitude="shop.longitude" :latitude="shop.latitude" show-location> :longitude="shop.longitude" :latitude="shop.latitude" show-location>
<cover-view <cover-view
style="position:absolute;right:10px;bottom:30rpx;z-index:9;background:#4d83ff;padding:5px 10px;wxcs_style_padding:10rpx 20rpx;border-radius:8rpx;color: #fff;" style="position:absolute;right:10px;bottom:30rpx;z-index:9;background:#4d83ff;padding:5px 10px;wxcs_style_padding:10rpx 20rpx;border-radius:8rpx;color: #fff;"
@click="tomap"><cover-view style="font-size:24rpx">{{ $lang('oneClickNavigation') @click="tomap"><cover-view style="font-size:24rpx">{{ $lang('contact.contact.oneClickNavigation')
}}</cover-view> }}</cover-view>
</cover-view> </cover-view>
</map> </map>
@@ -136,14 +136,14 @@
<uni-popup ref="informationPopup" type="bottom" @change="change"> <uni-popup ref="informationPopup" type="bottom" @change="change">
<view class="liuyan-popup-layer popup-layer"> <view class="liuyan-popup-layer popup-layer">
<view class="head-wrap" @click="closeinformationPopup()"> <view class="head-wrap" @click="closeinformationPopup()">
<text>{{ $lang('onlineMessage') }}</text> <text>{{ $lang('contact.contact.onlineMessage') }}</text>
<text class="iconfont icon-close"></text> <text class="iconfont icon-close"></text>
</view> </view>
<scroll-view scroll-y class="liuyan-body"> <scroll-view scroll-y class="liuyan-body">
<view style="padding: 0 30rpx;"> <view style="padding: 0 30rpx;">
<view class="fui-cell-group"> <view class="fui-cell-group">
<view class="fui-cell "> <view class="fui-cell ">
<view class="fui-cell-label ">{{ $lang('name') }}</view> <view class="fui-cell-label ">{{ $lang('contact.contact.name') }}</view>
<view class="fui-cell-info"> <view class="fui-cell-info">
<input id="input-realname" :value="Form.realname" <input id="input-realname" :value="Form.realname"
@input="e => Form.realname = e.detail.value" class="fui-input" @input="e => Form.realname = e.detail.value" class="fui-input"
@@ -151,7 +151,7 @@
</view> </view>
</view> </view>
<view class="fui-cell "> <view class="fui-cell ">
<view class="fui-cell-label">{{ $lang('contactInfo') }}</view> <view class="fui-cell-label">{{ $lang('contact.contact.contactInfo') }}</view>
<view class="fui-cell-info"> <view class="fui-cell-info">
<input id="input-mobile" :value="Form.mobile" <input id="input-mobile" :value="Form.mobile"
@input="e => Form.mobile = e.detail.value" class="fui-input" maxlength="11" @input="e => Form.mobile = e.detail.value" class="fui-input" maxlength="11"
@@ -160,7 +160,7 @@
</view> </view>
<view class="fui-cell "> <view class="fui-cell ">
<view class="fui-cell-label" style="position: absolute;top:10px">{{ <view class="fui-cell-label" style="position: absolute;top:10px">{{
$lang('messageContent') }}</view> $lang('contact.contact.messageContent') }}</view>
<view class="fui-cell-info" style="margin-left: 160rpx;border: solid 2rpx #eee;"> <view class="fui-cell-info" style="margin-left: 160rpx;border: solid 2rpx #eee;">
<!-- <input v-model="Form.mailbox" class="fui-input" placeholder="请输入您的邮箱" type="text" ></input> --> <!-- <input v-model="Form.mailbox" class="fui-input" placeholder="请输入您的邮箱" type="text" ></input> -->
<textarea id="textarea-remark" :value="Form.remark" <textarea id="textarea-remark" :value="Form.remark"
@@ -172,7 +172,7 @@
</view> </view>
</view> </view>
</scroll-view> </scroll-view>
<view class="button-box"><button type="primary" @click="save()">{{ $lang('submit') }}</button> <view class="button-box"><button type="primary" @click="save()">{{ $lang('contact.contact.submit') }}</button>
</view> </view>
</view> </view>
</uni-popup> </uni-popup>