You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
3.0 KiB
87 lines
3.0 KiB
2 months ago
|
<?php
|
||
|
/**
|
||
|
* Created by PhpStorm.
|
||
|
* User: shuixian
|
||
|
* Date: 2019/11/20
|
||
|
* Time: 18:29
|
||
|
*/
|
||
|
|
||
|
|
||
|
$gzh = <<<GZH
|
||
|
|
||
|
{"title":"公众号组件","type":"official","icon":"iconOfficial","isDelete":true,"addNumber":1,"data":{"title":"公众号组件"}}
|
||
|
|
||
|
GZH;
|
||
|
|
||
|
|
||
|
$acrd = <<<CARD
|
||
|
|
||
|
{"title":"名片模块","type":"cardModule","icon":"iconCardModule","isDelete":true,"addNumber":1,"attr":[{"title":"显示发名片按钮","type":"Switch","name":"isShowSendBtn"},{"title":"显示保存到通讯录","type":"Switch","name":"isShowSaveBtn"},{"title":"显示电话","type":"Switch","name":"isShowPhone"},{"title":"显示座机","type":"Switch","name":"isShowZuoji"},{"title":"显示400热线","type":"Switch","name":"isShowHotPhone"},{"title":"显示微信","type":"Switch","name":"isShowWechat"},{"title":"显示邮箱","type":"Switch","name":"isShowEmail"},{"title":"显示公司名称","type":"Switch","name":"isShowCompanyName"},{"title":"显示公司地址","type":"Switch","name":"isShowCompanyAddr"}],"data":{"title":"名片模块","isShowSendBtn":true,"isShowSaveBtn":true,"isShowPhone":true,"isShowZuoji":true,"isShowHotPhone":true,"isShowWechat":true,"isShowEmail":true,"isShowCompanyName":true,"isShowCompanyAddr":true},"dataList":[]}
|
||
|
CARD;
|
||
|
|
||
|
$userinfo = <<<USERINFO
|
||
|
|
||
|
{"title":"个人简介","type":"staffIntroduce","icon":"iconStaffIntroduce","isDelete":true,"addNumber":1,"data":{"title":"个人简介"},"dataList":[]}
|
||
|
USERINFO;
|
||
|
|
||
|
$vr = <<<VR
|
||
|
|
||
|
{"title":"VR全景","type":"myVR","icon":"iconMyVR","isDelete":true,"addNumber":1,"data":{"title":"VR全景"},"dataList":[]}
|
||
|
VR;
|
||
|
|
||
|
|
||
|
$video = <<<VIDEO
|
||
|
|
||
|
{"title":"我的视频","type":"myVideo","icon":"iconMyVideo","isDelete":true,"addNumber":1,"data":{"title":"我的视频"},"dataList":[]}
|
||
|
VIDEO;
|
||
|
|
||
|
|
||
|
$photo = <<<PHOTO
|
||
|
{"title":"我的照片","type":"myPhoto","icon":"iconMyPhoto","isDelete":true,"addNumber":1,"data":{"title":"我的照片"},"dataList":[]}
|
||
|
PHOTO;
|
||
|
|
||
|
|
||
|
$goods = <<<GOODS
|
||
|
|
||
|
{"model_name_key":"shop","title":"主推商品","type":"myGoods","icon":"iconMyGoods","isDelete":true,"addNumber":1,"data":{"title":"主推商品"},"dataList":[]}
|
||
|
GOODS;
|
||
|
|
||
|
|
||
|
$dynamic = <<<DYNAMIC
|
||
|
|
||
|
{"model_name_key":"dynamic","title":"我的动态","type":"myDynamic","icon":"iconDynamicList","isDelete":true,"addNumber":1,"attr":[{"title":"点击图片/视频","type":"Radio","name":"clickType","data":[{"label":1,"title":"查看图片/视频"},{"label":2,"title":"进入详情"}]},{"title":"显示数量","type":"InputNumber","name":"row"}],"data":{"title":"我的动态","clickType":1,"row":{"number":3,"min":1,"max":3,"label":"请输入"},"dataList":[]}}
|
||
|
DYNAMIC;
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
//模块组件 后台DIY页面的左侧
|
||
|
|
||
|
return [
|
||
|
|
||
|
[
|
||
|
"title" => "业务组件",
|
||
|
'type' => 'cardCompoent',
|
||
|
"data" => [
|
||
|
json_decode($gzh, true),
|
||
|
|
||
|
json_decode($acrd, true),
|
||
|
|
||
|
json_decode($userinfo, true),
|
||
|
|
||
|
json_decode($vr, true),
|
||
|
|
||
|
json_decode($video, true),
|
||
|
|
||
|
json_decode($photo, true),
|
||
|
|
||
|
json_decode($goods, true),
|
||
|
|
||
|
json_decode($dynamic, true),
|
||
|
]
|
||
|
]
|
||
|
|
||
|
];
|