panelList.js 12 KB

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