Skip to content

Commit 415baa0

Browse files
committed
feat:【商城】店铺装修-顶部导航,增加背景图片 750px 提示
1 parent ef90faf commit 415baa0

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

src/components/DiyEditor/components/mobile/NavigationBar/property.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@
2929
<ColorInput v-model="formData.bgColor" />
3030
</el-form-item>
3131
<el-form-item label="背景图片" prop="bgImg" v-else>
32-
<UploadImg v-model="formData.bgImg" :limit="1" width="56px" height="56px" />
32+
<div class="flex items-center">
33+
<UploadImg v-model="formData.bgImg" :limit="1" width="56px" height="56px" />
34+
<span class="text-xs text-gray-400 ml-2 mb-2">建议宽度:750</span>
35+
</div>
3336
</el-form-item>
3437
<el-card class="property-group" shadow="never">
3538
<template #header>
@@ -39,8 +42,9 @@
3942
<el-checkbox
4043
v-model="formData._local.previewMp"
4144
@change="formData._local.previewOther = !formData._local.previewMp"
42-
>预览</el-checkbox
4345
>
46+
预览
47+
</el-checkbox>
4448
</el-form-item>
4549
</div>
4650
</template>
@@ -54,8 +58,9 @@
5458
<el-checkbox
5559
v-model="formData._local.previewOther"
5660
@change="formData._local.previewMp = !formData._local.previewOther"
57-
>预览</el-checkbox
5861
>
62+
预览
63+
</el-checkbox>
5964
</el-form-item>
6065
</div>
6166
</template>

src/components/MagicCubeEditor/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@
3535
>
3636
<!-- 右上角热区删除按钮 -->
3737
<div
38-
v-if="selectedHotAreaIndex === index"
38+
v-if="selectedHotAreaIndex === index && hotArea.width && hotArea.height"
3939
class="btn-delete"
4040
@click="handleDeleteHotArea(index)"
4141
>
4242
<Icon icon="ep:circle-close-filled" />
4343
</div>
44-
{{ `${hotArea.width}×${hotArea.height}` }}
44+
<span v-if="hotArea.width">{{ `${hotArea.width}×${hotArea.height}` }}</span>
4545
</div>
4646
</table>
4747
</div>

src/router/modules/remaining.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
478478
title: '模板装修',
479479
noCache: true,
480480
hidden: true,
481-
activeMenu: '/mall/promotion/diy/template'
481+
activeMenu: '/mall/promotion/diy-template/diy-template'
482482
},
483483
component: () => import('@/views/mall/promotion/diy/template/decorate.vue')
484484
},
@@ -489,7 +489,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
489489
title: '页面装修',
490490
noCache: true,
491491
hidden: true,
492-
activeMenu: '/mall/promotion/diy/page'
492+
activeMenu: '/mall/promotion/diy-template/diy-page'
493493
},
494494
component: () => import('@/views/mall/promotion/diy/page/decorate.vue')
495495
}

0 commit comments

Comments
 (0)