多租户商城-商户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

487 lines
12 KiB

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