style(decorate): 金刚区切换为纯图标模式去除底部折行重复文字
这个提交包含在:
@@ -24,7 +24,11 @@ ON DUPLICATE KEY UPDATE
|
|||||||
|
|
||||||
-- 2. 装修模板更新说明:
|
-- 2. 装修模板更新说明:
|
||||||
-- 装修模板数据以 JSON 存储在 `hla_shopro_decorate_page`.`page` 字段中。
|
-- 装修模板数据以 JSON 存储在 `hla_shopro_decorate_page`.`page` 字段中。
|
||||||
-- 已通过运维安全执行脚本完成原子更新,备份文件存放于服务器:
|
-- 因徽章图标内部已包含业务名称文字,首页金刚区 menuButton 统一配置为:
|
||||||
|
-- - layout: 2 (纯图标优雅模式,避免下方文字折行重合)
|
||||||
|
-- - title.text: "" (双重保障清空下方文字)
|
||||||
|
-- - 各项跳转 url 保留 title 参数,实现点击进入后导航栏仍正确显示各中心标题
|
||||||
|
-- 备份文件存放于服务器:
|
||||||
-- /www/wwwroot/henglian.gynhc.com/backups/decorate_page_backup_20260919.json
|
-- /www/wwwroot/henglian.gynhc.com/backups/decorate_page_backup_20260919.json
|
||||||
|
|
||||||
-- 回滚说明:
|
-- 回滚说明:
|
||||||
|
|||||||
@@ -111,11 +111,10 @@ curl -s -k --resolve henglian.gynhc.com:443:127.0.0.1 'https://henglian.gynhc.co
|
|||||||
const list = menuBtn?.data?.list || [];
|
const list = menuBtn?.data?.list || [];
|
||||||
assert(list.length === 5, `正常场景: menuButton 包含 5 个金刚区项目(实际 ${list.length} 个)`);
|
assert(list.length === 5, `正常场景: menuButton 包含 5 个金刚区项目(实际 ${list.length} 个)`);
|
||||||
|
|
||||||
const titles = list.map(item => item.title?.text);
|
assert(menuBtn?.data?.layout === 2, '正常场景: menuButton 采用 layout=2 纯图标模式');
|
||||||
const expectedTitles = ['市级运营中心', '市级合伙人', '省级服务中心', '省级合伙人', '大区分公司'];
|
assert(list.every(item => item.title?.text === ''), '正常场景: 金刚区下方文本已全部清空,避免折行重叠');
|
||||||
assert(JSON.stringify(titles) === JSON.stringify(expectedTitles),
|
|
||||||
`正常场景: 金刚区 5 个项目标题完全匹配需求: ${titles.join(' | ')}`);
|
|
||||||
|
|
||||||
|
const expectedTitles = ['市级运营中心', '市级合伙人', '省级服务中心', '省级合伙人', '大区分公司'];
|
||||||
const allUrlsCorrect = list.every((item, idx) => item.url === `/pages/public/richtext?id=5&title=${expectedTitles[idx]}`);
|
const allUrlsCorrect = list.every((item, idx) => item.url === `/pages/public/richtext?id=5&title=${expectedTitles[idx]}`);
|
||||||
assert(allUrlsCorrect, '正常场景: 5 个项目的跳转链接均正确绑定富文本待开发页及对应标题');
|
assert(allUrlsCorrect, '正常场景: 5 个项目的跳转链接均正确绑定富文本待开发页及对应标题');
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
v-for="(item, index) in arr"
|
v-for="(item, index) in arr"
|
||||||
:key="index"
|
:key="index"
|
||||||
class="grid-item ss-flex ss-flex-col ss-col-center ss-row-center"
|
class="grid-item ss-flex ss-flex-col ss-col-center ss-row-center"
|
||||||
:style="[{ width: Math.floor(clWidth) + 'px', height: '200rpx' }]"
|
:style="[{ width: Math.floor(clWidth) + 'px', height: (data.layout == 1 ? '200rpx' : '160rpx') }]"
|
||||||
hover-class="ss-hover-btn"
|
hover-class="ss-hover-btn"
|
||||||
@tap="sheep.$router.go(item.url)"
|
@tap="sheep.$router.go(item.url)"
|
||||||
>
|
>
|
||||||
@@ -207,7 +207,7 @@
|
|||||||
|
|
||||||
// 生成数据
|
// 生成数据
|
||||||
const menuList = computed(() => splitData(props.data.list, props.data.row * props.data.col));
|
const menuList = computed(() => splitData(props.data.list, props.data.row * props.data.col));
|
||||||
const swiperHeight = computed(() => props.data.row * (props.data.layout == 1 ? 200 : 180));
|
const swiperHeight = computed(() => props.data.row * (props.data.layout == 1 ? 200 : 160));
|
||||||
const windowWidth = sheep.$platform.device.windowWidth;
|
const windowWidth = sheep.$platform.device.windowWidth;
|
||||||
const clWidth = computed(
|
const clWidth = computed(
|
||||||
() =>
|
() =>
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户