components.php 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740
  1. <?php
  2. return [
  3. 'MALL_COMPONENT' => [
  4. 'title' => get_lang('dict_diy.mall_component_type_basic'),
  5. 'list' => [
  6. 'MallGoodsList' => [
  7. 'title' => '商品列表',
  8. 'icon' => 'iconfont iconshangpinliebiao',
  9. 'path' => 'edit-mall-goods-list',
  10. 'support_page' => [],
  11. 'uses' => 0,
  12. 'sort' => 10011,
  13. 'value' => [
  14. 'style' => 'style-1',
  15. 'source' => 'all',
  16. 'num' => 10,
  17. 'goods_category' => '',
  18. "goods_category_name" => "请选择",
  19. 'goods_ids' => [],
  20. "sortWay" => "default", // 排序方式,default:综合,sale_num:销量,price:价格
  21. "goodsNameStyle" => [
  22. "color" => "#303133",
  23. "control" => true,
  24. "fontWeight" => 'normal',
  25. "isShow" => true
  26. ],
  27. "priceStyle" => [
  28. "color" => "#FF4142",
  29. "control" => true,
  30. "isShow" => true
  31. ],
  32. "saleStyle" => [
  33. "color" => "#999999",
  34. "control" => true,
  35. "isShow" => true
  36. ],
  37. "labelStyle" => [
  38. "control" => true,
  39. "isShow" => true
  40. ],
  41. "btnStyle" => [
  42. "fontWeight" => false,
  43. "padding" => 0,
  44. "aroundRadius" => 25,
  45. "cartEvent" => "detail",
  46. "text" => "购买",
  47. "textColor" => "#FFFFFF",
  48. "startBgColor" => "#FF4142",
  49. "endBgColor" => "#FF4142",
  50. "style" => "button",
  51. "control" => true
  52. ],
  53. "imgElementRounded" => 10,// 图片圆角
  54. ],
  55. // 组件属性
  56. 'template' => [
  57. "textColor" => "#303133", // 文字颜色
  58. 'pageStartBgColor' => '', // 底部背景颜色(开始)
  59. 'pageEndBgColor' => '', // 底部背景颜色(结束)
  60. 'pageGradientAngle' => 'to bottom', // 渐变角度,从上到下(to bottom)、从左到右(to right)
  61. 'componentBgUrl' => '', // 组件背景图片
  62. 'componentBgAlpha' => 2, // 组件背景图片的透明度,0~10
  63. "componentStartBgColor" => '', // 组件背景颜色(开始)
  64. "componentEndBgColor" => '', // 组件背景颜色(结束)
  65. "componentGradientAngle" => 'to bottom', // 渐变角度,上下(to bottom)、左右(to right)
  66. "topRounded" => 0, // 组件上圆角
  67. "bottomRounded" => 0, // 组件下圆角
  68. "elementBgColor" => '', // 元素背景颜色
  69. "topElementRounded" => 10,// 元素上圆角
  70. "bottomElementRounded" => 10, // 元素下圆角
  71. "margin" => [
  72. "top" => 0, // 上边距
  73. "bottom" => 0, // 下边距
  74. "both" => 10 // 左右边距
  75. ]
  76. ]
  77. ],
  78. 'MallSearch' => [
  79. 'title' => '搜索',
  80. 'icon' => 'iconfont iconsousuo',
  81. 'path' => 'edit-mall-search',
  82. 'support_page' => [],
  83. 'uses' => 1,
  84. 'sort' => 10012,
  85. 'value' => [
  86. "searchStyle" => "style-1",
  87. "searchLink" => [
  88. "name" => ""
  89. ],
  90. "text" => "请输入搜索关键词",
  91. "iconType" => "img",
  92. "icon" => "",
  93. "imageUrl" => ""
  94. ],
  95. // 组件属性
  96. 'template' => [
  97. "textColor" => "#303133", // 文字颜色
  98. 'pageStartBgColor' => '', // 底部背景颜色(开始)
  99. 'pageEndBgColor' => '', // 底部背景颜色(结束)
  100. 'pageGradientAngle' => 'to bottom', // 渐变角度,从上到下(to bottom)、从左到右(to right)
  101. 'componentBgUrl' => '', // 组件背景图片
  102. 'componentBgAlpha' => 2, // 组件背景图片的透明度,0~10
  103. "componentStartBgColor" => '', // 组件背景颜色(开始)
  104. "componentEndBgColor" => '', // 组件背景颜色(结束)
  105. "componentGradientAngle" => 'to bottom', // 渐变角度,上下(to bottom)、左右(to right)
  106. "topRounded" => 0, // 组件上圆角
  107. "bottomRounded" => 0, // 组件下圆角
  108. "elementBgColor" => '', // 元素背景颜色
  109. "topElementRounded" => 0,// 元素上圆角
  110. "bottomElementRounded" => 0, // 元素下圆角
  111. "margin" => [
  112. "top" => 10, // 上边距
  113. "bottom" => 10, // 下边距
  114. "both" => 10 // 左右边距
  115. ]
  116. ]
  117. ],
  118. 'MallManyGoodsList' => [
  119. 'title' => '多商品组',
  120. 'icon' => 'iconfont iconduoshangpinzu',
  121. 'path' => 'edit-mall-many-goods-list',
  122. 'support_page' => [],
  123. 'uses' => 0,
  124. 'sort' => 10013,
  125. 'value' => [
  126. 'style' => 'style-2',
  127. 'num' => 6,
  128. "sortWay" => "default", // 排序方式,default:综合,sale_num:销量,price:价格
  129. "headStyle" => "style-1",
  130. "aroundRadius" => 25,
  131. "source" => "custom",
  132. "goods_category" => '',
  133. "goods_category_name" => '请选择',
  134. "goodsNameStyle" => [
  135. "color" => "#303133",
  136. "control" => true,
  137. "fontWeight" => 'normal',
  138. "isShow" => true
  139. ],
  140. "priceStyle" => [
  141. "color" => "#FF4142",
  142. "control" => true,
  143. "isShow" => true
  144. ],
  145. "saleStyle" => [
  146. "color" => "#999999",
  147. "control" => true,
  148. "isShow" => true
  149. ],
  150. "labelStyle" => [
  151. "control" => true,
  152. "isShow" => true
  153. ],
  154. "btnStyle" => [
  155. "fontWeight" => false,
  156. "padding" => 0,
  157. "aroundRadius" => 25,
  158. "cartEvent" => "detail",
  159. "text" => "购买",
  160. "textColor" => "#FFFFFF",
  161. "startBgColor" => "#FF4142",
  162. "endBgColor" => "#FF4142",
  163. "style" => "button",
  164. "control" => true
  165. ],
  166. "list" => [
  167. [
  168. "title" => "推荐",
  169. "desc" => "猜你喜欢",
  170. "source" => "all",
  171. "goods_category" => '',
  172. "goods_category_name" => '请选择',
  173. "goods_ids" => [],
  174. "imageUrl" => ''
  175. ]
  176. ],
  177. "imgElementRounded" => 0 // 图片圆角
  178. ],
  179. // 组件属性
  180. 'template' => [
  181. "textColor" => "#303133", // 文字颜色
  182. 'pageStartBgColor' => '', // 底部背景颜色(开始)
  183. 'pageEndBgColor' => '', // 底部背景颜色(结束)
  184. 'pageGradientAngle' => 'to bottom', // 渐变角度,从上到下(to bottom)、从左到右(to right)
  185. 'componentBgUrl' => '', // 组件背景图片
  186. 'componentBgAlpha' => 2, // 组件背景图片的透明度,0~10
  187. "componentStartBgColor" => '', // 组件背景颜色(开始)
  188. "componentEndBgColor" => '', // 组件背景颜色(结束)
  189. "componentGradientAngle" => 'to bottom', // 渐变角度,上下(to bottom)、左右(to right)
  190. "topRounded" => 0, // 组件上圆角
  191. "bottomRounded" => 0, // 组件下圆角
  192. "elementBgColor" => '', // 元素背景颜色
  193. "topElementRounded" => 0,// 元素上圆角
  194. "bottomElementRounded" => 0, // 元素下圆角
  195. "margin" => [
  196. "top" => 0, // 上边距
  197. "bottom" => 0, // 下边距
  198. "both" => 10 // 左右边距
  199. ]
  200. ]
  201. ],
  202. 'MallGoodsCoupon' => [
  203. 'title' => '优惠券',
  204. 'icon' => 'iconfont iconyouhuiquan1',
  205. 'path' => 'edit-mall-goods-coupon',
  206. 'support_page' => [],
  207. 'uses' => 0,
  208. 'sort' => 10014,
  209. 'value' => [
  210. 'style' => 'style-1',
  211. "styleName" => "风格一",
  212. 'source' => 'all',
  213. 'num' => 6,
  214. 'couponIds' => [],
  215. "btnText" => "立即领取",
  216. 'couponTitle' => '先领券 再购物',
  217. 'couponSubTitle' => '领券下单 享购物优惠',
  218. "titleColor" => "#ffffff",
  219. "subTitleColor" => "#ffffff",
  220. "couponItem" => [
  221. "bgColor" => "#ffffff",
  222. "bgUrl" => "/addon/mall/diy/goods_coupon/style5_bg.png",
  223. "textColor" => "#333333",
  224. "subTextColor" => "#666666",
  225. "moneyColor" => "#333333",
  226. "btnColor" => "#333333",
  227. "aroundRadius" => 12
  228. ]
  229. ],
  230. // 组件属性
  231. 'template' => [
  232. "textColor" => "#303133", // 文字颜色
  233. 'pageStartBgColor' => '', // 底部背景颜色(开始)
  234. 'pageEndBgColor' => '', // 底部背景颜色(结束)
  235. 'pageGradientAngle' => 'to bottom', // 渐变角度,从上到下(to bottom)、从左到右(to right)
  236. 'componentBgUrl' => '', // 组件背景图片
  237. 'componentBgAlpha' => 2, // 组件背景图片的透明度,0~10
  238. "componentStartBgColor" => '', // 组件背景颜色(开始)
  239. "componentEndBgColor" => '', // 组件背景颜色(结束)
  240. "componentGradientAngle" => 'to bottom', // 渐变角度,上下(to bottom)、左右(to right)
  241. "topRounded" => 0, // 组件上圆角
  242. "bottomRounded" => 0, // 组件下圆角
  243. "elementBgColor" => '', // 元素背景颜色
  244. "topElementRounded" => 0,// 元素上圆角
  245. "bottomElementRounded" => 0, // 元素下圆角
  246. "margin" => [
  247. "top" => 10, // 上边距
  248. "bottom" => 10, // 下边距
  249. "both" => 10 // 左右边距
  250. ]
  251. ]
  252. ],
  253. 'MallShopCouponList' => [
  254. 'title' => '商家优惠券',
  255. 'icon' => 'iconfont iconyouhuiquan1',
  256. 'path' => 'edit-mall-shop-coupon-list',
  257. 'support_page' => [],
  258. 'uses' => 0,
  259. 'sort' => 10014,
  260. 'value' => [
  261. 'style' => 'style-1',
  262. "styleName" => "风格一",
  263. 'source' => 'all',
  264. 'num' => 6,
  265. 'couponIds' => [],
  266. "btnText" => "立即领取",
  267. 'couponTitle' => '先领券 再购物',
  268. 'couponSubTitle' => '领券下单 享购物优惠',
  269. "titleColor" => "#ffffff",
  270. "subTitleColor" => "#ffffff",
  271. "couponItem" => [
  272. "bgColor" => "#ffffff",
  273. "bgUrl" => "/addon/mall/diy/goods_coupon/style5_bg.png",
  274. "textColor" => "#333333",
  275. "subTextColor" => "#666666",
  276. "moneyColor" => "#333333",
  277. "btnColor" => "#333333",
  278. "aroundRadius" => 12
  279. ]
  280. ],
  281. // 组件属性
  282. 'template' => [
  283. "textColor" => "#303133", // 文字颜色
  284. 'pageStartBgColor' => '', // 底部背景颜色(开始)
  285. 'pageEndBgColor' => '', // 底部背景颜色(结束)
  286. 'pageGradientAngle' => 'to bottom', // 渐变角度,从上到下(to bottom)、从左到右(to right)
  287. 'componentBgUrl' => '', // 组件背景图片
  288. 'componentBgAlpha' => 2, // 组件背景图片的透明度,0~10
  289. "componentStartBgColor" => '', // 组件背景颜色(开始)
  290. "componentEndBgColor" => '', // 组件背景颜色(结束)
  291. "componentGradientAngle" => 'to bottom', // 渐变角度,上下(to bottom)、左右(to right)
  292. "topRounded" => 0, // 组件上圆角
  293. "bottomRounded" => 0, // 组件下圆角
  294. "elementBgColor" => '', // 元素背景颜色
  295. "topElementRounded" => 0,// 元素上圆角
  296. "bottomElementRounded" => 0, // 元素下圆角
  297. "margin" => [
  298. "top" => 10, // 上边距
  299. "bottom" => 10, // 下边距
  300. "both" => 10 // 左右边距
  301. ]
  302. ]
  303. ],
  304. 'MallMemberInfo' => [
  305. 'title' => '会员信息',
  306. 'icon' => 'iconfont iconhuiyuanzhongxin',
  307. 'path' => 'edit-mall-member-info',
  308. 'support_page' => [ 'DIY_MEMBER_INDEX' ],
  309. 'uses' => 1,
  310. 'sort' => 10015,
  311. 'value' => [
  312. "style" => "style-1",
  313. "styleName" => "风格1",
  314. 'bgUrl' => '',
  315. 'isShowAccount' => true,
  316. 'uidTextColor' => '#666666',
  317. 'accountTextColor' => '#666666'
  318. ],
  319. ],
  320. 'MallShopInfo' => [
  321. 'title' => '商家信息',
  322. 'icon' => 'iconfont iconmendian',
  323. 'path' => 'edit-mall-shop-info',
  324. 'support_page' => [ 'DIY_SITE_INDEX' ],
  325. 'uses' => 1,
  326. 'sort' => 10022,
  327. 'position' => 'top_fixed', // 组件置顶标识,不能拖拽
  328. 'value' => [
  329. 'positionWay' => 'static',
  330. 'fixedBgColor' => '',
  331. 'bgGradient' => false,
  332. 'bgImg' => '/addon/mall/diy/site_index/style2/header_bg.jpg',
  333. 'bgOpacity' => 80,
  334. // 搜索设置
  335. 'search' => [
  336. 'text' => '请输入搜索关键词',
  337. "link" => [
  338. "name" => ""
  339. ],
  340. 'hotWord' => [
  341. "interval" => 3,
  342. 'list' => []
  343. ],
  344. 'color' => '#ffffff',
  345. 'btnColor' => '#EF000C',
  346. 'bgColor' => 'rgba(255, 255, 255, 0.2)',
  347. 'btnBgColor' => '#ffffff'
  348. ],
  349. 'tab' => [
  350. 'control' => true, // 控制显示隐藏
  351. 'noColor' => '#ffffff', // 未选中颜色
  352. 'selectColor' => '#EF000C ', // 选中颜色
  353. 'noBgColor' => 'transparent', // 未选中背景颜色
  354. 'selectBgColor' => '#ffffff', // 选中背景颜色
  355. 'list' => [
  356. [
  357. 'text' => '新品', // 最多4个字
  358. 'source' => 'diy_page',
  359. 'diy_id' => '',
  360. 'diy_title' => ''
  361. ],
  362. [
  363. 'text' => '热卖',
  364. 'source' => 'diy_page',
  365. 'diy_id' => '',
  366. 'diy_title' => ''
  367. ],
  368. [
  369. 'text' => '领券',
  370. 'source' => 'diy_page',
  371. 'diy_id' => '',
  372. 'diy_title' => ''
  373. ]
  374. ]
  375. ],
  376. 'shop' => [
  377. "textColor" => "#ffffff"
  378. ]
  379. ],
  380. ],
  381. 'MallOrderInfo' => [
  382. 'title' => '订单中心',
  383. 'icon' => 'iconfont icondingdanzhongxinPC-1',
  384. 'path' => 'edit-mall-order-info',
  385. 'support_page' => [ 'DIY_MEMBER_INDEX' ],
  386. 'uses' => 1,
  387. 'sort' => 10016,
  388. 'value' => [
  389. "textColor" => "#303133",
  390. "fontSize" => 16,
  391. "fontWeight" => "normal",
  392. "text" => "订单中心",
  393. "more" => [
  394. "text" => "全部订单",
  395. "color" => "#999999",
  396. ],
  397. "item" => [
  398. "fontSize" => 12,
  399. "fontWeight" => "normal",
  400. "color" => "#303133"
  401. ],
  402. ]
  403. ],
  404. 'MallGoodsRecommend' => [
  405. 'title' => '商品推荐',
  406. 'icon' => 'iconfont icona-shangpintuijianpc30',
  407. 'path' => 'edit-mall-goods-recommend',
  408. 'support_page' => [],
  409. 'uses' => 0,
  410. 'sort' => 10019,
  411. 'value' => [
  412. "priceStyle" => [
  413. "mainColor" => "#333333",
  414. ],
  415. 'source' => 'all',
  416. "goods_ids" => [],
  417. 'list' => [
  418. [
  419. "title" => [
  420. "text" => "今日推荐",
  421. "textColor" => "#303133"
  422. ],
  423. "moreTitle" => [
  424. "text" => "精选",
  425. "textColor" => "#FFFFFF",
  426. "startColor" => "#FF7234",
  427. "endColor" => "#FF213F",
  428. ],
  429. "listFrame" => [
  430. "startColor" => "#FFE5E5",
  431. "endColor" => "#FFF5F0",
  432. ],
  433. "button" => [
  434. "text" => "首单",
  435. "textColor" => "#FFFFFF",
  436. "color" => "#FF1128",
  437. ]
  438. ],
  439. [
  440. "title" => [
  441. "text" => "品质好物",
  442. "textColor" => "#303133"
  443. ],
  444. "moreTitle" => [
  445. "text" => "精选",
  446. "textColor" => "#FFFFFF",
  447. "startColor" => "#F2C719",
  448. "endColor" => "#FBBA08",
  449. ],
  450. "listFrame" => [
  451. "startColor" => "#FFEFBA",
  452. "endColor" => "#FFF5D7",
  453. ],
  454. "button" => [
  455. "text" => "首单",
  456. "textColor" => "#FFFFFF",
  457. "color" => "#FF1128",
  458. ]
  459. ],
  460. [
  461. "title" => [
  462. "text" => "热销爆款",
  463. "textColor" => "#303133"
  464. ],
  465. "moreTitle" => [
  466. "text" => "精选",
  467. "textColor" => "#FFFFFF",
  468. "startColor" => "#FFA629",
  469. "endColor" => "#FF8E1E",
  470. ],
  471. "listFrame" => [
  472. "startColor" => "#FFE4D9",
  473. "endColor" => "#FFFBF9",
  474. ],
  475. "button" => [
  476. "text" => "首单",
  477. "textColor" => "#FFFFFF",
  478. "color" => "#FF1128",
  479. ]
  480. ]
  481. ],
  482. "imgElementRounded" => 10,// 图片圆角
  483. ],
  484. // 组件属性
  485. 'template' => [
  486. "textColor" => "#303133", // 文字颜色
  487. 'pageStartBgColor' => '', // 底部背景颜色(开始)
  488. 'pageEndBgColor' => '', // 底部背景颜色(结束)
  489. 'pageGradientAngle' => 'to bottom', // 渐变角度,从上到下(to bottom)、从左到右(to right)
  490. 'componentBgUrl' => '', // 组件背景图片
  491. 'componentBgAlpha' => 2, // 组件背景图片的透明度,0~10
  492. "componentStartBgColor" => '', // 组件背景颜色(开始)
  493. "componentEndBgColor" => '', // 组件背景颜色(结束)
  494. "componentGradientAngle" => 'to bottom', // 渐变角度,上下(to bottom)、左右(to right)
  495. "topRounded" => 0, // 组件上圆角
  496. "bottomRounded" => 0, // 组件下圆角
  497. "elementBgColor" => '', // 元素背景颜色
  498. "topElementRounded" => 10,// 元素上圆角
  499. "bottomElementRounded" => 10, // 元素下圆角
  500. "margin" => [
  501. "top" => 10, // 上边距
  502. "bottom" => 10, // 下边距
  503. "both" => 10 // 左右边距
  504. ],
  505. ]
  506. ],
  507. 'SingleRecommend' => [
  508. 'title' => '精选推荐',
  509. 'icon' => 'iconfont icona-jingxuantuijianpc30-12',
  510. 'path' => 'edit-single-recommend',
  511. 'support_page' => [],
  512. 'uses' => 0,
  513. 'sort' => 10019,
  514. 'value' => [
  515. "titleStyle" => [
  516. 'title' => '风格1',
  517. 'value' => 'style-1'
  518. ],
  519. 'textImg' => 'addon/mall/diy/index/style2/single_recommend_text1.png',
  520. "textLink" => [
  521. "name" => ""
  522. ],
  523. "titleColor" => "#999999",
  524. "subTitle" => [
  525. "text" => "更多",
  526. "textColor" => "#999999",
  527. "link" => [
  528. "name" => ""
  529. ]
  530. ],
  531. 'source' => 'all',
  532. 'goods_ids' => [],
  533. "imageHeight" => 250,
  534. "list" => [
  535. [
  536. "link" => [
  537. "name" => ""
  538. ],
  539. "imageUrl" => "addon/mall/diy/index/style2/single_recommend_banner1.jpg",
  540. "imgWidth" => 345,
  541. "imgHeight" => 495
  542. ],
  543. [
  544. "link" => [
  545. "name" => ""
  546. ],
  547. "imageUrl" => "addon/mall/diy/index/style2/single_recommend_banner2.jpg",
  548. "imgWidth" => 345,
  549. "imgHeight" => 495
  550. ]
  551. ],
  552. "goodsNameStyle" => [
  553. "color" => "#303133",
  554. "control" => true,
  555. "fontWeight" => 'normal'
  556. ],
  557. "priceStyle" => [
  558. "mainColor" => "#FF4142",
  559. "mainControl" => true,
  560. "lineColor" => "#999CA7",
  561. "lineControl" => true
  562. ],
  563. "saleStyle" => [
  564. "color" => "#FF0000",
  565. "control" => true
  566. ],
  567. 'topCarouselRounded' => 12,
  568. 'bottomCarouselRounded' => 12,
  569. 'indicatorColor' => 'rgba(255, 255, 255, 0.6)',
  570. 'indicatorActiveColor' => '#ffffff',
  571. ],
  572. // 组件属性
  573. 'template' => [
  574. "textColor" => "#303133", // 文字颜色
  575. 'pageStartBgColor' => '', // 底部背景颜色(开始)
  576. 'pageEndBgColor' => '', // 底部背景颜色(结束)
  577. 'pageGradientAngle' => 'to bottom', // 渐变角度,从上到下(to bottom)、从左到右(to right)
  578. 'componentBgUrl' => '', // 组件背景图片
  579. 'componentBgAlpha' => 2, // 组件背景图片的透明度,0~10
  580. "componentStartBgColor" => '', // 组件背景颜色(开始)
  581. "componentEndBgColor" => '', // 组件背景颜色(结束)
  582. "componentGradientAngle" => 'to bottom', // 渐变角度,上下(to bottom)、左右(to right)
  583. "topRounded" => 0, // 组件上圆角
  584. "bottomRounded" => 0, // 组件下圆角
  585. "elementBgColor" => '', // 元素背景颜色
  586. "topElementRounded" => 0,// 元素上圆角
  587. "bottomElementRounded" => 0, // 元素下圆角
  588. "margin" => [
  589. "top" => 10, // 上边距
  590. "bottom" => 10, // 下边距
  591. "both" => 10 // 左右边距
  592. ]
  593. ]
  594. ],
  595. 'MallGoodsRanking' => [
  596. 'title' => '排行榜',
  597. 'icon' => 'iconfont icona-paihangbangpc30',
  598. 'path' => 'edit-mall-goods-ranking',
  599. 'support_page' => [],
  600. 'uses' => 0,
  601. 'sort' => 10021,
  602. 'value' => [
  603. "list" => [
  604. [
  605. 'bgUrl' => 'addon/mall/rank/rank_bg_01.jpg', // 榜单背景图
  606. 'text' => '热销排行榜',
  607. "textColor" => "#FFFFFF",
  608. "imgUrl" => "addon/mall/rank/rank_trophy.png", // 图标
  609. 'subTitle' => [
  610. 'text' => '查看更多',
  611. 'textColor' => '#FFFFFF',
  612. 'link' => [
  613. 'name' => 'MALL_GOODS_RANK',
  614. "parent" => "MALL_LINK",
  615. 'title' => '商品排行榜',
  616. 'url' => '/addon/mall/pages/goods/rank',
  617. 'action' => '',
  618. ]
  619. ],
  620. 'listFrame' => [
  621. 'startColor' => '#FEA715',
  622. 'endColor' => '#FE1E00',
  623. ],
  624. 'source' => 'default',
  625. 'rankIds' => []
  626. ],
  627. [
  628. 'bgUrl' => 'addon/mall/rank/rank_bg_02.jpg', // 榜单背景图
  629. 'text' => '人气排行榜',
  630. "textColor" => "#FFFFFF",
  631. "imgUrl" => "addon/mall/rank/rank_top.png", // 图标
  632. 'subTitle' => [
  633. 'text' => '查看更多',
  634. 'textColor' => '#FFFFFF',
  635. 'link' => [
  636. 'name' => 'MALL_GOODS_RANK',
  637. "parent" => "MALL_LINK",
  638. 'title' => '商品排行榜',
  639. 'url' => '/addon/mall/pages/goods/rank',
  640. 'action' => '',
  641. ]
  642. ],
  643. 'listFrame' => [
  644. 'startColor' => '#FEA715',
  645. 'endColor' => '#FE1E00',
  646. ],
  647. 'source' => 'default',
  648. 'rankIds' => []
  649. ]
  650. ],
  651. ],
  652. // 组件属性
  653. 'template' => [
  654. "textColor" => "#303133", // 文字颜色
  655. 'pageStartBgColor' => '', // 底部背景颜色(开始)
  656. 'pageEndBgColor' => '', // 底部背景颜色(结束)
  657. 'pageGradientAngle' => 'to bottom', // 渐变角度,从上到下(to bottom)、从左到右(to right)
  658. 'componentBgUrl' => '', // 组件背景图片
  659. 'componentBgAlpha' => 2, // 组件背景图片的透明度,0~10
  660. "componentStartBgColor" => '', // 组件背景颜色(开始)
  661. "componentEndBgColor" => '', // 组件背景颜色(结束)
  662. "componentGradientAngle" => 'to bottom', // 渐变角度,上下(to bottom)、左右(to right)
  663. "topRounded" => 0, // 组件上圆角
  664. "bottomRounded" => 0, // 组件下圆角
  665. "elementBgColor" => '', // 元素背景颜色
  666. "topElementRounded" => 10,// 元素上圆角
  667. "bottomElementRounded" => 10, // 元素下圆角
  668. "margin" => [
  669. "top" => 10, // 上边距
  670. "bottom" => 10, // 下边距
  671. "both" => 10 // 左右边距
  672. ]
  673. ]
  674. ],
  675. 'MallShopList' => [
  676. 'title' => '甄选好店',
  677. 'icon' => 'nc-iconfont nc-icon-dianpuV6xx',
  678. 'path' => 'edit-mall-shop-list',
  679. 'support_page' => [],
  680. 'uses' => 0,
  681. 'sort' => 10011,
  682. 'value' => [
  683. "titleStyle" => [
  684. 'title' => '风格1',
  685. 'value' => 'style-1'
  686. ],
  687. 'textImg' => 'addon/mall/diy/mall_shop_list/index/title.png',
  688. "siteColor" => "#333333",
  689. "subTitle" => [
  690. "text" => "更多",
  691. "textColor" => "#999999",
  692. "link" => [
  693. "name" => ""
  694. ]
  695. ],
  696. 'style' =>'style-1',
  697. 'source' => 'all',
  698. 'num' => 10,
  699. 'site_ids' => [],
  700. "siteStyle" => [
  701. "startBgColor" => "#FFC3C4",
  702. "endBgColor" => "#FFDABA",
  703. "gradientAngle"=> "to bottom",
  704. "bgUrl"=> "/addon/mall/diy/mall_shop_list/index/bgUrl.jpg"
  705. ],
  706. "siteNameStyle" => [
  707. "color" => "#303133",
  708. "fontWeight" => 'normal',
  709. "isShow" => true
  710. ],
  711. "imgElementRounded" => 10,// 图片圆角
  712. ],
  713. // 组件属性
  714. 'template' => [
  715. "textColor" => "#303133", // 文字颜色
  716. 'pageStartBgColor' => '', // 底部背景颜色(开始)
  717. 'pageEndBgColor' => '', // 底部背景颜色(结束)
  718. 'pageGradientAngle' => 'to bottom', // 渐变角度,从上到下(to bottom)、从左到右(to right)
  719. 'componentBgUrl' => '', // 组件背景图片
  720. 'componentBgAlpha' => 2, // 组件背景图片的透明度,0~10
  721. "componentStartBgColor" => '', // 组件背景颜色(开始)
  722. "componentEndBgColor" => '', // 组件背景颜色(结束)
  723. "componentGradientAngle" => 'to bottom', // 渐变角度,上下(to bottom)、左右(to right)
  724. "topRounded" => 0, // 组件上圆角
  725. "bottomRounded" => 0, // 组件下圆角
  726. "elementBgColor" => '', // 元素背景颜色
  727. "topElementRounded" => 10,// 元素上圆角
  728. "bottomElementRounded" => 10, // 元素下圆角
  729. "margin" => [
  730. "top" => 10, // 上边距
  731. "bottom" => 0, // 下边距
  732. "both" => 10 // 左右边距
  733. ]
  734. ]
  735. ],
  736. ]
  737. ]
  738. ];