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

472 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. }
  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: 'http://cereshop.oss-cn-shenzhen.aliyuncs.com/0000/2020/05/432bb17e-536c-4762-a699-b3f5a2642742.mp4',
  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. linkObj: {
  300. selsectValue: '',
  301. selectName: '',
  302. typeText: '',
  303. url: ''
  304. } // 查看更多链接
  305. }
  306. },
  307. {
  308. title: '类别列表',
  309. iconClass: 'icon-leibieliebiao',
  310. type: 'categoryList',
  311. componentContent: {
  312. title: '类别列表',
  313. categoryData: [
  314. {
  315. id: 1,
  316. selClassData: [],
  317. img: ''
  318. },
  319. {
  320. id: 2,
  321. selClassData: [],
  322. img: ''
  323. },
  324. {
  325. id: 3,
  326. selClassData: [],
  327. img: ''
  328. },
  329. {
  330. id: 4,
  331. selClassData: [],
  332. img: ''
  333. }
  334. ],
  335. textAlign: 'center'
  336. }
  337. }
  338. ]
  339. },
  340. {
  341. title: '店铺组件',
  342. type: 2,
  343. classList: [
  344. {
  345. title: '拼团专区',
  346. iconClass: 'icon-pintuan1',
  347. type: 'groupList',
  348. componentContent: {
  349. // title: '拼团专区',
  350. productData: {
  351. products:[]
  352. },
  353. productRowNum: 1, // 展示行数
  354. productNum: 4, // 展示列数
  355. arrangeType: '多行多列', // 布局方式
  356. showMore: false, // 显示隐藏更多
  357. styleValue: '1', // 查看更多样式
  358. shopGroupWorkId: '',
  359. }
  360. },
  361. {
  362. title: '秒杀专区',
  363. iconClass: 'icon-miaosha1',
  364. type: 'spikeList',
  365. componentContent: {
  366. // title: '秒杀专区',
  367. productData: {
  368. products:[]
  369. },
  370. shopSeckillId: ''
  371. }
  372. },
  373. {
  374. title: '限时折扣',
  375. iconClass: 'icon-zhekou1',
  376. type: 'discountList',
  377. componentContent: {
  378. // title: '限时折扣',
  379. productData: {},
  380. discountId: '',
  381. arrangeType: '多行多列', // 布局方式
  382. moreBg: ''
  383. }
  384. },
  385. {
  386. title: '定价捆绑',
  387. iconClass: 'icon-price',
  388. type: 'priceList',
  389. onlyMerchant: true, // 商家端显示
  390. componentContent: {
  391. // title: '定价捆绑',
  392. productData: {
  393. composeProducts:[]
  394. },
  395. productRowNum: 1, // 展示行数
  396. productNum: 4, // 展示列数
  397. arrangeType: '多行多列', // 布局方式
  398. showMore: false, // 显示隐藏更多
  399. styleValue: '1', // 查看更多样Z
  400. priceId: ''
  401. }
  402. },
  403. {
  404. title: '会员专区',
  405. iconClass: 'icon-huiyuan',
  406. type: 'vip',
  407. onlyAdmin: true, // 平台端显示
  408. componentContent: {
  409. // title: '会员专区',
  410. productData: {
  411. productIdList: [],
  412. },
  413. productRowNum: 1, // 展示行数
  414. productNum: 4, // 展示列数
  415. arrangeType: '多行多列', // 布局方式
  416. showMore: false, // 显示隐藏更多
  417. styleValue: '1', // 查看更多样式
  418. }
  419. },
  420. {
  421. title: '优惠券',
  422. iconClass: 'icon-youhuiquan',
  423. type: 'coupon',
  424. componentContent: {
  425. arrangeActiveIndex: 2,
  426. cardActiveIndex: 1,
  427. colorActiveIndex: 0,
  428. selectedCoupon: [],
  429. }
  430. },
  431. {
  432. title: '每日上新',
  433. iconClass: 'icon-new',
  434. type: 'newProduct',
  435. onlyApp: true, // 只在app显示
  436. componentContent: {
  437. productData: {
  438. sourceType: '1',
  439. imgTextData: [],
  440. productIdList: [],
  441. },
  442. showMore: false, // 显示隐藏更多
  443. styleValue: '1', // 查看更多样式
  444. linkObj: {
  445. selsectValue: '',
  446. selectName: '',
  447. typeText: '',
  448. url: ''
  449. } // 查看更多链接
  450. }
  451. },
  452. {
  453. title: '每日好店',
  454. iconClass: 'icon-toubu',
  455. type: 'shop',
  456. onlyApp: true, // 只在app显示
  457. componentContent: {
  458. imgTextData: [{
  459. linkObj: {
  460. selsectValue: '',
  461. selectName: '',
  462. typeText: '',
  463. url: ''
  464. },
  465. img: ''
  466. }]
  467. }
  468. }
  469. ]
  470. }
  471. ]
  472. export default panelList