feat: 修改界面样式

This commit is contained in:
王奥斯 2021-09-28 18:26:27 +08:00
parent 3dc35f3786
commit 5fa56e3265
9 changed files with 179 additions and 221 deletions

View File

@ -69,7 +69,7 @@ export default {
} }
</script> </script>
<style lang="less" scoped> <style lang="less">
#app { #app {
position: absolute; position: absolute;
left: 0; left: 0;
@ -91,4 +91,7 @@ export default {
transform: translateX(5px); transform: translateX(5px);
opacity: 0; opacity: 0;
} }
.el-message-box.JSONView{
width: 1100px;
}
</style> </style>

View File

@ -362,7 +362,7 @@
<li class="dib"> <li class="dib">
<span class="icon iconfont">&#xe610;</span> <span class="icon iconfont">&#xe610;</span>
<div class="name">店铺笔记卡片</div> <div class="name">文章模块</div>
<div class="code-name">&amp;#xe610;</div> <div class="code-name">&amp;#xe610;</div>
</li> </li>
@ -1046,7 +1046,7 @@
<li class="dib"> <li class="dib">
<span class="icon iconfont icon-dianpubijikapian"></span> <span class="icon iconfont icon-dianpubijikapian"></span>
<div class="name"> <div class="name">
店铺笔记卡片 文章模块
</div> </div>
<div class="code-name">.icon-dianpubijikapian <div class="code-name">.icon-dianpubijikapian
</div> </div>
@ -1723,7 +1723,7 @@
<svg class="icon svg-icon" aria-hidden="true"> <svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icon-dianpubijikapian"></use> <use xlink:href="#icon-dianpubijikapian"></use>
</svg> </svg>
<div class="name">店铺笔记卡片</div> <div class="name">文章模块</div>
<div class="code-name">#icon-dianpubijikapian</div> <div class="code-name">#icon-dianpubijikapian</div>
</li> </li>

View File

@ -392,7 +392,7 @@
}, },
{ {
"icon_id": "13319817", "icon_id": "13319817",
"name": "店铺笔记卡片", "name": "文章模块",
"font_class": "dianpubijikapian", "font_class": "dianpubijikapian",
"unicode": "e610", "unicode": "e610",
"unicode_decimal": 58896 "unicode_decimal": 58896

View File

@ -4,7 +4,7 @@
<h2>{{ datas.text }}</h2> <h2>{{ datas.text }}</h2>
<el-input v-model="datas.demo" placeholder="请输入公告" /> <el-input v-model="datas.demo" placeholder="请输入公告" />
<el-input v-model="datas.img" placeholder="图片地址" /> <el-input v-model="datas.img" placeholder="图片地址" />
{{ 'aaa'+ data-type}} {{ 'aaa'+ datas.type}}
</div> </div>
</template> </template>

View File

@ -25,7 +25,7 @@
<el-input <el-input
v-model="item.name" v-model="item.name"
class="title" class="title"
placeholder="调研名称" placeholder="表单模块名称"
></el-input> ></el-input>
<el-select <el-select
v-model="item.type" v-model="item.type"

View File

@ -16,7 +16,8 @@
v-for="(item, ind) in items.comList" v-for="(item, ind) in items.comList"
:key="ind" :key="ind"
> >
<i class="iconfont" :class="item.icon" /> <i class="iconfont" :class="item.icon" v-if="item.icon" />
<van-icon :name="item.vanIcon" v-else />
<p>{{ item.text }}</p> <p>{{ item.text }}</p>
</div> </div>
</el-collapse-item> </el-collapse-item>
@ -38,17 +39,18 @@ export default {
title: '基础组件', title: '基础组件',
comList: [ comList: [
{ {
text: '标题文本', text: '商品搜索',
type: '1-1', type: '1-1',
icon: 'icon-shangpinsousuo',
name: 'commoditysearch',
},
{
text: '标题文本',
type: '1-3',
icon: 'icon-Component-biaotiwenzi', icon: 'icon-Component-biaotiwenzi',
name: 'captiontext', name: 'captiontext',
}, },
{
text: '商品',
type: '1-2',
icon: 'icon-goods',
name: 'listswitching',
},
{ {
text: '图片广告', text: '图片广告',
type: '1-3', type: '1-3',
@ -62,10 +64,10 @@ export default {
name: 'graphicnavigation', name: 'graphicnavigation',
}, },
{ {
text: '富文本', text: '底部导航',
type: '1-5', type: '1-5',
icon: 'icon-fuwenben', icon: 'icon-daohang',
name: 'richtext', name: 'tabBar',
}, },
{ {
text: '魔方', text: '魔方',
@ -73,211 +75,118 @@ export default {
icon: 'icon-mofang', icon: 'icon-mofang',
name: 'magiccube', name: 'magiccube',
}, },
{
text: '辅助分割',
type: '1-7',
icon: 'icon-Component-fuzhufenge',
name: 'auxiliarysegmentation',
},
{
text: '商品搜索',
type: '1-8',
icon: 'icon-shangpinsousuo',
name: 'commoditysearch',
},
{
text: '店铺信息',
type: '1-9',
icon: 'icon-dianpuxinxi',
name: 'storeinformation',
},
{
text: '进入店铺',
type: '1-10',
icon: 'icon-jinrudianpu',
name: 'entertheshop',
},
{ {
text: '公告', text: '公告',
type: '1-11', type: '1-7',
icon: 'icon-gonggao', icon: 'icon-gonggao',
name: 'notice', name: 'notice',
}, },
{ {
text: '视频', text: '视频',
type: '1-12', type: '1-8',
icon: 'icon-shipin', icon: 'icon-shipin',
name: 'videoss', name: 'videoss',
}, },
{ {
text: '音频', text: '音频',
type: '1-13', type: '1-9',
icon: 'icon-yuyin', icon: 'icon-yuyin',
name: 'voicer', name: 'voicer',
}, },
{
text: '富文本',
type: '1-10',
icon: 'icon-fuwenben',
name: 'richtext',
},
{
text: '辅助分割',
type: '1-11',
icon: 'icon-Component-fuzhufenge',
name: 'auxiliarysegmentation',
},
{
text: '店铺信息',
type: '1-12',
icon: 'icon-dianpuxinxi',
name: 'storeinformation',
},
{
text: '进入店铺',
type: '1-13',
icon: 'icon-jinrudianpu',
name: 'entertheshop',
},
{ {
text: '社群涨粉', text: '社群涨粉',
type: '1-15', type: '1-14',
icon: 'icon-kuaisuzhangfen', icon: 'icon-kuaisuzhangfen',
name: 'communitypowder', name: 'communitypowder',
}, },
{
text: '店铺笔记卡片',
type: '1-16',
icon: 'icon-dianpubijikapian',
name: 'storenotecard',
},
/* { /* {
text: '人群运营', text: 'xxx',
type: '1-17', type: '1-17',
icon: 'icon-yunying', icon: 'icon-yunying',
name: '' name: ''
}, */ }, */
/* { /* {
text: '在线客服', text: 'xxx',
type: '1-19', type: '1-19',
icon: 'icon-weibiaoti-_huaban', icon: 'icon-weibiaoti-_huaban',
name: '' name: ''
}, */ }, */
/* { /* {
text: '个性化推荐', text: 'xxxx',
type: '1-18', type: '1-18',
icon: 'icon-gexinghuatuijian', icon: 'icon-gexinghuatuijian',
name: '' name: ''
}, */ }, */
{
text: '调研',
type: '1-20',
icon: 'icon-dianpubijikapian',
name: 'investigate',
},
{
text: '导航',
type: '1-21',
icon: 'icon-daohang',
name: 'tabBar',
},
{ {
text: '关注公众号', text: '关注公众号',
type: '1-22', type: '1-15',
icon: 'icon-gongzhonghao', icon: 'icon-gongzhonghao',
name: 'follow', name: 'follow',
}, },
{ {
text: '悬浮', text: '悬浮',
type: '1-23', type: '1-16',
icon: 'icon-wangye', icon: 'icon-wangye',
name: 'suspension', name: 'suspension',
}, },
{ {
text: '自定义模块', text: '自定义模块',
type: '1-13', type: 'demo',
icon: 'icon-zidingyimokuai', icon: 'icon-zidingyimokuai',
name: 'custommodule' name: 'custommodule'
}, },
], ],
}, },
/* { {
title: '营销组件', title: '业务组件',
comList: [ comList: [
{ {
text: '优惠券', text: '商品',
type: '2-1', type: '2-1',
icon: 'icon-youhuiquan', icon: 'icon-goods',
name: '' name: 'listswitching',
}, },
{ {
text: '限时折扣', text: '文章模块',
type: '2-2', type: '2-2',
icon: 'icon-xianshizhekou', icon: 'icon-dianpubijikapian',
name: '' name: 'storenotecard',
}, },
{ {
text: '秒杀', text: '表单模块',
type: '2-3', type: '2-3',
icon: 'icon-miaosha', vanIcon: 'orders-o',
name: '' name: 'investigate',
},
{
text: '拼团',
type: '2-4',
icon: 'icon-pintuan-copy',
name: ''
},
{
text: '砍价',
type: '2-5',
icon: 'icon-kanjia',
name: ''
},
{
text: '周期购',
type: '2-6',
icon: 'icon-zhouqi',
name: ''
},
{
text: '积分商城',
type: '2-7',
icon: 'icon-jifenzhang',
name: ''
} }
] ]
}, },
{
title: '教育组件',
comList: [
{
text: '课程',
type: '3-1',
icon: 'icon-kecheng',
name: ''
},
{
text: '老师',
type: '3-2',
icon: 'icon-laoshi',
name: ''
},
{
text: '知识专栏',
type: '3-3',
icon: 'icon-zhishizhuanlan1',
name: ''
},
{
text: '知识内容',
type: '3-4',
icon: 'icon-zhishizhuanlan',
name: ''
},
{
text: '知识直播',
type: '3-5',
icon: 'icon-zhibobofangshexiangjitianxianxianxing',
name: ''
},
{
text: '知识付费会员',
type: '3-6',
icon: 'icon-zhishifufeihuiyuan',
name: ''
},
{
text: '群打卡',
type: '3-7',
icon: 'icon-daka',
name: ''
},
{
text: '报名表单',
type: '3-8',
icon: 'icon-baomingbiaodan',
name: ''
}
]
} */
], ],
} }
}, },
@ -310,12 +219,13 @@ export default {
<style scoped lang="less"> <style scoped lang="less">
/* 组件 */ /* 组件 */
.sliderassembly { .sliderassembly {
width: 190px; width: 275px;
height: 100%; height: 100%;
overflow-y: scroll; overflow-y: scroll;
border-right: 1px solid #ebedf0; border-right: 1px solid #ebedf0;
box-sizing: border-box; box-sizing: border-box;
padding: 0 12px; padding: 0 12px;
background: #fff;
/* 滚动条 */ /* 滚动条 */
&::-webkit-scrollbar { &::-webkit-scrollbar {
width: 1px; width: 1px;

View File

@ -28,8 +28,9 @@
><i class="el-icon-delete-solid el-icon--left"></i>重置</el-button ><i class="el-icon-delete-solid el-icon--left"></i>重置</el-button
> >
<el-button @click="Preservation" <el-button @click="Preservation"
><i class="el-icon-s-claim el-icon--left"></i>上传并继续</el-button ><i class="el-icon-s-claim el-icon--left"></i>保存</el-button
> >
<el-button @click="catJson">查看JSON </el-button>
<el-button @click="upperShelf" type="primary" <el-button @click="upperShelf" type="primary"
><i class="el-icon-upload el-icon--left"></i>上架</el-button ><i class="el-icon-upload el-icon--left"></i>上架</el-button
> >
@ -141,6 +142,13 @@
<i class="iconfont icon-zujian" /> <i class="iconfont icon-zujian" />
组件管理 组件管理
</span> </span>
<span
class="active"
v-show="rightcom!='componenmanagement'&&rightcom!='decorate'"
>
<i class="iconfont icon-zujian" />
组件设置
</span>
</div> </div>
<!-- 右侧工具栏 --> <!-- 右侧工具栏 -->
@ -393,7 +401,38 @@ export default {
}) })
}) })
}, },
// JSON
catJson() {
this.$alert(
`{
<br/>
"id": ${this.id},
<br/>
"name": "${this.pageSetup.name}",
<br/>
"templateJson": ${JSON.stringify(this.pageSetup)},
<br/>
"component": ${JSON.stringify(this.pageComponents)},
<br/>
}`,
'查看JSON',
{
confirmButtonText: '确定',
customClass: 'JSONView',
dangerouslyUseHTMLString: true,
callback: () => {},
}
)
console.log(
{
id: this.id,
name: this.pageSetup.name,
templateJson: this.pageSetup,
component: this.pageComponents,
},
'----------------查看JSON'
)
},
/** /**
* 保存 * 保存
* *
@ -934,6 +973,7 @@ export default {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
background: #f7f8fa;
} }
/* 手机 */ /* 手机 */
@ -947,9 +987,9 @@ export default {
&::-webkit-scrollbar { &::-webkit-scrollbar {
width: 1px; width: 1px;
} }
&::-webkit-scrollbar-thumb { // &::-webkit-scrollbar-thumb {
background-color: #155bd4; // background-color: #155bd4;
} // }
/* 手机样式 */ /* 手机样式 */
.phoneAll { .phoneAll {
@ -1074,6 +1114,8 @@ export default {
overflow-y: scroll; overflow-y: scroll;
overflow-x: hidden; overflow-x: hidden;
position: relative; position: relative;
padding: 0 12px;
background: #fff;
&::-webkit-scrollbar { &::-webkit-scrollbar {
width: 1px; width: 1px;
} }
@ -1086,7 +1128,7 @@ export default {
.decorateTab { .decorateTab {
position: fixed; position: fixed;
display: flex; display: flex;
right: 390px; right: 380px;
top: 115px; top: 115px;
flex-direction: column; flex-direction: column;
span { span {
@ -1129,4 +1171,5 @@ export default {
transform: translate(8px, 8px); transform: translate(8px, 8px);
opacity: 0; opacity: 0;
} }
</style> </style>

View File

@ -6,30 +6,30 @@ const componentsData = new Map()
componentsData.set('captiontext', { componentsData.set('captiontext', {
component: 'captiontext', component: 'captiontext',
text: '标题文字', text: '标题文字',
type: '1-1', type: '1-3',
active: true, active: true,
style: 'captiontextsstyle', style: 'captiontextsstyle',
setStyle: { setStyle: {
text: '标题文字', text: '标题文字',
name: '标题文字', name: '标题文字',//标题内容
description: '', description: '',//描述内容
wordSize: 16, wordSize: 16,//标题大小
descriptionSize: 12, descriptionSize: 12,//描述大小
wordWeight: 400, wordWeight: 400,//标题粗细
positions: 'left', positions: 'left', //显示位置 可选left/center
descriptionWeight: 200, descriptionWeight: 200,//描述粗细
wordColor: 'rgba(50, 50, 51, 10)', wordColor: 'rgba(50, 50, 51, 10)',//标题颜色
descriptionColor: 'rgba(150, 151, 153, 10)', descriptionColor: 'rgba(150, 151, 153, 10)',//描述颜色
backColor: 'rgba(255, 255, 255, 10)', backColor: 'rgba(255, 255, 255, 10)', //背景颜色
borderBott: false, borderBott: false, //底部分割线
wordHeight: 24, wordHeight: 24,//框体高度
more: { more: { //查看更多
show: false, show: false,//是否显示查看更多
type: 1, type: 1, // 样式选择
text: '查看更多', text: '查看更多', //自定义文字
httpType: 1, httpType: 1,//链接类型
http: '', http: '',//外部链接
select: {}, select: {},//内部跳转链接
}, },
}, },
}) })
@ -37,7 +37,7 @@ componentsData.set('captiontext', {
componentsData.set('listswitching', { componentsData.set('listswitching', {
component: 'listswitching', component: 'listswitching',
text: '商品', text: '商品',
type: '1-2', type: '2-1',
active: true, active: true,
style: 'listswitchingstyle', style: 'listswitchingstyle',
setStyle: { setStyle: {
@ -84,13 +84,13 @@ componentsData.set('pictureads', {
style: 'pictureadsstyle', style: 'pictureadsstyle',
setStyle: { setStyle: {
text: '图片广告', text: '图片广告',
swiperType: 0, swiperType: 0, // 选择模板
borderRadius: 0, borderRadius: 0,// 图片倒角
pageMargin: 0, pageMargin: 0, // 页面边距
imageMargin: 0, imageMargin: 0, // 图片边距
pagingType: 0, pagingType: 0, // 分页类型: 0/"bullets"/"fraction"/"progressbar"
rowindividual: 2, rowindividual: 2,// 一行个数
imageList: [], imageList: [], // 添加图片
}, },
}) })
@ -118,7 +118,7 @@ componentsData.set('graphicnavigation', {
componentsData.set('richtext', { componentsData.set('richtext', {
component: 'richtext', component: 'richtext',
text: '富文本', text: '富文本',
type: '1-5', type: '1-10',
active: true, active: true,
style: 'richtextstyle', style: 'richtextstyle',
setStyle: { setStyle: {
@ -170,7 +170,7 @@ componentsData.set('magiccube', {
componentsData.set('auxiliarysegmentation', { componentsData.set('auxiliarysegmentation', {
component: 'auxiliarysegmentation', component: 'auxiliarysegmentation',
text: '辅助分割', text: '辅助分割',
type: '1-7', type: '1-11',
active: true, active: true,
style: 'auxiliarysegmentationstyle', style: 'auxiliarysegmentationstyle',
setStyle: { setStyle: {
@ -185,7 +185,7 @@ componentsData.set('auxiliarysegmentation', {
componentsData.set('commoditysearch', { componentsData.set('commoditysearch', {
component: 'commoditysearch', component: 'commoditysearch',
text: '商品搜索', text: '商品搜索',
type: '1-8', type: '1-1',
active: true, active: true,
style: 'commoditysearchstyle', style: 'commoditysearchstyle',
setStyle: { setStyle: {
@ -204,7 +204,7 @@ componentsData.set('commoditysearch', {
componentsData.set('storeinformation', { componentsData.set('storeinformation', {
component: 'storeinformation', component: 'storeinformation',
text: '店铺信息', text: '店铺信息',
type: '1-9', type: '1-12',
active: true, active: true,
style: 'storeinformationstyle', style: 'storeinformationstyle',
setStyle: { setStyle: {
@ -219,7 +219,7 @@ componentsData.set('storeinformation', {
componentsData.set('entertheshop', { componentsData.set('entertheshop', {
component: 'entertheshop', component: 'entertheshop',
text: '进入店铺', text: '进入店铺',
type: '1-10', type: '1-13',
active: true, active: true,
style: 'entertheshopstyle', style: 'entertheshopstyle',
setStyle: { setStyle: {
@ -233,7 +233,7 @@ componentsData.set('entertheshop', {
componentsData.set('notice', { componentsData.set('notice', {
component: 'notice', component: 'notice',
text: '公告', text: '公告',
type: '1-11', type: '1-7',
active: true, active: true,
style: 'noticestyle', style: 'noticestyle',
setStyle: { setStyle: {
@ -246,7 +246,7 @@ componentsData.set('notice', {
componentsData.set('videoss', { componentsData.set('videoss', {
component: 'videoss', component: 'videoss',
text: '视频', text: '视频',
type: '1-12', type: '1-8',
active: true, active: true,
style: 'videostyle', style: 'videostyle',
setStyle: { setStyle: {
@ -258,7 +258,7 @@ componentsData.set('videoss', {
componentsData.set('voicer', { componentsData.set('voicer', {
component: 'voicer', component: 'voicer',
text: '音频', text: '音频',
type: '1-13', type: '1-9',
active: true, active: true,
style: 'voicerstyle', style: 'voicerstyle',
setStyle: { setStyle: {
@ -269,7 +269,7 @@ componentsData.set('voicer', {
componentsData.set('custommodule', { componentsData.set('custommodule', {
component: 'custommodule', component: 'custommodule',
text: '自定义模块', text: '自定义模块',
type: '1-14', type: 'demo',
active: true, active: true,
style: 'custommodulestyle', style: 'custommodulestyle',
setStyle: { setStyle: {
@ -281,7 +281,7 @@ componentsData.set('custommodule', {
componentsData.set('communitypowder', { componentsData.set('communitypowder', {
component: 'communitypowder', component: 'communitypowder',
text: '社群涨粉', text: '社群涨粉',
type: '1-15', type: '1-14',
active: true, active: true,
style: 'communitypowderstyle', style: 'communitypowderstyle',
setStyle: { setStyle: {
@ -296,12 +296,12 @@ componentsData.set('communitypowder', {
}) })
componentsData.set('storenotecard', { componentsData.set('storenotecard', {
component: 'storenotecard', component: 'storenotecard',
text: '店铺笔记卡片', text: '文章模块',
type: '1-16', type: '2-2',
active: true, active: true,
style: 'storenotecardstyle', style: 'storenotecardstyle',
setStyle: { setStyle: {
text: '店铺笔记卡片', text: '文章模块',
name: '这里显示专题名称', //专题名称 name: '这里显示专题名称', //专题名称
commodityType: 0, // 选择模板 commodityType: 0, // 选择模板
moditystyle: 0, // 卡片样式选择 moditystyle: 0, // 卡片样式选择
@ -353,24 +353,24 @@ componentsData.set('onlineservice', {
}) })
componentsData.set('investigate', { componentsData.set('investigate', {
component: 'investigate', component: 'investigate',
text: '调研', text: '表单模块',
type: '1-20', type: '2-3',
active: true, active: true,
style: 'investigatestyle', style: 'investigatestyle',
setStyle: { setStyle: {
text: '调研', text: '表单模块',
title: '调研', title: '表单模块',
jsonData: [], //value1为sass显示内容value2为前端显示内容 jsonData: [], //value1为sass显示内容value2为前端显示内容
}, },
}) })
componentsData.set('tabBar', { componentsData.set('tabBar', {
component: 'tabBar', component: 'tabBar',
text: '导航', text: '底部导航',
type: '1-21', type: '1-5',
active: true, active: true,
style: 'tabBarStyle', style: 'tabBarStyle',
setStyle: { setStyle: {
text: '导航', text: '底部导航',
activeColor: '#1989fa', activeColor: '#1989fa',
inactiveColor: '#7d7e80', inactiveColor: '#7d7e80',
isShowBorder: true, isShowBorder: true,
@ -384,7 +384,7 @@ componentsData.set('tabBar', {
componentsData.set('follow', { componentsData.set('follow', {
component: 'follow', component: 'follow',
text: '关注公众号', text: '关注公众号',
type: '1-22', type: '1-15',
active: true, active: true,
style: 'followStyle', style: 'followStyle',
setStyle: { setStyle: {
@ -397,7 +397,7 @@ componentsData.set('follow', {
componentsData.set('suspension', { componentsData.set('suspension', {
component: 'suspension', component: 'suspension',
text: '悬浮按钮', text: '悬浮按钮',
type: '1-23', type: '1-16',
active: true, active: true,
style: 'suspensionstyle', style: 'suspensionstyle',
setStyle: { setStyle: {

View File

@ -337,8 +337,10 @@
</section> </section>
</el-tab-pane> </el-tab-pane>
<!-- <el-tab-pane label="配置管理" name="second">配置管理</el-tab-pane> <el-tab-pane label="开屏广告" name="openScreen">
<el-tab-pane label="角色管理" name="third">角色管理</el-tab-pane> --> 配置管理
</el-tab-pane>
<!-- <el-tab-pane label="xxx" name="third">xxx</el-tab-pane> -->
</el-tabs> </el-tabs>
<!-- 推广弹框 --> <!-- 推广弹框 -->
@ -733,9 +735,9 @@ export default {
box-sizing: border-box; box-sizing: border-box;
/* tab */ /* tab */
/deep/.el-tabs__nav-wrap .is-top { // /deep/.el-tabs__nav-wrap .is-top {
padding: 0 20px; // padding: 0 20px;
} // }
.el-dropdown-link { .el-dropdown-link {
cursor: pointer; cursor: pointer;