12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100 |
- <?php
- // +----------------------------------------------------------------------
- // | Niucloud-admin 企业快速开发的多应用管理平台
- // +----------------------------------------------------------------------
- // | 官方网址:https://www.niucloud.com
- // +----------------------------------------------------------------------
- // | niucloud团队 版权所有 开源版本可自由商用
- // +----------------------------------------------------------------------
- // | Author: Niucloud Team
- // +----------------------------------------------------------------------
- namespace app\dict\diy;
- use core\dict\DictLoader;
- /**
- * 页面数据
- * Class PagesDict
- * @package app\dict\diy
- */
- class PagesDict
- {
- public static function getPages($params = [])
- {
- $system_pages = [
- 'DIY_INDEX' => [
- 'default_index' => [ // 页面标识
- "title" => "首页", // 页面名称
- 'cover' => '', // 页面封面图
- 'preview' => '', // 页面预览图
- 'desc' => '官方推出的系统首页', // 页面描述
- 'mode' => 'diy', // 页面模式:diy:自定义,fixed:固定
- // 页面数据源
- "data" => [
- "global" => [
- "title" => "首页",
- 'pageStartBgColor' => '#F8F8F8',
- 'pageEndBgColor' => '',
- 'pageGradientAngle' => 'to bottom',
- 'bgUrl' => '',
- 'bgHeightScale' => 0,
- 'imgWidth' => '',
- 'imgHeight' => '',
- "bottomTabBarSwitch" => true,
- "template" => [
- 'textColor' => "#303133",
- 'pageStartBgColor' => '',
- 'pageEndBgColor' => '',
- 'pageGradientAngle' => 'to bottom',
- 'componentBgUrl' => '',
- 'componentBgAlpha' => 2,
- "componentStartBgColor" => "",
- "componentEndBgColor" => "",
- "componentGradientAngle" => "to bottom",
- "topRounded" => 0,
- "bottomRounded" => 0,
- "elementBgColor" => "",
- "topElementRounded" => 0,
- "bottomElementRounded" => 0,
- "margin" => [
- "top" => 0,
- "bottom" => 0,
- "both" => 0
- ]
- ],
- 'topStatusBar' => [
- 'isShow' => true,
- 'bgColor' => "#ffffff",
- 'rollBgColor' => "#ffffff",
- 'style' => 'style-1',
- 'styleName' => '风格1',
- 'textColor' => "#333333",
- 'rollTextColor' => "#333333",
- 'textAlign' => 'center',
- 'inputPlaceholder' => '请输入搜索关键词',
- 'imgUrl' => '',
- 'link' => [
- 'name' => ""
- ]
- ],
- 'popWindow' => [
- 'imgUrl' => "",
- 'imgWidth' => '',
- 'imgHeight' => '',
- 'count' => -1,
- 'show' => 0,
- 'link' => [
- 'name' => ""
- ],
- ]
- ],
- "value" => [
- [
- "path" => "edit-image-ads",
- "uses" => 0,
- "id" => "6jdfnu4e36g0",
- "componentName" => "ImageAds",
- "componentTitle" => "图片广告",
- "ignore" => [],
- "imageHeight" => 154,
- "list" => [
- [
- "link" => [
- "name" => ""
- ],
- "imageUrl" => "static/resource/images/diy/banner.png",
- "imgWidth" => 690,
- "imgHeight" => 300,
- "id" => "7ao3t56ug4o0",
- "width" => 355,
- "height" => 154.34
- ]
- ],
- "textColor" => "#303133",
- 'pageStartBgColor' => '',
- 'pageEndBgColor' => '',
- 'pageGradientAngle' => 'to bottom',
- 'componentBgUrl' => '',
- 'componentBgAlpha' => 2,
- "componentStartBgColor" => "",
- "componentEndBgColor" => "",
- "componentGradientAngle" => "to bottom",
- "topRounded" => 0,
- "bottomRounded" => 0,
- "elementBgColor" => "",
- "topElementRounded" => 0,
- "bottomElementRounded" => 0,
- "margin" => [
- "top" => 0,
- "bottom" => 0,
- "both" => 10
- ]
- ]
- ]
- ]
- ],
- ],
- 'DIY_MEMBER_INDEX' => [
- 'default_member_index_one' => [
- "title" => "默认个人中心1", // 页面名称
- 'cover' => 'static/resource/images/diy/template/default_member_index_one_cover.png', // 页面封面图
- 'preview' => '', // 页面预览图
- 'desc' => '官方推出默认个人中心1', // 页面描述
- 'mode' => 'diy',
- // 页面数据源
- "data" => [
- "global" => [
- "title" => "个人中心",
- 'pageStartBgColor' => '#F8F8F8',
- 'pageEndBgColor' => '',
- 'pageGradientAngle' => 'to bottom',
- 'bgUrl' => '',
- 'bgHeightScale' => 0,
- 'imgWidth' => '',
- 'imgHeight' => '',
- "bottomTabBarSwitch" => true,
- "template" => [
- 'textColor' => "#303133",
- 'pageStartBgColor' => '',
- 'pageEndBgColor' => '',
- 'pageGradientAngle' => 'to bottom',
- 'componentBgUrl' => '',
- 'componentBgAlpha' => 2,
- "componentStartBgColor" => "",
- "componentEndBgColor" => "",
- "componentGradientAngle" => "to bottom",
- "topRounded" => 0,
- "bottomRounded" => 0,
- "elementBgColor" => "",
- "topElementRounded" => 0,
- "bottomElementRounded" => 0,
- "margin" => [
- "top" => 0,
- "bottom" => 0,
- "both" => 10
- ]
- ],
- "topStatusBar" => [
- 'isShow' => true,
- 'bgColor' => "#ffffff",
- 'rollBgColor' => "#ffffff",
- 'style' => 'style-1',
- 'styleName' => '风格1',
- 'textColor' => "#333333",
- 'rollTextColor' => "#333333",
- 'textAlign' => 'center',
- 'inputPlaceholder' => '请输入搜索关键词',
- 'imgUrl' => '',
- 'link' => [
- 'name' => ""
- ]
- ],
- 'popWindow' => [
- 'imgUrl' => "",
- 'imgWidth' => '',
- 'imgHeight' => '',
- 'count' => -1,
- 'show' => 0,
- 'link' => [
- 'name' => ""
- ],
- ]
- ],
- "value" => [
- [
- "path" => "edit-member-info",
- "id" => "67qv49qgxp00",
- "componentName" => "MemberInfo",
- "componentTitle" => "会员信息",
- "uses" => 0,
- "ignore" => [],
- 'pageStartBgColor' => '',
- 'pageEndBgColor' => '',
- 'pageGradientAngle' => 'to bottom',
- 'componentBgUrl' => '',
- 'componentBgAlpha' => 2,
- "componentStartBgColor" => "",
- "componentEndBgColor" => "",
- "componentGradientAngle" => "to bottom",
- "topRounded" => 9,
- "bottomRounded" => 9,
- "elementBgColor" => "",
- "topElementRounded" => 0,
- "bottomElementRounded" => 0,
- "margin" => [
- "top" => 12,
- "bottom" => 6,
- "both" => 10
- ],
- "style" => "style-1",
- "styleName" => "风格1",
- "textColor" => "#FFFFFF",
- "bgUrl" => "static/resource/images/diy/member_style1_bg.png",
- "bgColorStart" => "",
- "bgColorEnd" => ""
- ],
- [
- "path" => "edit-horz-blank",
- "uses" => 0,
- "id" => "2da0xqyo8zms",
- "componentName" => "HorzBlank",
- "componentTitle" => "辅助空白",
- "ignore" => [
- "pageBgColor",
- "componentBgUrl"
- ],
- "height" => 10,
- "textColor" => "#303133",
- "pageStartBgColor" => "",
- "pageEndBgColor" => "",
- "pageGradientAngle" => "to bottom",
- "componentBgUrl" => "",
- "componentBgAlpha" => 2,
- "componentStartBgColor" => "rgba(255, 255, 255, 1)",
- "componentEndBgColor" => "",
- "componentGradientAngle" => "to bottom",
- "topRounded" => 9,
- "bottomRounded" => 0,
- "elementBgColor" => "",
- "topElementRounded" => 0,
- "bottomElementRounded" => 0,
- "margin" => [
- "top" => 6,
- "bottom" => 0,
- "both" => 10
- ]
- ],
- [
- "path" => "edit-text",
- "uses" => 0,
- "position" => "",
- "id" => "1puhgfus8www",
- "componentName" => "Text",
- "componentTitle" => "标题",
- "ignore" => [],
- "style" => "style-2",
- "styleName" => "风格2",
- "text" => "我的服务",
- "link" => [
- "name" => "",
- ],
- "textColor" => "#303133",
- "fontSize" => 16,
- "fontWeight" => "normal",
- "textAlign" => "center",
- "subTitle" => [
- "text" => "",
- "color" => "#999999",
- "fontSize" => 14,
- "control" => true,
- "fontWeight" => "normal"
- ],
- "more" => [
- "text" => "全部",
- "control" => true,
- "isShow" => true,
- "link" => [
- "name" => ""
- ],
- "color" => "#999999"
- ],
- 'pageStartBgColor' => '',
- 'pageEndBgColor' => '',
- 'pageGradientAngle' => 'to bottom',
- 'componentBgUrl' => '',
- 'componentBgAlpha' => 2,
- "componentStartBgColor" => "rgba(255, 255, 255, 1)",
- "componentEndBgColor" => "",
- "componentGradientAngle" => "to bottom",
- "topRounded" => 0,
- "bottomRounded" => 0,
- "elementBgColor" => "",
- "topElementRounded" => 0,
- "bottomElementRounded" => 0,
- "margin" => [
- "top" => 0,
- "bottom" => 0,
- "both" => 10
- ]
- ],
- [
- "path" => "edit-graphic-nav",
- "id" => "62b7d7hl4ok",
- "componentName" => "GraphicNav",
- "componentTitle" => "图文导航",
- "uses" => 0,
- "layout" => "horizontal",
- "mode" => "graphic",
- "showStyle" => "fixed",
- "rowCount" => 4,
- "pageCount" => 2,
- "carousel" => [
- "type" => "circle",
- "color" => "#FFFFFF"
- ],
- "imageSize" => 25,
- "aroundRadius" => 25,
- "font" => [
- "size" => 12,
- "weight" => "bold",
- "color" => "#303133"
- ],
- 'pageStartBgColor' => '',
- 'pageEndBgColor' => '',
- 'pageGradientAngle' => 'to bottom',
- 'componentBgUrl' => '',
- 'componentBgAlpha' => 2,
- "componentStartBgColor" => "rgba(255, 255, 255, 1)",
- "componentEndBgColor" => "",
- "componentGradientAngle" => "to bottom",
- "topRounded" => 0,
- "bottomRounded" => 9,
- "elementBgColor" => "",
- "topElementRounded" => 0,
- "bottomElementRounded" => 0,
- "margin" => [
- "top" => 0,
- "bottom" => 6,
- "both" => 10
- ],
- "ignore" => [],
- "list" => [
- [
- "title" => "个人资料",
- "link" => [
- "parent" => "MEMBER_LINK",
- "name" => "MEMBER_PERSONAL",
- "title" => "个人资料",
- "url" => "/app/pages/member/personal"
- ],
- "imageUrl" => "static/resource/images/diy/horz_m_personal.png",
- "label" => [
- "control" => false,
- "text" => "热门",
- "textColor" => "#FFFFFF",
- "bgColorStart" => "#F83287",
- "bgColorEnd" => "#FE3423"
- ],
- "id" => "xvlauaflc6o",
- "imgWidth" => 100,
- "imgHeight" => 100
- ],
- [
- "title" => "我的余额",
- "link" => [
- "parent" => "MEMBER_LINK",
- "name" => "MEMBER_BALANCE",
- "title" => "我的余额",
- "url" => "/app/pages/member/balance"
- ],
- "imageUrl" => "static/resource/images/diy/horz_m_balance.png",
- "label" => [
- "control" => false,
- "text" => "热门",
- "textColor" => "#FFFFFF",
- "bgColorStart" => "#F83287",
- "bgColorEnd" => "#FE3423"
- ],
- "id" => "63bjscck5n40",
- "imgWidth" => 100,
- "imgHeight" => 100
- ],
- [
- "title" => "我的积分",
- "link" => [
- "parent" => "MEMBER_LINK",
- "name" => "MEMBER_POINT",
- "title" => "我的积分",
- "url" => "/app/pages/member/point"
- ],
- "imageUrl" => "static/resource/images/diy/horz_m_point.png",
- "label" => [
- "control" => false,
- "text" => "热门",
- "textColor" => "#FFFFFF",
- "bgColorStart" => "#F83287",
- "bgColorEnd" => "#FE3423"
- ],
- "id" => "4qiczw54t8g0",
- "imgWidth" => 100,
- "imgHeight" => 100
- ],
- [
- "title" => "联系客服",
- "link" => [
- "name" => "MEMBER_CONTACT",
- "parent" => "MEMBER_LINK",
- "title" => "客服",
- "url" => "/app/pages/member/contact",
- "action" => ""
- ],
- "imageUrl" => "static/resource/images/diy/horz_m_service.png",
- "label" => [
- "control" => false,
- "text" => "热门",
- "textColor" => "#FFFFFF",
- "bgColorStart" => "#F83287",
- "bgColorEnd" => "#FE3423"
- ],
- "id" => "2eqwfkdphpgk",
- "imgWidth" => 100,
- "imgHeight" => 100
- ]
- ],
- // 轮播图设置
- 'swiper' => [
- 'indicatorColor' => 'rgba(0, 0, 0, 0.3)', // 未选中颜色
- "indicatorActiveColor" => '#FF0E0E',
- 'indicatorStyle' => 'style-1',
- 'indicatorAlign' => 'center'
- ]
- ],
- [
- "path" => "edit-graphic-nav",
- "uses" => 0,
- "id" => "33yn28534fs0",
- "componentName" => "GraphicNav",
- "componentTitle" => "图文导航",
- "ignore" => [],
- "layout" => "vertical",
- "mode" => "graphic",
- "showStyle" => "fixed",
- "rowCount" => 4,
- "pageCount" => 2,
- "carousel" => [
- "type" => "circle",
- "color" => "#FFFFFF"
- ],
- "imageSize" => 25,
- "aroundRadius" => 0,
- "font" => [
- "size" => 13,
- "weight" => "normal",
- "color" => "rgba(0, 0, 0, 1)"
- ],
- "list" => [
- [
- "title" => "个人资料",
- "link" => [
- "parent" => "MEMBER_LINK",
- "name" => "MEMBER_PERSONAL",
- "title" => "个人资料",
- "url" => "/app/pages/member/personal"
- ],
- "imageUrl" => "static/resource/images/diy/vert_m_personal.png",
- "label" => [
- "control" => false,
- "text" => "热门",
- "textColor" => "#FFFFFF",
- "bgColorStart" => "#F83287",
- "bgColorEnd" => "#FE3423"
- ],
- "id" => "4xc4kw9xlqu0",
- "imgWidth" => 88,
- "imgHeight" => 88
- ],
- [
- "title" => "我的余额",
- "link" => [
- "parent" => "MEMBER_LINK",
- "name" => "MEMBER_BALANCE",
- "title" => "我的余额",
- "url" => "/app/pages/member/balance"
- ],
- "imageUrl" => "static/resource/images/diy/vert_m_balance.png",
- "label" => [
- "control" => false,
- "text" => "热门",
- "textColor" => "#FFFFFF",
- "bgColorStart" => "#F83287",
- "bgColorEnd" => "#FE3423"
- ],
- "id" => "4555rq0cc1q0",
- "imgWidth" => 88,
- "imgHeight" => 88
- ],
- [
- "title" => "我的积分",
- "link" => [
- "parent" => "MEMBER_LINK",
- "name" => "MEMBER_POINT",
- "title" => "我的积分",
- "url" => "/app/pages/member/point"
- ],
- "imageUrl" => "static/resource/images/diy/vert_m_point.png",
- "label" => [
- "control" => false,
- "text" => "热门",
- "textColor" => "#FFFFFF",
- "bgColorStart" => "#F83287",
- "bgColorEnd" => "#FE3423"
- ],
- "id" => "1gq3uxox0fk0",
- "imgWidth" => 88,
- "imgHeight" => 88
- ],
- [
- "title" => "联系客服",
- "link" => [
- "name" => "MEMBER_CONTACT",
- "parent" => "MEMBER_LINK",
- "title" => "客服",
- "url" => "/app/pages/member/contact",
- "action" => ""
- ],
- "imageUrl" => "static/resource/images/diy/vert_m_service.png",
- "label" => [
- "control" => false,
- "text" => "热门",
- "textColor" => "#FFFFFF",
- "bgColorStart" => "#F83287",
- "bgColorEnd" => "#FE3423"
- ],
- "id" => "6gqbh1tvyr00",
- "imgWidth" => 88,
- "imgHeight" => 88
- ],
- [
- "id" => "6xhwid2el5c0",
- "title" => "开发者联盟",
- "imageUrl" => "static/resource/images/diy/vert_m_develop.png",
- "imgWidth" => 88,
- "imgHeight" => 88,
- "link" => [
- "name" => ""
- ],
- "label" => [
- "control" => false,
- "text" => "热门",
- "textColor" => "#FFFFFF",
- "bgColorStart" => "#F83287",
- "bgColorEnd" => "#FE3423"
- ]
- ]
- ],
- // 轮播图设置
- 'swiper' => [
- 'indicatorColor' => 'rgba(0, 0, 0, 0.3)', // 未选中颜色
- "indicatorActiveColor" => '#FF0E0E',
- 'indicatorStyle' => 'style-1',
- 'indicatorAlign' => 'center'
- ],
- 'pageStartBgColor' => '',
- 'pageEndBgColor' => '',
- 'pageGradientAngle' => 'to bottom',
- 'componentBgUrl' => '',
- 'componentBgAlpha' => 2,
- "componentStartBgColor" => "rgba(255, 255, 255, 1)",
- "componentEndBgColor" => "",
- "componentGradientAngle" => "to bottom",
- "topRounded" => 9,
- "bottomRounded" => 9,
- "elementBgColor" => "",
- "topElementRounded" => 0,
- "bottomElementRounded" => 0,
- "margin" => [
- "top" => 6,
- "bottom" => 12,
- "both" => 10
- ]
- ]
- ]
- ]
- ],
- 'default_member_index_two' => [
- "title" => "默认个人中心2", // 页面名称
- 'cover' => 'static/resource/images/diy/template/default_member_index_two_cover.png', // 页面封面图
- 'preview' => '', // 页面预览图
- 'desc' => '官方推出默认个人中心2', // 页面描述
- 'mode' => 'diy',
- // 页面数据源
- "data" => [
- "global" => [
- "title" => "个人中心",
- 'pageStartBgColor' => '#F8F8F8',
- 'pageEndBgColor' => '',
- 'pageGradientAngle' => 'to bottom',
- "bgUrl" => "static/resource/images/diy/member_style2_bg.png",
- 'bgHeightScale' => 0,
- 'imgWidth' => 750,
- 'imgHeight' => 403,
- "bottomTabBarSwitch" => true,
- "template" => [
- 'textColor' => "#303133",
- 'pageStartBgColor' => '',
- 'pageEndBgColor' => '',
- 'pageGradientAngle' => 'to bottom',
- 'componentBgUrl' => '',
- 'componentBgAlpha' => 2,
- "componentStartBgColor" => "",
- "componentEndBgColor" => "",
- "componentGradientAngle" => "to bottom",
- "topRounded" => 0,
- "bottomRounded" => 0,
- "elementBgColor" => "",
- "topElementRounded" => 0,
- "bottomElementRounded" => 0,
- "margin" => [
- "top" => 0,
- "bottom" => 0,
- "both" => 10
- ]
- ],
- 'topStatusBar' => [
- 'isShow' => true,
- 'bgColor' => "#ffffff",
- 'isTransparent' => false,
- 'style' => 'style-1',
- 'styleName' => '风格1',
- 'textColor' => "#333333",
- 'textAlign' => 'center',
- 'inputPlaceholder' => '请输入搜索关键词',
- 'imgUrl' => '',
- 'link' => [
- 'name' => ""
- ]
- ],
- 'popWindow' => [
- 'imgUrl' => "",
- 'imgWidth' => '',
- 'imgHeight' => '',
- 'count' => -1,
- 'show' => 0,
- 'link' => [
- 'name' => ""
- ],
- ]
- ],
- "value" => [
- [
- "path" => "edit-member-info",
- "id" => "67qv49qgxp00",
- "componentName" => "MemberInfo",
- "componentTitle" => "会员信息",
- "uses" => 0,
- "ignore" => [],
- 'pageStartBgColor' => '',
- 'pageEndBgColor' => '',
- 'pageGradientAngle' => 'to bottom',
- 'componentBgUrl' => '',
- 'componentBgAlpha' => 2,
- "componentStartBgColor" => "",
- "componentEndBgColor" => "",
- "componentGradientAngle" => "to bottom",
- "topRounded" => 0,
- "bottomRounded" => 0,
- "elementBgColor" => "",
- "topElementRounded" => 0,
- "bottomElementRounded" => 0,
- "margin" => [
- "top" => 0,
- "bottom" => 0,
- "both" => 0
- ],
- "textColor" => "#FFFFFF",
- "bgUrl" => "",
- "style" => "style-1",
- "styleName" => "风格1",
- "bgColorStart" => "",
- "bgColorEnd" => ""
- ],
- [
- "path" => "edit-horz-blank",
- "uses" => 0,
- "id" => "5fo173bx5840",
- "componentName" => "HorzBlank",
- "componentTitle" => "辅助空白",
- "ignore" => [
- "pageBgColor",
- "componentBgUrl"
- ],
- "height" => 10,
- "textColor" => "#303133",
- "pageStartBgColor" => "",
- "pageEndBgColor" => "",
- "pageGradientAngle" => "to bottom",
- "componentBgUrl" => "",
- "componentBgAlpha" => 2,
- "componentStartBgColor" => "rgba(255, 255, 255, 1)",
- "componentEndBgColor" => "",
- "componentGradientAngle" => "to bottom",
- "topRounded" => 9,
- "bottomRounded" => 0,
- "elementBgColor" => "",
- "topElementRounded" => 0,
- "bottomElementRounded" => 0,
- "margin" => [
- "top" => 0,
- "bottom" => 0,
- "both" => 10
- ]
- ],
- [
- "path" => "edit-text",
- "uses" => 0,
- "position" => "",
- "id" => "629cgb1ygcw0",
- "componentName" => "Text",
- "componentTitle" => "标题",
- "ignore" => [],
- "style" => "style-1",
- "styleName" => "风格1",
- "text" => "我的服务",
- "link" => [
- "name" => ""
- ],
- "textColor" => "#303133",
- "fontSize" => 16,
- "fontWeight" => "normal",
- "textAlign" => "left",
- "subTitle" => [
- "text" => "",
- "color" => "#999999",
- "fontSize" => 14,
- "control" => false,
- "fontWeight" => "normal"
- ],
- "more" => [
- "text" => "查看更多",
- "control" => false,
- "isShow" => false,
- "link" => [
- "name" => ""
- ],
- "color" => "#999999"
- ],
- 'pageStartBgColor' => '',
- 'pageEndBgColor' => '',
- 'pageGradientAngle' => 'to bottom',
- 'componentBgUrl' => '',
- 'componentBgAlpha' => 2,
- "componentStartBgColor" => "rgba(255, 255, 255, 1)",
- "componentEndBgColor" => "",
- "componentGradientAngle" => "to bottom",
- "topRounded" => 0,
- "bottomRounded" => 0,
- "elementBgColor" => "",
- "topElementRounded" => 0,
- "bottomElementRounded" => 0,
- "margin" => [
- "top" => 0,
- "bottom" => 0,
- "both" => 10
- ]
- ],
- [
- "path" => "edit-graphic-nav",
- "id" => "62b7d7hl4ok",
- "componentName" => "GraphicNav",
- "componentTitle" => "图文导航",
- "uses" => 0,
- "layout" => "horizontal",
- "mode" => "graphic",
- "showStyle" => "fixed",
- "rowCount" => 4,
- "pageCount" => 2,
- "carousel" => [
- "type" => "circle",
- "color" => "#FFFFFF"
- ],
- "imageSize" => 25,
- "aroundRadius" => 25,
- "font" => [
- "size" => 12,
- "weight" => "bold",
- "color" => "#303133"
- ],
- 'pageStartBgColor' => '',
- 'pageEndBgColor' => '',
- 'pageGradientAngle' => 'to bottom',
- 'componentBgUrl' => '',
- 'componentBgAlpha' => 2,
- "componentStartBgColor" => "rgba(255, 255, 255, 1)",
- "componentEndBgColor" => "",
- "componentGradientAngle" => "to bottom",
- "topRounded" => 0,
- "bottomRounded" => 9,
- "elementBgColor" => "",
- "topElementRounded" => 0,
- "bottomElementRounded" => 0,
- "margin" => [
- "top" => 0,
- "bottom" => 6,
- "both" => 10
- ],
- "ignore" => [],
- "list" => [
- [
- "title" => "个人资料",
- "link" => [
- "parent" => "MEMBER_LINK",
- "name" => "MEMBER_PERSONAL",
- "title" => "个人资料",
- "url" => "/app/pages/member/personal"
- ],
- "imageUrl" => "static/resource/images/diy/horz_m_personal.png",
- "label" => [
- "control" => false,
- "text" => "热门",
- "textColor" => "#FFFFFF",
- "bgColorStart" => "#F83287",
- "bgColorEnd" => "#FE3423"
- ],
- "id" => "xvlauaflc6o",
- "imgWidth" => 100,
- "imgHeight" => 100
- ],
- [
- "title" => "我的余额",
- "link" => [
- "parent" => "MEMBER_LINK",
- "name" => "MEMBER_BALANCE",
- "title" => "我的余额",
- "url" => "/app/pages/member/balance"
- ],
- "imageUrl" => "static/resource/images/diy/horz_m_balance.png",
- "label" => [
- "control" => false,
- "text" => "热门",
- "textColor" => "#FFFFFF",
- "bgColorStart" => "#F83287",
- "bgColorEnd" => "#FE3423"
- ],
- "id" => "63bjscck5n40",
- "imgWidth" => 100,
- "imgHeight" => 100
- ],
- [
- "title" => "我的积分",
- "link" => [
- "parent" => "MEMBER_LINK",
- "name" => "MEMBER_POINT",
- "title" => "我的积分",
- "url" => "/app/pages/member/point"
- ],
- "imageUrl" => "static/resource/images/diy/horz_m_point.png",
- "label" => [
- "control" => false,
- "text" => "热门",
- "textColor" => "#FFFFFF",
- "bgColorStart" => "#F83287",
- "bgColorEnd" => "#FE3423"
- ],
- "id" => "4qiczw54t8g0",
- "imgWidth" => 100,
- "imgHeight" => 100
- ],
- [
- "title" => "联系客服",
- "link" => [
- "name" => "MEMBER_CONTACT",
- "parent" => "MEMBER_LINK",
- "title" => "客服",
- "url" => "/app/pages/member/contact",
- "action" => ""
- ],
- "imageUrl" => "static/resource/images/diy/horz_m_service.png",
- "label" => [
- "control" => false,
- "text" => "热门",
- "textColor" => "#FFFFFF",
- "bgColorStart" => "#F83287",
- "bgColorEnd" => "#FE3423"
- ],
- "id" => "2eqwfkdphpgk",
- "imgWidth" => 100,
- "imgHeight" => 100
- ]
- ],
- // 轮播图设置
- 'swiper' => [
- 'indicatorColor' => 'rgba(0, 0, 0, 0.3)', // 未选中颜色
- "indicatorActiveColor" => '#FF0E0E',
- 'indicatorStyle' => 'style-1',
- 'indicatorAlign' => 'center'
- ]
- ],
- [
- "path" => "edit-graphic-nav",
- "uses" => 0,
- "id" => "33yn28534fs0",
- "componentName" => "GraphicNav",
- "componentTitle" => "图文导航",
- "ignore" => [],
- "layout" => "vertical",
- "mode" => "graphic",
- "showStyle" => "fixed",
- "rowCount" => 4,
- "pageCount" => 2,
- "carousel" => [
- "type" => "circle",
- "color" => "#FFFFFF"
- ],
- "imageSize" => 25,
- "aroundRadius" => 0,
- "font" => [
- "size" => 13,
- "weight" => "normal",
- "color" => "rgba(0, 0, 0, 1)"
- ],
- "list" => [
- [
- "title" => "个人资料",
- "link" => [
- "parent" => "MEMBER_LINK",
- "name" => "MEMBER_PERSONAL",
- "title" => "个人资料",
- "url" => "/app/pages/member/personal"
- ],
- "imageUrl" => "static/resource/images/diy/vert_m_personal.png",
- "label" => [
- "control" => false,
- "text" => "热门",
- "textColor" => "#FFFFFF",
- "bgColorStart" => "#F83287",
- "bgColorEnd" => "#FE3423"
- ],
- "id" => "4xc4kw9xlqu0",
- "imgWidth" => 88,
- "imgHeight" => 88
- ],
- [
- "title" => "我的余额",
- "link" => [
- "parent" => "MEMBER_LINK",
- "name" => "MEMBER_BALANCE",
- "title" => "我的余额",
- "url" => "/app/pages/member/balance"
- ],
- "imageUrl" => "static/resource/images/diy/vert_m_balance.png",
- "label" => [
- "control" => false,
- "text" => "热门",
- "textColor" => "#FFFFFF",
- "bgColorStart" => "#F83287",
- "bgColorEnd" => "#FE3423"
- ],
- "id" => "4555rq0cc1q0",
- "imgWidth" => 88,
- "imgHeight" => 88
- ],
- [
- "title" => "我的积分",
- "link" => [
- "parent" => "MEMBER_LINK",
- "name" => "MEMBER_POINT",
- "title" => "我的积分",
- "url" => "/app/pages/member/point"
- ],
- "imageUrl" => "static/resource/images/diy/vert_m_point.png",
- "label" => [
- "control" => false,
- "text" => "热门",
- "textColor" => "#FFFFFF",
- "bgColorStart" => "#F83287",
- "bgColorEnd" => "#FE3423"
- ],
- "id" => "1gq3uxox0fk0",
- "imgWidth" => 88,
- "imgHeight" => 88
- ],
- [
- "title" => "联系客服",
- "link" => [
- "name" => "MEMBER_CONTACT",
- "parent" => "MEMBER_LINK",
- "title" => "客服",
- "url" => "/app/pages/member/contact",
- "action" => ""
- ],
- "imageUrl" => "static/resource/images/diy/vert_m_service.png",
- "label" => [
- "control" => false,
- "text" => "热门",
- "textColor" => "#FFFFFF",
- "bgColorStart" => "#F83287",
- "bgColorEnd" => "#FE3423"
- ],
- "id" => "6gqbh1tvyr00",
- "imgWidth" => 88,
- "imgHeight" => 88
- ],
- [
- "id" => "777g7jxbtfc0",
- "title" => "开发者联盟",
- "imageUrl" => "static/resource/images/diy/vert_m_develop.png",
- "imgWidth" => 96,
- "imgHeight" => 96,
- "link" => [
- "name" => ""
- ],
- "label" => [
- "control" => false,
- "text" => "热门",
- "textColor" => "#FFFFFF",
- "bgColorStart" => "#F83287",
- "bgColorEnd" => "#FE3423"
- ]
- ]
- ],
- // 轮播图设置
- 'swiper' => [
- 'indicatorColor' => 'rgba(0, 0, 0, 0.3)', // 未选中颜色
- "indicatorActiveColor" => '#FF0E0E',
- 'indicatorStyle' => 'style-1',
- 'indicatorAlign' => 'center'
- ],
- 'pageStartBgColor' => '',
- 'pageEndBgColor' => '',
- 'pageGradientAngle' => 'to bottom',
- 'componentBgUrl' => '',
- 'componentBgAlpha' => 2,
- "componentStartBgColor" => "rgba(255, 255, 255, 1)",
- "componentEndBgColor" => "",
- "componentGradientAngle" => "to bottom",
- "topRounded" => 9,
- "bottomRounded" => 9,
- "elementBgColor" => "",
- "topElementRounded" => 0,
- "bottomElementRounded" => 0,
- "margin" => [
- "top" => 6,
- "bottom" => 12,
- "both" => 10
- ]
- ]
- ]
- ]
- ]
- ]
- ];
- if (!empty($params[ 'addon' ])) {
- $pages = ( new DictLoader("UniappPages") )->load($params);
- } else {
- $pages = ( new DictLoader("UniappPages") )->load($system_pages);
- }
- if (!empty($params[ 'type' ])) {
- if (!empty($pages[ $params[ 'type' ] ])) {
- $temp = $pages[ $params[ 'type' ] ];
- if (isset($params[ 'mode' ]) && !empty($params[ 'mode' ])) {
- foreach ($temp as $k => $v) {
- if ($params[ 'mode' ] != $v[ 'mode' ]) {
- unset($temp[ $k ]);
- }
- }
- }
- return $temp;
- } else {
- return [];
- }
- }
- return $pages;
- }
- }
|