PagesDict.php 56 KB

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