From 70cb01cfc079b295ea6b63f5c110ffa4e1815398 Mon Sep 17 00:00:00 2001
From: ZF sun <34314687@qq.com>
Date: Fri, 5 Jun 2026 10:41:23 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Di18n=E8=B0=83=E7=94=A8?=
=?UTF-8?q?=E8=B7=AF=E5=BE=84=E5=8F=8A=E8=B5=84=E6=BA=90=E9=93=BE=E6=8E=A5?=
=?UTF-8?q?=E5=8D=8F=E8=AE=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 修复商品列表页 $lang 调用路径错误,移除多余的 'common' 前缀
- 将 mescroll 组件中的图片资源链接从 http 升级为 https
---
components/mescroll/mescroll-uni-option.js | 70 +++++++++++-----------
lang/zh-cn/common.js | 4 +-
pages_goods/list.vue | 8 +--
3 files changed, 42 insertions(+), 40 deletions(-)
diff --git a/components/mescroll/mescroll-uni-option.js b/components/mescroll/mescroll-uni-option.js
index bfcd06d..a701ad1 100644
--- a/components/mescroll/mescroll-uni-option.js
+++ b/components/mescroll/mescroll-uni-option.js
@@ -1,35 +1,35 @@
-// 全局配置
-// mescroll-body 和 mescroll-uni 通用
-const GlobalOption = {
- down: {
- // 其他down的配置参数也可以写,这里只展示了常用的配置:
- textInOffset: '下拉刷新', // 下拉的距离在offset范围内的提示文本
- textOutOffset: '释放更新', // 下拉的距离大于offset范围的提示文本
- textLoading: '加载中 ...', // 加载中的提示文本
- offset: 80, // 在列表顶部,下拉大于80px,松手即可触发下拉刷新的回调
- native: false // 是否使用系统自带的下拉刷新; 默认false; 仅在mescroll-body生效 (值为true时,还需在pages配置enablePullDownRefresh:true;详请参考mescroll-native的案例)
- },
- up: {
- // 其他up的配置参数也可以写,这里只展示了常用的配置:
- textLoading: '加载中 ...', // 加载中的提示文本
- textNoMore: '', // 没有更多数据的提示文本
- // textNoMore: '— 我是有底线的 —', // 没有更多数据的提示文本
- offset: 80, // 距底部多远时,触发upCallback
- isBounce: false, // 默认禁止橡皮筋的回弹效果, 必读事项: http://www.mescroll.com/qa.html?v=190725#q25
- toTop: {
- // 回到顶部按钮,需配置src才显示
- src: "http://www.mescroll.com/img/mescroll-totop.png?v=1", // 图片路径 (建议放入static目录, 如 /static/img/mescroll-totop.png )
- offset: 1000, // 列表滚动多少距离才显示回到顶部按钮,默认1000px
- right: 20, // 到右边的距离, 默认20 (支持"20rpx", "20px", "20%"格式的值, 纯数字则默认单位rpx)
- bottom: 120, // 到底部的距离, 默认120 (支持"20rpx", "20px", "20%"格式的值, 纯数字则默认单位rpx)
- width: 72 // 回到顶部图标的宽度, 默认72 (支持"20rpx", "20px", "20%"格式的值, 纯数字则默认单位rpx)
- },
- empty: {
- use: true, // 是否显示空布局
- icon: "http://www.mescroll.com/img/mescroll-empty.png?v=1", // 图标路径 (建议放入static目录, 如 /static/img/mescroll-empty.png )
- tip: '~ 暂无相关数据 ~' // 提示
- }
- }
-}
-
-export default GlobalOption
+// 全局配置
+// mescroll-body 和 mescroll-uni 通用
+const GlobalOption = {
+ down: {
+ // 其他down的配置参数也可以写,这里只展示了常用的配置:
+ textInOffset: '下拉刷新', // 下拉的距离在offset范围内的提示文本
+ textOutOffset: '释放更新', // 下拉的距离大于offset范围的提示文本
+ textLoading: '加载中 ...', // 加载中的提示文本
+ offset: 80, // 在列表顶部,下拉大于80px,松手即可触发下拉刷新的回调
+ native: false // 是否使用系统自带的下拉刷新; 默认false; 仅在mescroll-body生效 (值为true时,还需在pages配置enablePullDownRefresh:true;详请参考mescroll-native的案例)
+ },
+ up: {
+ // 其他up的配置参数也可以写,这里只展示了常用的配置:
+ textLoading: '加载中 ...', // 加载中的提示文本
+ textNoMore: '', // 没有更多数据的提示文本
+ // textNoMore: '— 我是有底线的 —', // 没有更多数据的提示文本
+ offset: 80, // 距底部多远时,触发upCallback
+ isBounce: false, // 默认禁止橡皮筋的回弹效果, 必读事项: http://www.mescroll.com/qa.html?v=190725#q25
+ toTop: {
+ // 回到顶部按钮,需配置src才显示
+ src: "https://www.mescroll.com/img/mescroll-totop.png?v=1", // 图片路径 (建议放入static目录, 如 /static/img/mescroll-totop.png )
+ offset: 1000, // 列表滚动多少距离才显示回到顶部按钮,默认1000px
+ right: 20, // 到右边的距离, 默认20 (支持"20rpx", "20px", "20%"格式的值, 纯数字则默认单位rpx)
+ bottom: 120, // 到底部的距离, 默认120 (支持"20rpx", "20px", "20%"格式的值, 纯数字则默认单位rpx)
+ width: 72 // 回到顶部图标的宽度, 默认72 (支持"20rpx", "20px", "20%"格式的值, 纯数字则默认单位rpx)
+ },
+ empty: {
+ use: true, // 是否显示空布局
+ icon: "https://www.mescroll.com/img/mescroll-empty.png?v=1", // 图标路径 (建议放入static目录, 如 /static/img/mescroll-empty.png )
+ tip: '~ 暂无相关数据 ~' // 提示
+ }
+ }
+}
+
+export default GlobalOption
diff --git a/lang/zh-cn/common.js b/lang/zh-cn/common.js
index 48f4f62..92110fe 100644
--- a/lang/zh-cn/common.js
+++ b/lang/zh-cn/common.js
@@ -18,7 +18,7 @@ export const lang = {
goodsRecommendTitle: '猜你喜欢',
currencySymbol: '¥',
submit: '提交',
- searchTip: '请输入搜索关键词'
+ searchTip: '请输入搜索关键词'
},
//客服
@@ -53,4 +53,6 @@ export const lang = {
consult: '立即咨询',
consultSuccess: '咨询成功',
consultFail: '咨询失败',
+
+
}
diff --git a/pages_goods/list.vue b/pages_goods/list.vue
index 97aa85b..0f00945 100644
--- a/pages_goods/list.vue
+++ b/pages_goods/list.vue
@@ -84,14 +84,14 @@
- {{ $lang('common.buy') }}
+ {{ $lang('buy') }}
- {{ $lang('common.consult') }}
+ {{ $lang('consult') }}
@@ -132,14 +132,14 @@
- {{ $lang('common.buy') }}
+ {{ $lang('buy') }}
- {{ $lang('common.consult') }}
+ {{ $lang('consult') }}