panelList.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455
  1. // 导入api接口模块
  2. export const panelList = [
  3. {
  4. title: '基础组件',
  5. type: 1,
  6. classList: [
  7. {
  8. title: '轮播图',
  9. iconClass: 'icon-lunbo',
  10. type: 'banner',
  11. componentContent: {
  12. height: 500,
  13. bannerData: [{
  14. bannerUrl: '',
  15. linkObj: {
  16. selsectValue: '',
  17. selectName: '',
  18. typeText: '',
  19. url: ''
  20. }
  21. }]
  22. }
  23. },
  24. {
  25. title: '标题文本',
  26. iconClass: 'icon-wenben',
  27. type: 'text',
  28. componentContent: {
  29. title: '标题', // 标题内容
  30. describe: '描述', // 描述内容
  31. textPos: 'left', // 文本对齐方向
  32. fontSizeNum: '16', // 文本字体大小
  33. describeSizeNum: '14', // 描述字体大小
  34. textFontW: 'normal', // 文本粗细
  35. describeFontW: 'normal', // 描述粗细
  36. titColor: '#333333', // 文本颜色
  37. describeColor: '#666666', // 描述颜色
  38. bgColor: '#FFFFFF', // 文本背景
  39. showLine: false, // 显示隐藏下划线
  40. showMore: false, // 显示隐藏更多
  41. styleValue: '1', // 查看更多样式
  42. link: '' // 查看更多链接
  43. }
  44. },
  45. {
  46. title: '公告',
  47. iconClass: 'icon-gonggao1',
  48. type: 'notice',
  49. onlyAdmin: true, // 平台端显示
  50. componentContent: {
  51. titColor: '#FFFFFF', // 文本颜色
  52. bgColor: '#333333', // 文本背景
  53. }
  54. },
  55. {
  56. title: '品牌列表',
  57. iconClass: 'icon-pinpailiebiao',
  58. type: 'brandList',
  59. componentContent: {
  60. title: '品牌列表',
  61. imgList: [{
  62. title: '标题一',
  63. imgData: '',
  64. linkObj: {
  65. selsectValue: '',
  66. selectName: '',
  67. typeText: '',
  68. url: ''
  69. }
  70. }, {
  71. title: '标题二',
  72. imgData: '',
  73. linkObj: {
  74. selsectValue: '',
  75. selectName: '',
  76. typeText: '',
  77. url: ''
  78. }
  79. }, {
  80. title: '标题三',
  81. imgData: '',
  82. linkObj: {
  83. selsectValue: '',
  84. selectName: '',
  85. typeText: '',
  86. url: ''
  87. }
  88. }, {
  89. title: '标题四',
  90. imgData: '',
  91. linkObj: {
  92. selsectValue: '',
  93. selectName: '',
  94. typeText: '',
  95. url: ''
  96. }
  97. }],
  98. textAlign: 'left',
  99. imgCurrent: null
  100. }
  101. },
  102. {
  103. title: '图文',
  104. iconClass: 'icon-tuwen',
  105. type: 'imageText',
  106. componentContent: {
  107. imageUrl: '',
  108. linkObj: {
  109. selsectValue: '',
  110. selectName: '',
  111. typeText: '',
  112. url: ''
  113. },
  114. positionValue: 'left',
  115. title: 'title',
  116. content: ''
  117. }
  118. },
  119. {
  120. title: '图文列表',
  121. iconClass: 'icon-tuwenliebiao',
  122. type: 'imageTextList',
  123. componentContent: {
  124. title: '标题',
  125. textAlign: 'left',
  126. imgTextData: [{
  127. linkObj: {
  128. selsectValue: '',
  129. selectName: '',
  130. typeText: '',
  131. url: ''
  132. },
  133. isShow: true,
  134. title: '图文标题',
  135. describe: '告别生活,畅享便携生活',
  136. imgData: ''
  137. }, {
  138. linkObj: {
  139. selsectValue: '',
  140. selectName: '',
  141. typeText: '',
  142. url: ''
  143. },
  144. isShow: true,
  145. title: '图文标题',
  146. text: '告别生活,畅享便携生活',
  147. imgData: ''
  148. }, {
  149. linkObj: {
  150. selsectValue: '',
  151. selectName: '',
  152. typeText: '',
  153. url: ''
  154. },
  155. isShow: true,
  156. title: '图文标题',
  157. describe: '告别生活,畅享便携生活',
  158. imgData: ''
  159. }]
  160. }
  161. },
  162. {
  163. title: '图文导航',
  164. iconClass: 'icon-tuwendaohang',
  165. type: 'imageTextNav',
  166. componentContent: {
  167. imgTextData: [{
  168. linkObj: {
  169. selsectValue: '',
  170. selectName: '',
  171. typeText: '',
  172. url: ''
  173. },
  174. title: '标题',
  175. img: ''
  176. }, {
  177. linkObj: {
  178. selsectValue: '',
  179. selectName: '',
  180. typeText: '',
  181. url: ''
  182. },
  183. title: '标题',
  184. img: ''
  185. }, {
  186. linkObj: {
  187. selsectValue: '',
  188. selectName: '',
  189. typeText: '',
  190. url: ''
  191. },
  192. title: '标题',
  193. img: ''
  194. }]
  195. }
  196. },
  197. {
  198. title: '铺助分割',
  199. iconClass: 'icon-fuzhufenge',
  200. type: 'assistDiv',
  201. componentContent: {
  202. height: 20,
  203. bgColor: '#ffffff'
  204. }
  205. },
  206. {
  207. title: '自定义',
  208. iconClass: 'icon-mofang1',
  209. type: 'custom',
  210. componentContent: {
  211. layoutType: 'L1',
  212. density: '4',
  213. maxH: 0,
  214. imgClearance: 0,
  215. pageSpacing: 0,
  216. averageBoxData: [], // 记录格子的激活状态
  217. imgBoxActive: 0, // 记录框的位置
  218. elementNum: 1, // 生成格子数量
  219. imgData: [{
  220. src: '',
  221. linkObj: {
  222. selsectValue: '',
  223. selectName: '',
  224. typeText: '',
  225. url: ''
  226. }
  227. }, {
  228. src: '',
  229. linkObj: {
  230. selsectValue: '',
  231. selectName: '',
  232. typeText: '',
  233. url: ''
  234. }
  235. }]
  236. }
  237. },
  238. {
  239. title: '视频',
  240. iconClass: 'icon-shipin',
  241. type: 'videoBox',
  242. componentContent: {
  243. title: '标题',
  244. videoUrl: 'https://www.alibabagroup.com/',
  245. mainBody: '描述'
  246. }
  247. },
  248. {
  249. title: '直播',
  250. iconClass: 'icon-zhibo',
  251. onlyAdmin: true, // 平台端显示
  252. onlyApp: true, // 只在app显示
  253. type: 'live',
  254. componentContent: {
  255. showMore: false
  256. }
  257. }
  258. ]
  259. },
  260. {
  261. title: '商品组件',
  262. type: 1,
  263. classList: [
  264. {
  265. title: '商品列表',
  266. iconClass: 'icon-shangpin',
  267. type: 'productList',
  268. componentContent: {
  269. title: '商品列表',
  270. productData: {
  271. sourceType: '1',
  272. categoryId: 0,
  273. categoryName: '',
  274. imgTextData: [],
  275. productIdList: [],
  276. },
  277. productRowNum: 1, // 展示行数
  278. productNum: 4, // 展示列数
  279. arrangeType: '多行多列', // 布局方式
  280. showMore: false, // 显示隐藏更多
  281. styleValue: '1', // 查看更多样式
  282. linkObj: {
  283. selsectValue: '',
  284. selectName: '',
  285. typeText: '',
  286. url: ''
  287. } // 查看更多链接
  288. }
  289. },
  290. {
  291. title: '类别列表',
  292. iconClass: 'icon-leibieliebiao',
  293. type: 'categoryList',
  294. componentContent: {
  295. title: '类别列表',
  296. categoryData: [
  297. {
  298. id: '1',
  299. selClassData: [],
  300. img: ''
  301. },
  302. {
  303. id: '2',
  304. selClassData: [],
  305. img: ''
  306. },
  307. {
  308. id: '3',
  309. selClassData: [],
  310. img: ''
  311. },
  312. {
  313. id: '4',
  314. selClassData: [],
  315. img: ''
  316. }
  317. ],
  318. textAlign: 'center'
  319. }
  320. }
  321. ]
  322. },
  323. {
  324. title: '店铺组件',
  325. type: 2,
  326. classList: [
  327. {
  328. title: '拼团专区',
  329. iconClass: 'icon-pintuan1',
  330. type: 'groupList',
  331. componentContent: {
  332. // title: '拼团专区',
  333. productData: {
  334. products:[]
  335. },
  336. productRowNum: 1, // 展示行数
  337. productNum: 4, // 展示列数
  338. arrangeType: '多行多列', // 布局方式
  339. showMore: false, // 显示隐藏更多
  340. styleValue: '1', // 查看更多样式
  341. shopGroupWorkId: '',
  342. }
  343. },
  344. {
  345. title: '秒杀专区',
  346. iconClass: 'icon-miaosha1',
  347. type: 'spikeList',
  348. componentContent: {
  349. // title: '秒杀专区',
  350. productData: {
  351. products:[]
  352. },
  353. shopSeckillId: ''
  354. }
  355. },
  356. {
  357. title: '限时折扣',
  358. iconClass: 'icon-zhekou1',
  359. type: 'discountList',
  360. componentContent: {
  361. // title: '限时折扣',
  362. productData: {},
  363. discountId: '',
  364. arrangeType: '多行多列', // 布局方式
  365. moreBg: ''
  366. }
  367. },
  368. {
  369. title: '定价捆绑',
  370. iconClass: 'icon-price',
  371. type: 'priceList',
  372. onlyMerchant: true, // 商家端显示
  373. componentContent: {
  374. // title: '定价捆绑',
  375. productData: {
  376. composeProducts:[]
  377. },
  378. productRowNum: 1, // 展示行数
  379. productNum: 4, // 展示列数
  380. arrangeType: '多行多列', // 布局方式
  381. showMore: false, // 显示隐藏更多
  382. styleValue: '1', // 查看更多样Z
  383. priceId: ''
  384. }
  385. },
  386. {
  387. title: '会员专区',
  388. iconClass: 'icon-huiyuan',
  389. type: 'vip',
  390. onlyAdmin: true, // 平台端显示
  391. componentContent: {
  392. // title: '会员专区',
  393. productData: {
  394. productIdList: [],
  395. },
  396. productRowNum: 1, // 展示行数
  397. productNum: 4, // 展示列数
  398. arrangeType: '多行多列', // 布局方式
  399. showMore: false, // 显示隐藏更多
  400. styleValue: '1', // 查看更多样式
  401. }
  402. },
  403. {
  404. title: '优惠券',
  405. iconClass: 'icon-youhuiquan',
  406. type: 'coupon',
  407. componentContent: {
  408. arrangeActiveIndex: 2,
  409. cardActiveIndex: 1,
  410. colorActiveIndex: 0,
  411. selectedCoupon: [],
  412. }
  413. },
  414. {
  415. title: '每日上新',
  416. iconClass: 'icon-new',
  417. type: 'newProduct',
  418. onlyApp: true, // 只在app显示
  419. componentContent: {
  420. productData: {
  421. sourceType: '1',
  422. imgTextData: [],
  423. productIdList: [],
  424. },
  425. showMore: false, // 显示隐藏更多
  426. styleValue: '1', // 查看更多样式
  427. linkObj: {
  428. selsectValue: '',
  429. selectName: '',
  430. typeText: '',
  431. url: ''
  432. } // 查看更多链接
  433. }
  434. },
  435. {
  436. title: '每日好店',
  437. iconClass: 'icon-toubu',
  438. type: 'shop',
  439. onlyApp: true, // 只在app显示
  440. componentContent: {
  441. imgTextData: [{
  442. linkObj: {
  443. selsectValue: '',
  444. selectName: '',
  445. typeText: '',
  446. url: ''
  447. },
  448. img: ''
  449. }]
  450. }
  451. }
  452. ]
  453. }
  454. ]
  455. export default panelList