AddStoreDiyView.php 53 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100
  1. <?php
  2. /**
  3. * Niushop商城系统 - 团队十年电商经验汇集巨献!
  4. * =========================================================
  5. * Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
  6. * ----------------------------------------------
  7. * 官方网址: https://www.niushop.com
  8. * =========================================================
  9. */
  10. namespace app\event;
  11. use app\model\web\DiyView as DiyViewModel;
  12. /**
  13. * 增加默认自定义数据:门店主页
  14. */
  15. class AddStoreDiyView
  16. {
  17. public function handle($param)
  18. {
  19. if (!empty($param[ 'site_id' ]) && addon_is_exit('store', $param[ 'site_id' ])) {
  20. $diy_view_model = new DiyViewModel();
  21. $img_url = "addon/store/shop/view/public/img/template";
  22. // 添加自定义主页装修
  23. $value = json_encode(
  24. [
  25. "global" => [
  26. "title" => "门店主页",
  27. "pageBgColor" => "#F5F6FA",
  28. "topNavColor" => "#04C561",
  29. "topNavBg" => true,
  30. "navBarSwitch" => true,
  31. "navStyle" => "4",
  32. "textNavColor" => "#FFFFFF",
  33. "topNavImg" => "",
  34. "moreLink" => [
  35. "name" => ""
  36. ],
  37. "openBottomNav" => true,
  38. "textImgPosLink" => "center",
  39. "mpCollect" => false,
  40. "popWindow" => [
  41. "imageUrl" => "",
  42. "count" => -1,
  43. "show" => 0,
  44. "link" => [
  45. "name" => ""
  46. ],
  47. "imgWidth" => "",
  48. "imgHeight" => ""
  49. ],
  50. "bgUrl" => $img_url . "/bg.png",
  51. "imgWidth" => "375",
  52. "imgHeight" => "247",
  53. "template" => [
  54. "pageBgColor" => "",
  55. "textColor" => "#303133",
  56. "componentBgColor" => "",
  57. "componentAngle" => "round",
  58. "topAroundRadius" => 0,
  59. "bottomAroundRadius" => 0,
  60. "elementBgColor" => "",
  61. "elementAngle" => "round",
  62. "topElementAroundRadius" => 0,
  63. "bottomElementAroundRadius" => 0,
  64. "margin" => [
  65. "top" => 0,
  66. "bottom" => 0,
  67. "both" => 12
  68. ]
  69. ]
  70. ],
  71. "value" => [
  72. [
  73. "searchStyle" => 2,
  74. "title" => "请输入搜索关键词",
  75. "textAlign" => "left",
  76. "borderType" => 2,
  77. "iconType" => "img",
  78. "icon" => "",
  79. "style" => [
  80. "fontSize" => "60",
  81. "iconBgColor" => [],
  82. "iconBgColorDeg" => 0,
  83. "iconBgImg" => "",
  84. "bgRadius" => 0,
  85. "iconColor" => [
  86. "#000000"
  87. ],
  88. "iconColorDeg" => 0
  89. ],
  90. "imageUrl" => $img_url . "/search.png",
  91. "id" => "4v0q7l4eyhs0",
  92. "addonName" => "",
  93. "componentName" => "Search",
  94. "componentTitle" => "搜索框",
  95. "searchLink" => [
  96. "name" => ""
  97. ],
  98. "isDelete" => 0,
  99. "pageBgColor" => "",
  100. "textColor" => "#303133",
  101. "componentBgColor" => "",
  102. "topAroundRadius" => 0,
  103. "bottomAroundRadius" => 0,
  104. "elementBgColor" => "#FFFFFF",
  105. "topElementAroundRadius" => 0,
  106. "bottomElementAroundRadius" => 0,
  107. "margin" => [
  108. "top" => 6,
  109. "bottom" => 6,
  110. "both" => 12
  111. ],
  112. "imgWidth" => "60",
  113. "imgHeight" => "60",
  114. "positionWay" => "fixed"
  115. ],
  116. [
  117. "list" => [
  118. [
  119. "title" => "新到货",
  120. "style" => [
  121. "fontSize" => "60",
  122. "iconBgColor" => [],
  123. "iconBgColorDeg" => 0,
  124. "iconBgImg" => "",
  125. "bgRadius" => 0,
  126. "iconColor" => [
  127. "#000000"
  128. ],
  129. "iconColorDeg" => 0
  130. ],
  131. "link" => [
  132. "name" => ""
  133. ],
  134. "icon" => "",
  135. "bgColorStart" => "#FA6400",
  136. "bgColorEnd" => "#FA6400",
  137. "textColor" => "#FFFFFF",
  138. "iconType" => "img",
  139. "imageUrl" => $img_url . "/new.png",
  140. "id" => "d4ywk2pbons0",
  141. "imgWidth" => "33",
  142. "imgHeight" => "32"
  143. ],
  144. [
  145. "title" => "新鲜猪肉",
  146. "style" => [
  147. "fontSize" => "60",
  148. "iconBgColor" => [],
  149. "iconBgColorDeg" => 0,
  150. "iconBgImg" => "",
  151. "bgRadius" => 0,
  152. "iconColor" => [
  153. "#FA6400"
  154. ],
  155. "iconColorDeg" => 0
  156. ],
  157. "link" => [
  158. "name" => ""
  159. ],
  160. "icon" => "",
  161. "bgColorStart" => "#FFFBDC",
  162. "bgColorEnd" => "#FFFBDC",
  163. "textColor" => "#FA6400",
  164. "iconType" => "icon",
  165. "imageUrl" => "",
  166. "id" => "1jip6f31rlog0"
  167. ],
  168. [
  169. "title" => "新鲜蔬菜",
  170. "style" => [
  171. "fontSize" => "60",
  172. "iconBgColor" => [],
  173. "iconBgColorDeg" => 0,
  174. "iconBgImg" => "",
  175. "bgRadius" => 0,
  176. "iconColor" => [
  177. "#000000"
  178. ],
  179. "iconColorDeg" => 0
  180. ],
  181. "link" => [
  182. "name" => ""
  183. ],
  184. "icon" => "",
  185. "bgColorStart" => "#F9FEE8",
  186. "bgColorEnd" => "#F9FEE8",
  187. "textColor" => "#2EB44B",
  188. "iconType" => "img",
  189. "imageUrl" => "",
  190. "id" => "1oai3grdteps0"
  191. ],
  192. [
  193. "title" => "米线面条",
  194. "style" => [
  195. "fontSize" => "60",
  196. "iconBgColor" => [],
  197. "iconBgColorDeg" => 0,
  198. "iconBgImg" => "",
  199. "bgRadius" => 0,
  200. "iconColor" => [
  201. "#000000"
  202. ],
  203. "iconColorDeg" => 0
  204. ],
  205. "link" => [
  206. "name" => ""
  207. ],
  208. "icon" => "",
  209. "bgColorStart" => "#FFEEF6",
  210. "bgColorEnd" => "#FFEEF6",
  211. "textColor" => "#A5421B",
  212. "iconType" => "img",
  213. "imageUrl" => "",
  214. "id" => "11ocpk5d93280"
  215. ],
  216. [
  217. "title" => "豆腐脑",
  218. "style" => [
  219. "fontSize" => "60",
  220. "iconBgColor" => [],
  221. "iconBgColorDeg" => 0,
  222. "iconBgImg" => "",
  223. "bgRadius" => 0,
  224. "iconColor" => [
  225. "#000000"
  226. ],
  227. "iconColorDeg" => 0
  228. ],
  229. "link" => [
  230. "name" => ""
  231. ],
  232. "icon" => "",
  233. "bgColorStart" => "#EAFFF7",
  234. "bgColorEnd" => "#EAFFF7",
  235. "textColor" => "#0DB0F0",
  236. "iconType" => "img",
  237. "imageUrl" => "",
  238. "id" => "1qaypb973iio0"
  239. ]
  240. ],
  241. "ornament" => [
  242. "type" => "default",
  243. "color" => "#EDEDED"
  244. ],
  245. "id" => "zfps1tn2uds",
  246. "addonName" => "",
  247. "componentName" => "QuickNav",
  248. "componentTitle" => "快捷导航",
  249. "isDelete" => 0,
  250. "pageBgColor" => "",
  251. "componentBgColor" => "",
  252. "componentAngle" => "round",
  253. "topAroundRadius" => 0,
  254. "bottomAroundRadius" => 0,
  255. "topElementAroundRadius" => 0,
  256. "bottomElementAroundRadius" => 0,
  257. "margin" => [
  258. "top" => 6,
  259. "bottom" => 6,
  260. "both" => 12
  261. ]
  262. ],
  263. [
  264. "indicatorColor" => "#ffffff",
  265. "carouselStyle" => "circle",
  266. "indicatorLocation" => "center",
  267. "list" => [
  268. [
  269. "imageUrl" => $img_url . "/gg_1.png",
  270. "link" => [
  271. "name" => ""
  272. ],
  273. "imgWidth" => "702",
  274. "imgHeight" => "260",
  275. "id" => "1vpshofnu4o00"
  276. ]
  277. ],
  278. "id" => "7j58u684wmk0",
  279. "addonName" => "",
  280. "componentName" => "ImageAds",
  281. "componentTitle" => "图片广告",
  282. "isDelete" => 0,
  283. "pageBgColor" => "",
  284. "componentBgColor" => "",
  285. "componentAngle" => "round",
  286. "topAroundRadius" => 5,
  287. "bottomAroundRadius" => 5,
  288. "topElementAroundRadius" => 0,
  289. "bottomElementAroundRadius" => 0,
  290. "margin" => [
  291. "top" => 6,
  292. "bottom" => 6,
  293. "both" => 12
  294. ]
  295. ],
  296. [
  297. "style" => [
  298. "fontSize" => 80,
  299. "iconBgColor" => [],
  300. "iconBgColorDeg" => 0,
  301. "iconBgImg" => "",
  302. "bgRadius" => 0,
  303. "iconColor" => [
  304. "#7D7D7D"
  305. ],
  306. "iconColorDeg" => 0
  307. ],
  308. "labelIds" => [],
  309. "icon" => "icondiy icon-system-dvd-line",
  310. "contentStyle" => "style-1",
  311. "sources" => "initial",
  312. "previewList" => [
  313. "label_id_lbeug2w6" => [
  314. "label_name" => "同城配送到家",
  315. ],
  316. "label_id_luz15aj6v" => [
  317. "label_name" => "最快30分钟达",
  318. ],
  319. "label_id_13l0pqbwrr" => [
  320. "label_name" => "本地电商",
  321. ]
  322. ],
  323. "id" => "33a3vqu1uq8",
  324. "addonName" => "store",
  325. "componentName" => "StoreLabel",
  326. "componentTitle" => "门店标签",
  327. "isDelete" => 0,
  328. "pageBgColor" => "",
  329. "textColor" => "#7D7D7D",
  330. "componentBgColor" => "",
  331. "componentAngle" => "round",
  332. "topAroundRadius" => 0,
  333. "bottomAroundRadius" => 0,
  334. "topElementAroundRadius" => 0,
  335. "bottomElementAroundRadius" => 0,
  336. "margin" => [
  337. "top" => 6,
  338. "bottom" => 6,
  339. "both" => 12
  340. ],
  341. "iconType" => "icon",
  342. "fontSize" => 14,
  343. "fontWeight" => 'normal',
  344. "count" => 3
  345. ],
  346. [
  347. "contentStyle" => "style-1",
  348. "list" => [
  349. [
  350. "title" => " 每天接近饭点时派送运力紧张,请您尽量提前下单!",
  351. "link" => [
  352. "name" => ""
  353. ]
  354. ]
  355. ],
  356. "sources" => "diy",
  357. "iconSources" => "diy",
  358. "noticeIds" => [],
  359. "iconType" => "img",
  360. "icon" => "",
  361. "style" => [
  362. "fontSize" => "60",
  363. "iconBgColor" => [],
  364. "iconBgColorDeg" => 0,
  365. "iconBgImg" => "",
  366. "bgRadius" => 0,
  367. "iconColor" => [
  368. "#000000"
  369. ],
  370. "iconColorDeg" => 0
  371. ],
  372. "imageUrl" => $img_url . "/notice.png",
  373. "scrollWay" => "upDown",
  374. "id" => "svi17ueui8w",
  375. "addonName" => "",
  376. "componentName" => "Notice",
  377. "componentTitle" => "公告",
  378. "isDelete" => 0,
  379. "pageBgColor" => "",
  380. "textColor" => "#7D7D7D",
  381. "componentBgColor" => "#FFFFFF",
  382. "componentAngle" => "round",
  383. "topAroundRadius" => 8,
  384. "bottomAroundRadius" => 8,
  385. "topElementAroundRadius" => 0,
  386. "bottomElementAroundRadius" => 0,
  387. "margin" => [
  388. "top" => 6,
  389. "bottom" => 6,
  390. "both" => 12
  391. ],
  392. "imgWidth" => "44",
  393. "imgHeight" => "44",
  394. "fontSize" => 14,
  395. "fontWeight" => 'normal'
  396. ],
  397. [
  398. "mode" => "row1-of4",
  399. "imageGap" => 10,
  400. "list" => [
  401. [
  402. "imageUrl" => $img_url . "/rubik_cube_1.png",
  403. "imgWidth" => "246",
  404. "imgHeight" => "162",
  405. "previewWidth" => 77.75,
  406. "previewHeight" => "51.201219512195124px",
  407. "link" => [
  408. "name" => ""
  409. ]
  410. ],
  411. [
  412. "imageUrl" => $img_url . "/rubik_cube_2.png",
  413. "imgWidth" => "246",
  414. "imgHeight" => "162",
  415. "previewWidth" => 77.75,
  416. "previewHeight" => "51.201219512195124px",
  417. "link" => [
  418. "name" => ""
  419. ]
  420. ],
  421. [
  422. "imageUrl" => $img_url . "/rubik_cube_3.png",
  423. "imgWidth" => "246",
  424. "imgHeight" => "162",
  425. "previewWidth" => 77.75,
  426. "previewHeight" => "51.201219512195124px",
  427. "link" => [
  428. "name" => ""
  429. ]
  430. ],
  431. [
  432. "imageUrl" => $img_url . "/rubik_cube_4.png",
  433. "imgWidth" => "246",
  434. "imgHeight" => "162",
  435. "previewWidth" => 77.75,
  436. "previewHeight" => "51.201219512195124px",
  437. "link" => [
  438. "name" => ""
  439. ]
  440. ]
  441. ],
  442. "id" => "2cyenbhbislc",
  443. "addonName" => "",
  444. "componentName" => "RubikCube",
  445. "componentTitle" => "魔方",
  446. "isDelete" => 0,
  447. "pageBgColor" => "",
  448. "componentBgColor" => "",
  449. "componentAngle" => "round",
  450. "topAroundRadius" => 0,
  451. "bottomAroundRadius" => 0,
  452. "elementAngle" => "round",
  453. "topElementAroundRadius" => 0,
  454. "bottomElementAroundRadius" => 0,
  455. "margin" => [
  456. "top" => 6,
  457. "bottom" => 6,
  458. "both" => 12
  459. ]
  460. ],
  461. [
  462. "indicatorIsShow" => true,
  463. "indicatorColor" => "#ffffff",
  464. "carouselStyle" => "circle",
  465. "indicatorLocation" => "center",
  466. "list" => [
  467. [
  468. "imageUrl" => $img_url . "/point.png",
  469. "link" => [
  470. "name" => "INTEGRAL_STORE",
  471. "title" => "积分商城",
  472. "wap_url" => "/pages_promotion/point/list",
  473. "parent" => "MARKETING_LINK"
  474. ],
  475. "imgWidth" => "702",
  476. "imgHeight" => "180",
  477. "id" => "1z69zcd5vkio0"
  478. ]
  479. ],
  480. "id" => "1vtq5yokj44g",
  481. "addonName" => "",
  482. "componentName" => "ImageAds",
  483. "componentTitle" => "图片广告",
  484. "isDelete" => 0,
  485. "pageBgColor" => "",
  486. "componentBgColor" => "",
  487. "componentAngle" => "round",
  488. "topAroundRadius" => 12,
  489. "bottomAroundRadius" => 12,
  490. "topElementAroundRadius" => 0,
  491. "bottomElementAroundRadius" => 0,
  492. "margin" => [
  493. "top" => 6,
  494. "bottom" => 6,
  495. "both" => 12
  496. ]
  497. ],
  498. [
  499. "mode" => "graphic",
  500. "type" => "img",
  501. "showStyle" => "fixed",
  502. "ornament" => [
  503. "type" => "default",
  504. "color" => "#EDEDED"
  505. ],
  506. "rowCount" => 5,
  507. "pageCount" => 2,
  508. "carousel" => [
  509. "type" => "circle",
  510. "color" => "#FFFFFF"
  511. ],
  512. "imageSize" => 50,
  513. "aroundRadius" => 25,
  514. "font" => [
  515. "size" => 14,
  516. "weight" => "normal",
  517. "color" => "#303133"
  518. ],
  519. "list" => [
  520. [
  521. "title" => "新鲜蔬菜",
  522. "imageUrl" => $img_url . "/nav_1.png",
  523. "iconType" => "img",
  524. "style" => [
  525. "fontSize" => "60",
  526. "iconBgColor" => [],
  527. "iconBgColorDeg" => 0,
  528. "iconBgImg" => "",
  529. "bgRadius" => 0,
  530. "iconColor" => [
  531. "#000000"
  532. ],
  533. "iconColorDeg" => 0
  534. ],
  535. "link" => [
  536. "name" => ""
  537. ],
  538. "label" => [
  539. "control" => true,
  540. "text" => "热卖",
  541. "textColor" => "#FFFFFF",
  542. "bgColorStart" => "#FE8681",
  543. "bgColorEnd" => "#FF5754"
  544. ],
  545. "icon" => "",
  546. "id" => "1v99h14wqhr40",
  547. "imgWidth" => "147",
  548. "imgHeight" => "147"
  549. ],
  550. [
  551. "title" => "鲜肉蛋禽",
  552. "imageUrl" => $img_url . "/nav_2.png",
  553. "iconType" => "img",
  554. "style" => [
  555. "fontSize" => "60",
  556. "iconBgColor" => [],
  557. "iconBgColorDeg" => 0,
  558. "iconBgImg" => "",
  559. "bgRadius" => 0,
  560. "iconColor" => [
  561. "#000000"
  562. ],
  563. "iconColorDeg" => 0
  564. ],
  565. "link" => [
  566. "name" => ""
  567. ],
  568. "label" => [
  569. "control" => false,
  570. "text" => "热门",
  571. "textColor" => "#FFFFFF",
  572. "bgColorStart" => "#F83287",
  573. "bgColorEnd" => "#FE3423"
  574. ],
  575. "icon" => "",
  576. "id" => "1s5oxgjxss5c0",
  577. "imgWidth" => "147",
  578. "imgHeight" => "147"
  579. ],
  580. [
  581. "title" => "优选水果",
  582. "imageUrl" => $img_url . "/nav_3.png",
  583. "iconType" => "img",
  584. "style" => [
  585. "fontSize" => "60",
  586. "iconBgColor" => [],
  587. "iconBgColorDeg" => 0,
  588. "iconBgImg" => "",
  589. "bgRadius" => 0,
  590. "iconColor" => [
  591. "#000000"
  592. ],
  593. "iconColorDeg" => 0
  594. ],
  595. "link" => [
  596. "name" => ""
  597. ],
  598. "label" => [
  599. "control" => true,
  600. "text" => "草莓",
  601. "textColor" => "#FFFFFF",
  602. "bgColorStart" => "#FE8681",
  603. "bgColorEnd" => "#FF5754"
  604. ],
  605. "icon" => "",
  606. "id" => "1z76ythx14sg0",
  607. "imgWidth" => "147",
  608. "imgHeight" => "147"
  609. ],
  610. [
  611. "title" => "海鲜水产",
  612. "imageUrl" => $img_url . "/nav_4.png",
  613. "iconType" => "img",
  614. "style" => "",
  615. "link" => [
  616. "name" => ""
  617. ],
  618. "label" => [
  619. "control" => false,
  620. "text" => "热门",
  621. "textColor" => "#FFFFFF",
  622. "bgColorStart" => "#F83287",
  623. "bgColorEnd" => "#FE3423"
  624. ],
  625. "iconfont" => [
  626. "value" => "",
  627. "color" => ""
  628. ],
  629. "id" => "77stelj6ykc0",
  630. "imgWidth" => "147",
  631. "imgHeight" => "147"
  632. ],
  633. [
  634. "title" => "蛋糕甜点",
  635. "imageUrl" => $img_url . "/nav_5.png",
  636. "iconType" => "img",
  637. "style" => "",
  638. "link" => [
  639. "name" => ""
  640. ],
  641. "label" => [
  642. "control" => true,
  643. "text" => "蛋糕",
  644. "textColor" => "#FFFFFF",
  645. "bgColorStart" => "#FE8681",
  646. "bgColorEnd" => "#FF5754"
  647. ],
  648. "iconfont" => [
  649. "value" => "",
  650. "color" => ""
  651. ],
  652. "id" => "1zmlt86jn8xs0",
  653. "imgWidth" => "147",
  654. "imgHeight" => "147"
  655. ],
  656. [
  657. "title" => "牛奶乳品",
  658. "imageUrl" => $img_url . "/nav_6.png",
  659. "iconType" => "img",
  660. "style" => "",
  661. "link" => [
  662. "name" => ""
  663. ],
  664. "label" => [
  665. "control" => false,
  666. "text" => "热门",
  667. "textColor" => "#FFFFFF",
  668. "bgColorStart" => "#F83287",
  669. "bgColorEnd" => "#FE3423"
  670. ],
  671. "iconfont" => [
  672. "value" => "",
  673. "color" => ""
  674. ],
  675. "id" => "ld0uf9zrh2o0",
  676. "imgWidth" => "147",
  677. "imgHeight" => "147"
  678. ],
  679. [
  680. "title" => "厨房调料",
  681. "imageUrl" => $img_url . "/nav_7.png",
  682. "iconType" => "img",
  683. "style" => "",
  684. "link" => [
  685. "name" => ""
  686. ],
  687. "label" => [
  688. "control" => false,
  689. "text" => "热门",
  690. "textColor" => "#FFFFFF",
  691. "bgColorStart" => "#F83287",
  692. "bgColorEnd" => "#FE3423"
  693. ],
  694. "iconfont" => [
  695. "value" => "",
  696. "color" => ""
  697. ],
  698. "id" => "fruwfv8bads",
  699. "imgWidth" => "147",
  700. "imgHeight" => "147"
  701. ],
  702. [
  703. "title" => "米面粮油",
  704. "imageUrl" => $img_url . "/nav_8.png",
  705. "iconType" => "img",
  706. "style" => "",
  707. "link" => [
  708. "name" => ""
  709. ],
  710. "label" => [
  711. "control" => false,
  712. "text" => "热门",
  713. "textColor" => "#FFFFFF",
  714. "bgColorStart" => "#F83287",
  715. "bgColorEnd" => "#FE3423"
  716. ],
  717. "iconfont" => [
  718. "value" => "",
  719. "color" => ""
  720. ],
  721. "id" => "70g58o07zrk0",
  722. "imgWidth" => "147",
  723. "imgHeight" => "147"
  724. ],
  725. [
  726. "title" => "卤味蔬食",
  727. "imageUrl" => $img_url . "/nav_9.png",
  728. "iconType" => "img",
  729. "style" => "",
  730. "link" => [
  731. "name" => ""
  732. ],
  733. "label" => [
  734. "control" => false,
  735. "text" => "热门",
  736. "textColor" => "#FFFFFF",
  737. "bgColorStart" => "#F83287",
  738. "bgColorEnd" => "#FE3423"
  739. ],
  740. "iconfont" => [
  741. "value" => "",
  742. "color" => ""
  743. ],
  744. "id" => "186cp6fj4vr40",
  745. "imgWidth" => "147",
  746. "imgHeight" => "147"
  747. ],
  748. [
  749. "title" => "饮料酒水",
  750. "imageUrl" => $img_url . "/nav_10.png",
  751. "iconType" => "img",
  752. "style" => "",
  753. "link" => [
  754. "name" => ""
  755. ],
  756. "label" => [
  757. "control" => false,
  758. "text" => "热门",
  759. "textColor" => "#FFFFFF",
  760. "bgColorStart" => "#F83287",
  761. "bgColorEnd" => "#FE3423"
  762. ],
  763. "iconfont" => [
  764. "value" => "",
  765. "color" => ""
  766. ],
  767. "id" => "1ivu0ox8nmxs0",
  768. "imgWidth" => "147",
  769. "imgHeight" => "147"
  770. ]
  771. ],
  772. "id" => "49qvi2em5is0",
  773. "addonName" => "",
  774. "componentName" => "GraphicNav",
  775. "componentTitle" => "图文导航",
  776. "isDelete" => 0,
  777. "pageBgColor" => "",
  778. "componentBgColor" => "#FFFFFF",
  779. "componentAngle" => "round",
  780. "topAroundRadius" => 12,
  781. "bottomAroundRadius" => 12,
  782. "topElementAroundRadius" => 0,
  783. "bottomElementAroundRadius" => 0,
  784. "margin" => [
  785. "top" => 6,
  786. "bottom" => 6,
  787. "both" => 12
  788. ]
  789. ],
  790. [
  791. "indicatorColor" => "#ffffff",
  792. "carouselStyle" => "circle",
  793. "indicatorLocation" => "center",
  794. "list" => [
  795. [
  796. "imageUrl" => $img_url . "/baozhang.png",
  797. "link" => [
  798. "name" => ""
  799. ],
  800. "imgWidth" => "702",
  801. "imgHeight" => "66",
  802. "id" => "1glfoxntyc1s0"
  803. ]
  804. ],
  805. "id" => "68xzp1ipgkw0",
  806. "addonName" => "",
  807. "componentName" => "ImageAds",
  808. "componentTitle" => "图片广告",
  809. "isDelete" => 0,
  810. "pageBgColor" => "",
  811. "componentBgColor" => "",
  812. "componentAngle" => "round",
  813. "topAroundRadius" => 0,
  814. "bottomAroundRadius" => 0,
  815. "topElementAroundRadius" => 0,
  816. "bottomElementAroundRadius" => 0,
  817. "margin" => [
  818. "top" => 6,
  819. "bottom" => 6,
  820. "both" => 12
  821. ]
  822. ],
  823. [
  824. "ornament" => [
  825. "type" => "default",
  826. "color" => "#EDEDED"
  827. ],
  828. "style" => "style-3",
  829. "count" => 6,
  830. "nameLineMode" => "single",
  831. "sortWay" => "default",
  832. "imgAroundRadius" => 10,
  833. "goodsNameStyle" => [
  834. "color" => "#303133",
  835. "control" => false,
  836. "fontWeight" => false,
  837. "support" => false
  838. ],
  839. "saleStyle" => [
  840. "color" => "#999CA7",
  841. "control" => false,
  842. "support" => false
  843. ],
  844. "theme" => "default",
  845. "priceStyle" => [
  846. "mainColor" => "#FF1544",
  847. "mainControl" => true,
  848. "lineColor" => "#999CA7",
  849. "lineControl" => false,
  850. "lineSupport" => false
  851. ],
  852. "sources" => "initial",
  853. "goodsId" => [],
  854. "categoryId" => 0,
  855. "categoryName" => "请选择",
  856. "topStyle" => [
  857. "title" => "今日推荐",
  858. "subTitle" => "大家都在买",
  859. "icon" => [
  860. "value" => "icondiy icon-system-tuijian",
  861. "color" => "#FF3D3D",
  862. "bgColor" => ""
  863. ],
  864. "color" => "#303133",
  865. "subColor" => "#999CA7",
  866. "support" => false
  867. ],
  868. "bgUrl" => "app/component/view/goods_recommend/img/style3_bg.png",
  869. "styleName" => "风格3",
  870. "labelStyle" => [
  871. "support" => true,
  872. "bgColor" => "#FF504D",
  873. "title" => "新人专享",
  874. "color" => "#FFFFFF"
  875. ],
  876. "id" => "16uuk7vmsq5c",
  877. "addonName" => "",
  878. "componentName" => "GoodsRecommend",
  879. "componentTitle" => "商品推荐",
  880. "isDelete" => 0,
  881. "pageBgColor" => "",
  882. "componentBgColor" => "",
  883. "componentAngle" => "round",
  884. "topAroundRadius" => 8,
  885. "bottomAroundRadius" => 8,
  886. "elementBgColor" => "",
  887. "elementAngle" => "round",
  888. "topElementAroundRadius" => 0,
  889. "bottomElementAroundRadius" => 0,
  890. "margin" => [
  891. "top" => 6,
  892. "bottom" => 6,
  893. "both" => 12
  894. ]
  895. ],
  896. [
  897. "mode" => "row1-lt-of2-rt",
  898. "imageGap" => 10,
  899. "list" => [
  900. [
  901. "imageUrl" => $img_url . "/rubik_cube_5.png",
  902. "imgWidth" => "342",
  903. "imgHeight" => "350",
  904. "previewWidth" => 163.5,
  905. "previewHeight" => "177.32px",
  906. "link" => [
  907. "name" => ""
  908. ]
  909. ],
  910. [
  911. "imageUrl" => $img_url . "/rubik_cube_6.png",
  912. "imgWidth" => "342",
  913. "imgHeight" => "166",
  914. "previewWidth" => 163.5,
  915. "previewHeight" => "83.66px",
  916. "link" => [
  917. "name" => ""
  918. ]
  919. ],
  920. [
  921. "imageUrl" => $img_url . "/rubik_cube_7.png",
  922. "imgWidth" => "342",
  923. "imgHeight" => "166",
  924. "previewWidth" => 163.5,
  925. "previewHeight" => "83.66px",
  926. "link" => [
  927. "name" => ""
  928. ]
  929. ]
  930. ],
  931. "id" => "47v1783p3oo0",
  932. "addonName" => "",
  933. "componentName" => "RubikCube",
  934. "componentTitle" => "魔方",
  935. "isDelete" => 0,
  936. "pageBgColor" => "",
  937. "componentBgColor" => "",
  938. "componentAngle" => "round",
  939. "topAroundRadius" => 0,
  940. "bottomAroundRadius" => 0,
  941. "elementAngle" => "round",
  942. "topElementAroundRadius" => 0,
  943. "bottomElementAroundRadius" => 0,
  944. "margin" => [
  945. "top" => 6,
  946. "bottom" => 6,
  947. "both" => 12
  948. ]
  949. ],
  950. [
  951. "indicatorColor" => "#ffffff",
  952. "carouselStyle" => "circle",
  953. "indicatorLocation" => "center",
  954. "list" => [
  955. [
  956. "imageUrl" => $img_url . "/gg_2.png",
  957. "link" => [
  958. "name" => ""
  959. ],
  960. "imgWidth" => "702",
  961. "imgHeight" => "132",
  962. "id" => "1qmhc284vj7k0"
  963. ]
  964. ],
  965. "id" => "jkx4ncjwfrk",
  966. "addonName" => "",
  967. "componentName" => "ImageAds",
  968. "componentTitle" => "图片广告",
  969. "isDelete" => 0,
  970. "pageBgColor" => "",
  971. "componentBgColor" => "",
  972. "componentAngle" => "round",
  973. "topAroundRadius" => 8,
  974. "bottomAroundRadius" => 8,
  975. "topElementAroundRadius" => 0,
  976. "bottomElementAroundRadius" => 0,
  977. "margin" => [
  978. "top" => 6,
  979. "bottom" => 6,
  980. "both" => 12
  981. ]
  982. ],
  983. [
  984. "ornament" => [
  985. "type" => "default",
  986. "color" => "#EDEDED"
  987. ],
  988. "template" => "row1-of2",
  989. "goodsMarginType" => "default",
  990. "goodsMarginNum" => 10,
  991. "style" => "style-2",
  992. "sources" => "initial",
  993. "count" => 6,
  994. "goodsId" => [],
  995. "categoryId" => 0,
  996. "categoryName" => "请选择",
  997. "sortWay" => "default",
  998. "nameLineMode" => "single",
  999. "imgAroundRadius" => 0,
  1000. "slideMode" => "scroll",
  1001. "theme" => "default",
  1002. "btnStyle" => [
  1003. "fontWeight" => false,
  1004. "padding" => 0,
  1005. "cartEvent" => "cart",
  1006. "text" => "购买",
  1007. "textColor" => "#FFFFFF",
  1008. "theme" => "default",
  1009. "aroundRadius" => 25,
  1010. "control" => true,
  1011. "support" => true,
  1012. "bgColor" => "#FF6A00",
  1013. "style" => "button",
  1014. "iconDiy" => [
  1015. "iconType" => "icon",
  1016. "icon" => "",
  1017. "style" => [
  1018. "fontSize" => "60",
  1019. "iconBgColor" => [],
  1020. "iconBgColorDeg" => 0,
  1021. "iconBgImg" => "",
  1022. "bgRadius" => 0,
  1023. "iconColor" => [
  1024. "#000000"
  1025. ],
  1026. "iconColorDeg" => 0
  1027. ]
  1028. ]
  1029. ],
  1030. "tag" => [
  1031. "text" => "隐藏",
  1032. "value" => "hidden"
  1033. ],
  1034. "goodsNameStyle" => [
  1035. "color" => "#303133",
  1036. "control" => true,
  1037. "fontWeight" => false
  1038. ],
  1039. "saleStyle" => [
  1040. "color" => "#999CA7",
  1041. "control" => true,
  1042. "support" => true
  1043. ],
  1044. "priceStyle" => [
  1045. "mainColor" => "#FF6A00",
  1046. "mainControl" => true,
  1047. "lineColor" => "#999CA7",
  1048. "lineControl" => true,
  1049. "lineSupport" => true
  1050. ],
  1051. "id" => "4dd123y6pco",
  1052. "addonName" => "",
  1053. "componentName" => "GoodsList",
  1054. "componentTitle" => "商品列表",
  1055. "isDelete" => 0,
  1056. "pageBgColor" => "",
  1057. "componentBgColor" => "",
  1058. "componentAngle" => "round",
  1059. "topAroundRadius" => 8,
  1060. "bottomAroundRadius" => 8,
  1061. "elementBgColor" => "#FFFFFF",
  1062. "elementAngle" => "round",
  1063. "topElementAroundRadius" => 8,
  1064. "bottomElementAroundRadius" => 8,
  1065. "margin" => [
  1066. "top" => 6,
  1067. "bottom" => 0,
  1068. "both" => 12
  1069. ]
  1070. ]
  1071. ]
  1072. ]
  1073. );
  1074. // 门店主页
  1075. $data = [
  1076. 'site_id' => $param[ 'site_id' ],
  1077. 'title' => '门店主页',
  1078. 'name' => 'DIY_STORE',
  1079. 'is_default' => 1,
  1080. 'addon_name' => 'store',
  1081. 'type' => 'DIY_STORE',
  1082. 'type_name' => '门店主页',
  1083. 'value' => $value
  1084. ];
  1085. $res = $diy_view_model->addSiteDiyView($data);
  1086. return $res;
  1087. }
  1088. }
  1089. }