123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473 |
- // 导入api接口模块
- export const panelList = [
- {
- title: '基础组件',
- type: 1,
- classList: [
- {
- title: '商城头部',
- iconClass: 'icon-dianputoubu',
- type: 'header',
- undraggable: true, // 不可拖动
- onlyAdmin: true, // 平台端显示
- onlyApp: true, // 只在app显示
- componentContent: {
- logoType:1,
- imageUrl: '',
- title: '',
- fontSizeNum: '',
- textFontW: 'normal',
- titColor: '#CD5353'
- }
- },
- {
- title: '轮播图',
- iconClass: 'icon-lunbo',
- type: 'banner',
- componentContent: {
- height: 500,
- bannerData: [{
- bannerUrl: '',
- linkObj: {
- selsectValue: '',
- selectName: '',
- typeText: '',
- url: ''
- }
- }]
- }
- },
- {
- title: '标题文本',
- iconClass: 'icon-wenben',
- type: 'text',
- componentContent: {
- title: '标题', // 标题内容
- describe: '描述', // 描述内容
- textPos: 'left', // 文本对齐方向
- fontSizeNum: '16', // 文本字体大小
- describeSizeNum: '14', // 描述字体大小
- textFontW: 'normal', // 文本粗细
- describeFontW: 'normal', // 描述粗细
- titColor: '#333333', // 文本颜色
- describeColor: '#666666', // 描述颜色
- bgColor: '#FFFFFF', // 文本背景
- showLine: false, // 显示隐藏下划线
- showMore: false, // 显示隐藏更多
- styleValue: '1', // 查看更多样式
- link: '' // 查看更多链接
- }
- },
- {
- title: '公告',
- iconClass: 'icon-gonggao1',
- type: 'notice',
- onlyAdmin: true, // 平台端显示
- componentContent: {
- titColor: '#FFFFFF', // 文本颜色
- bgColor: '#333333', // 文本背景
- }
- },
- {
- title: '品牌列表',
- iconClass: 'icon-pinpailiebiao',
- type: 'brandList',
- componentContent: {
- title: '品牌列表',
- imgList: [{
- title: '标题一',
- imgData: '',
- linkObj: {
- selsectValue: '',
- selectName: '',
- typeText: '',
- url: ''
- }
- }, {
- title: '标题二',
- imgData: '',
- linkObj: {
- selsectValue: '',
- selectName: '',
- typeText: '',
- url: ''
- }
- }, {
- title: '标题三',
- imgData: '',
- linkObj: {
- selsectValue: '',
- selectName: '',
- typeText: '',
- url: ''
- }
- }, {
- title: '标题四',
- imgData: '',
- linkObj: {
- selsectValue: '',
- selectName: '',
- typeText: '',
- url: ''
- }
- }],
- textAlign: 'left',
- imgCurrent: null
- }
- },
- {
- title: '图文',
- iconClass: 'icon-tuwen',
- type: 'imageText',
- componentContent: {
- imageUrl: '',
- linkObj: {
- selsectValue: '',
- selectName: '',
- typeText: '',
- url: ''
- },
- positionValue: 'left',
- title: 'title',
- content: ''
- }
- },
- {
- title: '图文列表',
- iconClass: 'icon-tuwenliebiao',
- type: 'imageTextList',
- componentContent: {
- title: '标题',
- textAlign: 'left',
- imgTextData: [{
- linkObj: {
- selsectValue: '',
- selectName: '',
- typeText: '',
- url: ''
- },
- isShow: true,
- title: '图文标题',
- describe: '告别生活,畅享便携生活',
- imgData: ''
- }, {
- linkObj: {
- selsectValue: '',
- selectName: '',
- typeText: '',
- url: ''
- },
- isShow: true,
- title: '图文标题',
- text: '告别生活,畅享便携生活',
- imgData: ''
- }, {
- linkObj: {
- selsectValue: '',
- selectName: '',
- typeText: '',
- url: ''
- },
- isShow: true,
- title: '图文标题',
- describe: '告别生活,畅享便携生活',
- imgData: ''
- }]
- }
- },
- {
- title: '图文导航',
- iconClass: 'icon-tuwendaohang',
- type: 'imageTextNav',
- componentContent: {
- imgTextData: [{
- linkObj: {
- selsectValue: '',
- selectName: '',
- typeText: '',
- url: ''
- },
- title: '标题',
- img: ''
- }, {
- linkObj: {
- selsectValue: '',
- selectName: '',
- typeText: '',
- url: ''
- },
- title: '标题',
- img: ''
- }, {
- linkObj: {
- selsectValue: '',
- selectName: '',
- typeText: '',
- url: ''
- },
- title: '标题',
- img: ''
- }]
- }
- },
- {
- title: '铺助分割',
- iconClass: 'icon-fuzhufenge',
- type: 'assistDiv',
- componentContent: {
- height: 20,
- bgColor: '#ffffff'
- }
- },
- {
- title: '自定义',
- iconClass: 'icon-mofang1',
- type: 'custom',
- componentContent: {
- layoutType: 'L1',
- density: '4',
- maxH: 0,
- imgClearance: 0,
- pageSpacing: 0,
- averageBoxData: [], // 记录格子的激活状态
- imgBoxActive: 0, // 记录框的位置
- elementNum: 1, // 生成格子数量
- imgData: [{
- src: '',
- linkObj: {
- selsectValue: '',
- selectName: '',
- typeText: '',
- url: ''
- }
- }, {
- src: '',
- linkObj: {
- selsectValue: '',
- selectName: '',
- typeText: '',
- url: ''
- }
- }]
- }
- },
- {
- title: '视频',
- iconClass: 'icon-shipin',
- type: 'videoBox',
- componentContent: {
- title: '标题',
- videoUrl: 'https://www.alibabagroup.com/',
- mainBody: '描述',
- coverImg:'',
- }
- },
- {
- title: '直播',
- iconClass: 'icon-zhibo',
- onlyAdmin: true, // 平台端显示
- onlyWeixin: true, // 只在小程序显示
- type: 'live',
- componentContent: {
- showMore: false
- }
- }
- ]
- },
- {
- title: '商品组件',
- type: 1,
- classList: [
- {
- title: '商品列表',
- iconClass: 'icon-shangpin',
- type: 'productList',
- componentContent: {
- title: '商品列表',
- productData: {
- sourceType: '1',
- categoryId: 0,
- categoryName: '',
- imgTextData: [],
- productIdList: [],
- },
- productRowNum: 1, // 展示行数
- productNum: 4, // 展示列数
- arrangeType: '多行多列', // 布局方式
- showMore: false, // 显示隐藏更多
- styleValue: '1', // 查看更多样式
- openBottomLoad:false,// 是否开启触底加载
- linkObj: {
- selsectValue: '',
- selectName: '',
- typeText: '',
- url: ''
- } // 查看更多链接
- }
- },
- {
- title: '类别列表',
- iconClass: 'icon-leibieliebiao',
- type: 'categoryList',
- componentContent: {
- title: '类别列表',
- categoryData: [
- {
- id: 1,
- selClassData: [],
- img: ''
- },
- {
- id: 2,
- selClassData: [],
- img: ''
- },
- {
- id: 3,
- selClassData: [],
- img: ''
- },
- {
- id: 4,
- selClassData: [],
- img: ''
- }
- ],
- textAlign: 'center'
- }
- }
- ]
- },
- {
- title: '店铺组件',
- type: 2,
- classList: [
- {
- title: '拼团专区',
- iconClass: 'icon-pintuan1',
- type: 'groupList',
- componentContent: {
- // title: '拼团专区',
- productData: {
- products:[]
- },
- productRowNum: 1, // 展示行数
- productNum: 4, // 展示列数
- arrangeType: '多行多列', // 布局方式
- showMore: false, // 显示隐藏更多
- styleValue: '1', // 查看更多样式
- shopGroupWorkId: '',
- }
- },
- {
- title: '秒杀专区',
- iconClass: 'icon-miaosha1',
- type: 'spikeList',
- componentContent: {
- // title: '秒杀专区',
- productData: {
- products:[]
- },
- shopSeckillId: ''
- }
- },
- {
- title: '限时折扣',
- iconClass: 'icon-zhekou1',
- type: 'discountList',
- componentContent: {
- // title: '限时折扣',
- productData: {},
- discountId: '',
- arrangeType: '多行多列', // 布局方式
- moreBg: ''
- }
- },
- {
- title: '定价捆绑',
- iconClass: 'icon-price',
- type: 'priceList',
- onlyMerchant: true, // 商家端显示
- componentContent: {
- // title: '定价捆绑',
- productData: {
- composeProducts:[]
- },
- productRowNum: 1, // 展示行数
- productNum: 4, // 展示列数
- arrangeType: '多行多列', // 布局方式
- showMore: false, // 显示隐藏更多
- styleValue: '1', // 查看更多样Z
- priceId: ''
- }
- },
- {
- title: '会员专区',
- iconClass: 'icon-huiyuan',
- type: 'vip',
- onlyAdmin: true, // 平台端显示
- componentContent: {
- // title: '会员专区',
- productData: {
- productIdList: [],
- },
- productRowNum: 1, // 展示行数
- productNum: 4, // 展示列数
- arrangeType: '多行多列', // 布局方式
- showMore: false, // 显示隐藏更多
- styleValue: '1', // 查看更多样式
- }
- },
- {
- title: '优惠券',
- iconClass: 'icon-youhuiquan',
- type: 'coupon',
- componentContent: {
- arrangeActiveIndex: 2,
- cardActiveIndex: 1,
- colorActiveIndex: 0,
- selectedCoupon: [],
- }
- },
- {
- title: '每日上新',
- iconClass: 'icon-new',
- type: 'newProduct',
- onlyApp: true, // 只在app显示
- componentContent: {
- productData: {
- sourceType: '1',
- imgTextData: [],
- productIdList: [],
- },
- showMore: false, // 显示隐藏更多
- styleValue: '1', // 查看更多样式
- linkObj: {
- selsectValue: '',
- selectName: '',
- typeText: '',
- url: ''
- } // 查看更多链接
- }
- },
- {
- title: '每日好店',
- iconClass: 'icon-toubu',
- type: 'shop',
- onlyApp: true, // 只在app显示
- componentContent: {
- imgTextData: [{
- linkObj: {
- selsectValue: '',
- selectName: '',
- typeText: '',
- url: ''
- },
- img: ''
- }]
- }
- }
- ]
- }
- ]
- export default panelList
|