多租户商城-商户端
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.

520 lines
13 KiB

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