PagesDict.php 59 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100
  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 PagesDict
  16. * @package app\dict\diy
  17. */
  18. class PagesDict
  19. {
  20. public static function getPages($params = [])
  21. {
  22. $system_pages = [
  23. 'DIY_INDEX' => [
  24. 'default_index' => [ // 页面标识
  25. "title" => "首页", // 页面名称
  26. 'cover' => '', // 页面封面图
  27. 'preview' => '', // 页面预览图
  28. 'desc' => '官方推出的系统首页', // 页面描述
  29. 'mode' => 'diy', // 页面模式:diy:自定义,fixed:固定
  30. // 页面数据源
  31. "data" => [
  32. "global" => [
  33. "title" => "首页",
  34. 'pageStartBgColor' => '#F8F8F8',
  35. 'pageEndBgColor' => '',
  36. 'pageGradientAngle' => 'to bottom',
  37. 'bgUrl' => '',
  38. 'bgHeightScale' => 0,
  39. 'imgWidth' => '',
  40. 'imgHeight' => '',
  41. "bottomTabBarSwitch" => true,
  42. "template" => [
  43. 'textColor' => "#303133",
  44. 'pageStartBgColor' => '',
  45. 'pageEndBgColor' => '',
  46. 'pageGradientAngle' => 'to bottom',
  47. 'componentBgUrl' => '',
  48. 'componentBgAlpha' => 2,
  49. "componentStartBgColor" => "",
  50. "componentEndBgColor" => "",
  51. "componentGradientAngle" => "to bottom",
  52. "topRounded" => 0,
  53. "bottomRounded" => 0,
  54. "elementBgColor" => "",
  55. "topElementRounded" => 0,
  56. "bottomElementRounded" => 0,
  57. "margin" => [
  58. "top" => 0,
  59. "bottom" => 0,
  60. "both" => 0
  61. ]
  62. ],
  63. 'topStatusBar' => [
  64. 'isShow' => true,
  65. 'bgColor' => "#ffffff",
  66. 'rollBgColor' => "#ffffff",
  67. 'style' => 'style-1',
  68. 'styleName' => '风格1',
  69. 'textColor' => "#333333",
  70. 'rollTextColor' => "#333333",
  71. 'textAlign' => 'center',
  72. 'inputPlaceholder' => '请输入搜索关键词',
  73. 'imgUrl' => '',
  74. 'link' => [
  75. 'name' => ""
  76. ]
  77. ],
  78. 'popWindow' => [
  79. 'imgUrl' => "",
  80. 'imgWidth' => '',
  81. 'imgHeight' => '',
  82. 'count' => -1,
  83. 'show' => 0,
  84. 'link' => [
  85. 'name' => ""
  86. ],
  87. ]
  88. ],
  89. "value" => [
  90. [
  91. "path" => "edit-image-ads",
  92. "uses" => 0,
  93. "id" => "6jdfnu4e36g0",
  94. "componentName" => "ImageAds",
  95. "componentTitle" => "图片广告",
  96. "ignore" => [],
  97. "imageHeight" => 154,
  98. "list" => [
  99. [
  100. "link" => [
  101. "name" => ""
  102. ],
  103. "imageUrl" => "static/resource/images/diy/banner.png",
  104. "imgWidth" => 690,
  105. "imgHeight" => 300,
  106. "id" => "7ao3t56ug4o0",
  107. "width" => 355,
  108. "height" => 154.34
  109. ]
  110. ],
  111. "textColor" => "#303133",
  112. 'pageStartBgColor' => '',
  113. 'pageEndBgColor' => '',
  114. 'pageGradientAngle' => 'to bottom',
  115. 'componentBgUrl' => '',
  116. 'componentBgAlpha' => 2,
  117. "componentStartBgColor" => "",
  118. "componentEndBgColor" => "",
  119. "componentGradientAngle" => "to bottom",
  120. "topRounded" => 0,
  121. "bottomRounded" => 0,
  122. "elementBgColor" => "",
  123. "topElementRounded" => 0,
  124. "bottomElementRounded" => 0,
  125. "margin" => [
  126. "top" => 0,
  127. "bottom" => 0,
  128. "both" => 10
  129. ]
  130. ]
  131. ]
  132. ]
  133. ],
  134. ],
  135. 'DIY_MEMBER_INDEX' => [
  136. 'default_member_index_one' => [
  137. "title" => "默认个人中心1", // 页面名称
  138. 'cover' => 'static/resource/images/diy/template/default_member_index_one_cover.png', // 页面封面图
  139. 'preview' => '', // 页面预览图
  140. 'desc' => '官方推出默认个人中心1', // 页面描述
  141. 'mode' => 'diy',
  142. // 页面数据源
  143. "data" => [
  144. "global" => [
  145. "title" => "个人中心",
  146. 'pageStartBgColor' => '#F8F8F8',
  147. 'pageEndBgColor' => '',
  148. 'pageGradientAngle' => 'to bottom',
  149. 'bgUrl' => '',
  150. 'bgHeightScale' => 0,
  151. 'imgWidth' => '',
  152. 'imgHeight' => '',
  153. "bottomTabBarSwitch" => true,
  154. "template" => [
  155. 'textColor' => "#303133",
  156. 'pageStartBgColor' => '',
  157. 'pageEndBgColor' => '',
  158. 'pageGradientAngle' => 'to bottom',
  159. 'componentBgUrl' => '',
  160. 'componentBgAlpha' => 2,
  161. "componentStartBgColor" => "",
  162. "componentEndBgColor" => "",
  163. "componentGradientAngle" => "to bottom",
  164. "topRounded" => 0,
  165. "bottomRounded" => 0,
  166. "elementBgColor" => "",
  167. "topElementRounded" => 0,
  168. "bottomElementRounded" => 0,
  169. "margin" => [
  170. "top" => 0,
  171. "bottom" => 0,
  172. "both" => 10
  173. ]
  174. ],
  175. "topStatusBar" => [
  176. 'isShow' => true,
  177. 'bgColor' => "#ffffff",
  178. 'rollBgColor' => "#ffffff",
  179. 'style' => 'style-1',
  180. 'styleName' => '风格1',
  181. 'textColor' => "#333333",
  182. 'rollTextColor' => "#333333",
  183. 'textAlign' => 'center',
  184. 'inputPlaceholder' => '请输入搜索关键词',
  185. 'imgUrl' => '',
  186. 'link' => [
  187. 'name' => ""
  188. ]
  189. ],
  190. 'popWindow' => [
  191. 'imgUrl' => "",
  192. 'imgWidth' => '',
  193. 'imgHeight' => '',
  194. 'count' => -1,
  195. 'show' => 0,
  196. 'link' => [
  197. 'name' => ""
  198. ],
  199. ]
  200. ],
  201. "value" => [
  202. [
  203. "path" => "edit-member-info",
  204. "id" => "67qv49qgxp00",
  205. "componentName" => "MemberInfo",
  206. "componentTitle" => "会员信息",
  207. "uses" => 0,
  208. "ignore" => [],
  209. 'pageStartBgColor' => '',
  210. 'pageEndBgColor' => '',
  211. 'pageGradientAngle' => 'to bottom',
  212. 'componentBgUrl' => '',
  213. 'componentBgAlpha' => 2,
  214. "componentStartBgColor" => "",
  215. "componentEndBgColor" => "",
  216. "componentGradientAngle" => "to bottom",
  217. "topRounded" => 9,
  218. "bottomRounded" => 9,
  219. "elementBgColor" => "",
  220. "topElementRounded" => 0,
  221. "bottomElementRounded" => 0,
  222. "margin" => [
  223. "top" => 12,
  224. "bottom" => 6,
  225. "both" => 10
  226. ],
  227. "style" => "style-1",
  228. "styleName" => "风格1",
  229. "textColor" => "#FFFFFF",
  230. "bgUrl" => "static/resource/images/diy/member_style1_bg.png",
  231. "bgColorStart" => "",
  232. "bgColorEnd" => ""
  233. ],
  234. [
  235. "path" => "edit-horz-blank",
  236. "uses" => 0,
  237. "id" => "2da0xqyo8zms",
  238. "componentName" => "HorzBlank",
  239. "componentTitle" => "辅助空白",
  240. "ignore" => [
  241. "pageBgColor",
  242. "componentBgUrl"
  243. ],
  244. "height" => 10,
  245. "textColor" => "#303133",
  246. "pageStartBgColor" => "",
  247. "pageEndBgColor" => "",
  248. "pageGradientAngle" => "to bottom",
  249. "componentBgUrl" => "",
  250. "componentBgAlpha" => 2,
  251. "componentStartBgColor" => "rgba(255, 255, 255, 1)",
  252. "componentEndBgColor" => "",
  253. "componentGradientAngle" => "to bottom",
  254. "topRounded" => 9,
  255. "bottomRounded" => 0,
  256. "elementBgColor" => "",
  257. "topElementRounded" => 0,
  258. "bottomElementRounded" => 0,
  259. "margin" => [
  260. "top" => 6,
  261. "bottom" => 0,
  262. "both" => 10
  263. ]
  264. ],
  265. [
  266. "path" => "edit-text",
  267. "uses" => 0,
  268. "position" => "",
  269. "id" => "1puhgfus8www",
  270. "componentName" => "Text",
  271. "componentTitle" => "标题",
  272. "ignore" => [],
  273. "style" => "style-2",
  274. "styleName" => "风格2",
  275. "text" => "我的服务",
  276. "link" => [
  277. "name" => "",
  278. ],
  279. "textColor" => "#303133",
  280. "fontSize" => 16,
  281. "fontWeight" => "normal",
  282. "textAlign" => "center",
  283. "subTitle" => [
  284. "text" => "",
  285. "color" => "#999999",
  286. "fontSize" => 14,
  287. "control" => true,
  288. "fontWeight" => "normal"
  289. ],
  290. "more" => [
  291. "text" => "全部",
  292. "control" => true,
  293. "isShow" => true,
  294. "link" => [
  295. "name" => ""
  296. ],
  297. "color" => "#999999"
  298. ],
  299. 'pageStartBgColor' => '',
  300. 'pageEndBgColor' => '',
  301. 'pageGradientAngle' => 'to bottom',
  302. 'componentBgUrl' => '',
  303. 'componentBgAlpha' => 2,
  304. "componentStartBgColor" => "rgba(255, 255, 255, 1)",
  305. "componentEndBgColor" => "",
  306. "componentGradientAngle" => "to bottom",
  307. "topRounded" => 0,
  308. "bottomRounded" => 0,
  309. "elementBgColor" => "",
  310. "topElementRounded" => 0,
  311. "bottomElementRounded" => 0,
  312. "margin" => [
  313. "top" => 0,
  314. "bottom" => 0,
  315. "both" => 10
  316. ]
  317. ],
  318. [
  319. "path" => "edit-graphic-nav",
  320. "id" => "62b7d7hl4ok",
  321. "componentName" => "GraphicNav",
  322. "componentTitle" => "图文导航",
  323. "uses" => 0,
  324. "layout" => "horizontal",
  325. "mode" => "graphic",
  326. "showStyle" => "fixed",
  327. "rowCount" => 4,
  328. "pageCount" => 2,
  329. "carousel" => [
  330. "type" => "circle",
  331. "color" => "#FFFFFF"
  332. ],
  333. "imageSize" => 25,
  334. "aroundRadius" => 25,
  335. "font" => [
  336. "size" => 12,
  337. "weight" => "bold",
  338. "color" => "#303133"
  339. ],
  340. 'pageStartBgColor' => '',
  341. 'pageEndBgColor' => '',
  342. 'pageGradientAngle' => 'to bottom',
  343. 'componentBgUrl' => '',
  344. 'componentBgAlpha' => 2,
  345. "componentStartBgColor" => "rgba(255, 255, 255, 1)",
  346. "componentEndBgColor" => "",
  347. "componentGradientAngle" => "to bottom",
  348. "topRounded" => 0,
  349. "bottomRounded" => 9,
  350. "elementBgColor" => "",
  351. "topElementRounded" => 0,
  352. "bottomElementRounded" => 0,
  353. "margin" => [
  354. "top" => 0,
  355. "bottom" => 6,
  356. "both" => 10
  357. ],
  358. "ignore" => [],
  359. "list" => [
  360. [
  361. "title" => "个人资料",
  362. "link" => [
  363. "parent" => "MEMBER_LINK",
  364. "name" => "MEMBER_PERSONAL",
  365. "title" => "个人资料",
  366. "url" => "/app/pages/member/personal"
  367. ],
  368. "imageUrl" => "static/resource/images/diy/horz_m_personal.png",
  369. "label" => [
  370. "control" => false,
  371. "text" => "热门",
  372. "textColor" => "#FFFFFF",
  373. "bgColorStart" => "#F83287",
  374. "bgColorEnd" => "#FE3423"
  375. ],
  376. "id" => "xvlauaflc6o",
  377. "imgWidth" => 100,
  378. "imgHeight" => 100
  379. ],
  380. [
  381. "title" => "我的余额",
  382. "link" => [
  383. "parent" => "MEMBER_LINK",
  384. "name" => "MEMBER_BALANCE",
  385. "title" => "我的余额",
  386. "url" => "/app/pages/member/balance"
  387. ],
  388. "imageUrl" => "static/resource/images/diy/horz_m_balance.png",
  389. "label" => [
  390. "control" => false,
  391. "text" => "热门",
  392. "textColor" => "#FFFFFF",
  393. "bgColorStart" => "#F83287",
  394. "bgColorEnd" => "#FE3423"
  395. ],
  396. "id" => "63bjscck5n40",
  397. "imgWidth" => 100,
  398. "imgHeight" => 100
  399. ],
  400. [
  401. "title" => "我的积分",
  402. "link" => [
  403. "parent" => "MEMBER_LINK",
  404. "name" => "MEMBER_POINT",
  405. "title" => "我的积分",
  406. "url" => "/app/pages/member/point"
  407. ],
  408. "imageUrl" => "static/resource/images/diy/horz_m_point.png",
  409. "label" => [
  410. "control" => false,
  411. "text" => "热门",
  412. "textColor" => "#FFFFFF",
  413. "bgColorStart" => "#F83287",
  414. "bgColorEnd" => "#FE3423"
  415. ],
  416. "id" => "4qiczw54t8g0",
  417. "imgWidth" => 100,
  418. "imgHeight" => 100
  419. ],
  420. [
  421. "title" => "联系客服",
  422. "link" => [
  423. "name" => "MEMBER_CONTACT",
  424. "parent" => "MEMBER_LINK",
  425. "title" => "客服",
  426. "url" => "/app/pages/member/contact",
  427. "action" => ""
  428. ],
  429. "imageUrl" => "static/resource/images/diy/horz_m_service.png",
  430. "label" => [
  431. "control" => false,
  432. "text" => "热门",
  433. "textColor" => "#FFFFFF",
  434. "bgColorStart" => "#F83287",
  435. "bgColorEnd" => "#FE3423"
  436. ],
  437. "id" => "2eqwfkdphpgk",
  438. "imgWidth" => 100,
  439. "imgHeight" => 100
  440. ]
  441. ],
  442. // 轮播图设置
  443. 'swiper' => [
  444. 'indicatorColor' => 'rgba(0, 0, 0, 0.3)', // 未选中颜色
  445. "indicatorActiveColor" => '#FF0E0E',
  446. 'indicatorStyle' => 'style-1',
  447. 'indicatorAlign' => 'center'
  448. ]
  449. ],
  450. [
  451. "path" => "edit-graphic-nav",
  452. "uses" => 0,
  453. "id" => "33yn28534fs0",
  454. "componentName" => "GraphicNav",
  455. "componentTitle" => "图文导航",
  456. "ignore" => [],
  457. "layout" => "vertical",
  458. "mode" => "graphic",
  459. "showStyle" => "fixed",
  460. "rowCount" => 4,
  461. "pageCount" => 2,
  462. "carousel" => [
  463. "type" => "circle",
  464. "color" => "#FFFFFF"
  465. ],
  466. "imageSize" => 25,
  467. "aroundRadius" => 0,
  468. "font" => [
  469. "size" => 13,
  470. "weight" => "normal",
  471. "color" => "rgba(0, 0, 0, 1)"
  472. ],
  473. "list" => [
  474. [
  475. "title" => "个人资料",
  476. "link" => [
  477. "parent" => "MEMBER_LINK",
  478. "name" => "MEMBER_PERSONAL",
  479. "title" => "个人资料",
  480. "url" => "/app/pages/member/personal"
  481. ],
  482. "imageUrl" => "static/resource/images/diy/vert_m_personal.png",
  483. "label" => [
  484. "control" => false,
  485. "text" => "热门",
  486. "textColor" => "#FFFFFF",
  487. "bgColorStart" => "#F83287",
  488. "bgColorEnd" => "#FE3423"
  489. ],
  490. "id" => "4xc4kw9xlqu0",
  491. "imgWidth" => 88,
  492. "imgHeight" => 88
  493. ],
  494. [
  495. "title" => "我的余额",
  496. "link" => [
  497. "parent" => "MEMBER_LINK",
  498. "name" => "MEMBER_BALANCE",
  499. "title" => "我的余额",
  500. "url" => "/app/pages/member/balance"
  501. ],
  502. "imageUrl" => "static/resource/images/diy/vert_m_balance.png",
  503. "label" => [
  504. "control" => false,
  505. "text" => "热门",
  506. "textColor" => "#FFFFFF",
  507. "bgColorStart" => "#F83287",
  508. "bgColorEnd" => "#FE3423"
  509. ],
  510. "id" => "4555rq0cc1q0",
  511. "imgWidth" => 88,
  512. "imgHeight" => 88
  513. ],
  514. [
  515. "title" => "我的积分",
  516. "link" => [
  517. "parent" => "MEMBER_LINK",
  518. "name" => "MEMBER_POINT",
  519. "title" => "我的积分",
  520. "url" => "/app/pages/member/point"
  521. ],
  522. "imageUrl" => "static/resource/images/diy/vert_m_point.png",
  523. "label" => [
  524. "control" => false,
  525. "text" => "热门",
  526. "textColor" => "#FFFFFF",
  527. "bgColorStart" => "#F83287",
  528. "bgColorEnd" => "#FE3423"
  529. ],
  530. "id" => "1gq3uxox0fk0",
  531. "imgWidth" => 88,
  532. "imgHeight" => 88
  533. ],
  534. [
  535. "title" => "联系客服",
  536. "link" => [
  537. "name" => "MEMBER_CONTACT",
  538. "parent" => "MEMBER_LINK",
  539. "title" => "客服",
  540. "url" => "/app/pages/member/contact",
  541. "action" => ""
  542. ],
  543. "imageUrl" => "static/resource/images/diy/vert_m_service.png",
  544. "label" => [
  545. "control" => false,
  546. "text" => "热门",
  547. "textColor" => "#FFFFFF",
  548. "bgColorStart" => "#F83287",
  549. "bgColorEnd" => "#FE3423"
  550. ],
  551. "id" => "6gqbh1tvyr00",
  552. "imgWidth" => 88,
  553. "imgHeight" => 88
  554. ],
  555. [
  556. "id" => "6xhwid2el5c0",
  557. "title" => "开发者联盟",
  558. "imageUrl" => "static/resource/images/diy/vert_m_develop.png",
  559. "imgWidth" => 88,
  560. "imgHeight" => 88,
  561. "link" => [
  562. "name" => ""
  563. ],
  564. "label" => [
  565. "control" => false,
  566. "text" => "热门",
  567. "textColor" => "#FFFFFF",
  568. "bgColorStart" => "#F83287",
  569. "bgColorEnd" => "#FE3423"
  570. ]
  571. ]
  572. ],
  573. // 轮播图设置
  574. 'swiper' => [
  575. 'indicatorColor' => 'rgba(0, 0, 0, 0.3)', // 未选中颜色
  576. "indicatorActiveColor" => '#FF0E0E',
  577. 'indicatorStyle' => 'style-1',
  578. 'indicatorAlign' => 'center'
  579. ],
  580. 'pageStartBgColor' => '',
  581. 'pageEndBgColor' => '',
  582. 'pageGradientAngle' => 'to bottom',
  583. 'componentBgUrl' => '',
  584. 'componentBgAlpha' => 2,
  585. "componentStartBgColor" => "rgba(255, 255, 255, 1)",
  586. "componentEndBgColor" => "",
  587. "componentGradientAngle" => "to bottom",
  588. "topRounded" => 9,
  589. "bottomRounded" => 9,
  590. "elementBgColor" => "",
  591. "topElementRounded" => 0,
  592. "bottomElementRounded" => 0,
  593. "margin" => [
  594. "top" => 6,
  595. "bottom" => 12,
  596. "both" => 10
  597. ]
  598. ]
  599. ]
  600. ]
  601. ],
  602. 'default_member_index_two' => [
  603. "title" => "默认个人中心2", // 页面名称
  604. 'cover' => 'static/resource/images/diy/template/default_member_index_two_cover.png', // 页面封面图
  605. 'preview' => '', // 页面预览图
  606. 'desc' => '官方推出默认个人中心2', // 页面描述
  607. 'mode' => 'diy',
  608. // 页面数据源
  609. "data" => [
  610. "global" => [
  611. "title" => "个人中心",
  612. 'pageStartBgColor' => '#F8F8F8',
  613. 'pageEndBgColor' => '',
  614. 'pageGradientAngle' => 'to bottom',
  615. "bgUrl" => "static/resource/images/diy/member_style2_bg.png",
  616. 'bgHeightScale' => 0,
  617. 'imgWidth' => 750,
  618. 'imgHeight' => 403,
  619. "bottomTabBarSwitch" => true,
  620. "template" => [
  621. 'textColor' => "#303133",
  622. 'pageStartBgColor' => '',
  623. 'pageEndBgColor' => '',
  624. 'pageGradientAngle' => 'to bottom',
  625. 'componentBgUrl' => '',
  626. 'componentBgAlpha' => 2,
  627. "componentStartBgColor" => "",
  628. "componentEndBgColor" => "",
  629. "componentGradientAngle" => "to bottom",
  630. "topRounded" => 0,
  631. "bottomRounded" => 0,
  632. "elementBgColor" => "",
  633. "topElementRounded" => 0,
  634. "bottomElementRounded" => 0,
  635. "margin" => [
  636. "top" => 0,
  637. "bottom" => 0,
  638. "both" => 10
  639. ]
  640. ],
  641. 'topStatusBar' => [
  642. 'isShow' => true,
  643. 'bgColor' => "#ffffff",
  644. 'isTransparent' => false,
  645. 'style' => 'style-1',
  646. 'styleName' => '风格1',
  647. 'textColor' => "#333333",
  648. 'textAlign' => 'center',
  649. 'inputPlaceholder' => '请输入搜索关键词',
  650. 'imgUrl' => '',
  651. 'link' => [
  652. 'name' => ""
  653. ]
  654. ],
  655. 'popWindow' => [
  656. 'imgUrl' => "",
  657. 'imgWidth' => '',
  658. 'imgHeight' => '',
  659. 'count' => -1,
  660. 'show' => 0,
  661. 'link' => [
  662. 'name' => ""
  663. ],
  664. ]
  665. ],
  666. "value" => [
  667. [
  668. "path" => "edit-member-info",
  669. "id" => "67qv49qgxp00",
  670. "componentName" => "MemberInfo",
  671. "componentTitle" => "会员信息",
  672. "uses" => 0,
  673. "ignore" => [],
  674. 'pageStartBgColor' => '',
  675. 'pageEndBgColor' => '',
  676. 'pageGradientAngle' => 'to bottom',
  677. 'componentBgUrl' => '',
  678. 'componentBgAlpha' => 2,
  679. "componentStartBgColor" => "",
  680. "componentEndBgColor" => "",
  681. "componentGradientAngle" => "to bottom",
  682. "topRounded" => 0,
  683. "bottomRounded" => 0,
  684. "elementBgColor" => "",
  685. "topElementRounded" => 0,
  686. "bottomElementRounded" => 0,
  687. "margin" => [
  688. "top" => 0,
  689. "bottom" => 0,
  690. "both" => 0
  691. ],
  692. "textColor" => "#FFFFFF",
  693. "bgUrl" => "",
  694. "style" => "style-1",
  695. "styleName" => "风格1",
  696. "bgColorStart" => "",
  697. "bgColorEnd" => ""
  698. ],
  699. [
  700. "path" => "edit-horz-blank",
  701. "uses" => 0,
  702. "id" => "5fo173bx5840",
  703. "componentName" => "HorzBlank",
  704. "componentTitle" => "辅助空白",
  705. "ignore" => [
  706. "pageBgColor",
  707. "componentBgUrl"
  708. ],
  709. "height" => 10,
  710. "textColor" => "#303133",
  711. "pageStartBgColor" => "",
  712. "pageEndBgColor" => "",
  713. "pageGradientAngle" => "to bottom",
  714. "componentBgUrl" => "",
  715. "componentBgAlpha" => 2,
  716. "componentStartBgColor" => "rgba(255, 255, 255, 1)",
  717. "componentEndBgColor" => "",
  718. "componentGradientAngle" => "to bottom",
  719. "topRounded" => 9,
  720. "bottomRounded" => 0,
  721. "elementBgColor" => "",
  722. "topElementRounded" => 0,
  723. "bottomElementRounded" => 0,
  724. "margin" => [
  725. "top" => 0,
  726. "bottom" => 0,
  727. "both" => 10
  728. ]
  729. ],
  730. [
  731. "path" => "edit-text",
  732. "uses" => 0,
  733. "position" => "",
  734. "id" => "629cgb1ygcw0",
  735. "componentName" => "Text",
  736. "componentTitle" => "标题",
  737. "ignore" => [],
  738. "style" => "style-1",
  739. "styleName" => "风格1",
  740. "text" => "我的服务",
  741. "link" => [
  742. "name" => ""
  743. ],
  744. "textColor" => "#303133",
  745. "fontSize" => 16,
  746. "fontWeight" => "normal",
  747. "textAlign" => "left",
  748. "subTitle" => [
  749. "text" => "",
  750. "color" => "#999999",
  751. "fontSize" => 14,
  752. "control" => false,
  753. "fontWeight" => "normal"
  754. ],
  755. "more" => [
  756. "text" => "查看更多",
  757. "control" => false,
  758. "isShow" => false,
  759. "link" => [
  760. "name" => ""
  761. ],
  762. "color" => "#999999"
  763. ],
  764. 'pageStartBgColor' => '',
  765. 'pageEndBgColor' => '',
  766. 'pageGradientAngle' => 'to bottom',
  767. 'componentBgUrl' => '',
  768. 'componentBgAlpha' => 2,
  769. "componentStartBgColor" => "rgba(255, 255, 255, 1)",
  770. "componentEndBgColor" => "",
  771. "componentGradientAngle" => "to bottom",
  772. "topRounded" => 0,
  773. "bottomRounded" => 0,
  774. "elementBgColor" => "",
  775. "topElementRounded" => 0,
  776. "bottomElementRounded" => 0,
  777. "margin" => [
  778. "top" => 0,
  779. "bottom" => 0,
  780. "both" => 10
  781. ]
  782. ],
  783. [
  784. "path" => "edit-graphic-nav",
  785. "id" => "62b7d7hl4ok",
  786. "componentName" => "GraphicNav",
  787. "componentTitle" => "图文导航",
  788. "uses" => 0,
  789. "layout" => "horizontal",
  790. "mode" => "graphic",
  791. "showStyle" => "fixed",
  792. "rowCount" => 4,
  793. "pageCount" => 2,
  794. "carousel" => [
  795. "type" => "circle",
  796. "color" => "#FFFFFF"
  797. ],
  798. "imageSize" => 25,
  799. "aroundRadius" => 25,
  800. "font" => [
  801. "size" => 12,
  802. "weight" => "bold",
  803. "color" => "#303133"
  804. ],
  805. 'pageStartBgColor' => '',
  806. 'pageEndBgColor' => '',
  807. 'pageGradientAngle' => 'to bottom',
  808. 'componentBgUrl' => '',
  809. 'componentBgAlpha' => 2,
  810. "componentStartBgColor" => "rgba(255, 255, 255, 1)",
  811. "componentEndBgColor" => "",
  812. "componentGradientAngle" => "to bottom",
  813. "topRounded" => 0,
  814. "bottomRounded" => 9,
  815. "elementBgColor" => "",
  816. "topElementRounded" => 0,
  817. "bottomElementRounded" => 0,
  818. "margin" => [
  819. "top" => 0,
  820. "bottom" => 6,
  821. "both" => 10
  822. ],
  823. "ignore" => [],
  824. "list" => [
  825. [
  826. "title" => "个人资料",
  827. "link" => [
  828. "parent" => "MEMBER_LINK",
  829. "name" => "MEMBER_PERSONAL",
  830. "title" => "个人资料",
  831. "url" => "/app/pages/member/personal"
  832. ],
  833. "imageUrl" => "static/resource/images/diy/horz_m_personal.png",
  834. "label" => [
  835. "control" => false,
  836. "text" => "热门",
  837. "textColor" => "#FFFFFF",
  838. "bgColorStart" => "#F83287",
  839. "bgColorEnd" => "#FE3423"
  840. ],
  841. "id" => "xvlauaflc6o",
  842. "imgWidth" => 100,
  843. "imgHeight" => 100
  844. ],
  845. [
  846. "title" => "我的余额",
  847. "link" => [
  848. "parent" => "MEMBER_LINK",
  849. "name" => "MEMBER_BALANCE",
  850. "title" => "我的余额",
  851. "url" => "/app/pages/member/balance"
  852. ],
  853. "imageUrl" => "static/resource/images/diy/horz_m_balance.png",
  854. "label" => [
  855. "control" => false,
  856. "text" => "热门",
  857. "textColor" => "#FFFFFF",
  858. "bgColorStart" => "#F83287",
  859. "bgColorEnd" => "#FE3423"
  860. ],
  861. "id" => "63bjscck5n40",
  862. "imgWidth" => 100,
  863. "imgHeight" => 100
  864. ],
  865. [
  866. "title" => "我的积分",
  867. "link" => [
  868. "parent" => "MEMBER_LINK",
  869. "name" => "MEMBER_POINT",
  870. "title" => "我的积分",
  871. "url" => "/app/pages/member/point"
  872. ],
  873. "imageUrl" => "static/resource/images/diy/horz_m_point.png",
  874. "label" => [
  875. "control" => false,
  876. "text" => "热门",
  877. "textColor" => "#FFFFFF",
  878. "bgColorStart" => "#F83287",
  879. "bgColorEnd" => "#FE3423"
  880. ],
  881. "id" => "4qiczw54t8g0",
  882. "imgWidth" => 100,
  883. "imgHeight" => 100
  884. ],
  885. [
  886. "title" => "联系客服",
  887. "link" => [
  888. "name" => "MEMBER_CONTACT",
  889. "parent" => "MEMBER_LINK",
  890. "title" => "客服",
  891. "url" => "/app/pages/member/contact",
  892. "action" => ""
  893. ],
  894. "imageUrl" => "static/resource/images/diy/horz_m_service.png",
  895. "label" => [
  896. "control" => false,
  897. "text" => "热门",
  898. "textColor" => "#FFFFFF",
  899. "bgColorStart" => "#F83287",
  900. "bgColorEnd" => "#FE3423"
  901. ],
  902. "id" => "2eqwfkdphpgk",
  903. "imgWidth" => 100,
  904. "imgHeight" => 100
  905. ]
  906. ],
  907. // 轮播图设置
  908. 'swiper' => [
  909. 'indicatorColor' => 'rgba(0, 0, 0, 0.3)', // 未选中颜色
  910. "indicatorActiveColor" => '#FF0E0E',
  911. 'indicatorStyle' => 'style-1',
  912. 'indicatorAlign' => 'center'
  913. ]
  914. ],
  915. [
  916. "path" => "edit-graphic-nav",
  917. "uses" => 0,
  918. "id" => "33yn28534fs0",
  919. "componentName" => "GraphicNav",
  920. "componentTitle" => "图文导航",
  921. "ignore" => [],
  922. "layout" => "vertical",
  923. "mode" => "graphic",
  924. "showStyle" => "fixed",
  925. "rowCount" => 4,
  926. "pageCount" => 2,
  927. "carousel" => [
  928. "type" => "circle",
  929. "color" => "#FFFFFF"
  930. ],
  931. "imageSize" => 25,
  932. "aroundRadius" => 0,
  933. "font" => [
  934. "size" => 13,
  935. "weight" => "normal",
  936. "color" => "rgba(0, 0, 0, 1)"
  937. ],
  938. "list" => [
  939. [
  940. "title" => "个人资料",
  941. "link" => [
  942. "parent" => "MEMBER_LINK",
  943. "name" => "MEMBER_PERSONAL",
  944. "title" => "个人资料",
  945. "url" => "/app/pages/member/personal"
  946. ],
  947. "imageUrl" => "static/resource/images/diy/vert_m_personal.png",
  948. "label" => [
  949. "control" => false,
  950. "text" => "热门",
  951. "textColor" => "#FFFFFF",
  952. "bgColorStart" => "#F83287",
  953. "bgColorEnd" => "#FE3423"
  954. ],
  955. "id" => "4xc4kw9xlqu0",
  956. "imgWidth" => 88,
  957. "imgHeight" => 88
  958. ],
  959. [
  960. "title" => "我的余额",
  961. "link" => [
  962. "parent" => "MEMBER_LINK",
  963. "name" => "MEMBER_BALANCE",
  964. "title" => "我的余额",
  965. "url" => "/app/pages/member/balance"
  966. ],
  967. "imageUrl" => "static/resource/images/diy/vert_m_balance.png",
  968. "label" => [
  969. "control" => false,
  970. "text" => "热门",
  971. "textColor" => "#FFFFFF",
  972. "bgColorStart" => "#F83287",
  973. "bgColorEnd" => "#FE3423"
  974. ],
  975. "id" => "4555rq0cc1q0",
  976. "imgWidth" => 88,
  977. "imgHeight" => 88
  978. ],
  979. [
  980. "title" => "我的积分",
  981. "link" => [
  982. "parent" => "MEMBER_LINK",
  983. "name" => "MEMBER_POINT",
  984. "title" => "我的积分",
  985. "url" => "/app/pages/member/point"
  986. ],
  987. "imageUrl" => "static/resource/images/diy/vert_m_point.png",
  988. "label" => [
  989. "control" => false,
  990. "text" => "热门",
  991. "textColor" => "#FFFFFF",
  992. "bgColorStart" => "#F83287",
  993. "bgColorEnd" => "#FE3423"
  994. ],
  995. "id" => "1gq3uxox0fk0",
  996. "imgWidth" => 88,
  997. "imgHeight" => 88
  998. ],
  999. [
  1000. "title" => "联系客服",
  1001. "link" => [
  1002. "name" => "MEMBER_CONTACT",
  1003. "parent" => "MEMBER_LINK",
  1004. "title" => "客服",
  1005. "url" => "/app/pages/member/contact",
  1006. "action" => ""
  1007. ],
  1008. "imageUrl" => "static/resource/images/diy/vert_m_service.png",
  1009. "label" => [
  1010. "control" => false,
  1011. "text" => "热门",
  1012. "textColor" => "#FFFFFF",
  1013. "bgColorStart" => "#F83287",
  1014. "bgColorEnd" => "#FE3423"
  1015. ],
  1016. "id" => "6gqbh1tvyr00",
  1017. "imgWidth" => 88,
  1018. "imgHeight" => 88
  1019. ],
  1020. [
  1021. "id" => "777g7jxbtfc0",
  1022. "title" => "开发者联盟",
  1023. "imageUrl" => "static/resource/images/diy/vert_m_develop.png",
  1024. "imgWidth" => 96,
  1025. "imgHeight" => 96,
  1026. "link" => [
  1027. "name" => ""
  1028. ],
  1029. "label" => [
  1030. "control" => false,
  1031. "text" => "热门",
  1032. "textColor" => "#FFFFFF",
  1033. "bgColorStart" => "#F83287",
  1034. "bgColorEnd" => "#FE3423"
  1035. ]
  1036. ]
  1037. ],
  1038. // 轮播图设置
  1039. 'swiper' => [
  1040. 'indicatorColor' => 'rgba(0, 0, 0, 0.3)', // 未选中颜色
  1041. "indicatorActiveColor" => '#FF0E0E',
  1042. 'indicatorStyle' => 'style-1',
  1043. 'indicatorAlign' => 'center'
  1044. ],
  1045. 'pageStartBgColor' => '',
  1046. 'pageEndBgColor' => '',
  1047. 'pageGradientAngle' => 'to bottom',
  1048. 'componentBgUrl' => '',
  1049. 'componentBgAlpha' => 2,
  1050. "componentStartBgColor" => "rgba(255, 255, 255, 1)",
  1051. "componentEndBgColor" => "",
  1052. "componentGradientAngle" => "to bottom",
  1053. "topRounded" => 9,
  1054. "bottomRounded" => 9,
  1055. "elementBgColor" => "",
  1056. "topElementRounded" => 0,
  1057. "bottomElementRounded" => 0,
  1058. "margin" => [
  1059. "top" => 6,
  1060. "bottom" => 12,
  1061. "both" => 10
  1062. ]
  1063. ]
  1064. ]
  1065. ]
  1066. ]
  1067. ]
  1068. ];
  1069. if (!empty($params[ 'addon' ])) {
  1070. $pages = ( new DictLoader("UniappPages") )->load($params);
  1071. } else {
  1072. $pages = ( new DictLoader("UniappPages") )->load($system_pages);
  1073. }
  1074. if (!empty($params[ 'type' ])) {
  1075. if (!empty($pages[ $params[ 'type' ] ])) {
  1076. $temp = $pages[ $params[ 'type' ] ];
  1077. if (isset($params[ 'mode' ]) && !empty($params[ 'mode' ])) {
  1078. foreach ($temp as $k => $v) {
  1079. if ($params[ 'mode' ] != $v[ 'mode' ]) {
  1080. unset($temp[ $k ]);
  1081. }
  1082. }
  1083. }
  1084. return $temp;
  1085. } else {
  1086. return [];
  1087. }
  1088. }
  1089. return $pages;
  1090. }
  1091. }