fix: 修复i18n调用路径及资源链接协议

- 修复商品列表页 $lang 调用路径错误,移除多余的 'common' 前缀
- 将 mescroll 组件中的图片资源链接从 http 升级为 https
This commit is contained in:
2026-06-05 10:41:23 +08:00
parent 719d32b77b
commit 70cb01cfc0
3 changed files with 42 additions and 40 deletions

View File

@@ -1,35 +1,35 @@
// 全局配置 // 全局配置
// mescroll-body 和 mescroll-uni 通用 // mescroll-body 和 mescroll-uni 通用
const GlobalOption = { const GlobalOption = {
down: { down: {
// 其他down的配置参数也可以写,这里只展示了常用的配置: // 其他down的配置参数也可以写,这里只展示了常用的配置:
textInOffset: '下拉刷新', // 下拉的距离在offset范围内的提示文本 textInOffset: '下拉刷新', // 下拉的距离在offset范围内的提示文本
textOutOffset: '释放更新', // 下拉的距离大于offset范围的提示文本 textOutOffset: '释放更新', // 下拉的距离大于offset范围的提示文本
textLoading: '加载中 ...', // 加载中的提示文本 textLoading: '加载中 ...', // 加载中的提示文本
offset: 80, // 在列表顶部,下拉大于80px,松手即可触发下拉刷新的回调 offset: 80, // 在列表顶部,下拉大于80px,松手即可触发下拉刷新的回调
native: false // 是否使用系统自带的下拉刷新; 默认false; 仅在mescroll-body生效 (值为true时,还需在pages配置enablePullDownRefresh:true;详请参考mescroll-native的案例) native: false // 是否使用系统自带的下拉刷新; 默认false; 仅在mescroll-body生效 (值为true时,还需在pages配置enablePullDownRefresh:true;详请参考mescroll-native的案例)
}, },
up: { up: {
// 其他up的配置参数也可以写,这里只展示了常用的配置: // 其他up的配置参数也可以写,这里只展示了常用的配置:
textLoading: '加载中 ...', // 加载中的提示文本 textLoading: '加载中 ...', // 加载中的提示文本
textNoMore: '', // 没有更多数据的提示文本 textNoMore: '', // 没有更多数据的提示文本
// textNoMore: '— 我是有底线的 —', // 没有更多数据的提示文本 // textNoMore: '— 我是有底线的 —', // 没有更多数据的提示文本
offset: 80, // 距底部多远时,触发upCallback offset: 80, // 距底部多远时,触发upCallback
isBounce: false, // 默认禁止橡皮筋的回弹效果, 必读事项: http://www.mescroll.com/qa.html?v=190725#q25 isBounce: false, // 默认禁止橡皮筋的回弹效果, 必读事项: http://www.mescroll.com/qa.html?v=190725#q25
toTop: { toTop: {
// 回到顶部按钮,需配置src才显示 // 回到顶部按钮,需配置src才显示
src: "http://www.mescroll.com/img/mescroll-totop.png?v=1", // 图片路径 (建议放入static目录, 如 /static/img/mescroll-totop.png ) src: "https://www.mescroll.com/img/mescroll-totop.png?v=1", // 图片路径 (建议放入static目录, 如 /static/img/mescroll-totop.png )
offset: 1000, // 列表滚动多少距离才显示回到顶部按钮,默认1000px offset: 1000, // 列表滚动多少距离才显示回到顶部按钮,默认1000px
right: 20, // 到右边的距离, 默认20 (支持"20rpx", "20px", "20%"格式的值, 纯数字则默认单位rpx) right: 20, // 到右边的距离, 默认20 (支持"20rpx", "20px", "20%"格式的值, 纯数字则默认单位rpx)
bottom: 120, // 到底部的距离, 默认120 (支持"20rpx", "20px", "20%"格式的值, 纯数字则默认单位rpx) bottom: 120, // 到底部的距离, 默认120 (支持"20rpx", "20px", "20%"格式的值, 纯数字则默认单位rpx)
width: 72 // 回到顶部图标的宽度, 默认72 (支持"20rpx", "20px", "20%"格式的值, 纯数字则默认单位rpx) width: 72 // 回到顶部图标的宽度, 默认72 (支持"20rpx", "20px", "20%"格式的值, 纯数字则默认单位rpx)
}, },
empty: { empty: {
use: true, // 是否显示空布局 use: true, // 是否显示空布局
icon: "http://www.mescroll.com/img/mescroll-empty.png?v=1", // 图标路径 (建议放入static目录, 如 /static/img/mescroll-empty.png ) icon: "https://www.mescroll.com/img/mescroll-empty.png?v=1", // 图标路径 (建议放入static目录, 如 /static/img/mescroll-empty.png )
tip: '~ 暂无相关数据 ~' // 提示 tip: '~ 暂无相关数据 ~' // 提示
} }
} }
} }
export default GlobalOption export default GlobalOption

View File

@@ -18,7 +18,7 @@ export const lang = {
goodsRecommendTitle: '猜你喜欢', goodsRecommendTitle: '猜你喜欢',
currencySymbol: '¥', currencySymbol: '¥',
submit: '提交', submit: '提交',
searchTip: '请输入搜索关键词' searchTip: '请输入搜索关键词'
}, },
//客服 //客服
@@ -53,4 +53,6 @@ export const lang = {
consult: '立即咨询', consult: '立即咨询',
consultSuccess: '咨询成功', consultSuccess: '咨询成功',
consultFail: '咨询失败', consultFail: '咨询失败',
} }

View File

@@ -84,14 +84,14 @@
<view class="cart-action-wrap" v-if="config.control && item.is_virtual == 0"> <view class="cart-action-wrap" v-if="config.control && item.is_virtual == 0">
<view class="cart buy-btn click-wrap" :id="'goods-' + item.id" <view class="cart buy-btn click-wrap" :id="'goods-' + item.id"
@click.stop="$refs.goodsSkuIndex.addCart(config.cartEvent, item, $event)"> @click.stop="$refs.goodsSkuIndex.addCart(config.cartEvent, item, $event)">
{{ $lang('common.buy') }} {{ $lang('buy') }}
<view class="click-event"></view> <view class="click-event"></view>
</view> </view>
</view> </view>
</view> </view>
<view class="ai-chat-btn-wrap" v-if="item.isinformation == 1"> <view class="ai-chat-btn-wrap" v-if="item.isinformation == 1">
<view class="ai-chat-btn" @click.stop="sendToAIChat(item)"> <view class="ai-chat-btn" @click.stop="sendToAIChat(item)">
{{ $lang('common.consult') }} {{ $lang('consult') }}
</view> </view>
</view> </view>
</view> </view>
@@ -132,14 +132,14 @@
<view class="cart-action-wrap" v-if="config.control && item.is_virtual == 0"> <view class="cart-action-wrap" v-if="config.control && item.is_virtual == 0">
<view class="cart buy-btn click-wrap" :id="'goods-' + item.id" <view class="cart buy-btn click-wrap" :id="'goods-' + item.id"
@click.stop="$refs.goodsSkuIndex.addCart(config.cartEvent, item, $event)"> @click.stop="$refs.goodsSkuIndex.addCart(config.cartEvent, item, $event)">
{{ $lang('common.buy') }} {{ $lang('buy') }}
<view class="click-event"></view> <view class="click-event"></view>
</view> </view>
</view> </view>
</view> </view>
<view class="ai-chat-btn-wrap" v-if="item.isinformation == 1"> <view class="ai-chat-btn-wrap" v-if="item.isinformation == 1">
<view class="ai-chat-btn" @click.stop="sendToAIChat(item)"> <view class="ai-chat-btn" @click.stop="sendToAIChat(item)">
{{ $lang('common.consult') }} {{ $lang('consult') }}
</view> </view>
</view> </view>
</view> </view>