ComponentDict.php 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | Niucloud-admin 企业快速开发的多应用管理平台
  4. // +----------------------------------------------------------------------
  5. // | 官方网址:https://www.niucloud.com
  6. // +----------------------------------------------------------------------
  7. // | niucloud团队 版权所有 开源版本可自由商用
  8. // +----------------------------------------------------------------------
  9. // | Author: Niucloud Team
  10. // +----------------------------------------------------------------------
  11. namespace app\dict\diy;
  12. use core\dict\DictLoader;
  13. /**
  14. * 基础组件
  15. * Class ComponentDict
  16. * @package app\dict\diy
  17. */
  18. class ComponentDict
  19. {
  20. public static function getComponent()
  21. {
  22. $system_components = [
  23. 'BASIC' => [
  24. 'title' => get_lang('dict_diy.component_type_basic'),
  25. 'list' => [
  26. 'Text' => [
  27. 'title' => '标题',
  28. 'icon' => 'iconfont iconbiaotipc',
  29. 'path' => 'edit-text', // 编辑组件属性名称
  30. 'support_page' => [], // 支持页面
  31. 'uses' => 0, // 最大添加数量
  32. 'sort' => 10001,
  33. 'position' => '', // 组件置顶标识,不能拖拽,可选值:fixed、top_fixed、right_fixed、bottom_fixed、left_fixed
  34. // 组件属性
  35. 'template' => [
  36. "textColor" => "#303133", // 文字颜色
  37. 'pageStartBgColor' => '', // 底部背景颜色(开始)
  38. 'pageEndBgColor' => '', // 底部背景颜色(结束)
  39. 'pageGradientAngle' => 'to bottom', // 渐变角度,从上到下(to bottom)、从左到右(to right)
  40. 'componentBgUrl' => '', // 组件背景图片
  41. 'componentBgAlpha' => 2, // 组件背景图片的透明度,0~10
  42. "componentStartBgColor" => '', // 组件背景颜色(开始)
  43. "componentEndBgColor" => '', // 组件背景颜色(结束)
  44. "componentGradientAngle" => 'to bottom', // 渐变角度,上下(to bottom)、左右(to right)
  45. "topRounded" => 0, // 组件上圆角
  46. "bottomRounded" => 0, // 组件下圆角
  47. "elementBgColor" => '', // 元素背景颜色
  48. "topElementRounded" => 0,// 元素上圆角
  49. "bottomElementRounded" => 0, // 元素下圆角
  50. "margin" => [
  51. "top" => 0, // 上边距
  52. "bottom" => 0, // 下边距
  53. "both" => 0 // 左右边距
  54. ],
  55. ],
  56. 'value' => [
  57. "style" => "style-1",
  58. "styleName" => "风格1",
  59. "text" => "标题栏",
  60. "link" => [
  61. "name" => ""
  62. ],
  63. "textColor" => "#303133",
  64. "fontSize" => 16,
  65. "fontWeight" => "normal",
  66. "textAlign" => "center",
  67. "subTitle" => [
  68. "text" => "副标题",
  69. "color" => "#999999",
  70. "fontSize" => 14,
  71. "control" => false,
  72. "fontWeight" => "normal"
  73. ],
  74. "more" => [
  75. "text" => "更多",
  76. "control" => false,
  77. "isShow" => true,
  78. "link" => [
  79. "name" => ""
  80. ],
  81. "color" => "#999999"
  82. ],
  83. ]
  84. ],
  85. 'ImageAds' => [
  86. 'title' => '图片广告',
  87. 'icon' => 'iconfont icontupiandaohangpc',
  88. 'path' => 'edit-image-ads',
  89. 'support_page' => [],
  90. 'uses' => 0,
  91. 'sort' => 10002,
  92. 'value' => [
  93. "imageHeight" => 180,
  94. "isSameScreen"=> false,
  95. "list" => [
  96. [
  97. "link" => [
  98. "name" => ""
  99. ],
  100. "imageUrl" => "",
  101. "imgWidth" => 0,
  102. "imgHeight" => 0
  103. ]
  104. ]
  105. ]
  106. ],
  107. 'GraphicNav' => [
  108. 'title' => '图文导航',
  109. 'icon' => 'iconfont icontuwendaohangpc',
  110. 'path' => 'edit-graphic-nav',
  111. 'support_page' => [],
  112. 'uses' => 0,
  113. 'sort' => 10003,
  114. 'value' => [
  115. "layout" => "horizontal",
  116. "mode" => "graphic",
  117. "type" => "img",
  118. "showStyle" => "fixed",
  119. "rowCount" => 4,
  120. "pageCount" => 2,
  121. "carousel" => [
  122. "type" => "circle",
  123. "color" => "#FFFFFF"
  124. ],
  125. "imageSize" => 40,
  126. "aroundRadius" => 25,
  127. "font" => [
  128. "size" => 14,
  129. "weight" => "normal",
  130. "color" => "#303133"
  131. ],
  132. "list" => [
  133. [
  134. "title" => "",
  135. "link" => [
  136. "name" => ""
  137. ],
  138. "imageUrl" => "",
  139. "label" => [
  140. "control" => false,
  141. "text" => "热门",
  142. "textColor" => "#FFFFFF",
  143. "bgColorStart" => "#F83287",
  144. "bgColorEnd" => "#FE3423"
  145. ]
  146. ],
  147. [
  148. "title" => "",
  149. "link" => [
  150. "name" => ""
  151. ],
  152. "imageUrl" => "",
  153. "label" => [
  154. "control" => false,
  155. "text" => "热门",
  156. "textColor" => "#FFFFFF",
  157. "bgColorStart" => "#F83287",
  158. "bgColorEnd" => "#FE3423"
  159. ]
  160. ],
  161. [
  162. "title" => "",
  163. "link" => [
  164. "name" => ""
  165. ],
  166. "imageUrl" => "",
  167. "label" => [
  168. "control" => false,
  169. "text" => "热门",
  170. "textColor" => "#FFFFFF",
  171. "bgColorStart" => "#F83287",
  172. "bgColorEnd" => "#FE3423"
  173. ]
  174. ],
  175. [
  176. "title" => "",
  177. "link" => [
  178. "name" => ""
  179. ],
  180. "imageUrl" => "",
  181. "label" => [
  182. "control" => false,
  183. "text" => "热门",
  184. "textColor" => "#FFFFFF",
  185. "bgColorStart" => "#F83287",
  186. "bgColorEnd" => "#FE3423"
  187. ]
  188. ]
  189. ],
  190. // 轮播图设置
  191. 'swiper' => [
  192. 'indicatorColor' => 'rgba(0, 0, 0, 0.3)', // 未选中颜色
  193. "indicatorActiveColor" => '#FF0E0E',
  194. 'indicatorStyle' => 'style-1',
  195. 'indicatorAlign' => 'center'
  196. ],
  197. 'template' => [
  198. "margin" => [
  199. "top" => 10, // 上边距
  200. "bottom" => 10, // 下边距
  201. "both" => 0 // 左右边距
  202. ],
  203. ],
  204. ]
  205. ],
  206. 'RubikCube' => [
  207. 'title' => '魔方',
  208. 'icon' => 'iconfont iconmofangpc',
  209. 'path' => 'edit-rubik-cube',
  210. 'support_page' => [],
  211. 'uses' => 0,
  212. 'sort' => 10004,
  213. 'value' => [
  214. "mode" => "row1-of2",
  215. "imageGap" => 0,
  216. "list" => [
  217. [
  218. "imageUrl" => "",
  219. "imgWidth" => 0,
  220. "imgHeight" => 0,
  221. "link" => [
  222. "name" => ""
  223. ]
  224. ],
  225. [
  226. "imageUrl" => "",
  227. "imgWidth" => 0,
  228. "imgHeight" => 0,
  229. "link" => [
  230. "name" => ""
  231. ]
  232. ]
  233. ]
  234. ],
  235. ],
  236. 'Article' => [
  237. 'title' => '文章',
  238. 'icon' => 'iconfont iconwenzhangpc',
  239. 'path' => 'edit-article',
  240. 'support_page' => [],
  241. 'uses' => 0,
  242. 'sort' => 10006,
  243. 'value' => [
  244. 'sources' => 'initial',
  245. 'count' => 8,
  246. 'articleIds' => []
  247. ],
  248. ],
  249. 'HotArea' => [
  250. 'title' => '热区',
  251. 'icon' => 'iconfont iconrequpc',
  252. 'path' => 'edit-hot-area',
  253. 'support_page' => [],
  254. 'uses' => 0,
  255. 'sort' => 10007,
  256. 'value' => [
  257. "imageUrl" => "",
  258. "imgWidth" => 0,
  259. "imgHeight" => 0,
  260. "heatMapData" => []
  261. ],
  262. ],
  263. 'MemberInfo' => [
  264. 'title' => '会员信息',
  265. 'icon' => 'iconfont iconhuiyuanqiandaopc',
  266. 'path' => 'edit-member-info',
  267. 'support_page' => [ 'DIY_MEMBER_INDEX' ],
  268. 'uses' => 1,
  269. 'sort' => 10008,
  270. 'value' => [
  271. "style" => "style-1",
  272. "styleName" => "风格1",
  273. 'bgUrl' => '',
  274. 'bgColorStart' => '',
  275. 'bgColorEnd' => ''
  276. ],
  277. ],
  278. 'MemberLevel' => [
  279. 'title' => '会员等级',
  280. 'icon' => 'iconfont iconhuiyuandengjipc',
  281. 'path' => 'edit-member-level',
  282. 'support_page' => [],
  283. 'uses' => 1,
  284. 'sort' => 10009,
  285. 'value' => [
  286. "style" => "style-1",
  287. "styleName" => "风格1"
  288. ],// 组件属性
  289. 'template' => [
  290. "textColor" => "#303133", // 文字颜色
  291. 'pageStartBgColor' => '', // 底部背景颜色(开始)
  292. 'pageEndBgColor' => '', // 底部背景颜色(结束)
  293. 'pageGradientAngle' => 'to bottom', // 渐变角度,从上到下(to bottom)、从左到右(to right)
  294. 'componentBgUrl' => '', // 组件背景图片
  295. 'componentBgAlpha' => 2, // 组件背景图片的透明度,0~10
  296. "componentStartBgColor" => '', // 组件背景颜色(开始)
  297. "componentEndBgColor" => '', // 组件背景颜色(结束)
  298. "componentGradientAngle" => 'to bottom', // 渐变角度,上下(to bottom)、左右(to right)
  299. "topRounded" => 12, // 组件上圆角
  300. "bottomRounded" => 0, // 组件下圆角
  301. "elementBgColor" => '', // 元素背景颜色
  302. "topElementRounded" => 0,// 元素上圆角
  303. "bottomElementRounded" => 0, // 元素下圆角
  304. "margin" => [
  305. "top" => 0, // 上边距
  306. "bottom" => 0, // 下边距
  307. "both" => 10 // 左右边距
  308. ]
  309. ]
  310. ],
  311. 'Notice' => [
  312. 'title' => '公告',
  313. 'icon' => 'iconfont icongonggaopc',
  314. 'path' => 'edit-notice',
  315. 'support_page' => [],
  316. 'uses' => 0,
  317. 'sort' => 10010,
  318. 'value' => [
  319. "noticeType" => 'img',
  320. 'imgType' => 'system',
  321. "systemUrl" => "style_1", // 系统定义的图片
  322. "imageUrl" => "", // 上传自定义图片
  323. "showType" => "popup", // 点击类型 弹出框,跳转
  324. "scrollWay" => "upDown", // 滚动方式 upDown:上下滚动,horizontal:横向滚动
  325. "fontSize" => 14,
  326. "fontWeight" => "normal",
  327. "noticeTitle" => "公告", // 公告标题文字
  328. "list" => [
  329. [
  330. "text" => "公告",
  331. "link" => [
  332. "name" => ""
  333. ]
  334. ]
  335. ],
  336. ],
  337. ],
  338. 'RichText' => [
  339. 'title' => '富文本',
  340. 'icon' => 'iconfont iconfuwenbenpc',
  341. 'path' => 'edit-rich-text',
  342. 'support_page' => [],
  343. 'uses' => 0,
  344. 'sort' => 10011,
  345. 'value' => [
  346. "html" => ""
  347. ],
  348. ],
  349. 'ActiveCube' => [
  350. 'title' => '活动魔方',
  351. 'icon' => 'iconfont iconmofangpc',
  352. 'path' => 'edit-active-cube',
  353. 'support_page' => [],
  354. 'uses' => 0,
  355. 'sort' => 10012,
  356. 'value' => [
  357. "titleStyle" => [
  358. 'title' => '风格1',
  359. 'value' => 'style-1'
  360. ],
  361. 'text' => '超值爆款',
  362. 'textImg' => 'static/resource/images/diy/active_cube/active_cube_text1.png',
  363. "textLink" => [
  364. "name" => ""
  365. ],
  366. "titleColor" => "#F91700",
  367. "subTitle" => [
  368. "text" => "为您精选爆款",
  369. "textColor" => "#FFFFFF",
  370. "startColor" => "#FB792F",
  371. "endColor" => "#F91700",
  372. "link" => [
  373. "name" => ""
  374. ],
  375. ],
  376. "blockStyle" => [
  377. 'title' => '风格1',
  378. 'value' => 'style-1',
  379. 'fontWeight' => 'normal',
  380. 'btnText' => 'normal'
  381. ],
  382. 'list' => [
  383. [
  384. "title" => [
  385. "text" => "今日推荐",
  386. "textColor" => "#303133"
  387. ],
  388. "subTitle" => [
  389. "text" => "诚意推荐",
  390. "textColor" => "#999999",
  391. "startColor" => "",
  392. "endColor" => "",
  393. ],
  394. "moreTitle" => [
  395. "text" => "去看看",
  396. "startColor" => "#FEA715",
  397. "endColor" => "#FE1E00",
  398. ],
  399. "listFrame" => [
  400. "startColor" => "#FFFAF5",
  401. "endColor" => "#FFFFFF"
  402. ],
  403. "link" => [
  404. "name" => ""
  405. ],
  406. "imageUrl" => "static/resource/images/diy/active_cube/active_cube_goods1.png",
  407. ],
  408. [
  409. "title" => [
  410. "text" => "优惠好物",
  411. "textColor" => "#303133"
  412. ],
  413. "subTitle" => [
  414. "text" => "领券更优惠",
  415. "textColor" => "#999999",
  416. "startColor" => "",
  417. "endColor" => "",
  418. ],
  419. "moreTitle" => [
  420. "text" => "去看看",
  421. "startColor" => "#FFBF50",
  422. "endColor" => "#FF9E03",
  423. ],
  424. "listFrame" => [
  425. "startColor" => "#FFFAF5",
  426. "endColor" => "#FFFFFF"
  427. ],
  428. "link" => [
  429. "name" => ""
  430. ],
  431. "imageUrl" => "static/resource/images/diy/active_cube/active_cube_goods2.png",
  432. ],
  433. [
  434. "title" => [
  435. "text" => "热销推荐",
  436. "textColor" => "#303133"
  437. ],
  438. "subTitle" => [
  439. "text" => "本周热销商品",
  440. "textColor" => "#999999",
  441. "startColor" => "",
  442. "endColor" => "",
  443. ],
  444. "moreTitle" => [
  445. "text" => "去看看",
  446. "startColor" => "#A2E792",
  447. "endColor" => "#49CD2D",
  448. ],
  449. "listFrame" => [
  450. "startColor" => "#FFFAF5",
  451. "endColor" => "#FFFFFF"
  452. ],
  453. "link" => [
  454. "name" => ""
  455. ],
  456. "imageUrl" => "static/resource/images/diy/active_cube/active_cube_goods3.png",
  457. ],
  458. [
  459. "title" => [
  460. "text" => "书桌好物",
  461. "textColor" => "#303133"
  462. ],
  463. "subTitle" => [
  464. "text" => "办公好物推荐",
  465. "textColor" => "#999999",
  466. "startColor" => "",
  467. "endColor" => "",
  468. ],
  469. "moreTitle" => [
  470. "text" => "去看看",
  471. "startColor" => "#4AC1FF",
  472. "endColor" => "#1D7CFF",
  473. ],
  474. "listFrame" => [
  475. "startColor" => "#FFFAF5",
  476. "endColor" => "#FFFFFF"
  477. ],
  478. "link" => [
  479. "name" => ""
  480. ],
  481. "imageUrl" => "static/resource/images/diy/active_cube/active_cube_goods4.png",
  482. ],
  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" => 12, // 组件上圆角
  496. "bottomRounded" => 12, // 组件下圆角
  497. "elementBgColor" => '#FFFAF5', // 元素背景颜色
  498. "topElementRounded" => 10,// 元素上圆角
  499. "bottomElementRounded" => 10, // 元素下圆角
  500. "margin" => [
  501. "top" => 10, // 上边距
  502. "bottom" => 10, // 下边距
  503. "both" => 10 // 左右边距
  504. ],
  505. ],
  506. ],
  507. ],
  508. 'CarouselSearch' => [
  509. 'title' => '轮播搜索',
  510. 'icon' => 'iconfont iconlunbosousuopc',
  511. 'path' => 'edit-carousel-search',
  512. 'support_page' => [],
  513. 'uses' => 1,
  514. 'sort' => 10013,
  515. 'position' => 'top_fixed', // 组件置顶标识,不能拖拽
  516. 'value' => [
  517. 'positionWay' => 'static',
  518. 'fixedBgColor' => '',
  519. 'bgGradient' => false,
  520. // 搜索设置
  521. 'search' => [
  522. 'logo' => '',
  523. 'text' => '请输入搜索关键词',
  524. 'link' => [
  525. 'name' => ''
  526. ],
  527. 'style' => 'style-1',
  528. 'styleName' => '风格一',
  529. "subTitle" => [
  530. "text" => "本地好价·优选生活",
  531. "textColor" => "#000000",
  532. "startColor" => "rgba(255,255,255,0.7)",
  533. "endColor" => "",
  534. ],
  535. 'positionColor' => '#ffffff',
  536. 'hotWord' => [
  537. "interval" => 3,
  538. 'list' => []
  539. ],
  540. 'color' => '#999999',
  541. 'btnColor' => '#ffffff',
  542. 'bgColor' => '#ffffff',
  543. 'btnBgColor' => '#ff3434'
  544. ],
  545. // 选项卡设置
  546. 'tab' => [
  547. 'control' => true, // 控制显示隐藏
  548. 'noColor' => '', // 未选中颜色
  549. 'selectColor' => '', // 选中颜色
  550. 'fixedNoColor' => '', // 下滑未选中颜色
  551. 'fixedSelectColor' => '', // 下滑选中颜色
  552. 'list' => [
  553. [
  554. 'text' => '分类名称', // 最多4个字
  555. 'source' => 'diy_page',
  556. 'diy_id' => '',
  557. 'diy_title' => ''
  558. ],
  559. [
  560. 'text' => '分类名称',
  561. 'source' => 'diy_page',
  562. 'diy_id' => '',
  563. 'diy_title' => ''
  564. ],
  565. [
  566. 'text' => '分类名称',
  567. 'source' => 'diy_page',
  568. 'diy_id' => '',
  569. 'diy_title' => ''
  570. ],
  571. [
  572. 'text' => '分类名称',
  573. 'source' => 'diy_page',
  574. 'diy_id' => '',
  575. 'diy_title' => ''
  576. ]
  577. ]
  578. ],
  579. // 轮播图设置
  580. 'swiper' => [
  581. 'control' => true, // 控制显示隐藏
  582. "interval" => 5,
  583. 'indicatorColor' => 'rgba(0, 0, 0, 0.3)', // 未选中颜色
  584. "indicatorActiveColor" => '#FF0E0E',
  585. 'indicatorStyle' => 'style-1',
  586. 'indicatorAlign' => 'center',
  587. 'swiperStyle' => 'style-1',
  588. 'imageHeight' => 168,
  589. 'topRounded' => 0,
  590. 'bottomRounded' => 0,
  591. 'list' => [
  592. [
  593. "imageUrl" => "",
  594. "imgWidth" => 690,
  595. "imgHeight" => 330,
  596. "link" => [
  597. "name" => ""
  598. ]
  599. ]
  600. ]
  601. ]
  602. ],
  603. ],
  604. 'FloatBtn' => [
  605. 'title' => '浮动按钮',
  606. 'icon' => 'iconfont iconfudonganniupc',
  607. 'path' => 'edit-float-btn',
  608. 'support_page' => [],
  609. 'uses' => 1,
  610. 'sort' => 10014,
  611. 'position' => 'fixed',
  612. 'value' => [
  613. "imageSize" => 40,
  614. "aroundRadius" => 0,
  615. 'style' => 'style-1',
  616. "styleName" => "风格一",
  617. "bottomPosition" => "lowerRight", // 左上:upperLeft,右上:upperRight,左下:lowerLeft,右下:lowerRight
  618. "list" => [
  619. [
  620. "imageUrl" => "",
  621. "link" => [
  622. "name" => ""
  623. ]
  624. ]
  625. ],
  626. "offset" => 0 // 偏移量
  627. ],
  628. ],
  629. 'HorzBlank' => [
  630. 'title' => '辅助空白',
  631. 'icon' => 'iconfont iconfuzhukongbaipc',
  632. 'path' => 'edit-horz-blank',
  633. 'support_page' => [],
  634. 'uses' => 0,
  635. 'sort' => 10015,
  636. 'value' => [
  637. 'height' => 20
  638. ],
  639. ],
  640. 'HorzLine' => [
  641. 'title' => '辅助线',
  642. 'icon' => 'iconfont iconfuzhuxianpc',
  643. 'path' => 'edit-horz-line',
  644. 'support_page' => [],
  645. 'uses' => 0,
  646. 'sort' => 10016,
  647. 'value' => [
  648. 'borderWidth' => 1,
  649. 'borderColor' => '#303133',
  650. 'borderStyle' => 'solid'
  651. ],
  652. ],
  653. 'PictureShow' => [
  654. 'title' => '图片展播',
  655. 'icon' => 'iconfont icona-tupianzhanbopc302',
  656. 'path' => 'edit-picture-show',
  657. 'support_page' => [],
  658. 'uses' => 0,
  659. 'sort' => 10017,
  660. 'value' => [
  661. 'moduleOne' => [
  662. 'head' => [
  663. "textImg" => "static/resource/images/diy/picture_show/picture_show_head_text3.png",
  664. "subText" => "最高补1200元",
  665. "subTextColor" => "#666666"
  666. ],
  667. 'list' => [
  668. [
  669. "btnTitle" => [
  670. "text" => "全网低价",
  671. "color" => "#ffffff",
  672. "startColor" => "#F5443E",
  673. "endColor" => "#F5443E"
  674. ],
  675. "link" => [
  676. "name" => ""
  677. ],
  678. "imageUrl" => "static/resource/images/diy/picture_show/picture_05.png"
  679. ],
  680. [
  681. "btnTitle" => [
  682. "text" => "大牌特惠",
  683. "color" => "#ffffff",
  684. "startColor" => "#F5443E",
  685. "endColor" => "#F5443E"
  686. ],
  687. "link" => [
  688. "name" => ""
  689. ],
  690. "imageUrl" => "static/resource/images/diy/picture_show/picture_06.png"
  691. ]
  692. ],
  693. "listFrame" => [
  694. "startColor" => "#D4EFFF",
  695. "endColor" => "#EBF4FA"
  696. ]
  697. ],
  698. 'moduleTwo' => [
  699. 'head' => [
  700. "textImg" => "static/resource/images/diy/picture_show/picture_show_head_text4.png",
  701. "subText" => "每日上新",
  702. "subTextColor" => "#666666"
  703. ],
  704. 'list' => [
  705. [
  706. "btnTitle" => [
  707. "text" => "人气爆款",
  708. "color" => "#ffffff",
  709. "startColor" => "#F5443E",
  710. "endColor" => "#F5443E"
  711. ],
  712. "link" => [
  713. "name" => ""
  714. ],
  715. "imageUrl" => "static/resource/images/diy/picture_show/picture_07.png"
  716. ],
  717. [
  718. "btnTitle" => [
  719. "text" => "官方正品",
  720. "color" => "#ffffff",
  721. "startColor" => "#F5443E",
  722. "endColor" => "#F5443E"
  723. ],
  724. "link" => [
  725. "name" => ""
  726. ],
  727. "imageUrl" => "static/resource/images/diy/picture_show/picture_08.png"
  728. ]
  729. ],
  730. "listFrame" => [
  731. "startColor" => "#FFF1D4",
  732. "endColor" => "#F9F2E5"
  733. ]
  734. ],
  735. "moduleRounded" => [
  736. "topRounded" => 10,
  737. "bottomRounded" => 10
  738. ],
  739. ],// 组件属性
  740. 'template' => [
  741. "textColor" => "#303133", // 文字颜色
  742. 'pageStartBgColor' => '', // 底部背景颜色(开始)
  743. 'pageEndBgColor' => '', // 底部背景颜色(结束)
  744. 'pageGradientAngle' => 'to bottom', // 渐变角度,从上到下(to bottom)、从左到右(to right)
  745. 'componentBgUrl' => '', // 组件背景图片
  746. 'componentBgAlpha' => 2, // 组件背景图片的透明度,0~10
  747. "componentStartBgColor" => '', // 组件背景颜色(开始)
  748. "componentEndBgColor" => '', // 组件背景颜色(结束)
  749. "componentGradientAngle" => 'to bottom', // 渐变角度,上下(to bottom)、左右(to right)
  750. "topRounded" => 0, // 组件上圆角
  751. "bottomRounded" => 0, // 组件下圆角
  752. "elementBgColor" => '', // 元素背景颜色
  753. "topElementRounded" => 0,// 元素上圆角
  754. "bottomElementRounded" => 0, // 元素下圆角
  755. "margin" => [
  756. "top" => 0, // 上边距
  757. "bottom" => 0, // 下边距
  758. "both" => 10 // 左右边距
  759. ],
  760. ]
  761. ]
  762. ],
  763. ],
  764. ];
  765. return ( new DictLoader("UniappComponent") )->load($system_components);
  766. }
  767. }