From e8d1cb3968a3e381dda0cfc426273f4227673bf4 Mon Sep 17 00:00:00 2001 From: lukaijie Date: Wed, 29 Apr 2026 19:13:00 +0800 Subject: [PATCH] style(scope): code formated --- .cursor/commit-summary/last-summary.md | 8 +- src/components/sp-decorate/index.vue | 4 +- .../pickers/picker-customer-service.vue | 5 +- .../sp-picker/pickers/picker-link.vue | 4 +- src/i18n/locales/ar.json | 7 ++ src/i18n/locales/en.json | 7 ++ src/i18n/locales/zh-CN.json | 7 ++ src/view/decorate/comps/comp-pickerLink.vue | 81 ++++++++++++++++--- src/view/decorate/index.vue | 4 +- src/view/decorate/wgts/index.js | 6 +- src/view/decorate/wgts/wgt-page/config.js | 3 - src/view/decorate/wgts/wgt-page/index.vue | 2 +- .../wgt_contentPartition/comp_pickerLink.vue | 77 ++++++++++++++++-- .../wgts/wgt_goods/comps/goodsgoods.vue | 1 + src/view/decorate/wgts/wgt_goods/index.vue | 2 +- .../decorate/wgts/wgt_goodsCard/index.vue | 2 +- src/view/decorate/wgts/wgt_group/index.vue | 2 +- .../decorate/wgts/wgt_hotranking/index.vue | 4 +- .../wgt_locationModule/comp_pickerLink.vue | 77 ++++++++++++++++-- src/view/decorate/wgts/wgt_marquees/config.js | 2 +- src/view/decorate/wgts/wgt_ranking/index.vue | 2 +- .../decorate/wgts/wgt_speedkill/index.vue | 4 +- src/view/goods/saleCategory.vue | 10 +-- src/view/mall/trade/examineTransfer.vue | 6 +- src/view/member/cardticket/coupon.vue | 6 +- .../member/promotions/pluspricebuy/list.vue | 5 +- src/view/member/promotions/register.vue | 6 +- src/view/pc/pctemplate/index.vue | 6 +- .../settings/systemConfig/external-app.vue | 52 +++++++++--- .../settings/systemConfig/jstSetting.vue | 8 +- .../systemConfig/mailServiceSetting.vue | 6 +- .../settings/systemConfig/wdtSetting.vue | 8 +- 32 files changed, 323 insertions(+), 101 deletions(-) diff --git a/.cursor/commit-summary/last-summary.md b/.cursor/commit-summary/last-summary.md index dc3e825..838fe64 100644 --- a/.cursor/commit-summary/last-summary.md +++ b/.cursor/commit-summary/last-summary.md @@ -1,7 +1,7 @@ -## 最近一次变更(2026-04-23) +## 最近一次变更(2026-04-27) -**一句话概括**: fix: 软文商品卡片 goodsCard 落库解析、样式转换与预览保存一致 +**一句话概括**: fix: 跑马灯默认文案改为 i18n 翻译值 -**要点**: `findWidgetForPersistedName` 统一按 `config.name` 找挂件;`goodsCard` 组件名与 transform 对齐;内层样式走 `getInnerStyle`;去掉「组件间距」开关与标题区 UI。 +**要点**: `wgt_marquees` 的 `dataText` 默认值由 key 字符串改为 `i18n.t('8fc92d38.cbc608')`,新建/初始化挂件时可直接显示多语言文案。 -详见: `.cursor/commit-summary/2026-04-23-goodsCard-decorate.md` +详见: `.cursor/commit-summary/2026-04-27-marquees-default-i18n.md` diff --git a/src/components/sp-decorate/index.vue b/src/components/sp-decorate/index.vue index 4fd9152..7665ebd 100755 --- a/src/components/sp-decorate/index.vue +++ b/src/components/sp-decorate/index.vue @@ -142,7 +142,9 @@ export default { if (w) return w if (String(this.scene) === '1005' && key === 'goods') { return ( - this.widgets.find((item) => String(item.config?.name || '').toLowerCase() === 'goodscard') || + this.widgets.find( + (item) => String(item.config?.name || '').toLowerCase() === 'goodscard' + ) || this.widgets.find((item) => (item.name || '').toLowerCase() === 'goods') || null ) diff --git a/src/components/sp-picker/pickers/picker-customer-service.vue b/src/components/sp-picker/pickers/picker-customer-service.vue index 3a473ec..a5f704b 100644 --- a/src/components/sp-picker/pickers/picker-customer-service.vue +++ b/src/components/sp-picker/pickers/picker-customer-service.vue @@ -78,7 +78,10 @@ export default { return { list: [ { id: 'customerService', title: this.$t('cc5110aa.107a88') }, - { id: 'guide_service', title: this.$t('cc5110aa.6f33a3') } + { id: 'guide_service', title: this.$t('cc5110aa.6f33a3') }, + { id: 'officialProfile', title: this.$t('cc5110aa.a90321') }, + { id: 'officialChat', title: this.$t('cc5110aa.b70432') }, + { id: 'official', title: this.$t('cc5110aa.c40543') } ], multiple: this.value?.multiple ?? true } diff --git a/src/components/sp-picker/pickers/picker-link.vue b/src/components/sp-picker/pickers/picker-link.vue index 04ae05f..da5f19a 100755 --- a/src/components/sp-picker/pickers/picker-link.vue +++ b/src/components/sp-picker/pickers/picker-link.vue @@ -104,7 +104,9 @@ export default { { id: 'homeSearch', title: this.$t('223cc8af.e5f71f') }, { id: 'settings', title: this.$t('223cc8af.e366cc') }, { id: 'kujiale', title: this.$t('223cc8af.f2d3e5') }, - { id: 'nearby_store', title: this.$t('223cc8af.3b02dd') } + { id: 'nearby_store', title: this.$t('223cc8af.3b02dd') }, + { id: 'nearby_store', title: this.$t('223cc8af.3b02dd') }, + { id: 'itemList', title: '商品列表' } ], multiple: this.value?.multiple ?? true } diff --git a/src/i18n/locales/ar.json b/src/i18n/locales/ar.json index 0314aaf..7086825 100644 --- a/src/i18n/locales/ar.json +++ b/src/i18n/locales/ar.json @@ -22583,6 +22583,13 @@ "cc5110aa.5466f6": "اختر خدمة العملاء", "cc5110aa.107a88": "خدمة عملاء البرنامج المصغر", "cc5110aa.6f33a3": "خدمة دليل التسوق عبر WeCom للمؤسسات", + "cc5110aa.a90321": "الصفحة الرئيسية للحساب الرسمي", + "cc5110aa.b70432": "محادثة الحساب الرسمي", + "cc5110aa.c40543": "مقال الحساب الرسمي", + "cc5110aa.d10654": "معرّف الحساب الرسمي الخام", + "cc5110aa.e20765": "أدخل المعرّف الخام (مثل gh_xxx)", + "cc5110aa.f30876": "رابط مقال الحساب الرسمي", + "cc5110aa.g40987": "أدخل رابط المقال (HTTPS)", "6478e260.2419d0": "فئة المتجر", "6478e260.84b1aa": "معلومات المتاجر القريبة", "027707af.2419d0": "فئة المتجر", diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 2797fcb..4722df1 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -22584,6 +22584,13 @@ "cc5110aa.5466f6": "Select Customer Service", "cc5110aa.107a88": "Mini-program customer service", "cc5110aa.6f33a3": "Enterprise WeCom Guide Service", + "cc5110aa.a90321": "Official account profile", + "cc5110aa.b70432": "Official account chat", + "cc5110aa.c40543": "Official account article", + "cc5110aa.d10654": "Raw official account ID", + "cc5110aa.e20765": "Enter raw ID (e.g. gh_xxx)", + "cc5110aa.f30876": "Official account article link", + "cc5110aa.g40987": "Enter article link (HTTPS)", "6478e260.2419d0": "Store Category", "6478e260.84b1aa": "Nearby Store Information", "027707af.2419d0": "Store category", diff --git a/src/i18n/locales/zh-CN.json b/src/i18n/locales/zh-CN.json index 746a842..cd210ad 100644 --- a/src/i18n/locales/zh-CN.json +++ b/src/i18n/locales/zh-CN.json @@ -22696,6 +22696,13 @@ "cc5110aa.5466f6": "选择客服", "cc5110aa.107a88": "小程序客服", "cc5110aa.6f33a3": "企微导购服务", + "cc5110aa.a90321": "公众号主页", + "cc5110aa.b70432": "公众号会话", + "cc5110aa.c40543": "公众号文章", + "cc5110aa.d10654": "原始公众号ID", + "cc5110aa.e20765": "请输入公众号原始ID(如 gh_xxx)", + "cc5110aa.f30876": "公众号文章链接", + "cc5110aa.g40987": "请输入公众号文章链接(HTTPS)", "6478e260.2419d0": "门店分类", "6478e260.84b1aa": "附近门店信息", "027707af.2419d0": "门店分类", diff --git a/src/view/decorate/comps/comp-pickerLink.vue b/src/view/decorate/comps/comp-pickerLink.vue index 5f53f35..602e248 100755 --- a/src/view/decorate/comps/comp-pickerLink.vue +++ b/src/view/decorate/comps/comp-pickerLink.vue @@ -77,11 +77,35 @@ -
- -
{{ getLabelName() }}
-
-
+ +