sector.vue 67 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582
  1. <template>
  2. <div class="sectorBox">
  3. <div
  4. v-if="this.$store.state.template.sectorList.channelMenu"
  5. class="sectorItemBox"
  6. @click="addModule('channelMenu', 13, channelMenu)"
  7. @drag="drag('channelMenu', 13, channelMenu)"
  8. @dragend="dragend('channelMenu', 13, channelMenu)"
  9. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.channelMenu.sectorImg)"
  10. @mouseleave="componentPreviewStatus(false,'')"
  11. >
  12. <div class="sectorItem">
  13. <img :src="this.$store.state.template.sectorList.channelMenu.sectorImg"/>
  14. </div>
  15. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.channelMenu.sectorName}}</div>
  16. </div>
  17. <div
  18. v-if="this.$store.state.template.sectorList.adSector"
  19. class="sectorItemBox"
  20. @click="addModule('adSector', 12, adSector)"
  21. @drag="drag('adSector', 12, adSector)"
  22. @dragend="dragend('adSector', 12, adSector)"
  23. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.adSector.sectorImg)"
  24. @mouseleave="componentPreviewStatus(false,'')"
  25. >
  26. <div class="sectorItem">
  27. <img :src="this.$store.state.template.sectorList.adSector.sectorImg"/>
  28. </div>
  29. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.adSector.sectorName}}</div>
  30. </div>
  31. <div
  32. v-if="this.$store.state.template.sectorList.scrollTextSector"
  33. class="sectorItemBox"
  34. @click="addModule('scrollTextSector', 44, scrollTextSector)"
  35. @drag="drag('scrollTextSector', 44, scrollTextSector)"
  36. @dragend="dragend('scrollTextSector', 44, scrollTextSector)"
  37. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.scrollTextSector.sectorImg)"
  38. @mouseleave="componentPreviewStatus(false,'')"
  39. >
  40. <div class="sectorItem">
  41. <img :src="this.$store.state.template.sectorList.scrollTextSector.sectorImg"/>
  42. </div>
  43. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.scrollTextSector.sectorName}}</div>
  44. </div>
  45. <div
  46. v-if="this.$store.state.template.sectorList.manyPictureSector"
  47. class="sectorItemBox"
  48. @click="addModule('manyPictureSector', 47, manyPictureSector)"
  49. @drag="drag('manyPictureSector', 47, manyPictureSector)"
  50. @dragend="dragend('manyPictureSector', 47, manyPictureSector)"
  51. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.manyPictureSector.sectorImg)"
  52. @mouseleave="componentPreviewStatus(false,'')"
  53. >
  54. <div class="sectorItem">
  55. <img :src="this.$store.state.template.sectorList.manyPictureSector.sectorImg"/>
  56. </div>
  57. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.manyPictureSector.sectorName}}</div>
  58. </div>
  59. <div
  60. v-if="this.$store.state.template.sectorList.commentSector"
  61. class="sectorItemBox"
  62. @click="addModule('commentSector', 47, commentSector)"
  63. @drag="drag('commentSector', 47, commentSector)"
  64. @dragend="dragend('commentSector', 47, commentSector)"
  65. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.commentSector.sectorImg)"
  66. @mouseleave="componentPreviewStatus(false,'')"
  67. >
  68. <div class="sectorItem">
  69. <img :src="this.$store.state.template.sectorList.commentSector.sectorImg"/>
  70. </div>
  71. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.commentSector.sectorName}}</div>
  72. </div>
  73. <div
  74. v-if="this.$store.state.template.sectorList.listSector"
  75. class="sectorItemBox"
  76. @click="addModule('listSector', 98, listSector)"
  77. @drag="drag('listSector', 98, listSector)"
  78. @dragend="dragend('listSector', 98, listSector)"
  79. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.listSector.sectorImg)"
  80. @mouseleave="componentPreviewStatus(false,'')"
  81. >
  82. <div class="sectorItem">
  83. <img :src="this.$store.state.template.sectorList.listSector.sectorImg"/>
  84. </div>
  85. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.listSector.sectorName}}</div>
  86. </div>
  87. <!-- 带标题新闻图文组合 -->
  88. <div
  89. v-if="this.$store.state.template.sectorList.channelNewsSector"
  90. class="sectorItemBox"
  91. @click="addModule('channelNewsSector', 63, channelNewsSector)"
  92. @drag="drag('channelNewsSector', 63, channelNewsSector)"
  93. @dragend="dragend('channelNewsSector', 63, channelNewsSector)"
  94. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.channelNewsSector.sectorImg)"
  95. @mouseleave="componentPreviewStatus(false,'')"
  96. >
  97. <div class="sectorItem">
  98. <img :src="this.$store.state.template.sectorList.channelNewsSector.sectorImg"/>
  99. </div>
  100. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.channelNewsSector.sectorName}}</div>
  101. </div>
  102. <!-- 新的新闻图文组合1 -->
  103. <div
  104. v-if="this.$store.state.template.sectorList.newsPhotoSector"
  105. class="sectorItemBox"
  106. @click="addModule('newsPhotoSector', 46, newsPhotoSector)"
  107. @drag="drag('newsPhotoSector', 46, newsPhotoSector)"
  108. @dragend="dragend('newsPhotoSector', 46, newsPhotoSector)"
  109. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.newsPhotoSector.sectorImg)"
  110. @mouseleave="componentPreviewStatus(false,'')"
  111. >
  112. <div class="sectorItem">
  113. <img :src="this.$store.state.template.sectorList.newsPhotoSector.sectorImg"/>
  114. </div>
  115. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.newsPhotoSector.sectorName}}</div>
  116. </div>
  117. <!-- 带标题文字新闻通栏 -->
  118. <div
  119. v-if="this.$store.state.template.sectorList.channelTextSector"
  120. class="sectorItemBox"
  121. @click="addModule('channelTextSector', 53, channelTextSector)"
  122. @drag="drag('channelTextSector', 53, channelTextSector)"
  123. @dragend="dragend('channelTextSector', 53, channelTextSector)"
  124. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.channelTextSector.sectorImg)"
  125. @mouseleave="componentPreviewStatus(false,'')"
  126. >
  127. <div class="sectorItem">
  128. <img :src="this.$store.state.template.sectorList.channelTextSector.sectorImg"/>
  129. </div>
  130. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.channelTextSector.sectorName}}</div>
  131. </div>
  132. <!-- 新的新闻图文组合2 -->
  133. <div
  134. v-if="this.$store.state.template.sectorList.newListPhotoSector"
  135. class="sectorItemBox"
  136. @click="addModule('newListPhotoSector', 53, newListPhotoSector)"
  137. @drag="drag('newListPhotoSector', 53, newListPhotoSector)"
  138. @dragend="dragend('newListPhotoSector', 53, newListPhotoSector)"
  139. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.newListPhotoSector.sectorImg)"
  140. @mouseleave="componentPreviewStatus(false,'')"
  141. >
  142. <div class="sectorItem">
  143. <img :src="this.$store.state.template.sectorList.newListPhotoSector.sectorImg"/>
  144. </div>
  145. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.newListPhotoSector.sectorName}}</div>
  146. </div>
  147. <!-- 皮肤6 带标题图文组合1 -->
  148. <div
  149. v-if="this.$store.state.template.sectorList.ChannelNewsPhotoSector"
  150. class="sectorItemBox"
  151. @click="addModule('ChannelNewsPhotoSector', 48, ChannelNewsPhotoSector)"
  152. @drag="drag('ChannelNewsPhotoSector', 48, ChannelNewsPhotoSector)"
  153. @dragend="dragend('ChannelNewsPhotoSector', 48, ChannelNewsPhotoSector)"
  154. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.ChannelNewsPhotoSector.sectorImg)"
  155. @mouseleave="componentPreviewStatus(false,'')"
  156. >
  157. <div class="sectorItem">
  158. <img :src="this.$store.state.template.sectorList.ChannelNewsPhotoSector.sectorImg"/>
  159. </div>
  160. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.ChannelNewsPhotoSector.sectorName}}</div>
  161. </div>
  162. <!-- 皮肤6 不带标题的图文组合1 -->
  163. <div
  164. v-if="this.$store.state.template.sectorList.ChannelNewsSector"
  165. class="sectorItemBox"
  166. @click="addModule('ChannelNewsSector', 36, ChannelNewsSector)"
  167. @drag="drag('ChannelNewsSector', 36, ChannelNewsSector)"
  168. @dragend="dragend('ChannelNewsSector', 36, ChannelNewsSector)"
  169. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.ChannelNewsSector.sectorImg)"
  170. @mouseleave="componentPreviewStatus(false,'')"
  171. >
  172. <div class="sectorItem">
  173. <img :src="this.$store.state.template.sectorList.ChannelNewsSector.sectorImg"/>
  174. </div>
  175. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.ChannelNewsSector.sectorName}}</div>
  176. </div>
  177. <!-- 皮肤6 带标题图文组合2 -->
  178. <div
  179. v-if="this.$store.state.template.sectorList.ChannelNewsPhoto"
  180. class="sectorItemBox"
  181. @click="addModule('ChannelNewsPhoto', 45, ChannelNewsPhoto)"
  182. @drag="drag('ChannelNewsPhoto', 45, ChannelNewsPhoto)"
  183. @dragend="dragend('ChannelNewsPhoto', 45, ChannelNewsPhoto)"
  184. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.ChannelNewsPhoto.sectorImg)"
  185. @mouseleave="componentPreviewStatus(false,'')"
  186. >
  187. <div class="sectorItem">
  188. <img :src="this.$store.state.template.sectorList.ChannelNewsPhoto.sectorImg"/>
  189. </div>
  190. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.ChannelNewsPhoto.sectorName}}</div>
  191. </div>
  192. <!-- 皮肤6 不带标题的图文组合2 -->
  193. <div
  194. v-if="this.$store.state.template.sectorList.ChannelNewsAndPhoto"
  195. class="sectorItemBox"
  196. @click="addModule('ChannelNewsAndPhoto', 51, ChannelNewsAndPhoto)"
  197. @drag="drag('ChannelNewsAndPhoto', 51, ChannelNewsAndPhoto)"
  198. @dragend="dragend('ChannelNewsAndPhoto', 51, ChannelNewsAndPhoto)"
  199. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.ChannelNewsAndPhoto.sectorImg)"
  200. @mouseleave="componentPreviewStatus(false,'')"
  201. >
  202. <div class="sectorItem">
  203. <img :src="this.$store.state.template.sectorList.ChannelNewsAndPhoto.sectorImg"/>
  204. </div>
  205. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.ChannelNewsAndPhoto.sectorName}}</div>
  206. </div>
  207. <!-- <div
  208. class="sectorItemBox"
  209. @click="addModule('channelMenu', 13, channelMenu)"
  210. @drag="drag('channelMenu', 13, channelMenu)"
  211. @dragend="dragend('channelMenu', 13, channelMenu)"
  212. >
  213. <div class="sectorItem">
  214. <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250619/1750311785239902.jpg" v-if="this.$store.state.template.editWebsiteClass==1"/>
  215. <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750839704883892.jpg" v-if="this.$store.state.template.editWebsiteClass==2"/>
  216. </div>
  217. <div class="sectorItemTitle">子导航菜单</div>
  218. </div>
  219. <div
  220. class="sectorItemBox"
  221. @click="addModule('adSector', 12, adSector)"
  222. @drag="drag('adSector', 12, adSector)"
  223. @dragend="dragend('adSector', 12, adSector)"
  224. >
  225. <div class="sectorItem">
  226. <img src="http://img.bjzxtw.org.cn/pre/image/png/20250604/1748998088187321.png" v-if="this.$store.state.template.editWebsiteClass==1"/>
  227. <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750817753245775.jpg" v-if="this.$store.state.template.editWebsiteClass==2"/>/>
  228. </div>
  229. <div class="sectorItemTitle">通栏广告</div>
  230. </div>
  231. <div
  232. class="sectorItemBox"
  233. @click="addModule('scrollTextSector', 44, scrollTextSector)"
  234. @drag="drag('scrollTextSector', 44, scrollTextSector)"
  235. @dragend="dragend('scrollTextSector', 44, scrollTextSector)"
  236. >
  237. <div class="sectorItem">
  238. <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250619/1750312139660006.jpg" v-if="this.$store.state.template.editWebsiteClass==1"/>
  239. <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750820773336300.jpg" v-if="this.$store.state.template.editWebsiteClass==2"/>
  240. </div>
  241. <div class="sectorItemTitle">滚动图文组合</div>
  242. </div>
  243. <div
  244. class="sectorItemBox"
  245. @click="addModule('manyPictureSector', 47, manyPictureSector)"
  246. @drag="drag('manyPictureSector', 47, manyPictureSector)"
  247. @dragend="dragend('manyPictureSector', 47, manyPictureSector)"
  248. >
  249. <div class="sectorItem">
  250. <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250605/1749085058737998.jpg" v-if="this.$store.state.template.editWebsiteClass==1"/>
  251. <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750820905439306.jpg" v-if="this.$store.state.template.editWebsiteClass==2"/>
  252. </div>
  253. <div class="sectorItemTitle">新闻图文组合1</div>
  254. </div>
  255. <div
  256. class="sectorItemBox"
  257. @click="addModule('commentSector', 47, commentSector)"
  258. @drag="drag('commentSector', 47, commentSector)"
  259. @dragend="dragend('commentSector', 47, commentSector)">
  260. <div class="sectorItem">
  261. <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250606/1749170683104422.jpg" v-if="this.$store.state.template.editWebsiteClass==1"/>
  262. <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750820973808775.jpg" v-if="this.$store.state.template.editWebsiteClass==2"/>
  263. </div>
  264. <div class="sectorItemTitle">新闻图文组合2</div>
  265. </div>
  266. <div
  267. class="sectorItemBox"
  268. @click="addModule('listSector', 98, listSector)"
  269. @drag="drag('listSector', 98, listSector)"
  270. @dragend="dragend('listSector', 98, listSector)"
  271. >
  272. <div class="sectorItem">
  273. <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250606/1749200397579402.jpg" v-if="this.$store.state.template.editWebsiteClass==1"/>
  274. <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750822186600939.jpg" v-if="this.$store.state.template.editWebsiteClass==2"/>
  275. </div>
  276. <div class="sectorItemTitle">新闻图文组合3</div>
  277. </div> -->
  278. <!-- 频道页-皮肤7-通栏版式-带选项卡图文组合 newsTextTabsImgSectorClass-->
  279. <div
  280. v-if="this.$store.state.template.sectorList.newsTextTabsImgSectorClass"
  281. class="sectorItemBox"
  282. @click="addModule('newsTextTabsImgSectorClass', 118, newsTextTabsImgSectorClass)"
  283. @drag="drag('newsTextTabsImgSectorClass', 118, newsTextTabsImgSectorClass)"
  284. @dragend="dragend('newsTextTabsImgSectorClass', 118, newsTextTabsImgSectorClass)"
  285. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.newsTextTabsImgSectorClass.sectorImg)"
  286. @mouseleave="componentPreviewStatus(false,'')"
  287. >
  288. <div class="sectorItem">
  289. <img :src="this.$store.state.template.sectorList.newsTextTabsImgSectorClass.sectorImg"/>
  290. </div>
  291. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.newsTextTabsImgSectorClass.sectorName}}</div>
  292. </div>
  293. <!-- 14 皮肤7-----热点关注 -->
  294. <div
  295. v-if="this.$store.state.template.sectorList.skinSevenNewsHyjjSector"
  296. class="sectorItemBox"
  297. @click="addModule('skinSevenNewsHyjjSector', 140, skinSevenNewsHyjjSector)"
  298. @drag="drag('skinSevenNewsHyjjSector', 140, skinSevenNewsHyjjSector)"
  299. @dragend="dragend('skinSevenNewsHyjjSector', 140, skinSevenNewsHyjjSector)"
  300. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.skinSevenNewsHyjjSector.sectorImg)"
  301. @mouseleave="componentPreviewStatus(false,'')"
  302. >
  303. <div class="sectorItem">
  304. <img :src="this.$store.state.template.sectorList.skinSevenNewsHyjjSector.sectorImg"/>
  305. </div>
  306. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.skinSevenNewsHyjjSector.sectorName}}</div>
  307. </div>
  308. <div
  309. v-if="this.$store.state.template.sectorList.scrollTextImgSevenSkinchannelSector"
  310. class="sectorItemBox"
  311. @click="addModule('scrollTextImgSevenSkinchannelSector', 51, scrollTextImgSevenSkinchannelSector)"
  312. @drag="drag('scrollTextImgSevenSkinchannelSector', 51, scrollTextImgSevenSkinchannelSector)"
  313. @dragend="dragend('scrollTextImgSevenSkinchannelSector', 51, scrollTextImgSevenSkinchannelSector)"
  314. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.scrollTextImgSevenSkinchannelSector.sectorImg)"
  315. @mouseleave="componentPreviewStatus(false,'')"
  316. >
  317. <div class="sectorItem">
  318. <img :src="this.$store.state.template.sectorList.scrollTextImgSevenSkinchannelSector.sectorImg"/>
  319. </div>
  320. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.scrollTextImgSevenSkinchannelSector.sectorName}}</div>
  321. </div>
  322. <div
  323. v-if="this.$store.state.template.sectorList.channelNavigationSector"
  324. class="sectorItemBox"
  325. @click="addModule('channelNavigationSector', 13, channelNavigationSector)"
  326. @drag="drag('channelNavigationSector', 13, channelNavigationSector)"
  327. @dragend="dragend('channelNavigationSector', 13, channelNavigationSector)"
  328. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.channelNavigationSector.sectorImg)"
  329. @mouseleave="componentPreviewStatus(false,'')"
  330. >
  331. <div class="sectorItem">
  332. <img :src="this.$store.state.template.sectorList.channelNavigationSector.sectorImg"/>
  333. </div>
  334. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.channelNavigationSector.sectorName}}</div>
  335. </div>
  336. </div>
  337. </template>
  338. <script>
  339. export default {
  340. props: {
  341. type: {
  342. },
  343. },
  344. data() {
  345. return {
  346. //模块1频道菜单 start---------------------------------------->
  347. channelMenu: {
  348. "sectorName": "channelMenu",//板块名称
  349. "componentList": [
  350. {
  351. "component_type": 3,//组件类型 1=新闻(选择导航池id)2=广告(输入广告位名称) 3=静态组件
  352. "component_style": 1,//组件选择了哪个版式
  353. "sort": 1,
  354. "componentData": {}
  355. }
  356. ],
  357. },
  358. //模块1频道菜单 end---------------------------------------->
  359. //模块2通栏广告模块 start---------------------------------------->
  360. adSector: {
  361. "sectorName": "adSector",//板块名称
  362. "componentList": [
  363. {
  364. "component_type": 2,//组件类型 1=新闻(选择导航池id)2=广告(输入广告位名称)
  365. "component_style": 1,//组件选择了哪个版式
  366. "sort": 1,
  367. "componentData": {}
  368. }
  369. ],
  370. "ad": {
  371. "width": 1200, //宽度
  372. "height": 90, //高度
  373. "name": "",//广告名称
  374. "price": 0,//价格
  375. "introduce":"",//介绍
  376. "website_id": "",//网站id
  377. "thumb": "https://img.bjzxtw.org.cn/pre/image/png/20250530/1748588901281358.png",//示例图 - 默认值
  378. "typeid": 2,//广告类型 - 2 图片
  379. "ad_tag": ""//广告标识 - 网站标识 + 页面名称 + sort
  380. }
  381. },
  382. //模块2栏广告模块 end---------------------------------------->
  383. //模块3滚动图文组合 start---------------------------------------->
  384. scrollTextSector: {
  385. "sectorName": "scrollTextSector",//板块名称
  386. "componentList": [
  387. {
  388. "component_type": 1,//组件类型 1=新闻 2=广告
  389. "component_style": 1,//该组件使用哪个展示样式
  390. "sort": 1,//排序位置
  391. "componentData": {
  392. "category_id":"",
  393. "category_arr":"",
  394. "name":"自动生成",
  395. "level": "",
  396. "imgSize": 5,
  397. "textSize": 9,
  398. "child": {
  399. "id": "",
  400. "imgSize": "",
  401. "textSize": ""
  402. },
  403. "listType": [
  404. "id",
  405. "title",
  406. "imgurl",
  407. "author",
  408. "updated_at",
  409. "introduce",
  410. "islink",
  411. "linkurl",
  412. "copyfrom",
  413. "cat_arr_id",
  414. "catid",
  415. "pinyin"
  416. ],
  417. }
  418. },
  419. ]
  420. },
  421. //模块3滚动图文组合 end---------------------------------------->
  422. //模块4两列新闻组合模块1 start---------------------------------------->
  423. manyPictureSector: {
  424. sectorName: "manyPictureSector",//板块名称
  425. componentList: [
  426. {
  427. "component_type": 1,
  428. "component_style": 1,
  429. "sort": 1,
  430. "componentData": {
  431. "category_id":"",
  432. "category_arr":"",
  433. "name":"自动生成",
  434. "level":"",
  435. "imgSize": 3,
  436. "textSize": 9,
  437. "child":{
  438. "id":"",
  439. "imgSize": "",
  440. "textSize": ""
  441. },
  442. "listType": [
  443. "id",
  444. "title",
  445. "imgurl",
  446. "author",
  447. "updated_at",
  448. "introduce",
  449. "islink",
  450. "linkurl",
  451. "copyfrom",
  452. "cat_arr_id",
  453. "catid",
  454. "pinyin"
  455. ],
  456. }
  457. },
  458. {
  459. "component_type": 1,
  460. "component_style": 1,
  461. "sort": 2,
  462. "componentData": {
  463. "category_id":"",
  464. "category_arr":"",
  465. "name":"自动生成",
  466. "level":"",
  467. "imgSize": 3,
  468. "textSize": 6,
  469. "child":{
  470. "id":"",
  471. "imgSize": "",
  472. "textSize": ""
  473. },
  474. "listType": [
  475. "id",
  476. "title",
  477. "imgurl",
  478. "author",
  479. "updated_at",
  480. "introduce",
  481. "islink",
  482. "linkurl",
  483. "copyfrom",
  484. "cat_arr_id",
  485. "catid",
  486. "pinyin"
  487. ],
  488. }
  489. }
  490. ]
  491. },
  492. //模块4两列新闻组合模块1 end---------------------------------------->
  493. //模块5两列新闻组合模块2 end---------------------------------------->
  494. commentSector: {
  495. sectorName: "commentSector",//板块名称
  496. componentList: [
  497. {
  498. "component_type": 1,
  499. "component_style": 1,
  500. "sort": 1,
  501. "componentData": {
  502. "category_id":"",
  503. "category_arr":"",
  504. "name":"自动生成",
  505. "level":"",
  506. "imgSize": 2,
  507. "textSize": 12,
  508. "child":{
  509. "id":"",
  510. "imgSize": "",
  511. "textSize": ""
  512. },
  513. "listType": [
  514. "id",
  515. "title",
  516. "imgurl",
  517. "author",
  518. "updated_at",
  519. "introduce",
  520. "islink",
  521. "linkurl",
  522. "copyfrom",
  523. "cat_arr_id",
  524. "catid",
  525. "pinyin"
  526. ],
  527. }
  528. },
  529. {
  530. "component_type": 1,
  531. "component_style": 1,
  532. "sort": 2,
  533. "componentData": {
  534. "category_id":"",
  535. "category_arr":"",
  536. "name":"自动生成",
  537. "level":"",
  538. "imgSize": 1,
  539. "textSize": 3,
  540. "child":{
  541. "id":"",
  542. "imgSize": "",
  543. "textSize": ""
  544. },
  545. "listType": [
  546. "id",
  547. "title",
  548. "imgurl",
  549. "author",
  550. "updated_at",
  551. "introduce",
  552. "islink",
  553. "linkurl",
  554. "copyfrom",
  555. "cat_arr_id",
  556. "catid",
  557. "pinyin"
  558. ],
  559. }
  560. }
  561. ]
  562. },
  563. //模块5两列新闻组合模块2 end---------------------------------------->
  564. //模块5两列新闻组合模块3 start---------------------------------------->
  565. listSector: {
  566. sectorName: "listSector",//板块名称
  567. componentList: [
  568. {
  569. "component_type": 1,
  570. "component_style": 1,
  571. "sort": 1,
  572. "componentData": {
  573. "category_id":"",
  574. "category_arr":"",
  575. "name":"自动生成",
  576. "level":"",
  577. "imgSize": 2,
  578. "textSize": 12,
  579. "child":{
  580. "id":"",
  581. "imgSize": "",
  582. "textSize": ""
  583. },
  584. "listType": [
  585. "id",
  586. "title",
  587. "imgurl",
  588. "author",
  589. "updated_at",
  590. "introduce",
  591. "islink",
  592. "linkurl",
  593. "copyfrom",
  594. "cat_arr_id",
  595. "catid",
  596. "pinyin"
  597. ],
  598. }
  599. },
  600. {
  601. "component_type": 1,
  602. "component_style": 1,
  603. "sort": 2,
  604. "componentData": {
  605. "category_id":"",
  606. "category_arr":"",
  607. "name":"自动生成",
  608. "level":"",
  609. "imgSize": 1,
  610. "textSize": 3,
  611. "child":{
  612. "id":"",
  613. "imgSize": "",
  614. "textSize": ""
  615. },
  616. "listType": [
  617. "id",
  618. "title",
  619. "imgurl",
  620. "author",
  621. "updated_at",
  622. "introduce",
  623. "islink",
  624. "linkurl",
  625. "copyfrom",
  626. "cat_arr_id",
  627. "catid",
  628. "pinyin"
  629. ],
  630. }
  631. },
  632. {
  633. "component_type": 1,
  634. "component_style": 1,
  635. "sort": 3,
  636. "componentData": {
  637. "category_id":"",
  638. "category_arr":"",
  639. "name":"自动生成",
  640. "level":"",
  641. "imgSize": 1,
  642. "textSize": 3,
  643. "child":{
  644. "id":"",
  645. "imgSize": "",
  646. "textSize": ""
  647. },
  648. "listType": [
  649. "id",
  650. "title",
  651. "imgurl",
  652. "author",
  653. "updated_at",
  654. "introduce",
  655. "islink",
  656. "linkurl",
  657. "copyfrom",
  658. "cat_arr_id",
  659. "catid",
  660. "pinyin"
  661. ],
  662. }
  663. }
  664. ]
  665. },
  666. //模块5两列新闻组合模块3 end---------------------------------------->
  667. //模块6带标题新闻图文组合 start---------------------------------------->
  668. channelNewsSector: {
  669. sectorName: "channelNewsSector",//板块名称
  670. componentList: [
  671. {
  672. "component_type": 1,
  673. "component_style": 1,
  674. "sort": 1,
  675. "componentData": {
  676. "category_id":"",
  677. "category_arr":"",
  678. "name":"自动生成",
  679. "level":"",
  680. "imgSize": 5,
  681. "textSize": 5,
  682. "child":{
  683. "id":"",
  684. "imgSize": "",
  685. "textSize": ""
  686. },
  687. "listType": [
  688. "id",
  689. "title",
  690. "imgurl",
  691. "author",
  692. "updated_at",
  693. "introduce",
  694. "islink",
  695. "linkurl",
  696. "copyfrom",
  697. "cat_arr_id",
  698. "catid",
  699. "pinyin"
  700. ],
  701. }
  702. },
  703. {
  704. "component_type": 1,
  705. "component_style": 1,
  706. "sort": 2,
  707. "componentData": {
  708. "category_id":"",
  709. "category_arr":"",
  710. "name":"自动生成",
  711. "level":"",
  712. "imgSize": 5,
  713. "textSize": 5,
  714. "child":{
  715. "id":"",
  716. "imgSize": "",
  717. "textSize": ""
  718. },
  719. "listType": [
  720. "id",
  721. "title",
  722. "imgurl",
  723. "author",
  724. "updated_at",
  725. "introduce",
  726. "islink",
  727. "linkurl",
  728. "copyfrom",
  729. "cat_arr_id",
  730. "catid",
  731. "pinyin"
  732. ],
  733. }
  734. }
  735. ]
  736. },
  737. //模块6带标题新闻图文组合 end---------------------------------------->
  738. //模块7新的新闻图文组合1 start---------------------------------------->
  739. newsPhotoSector: {
  740. "sectorName": "newsPhotoSector",//板块名称
  741. "componentList": [
  742. {
  743. "component_type": 1,//组件类型 1=新闻 2=广告
  744. "component_style": 1,//该组件使用哪个展示样式
  745. "sort": 1,//排序位置
  746. "componentData": {
  747. "category_id":"",
  748. "category_arr":"",
  749. "name":"自动生成",
  750. "level": "",
  751. "imgSize": 1,
  752. "textSize": 9,
  753. "child": {
  754. "id": "",
  755. "imgSize": "",
  756. "textSize": ""
  757. },
  758. "listType": [
  759. "id",
  760. "title",
  761. "imgurl",
  762. "author",
  763. "updated_at",
  764. "introduce",
  765. "islink",
  766. "linkurl",
  767. "copyfrom",
  768. "cat_arr_id",
  769. "catid",
  770. "pinyin"
  771. ],
  772. }
  773. },
  774. ]
  775. },
  776. //模块7新的新闻图文组合1 end---------------------------------------->
  777. //模块8带标题文字新闻通栏 start---------------------------------------->
  778. channelTextSector: {
  779. sectorName: "channelTextSector",//板块名称
  780. componentList: [
  781. {
  782. "component_type": 1,
  783. "component_style": 1,
  784. "sort": 1,
  785. "componentData": {
  786. "category_id":"",
  787. "category_arr":"",
  788. "name":"自动生成",
  789. "level":"",
  790. "imgSize": 0,
  791. "textSize": 6,
  792. "child":{
  793. "id":"",
  794. "imgSize": "",
  795. "textSize": ""
  796. },
  797. "listType": [
  798. "id",
  799. "title",
  800. "imgurl",
  801. "author",
  802. "updated_at",
  803. "introduce",
  804. "islink",
  805. "linkurl",
  806. "copyfrom",
  807. "cat_arr_id",
  808. "catid",
  809. "pinyin"
  810. ],
  811. }
  812. },
  813. {
  814. "component_type": 1,
  815. "component_style": 1,
  816. "sort": 2,
  817. "componentData": {
  818. "category_id":"",
  819. "category_arr":"",
  820. "name":"自动生成",
  821. "level":"",
  822. "imgSize": 0,
  823. "textSize": 6,
  824. "child":{
  825. "id":"",
  826. "imgSize": "",
  827. "textSize": ""
  828. },
  829. "listType": [
  830. "id",
  831. "title",
  832. "imgurl",
  833. "author",
  834. "updated_at",
  835. "introduce",
  836. "islink",
  837. "linkurl",
  838. "copyfrom",
  839. "cat_arr_id",
  840. "catid",
  841. "pinyin"
  842. ],
  843. }
  844. }
  845. ]
  846. },
  847. //模块8带标题文字新闻通栏 end---------------------------------------->
  848. //模块9新的新闻图文组合2 start---------------------------------------->
  849. newListPhotoSector: {
  850. sectorName: "newListPhotoSector",//板块名称
  851. componentList: [
  852. {
  853. "component_type": 1,
  854. "component_style": 1,
  855. "sort": 1,
  856. "componentData": {
  857. "category_id":"",
  858. "category_arr":"",
  859. "name":"自动生成",
  860. "level":"",
  861. "imgSize": 2,
  862. "textSize": 5,
  863. "child":{
  864. "id":"",
  865. "imgSize": "",
  866. "textSize": ""
  867. },
  868. "listType": [
  869. "id",
  870. "title",
  871. "imgurl",
  872. "author",
  873. "updated_at",
  874. "introduce",
  875. "islink",
  876. "linkurl",
  877. "copyfrom",
  878. "cat_arr_id",
  879. "catid",
  880. "pinyin"
  881. ],
  882. }
  883. },
  884. {
  885. "component_type": 1,
  886. "component_style": 1,
  887. "sort": 2,
  888. "componentData": {
  889. "category_id":"",
  890. "category_arr":"",
  891. "name":"自动生成",
  892. "level":"",
  893. "imgSize": 2,
  894. "textSize": 5,
  895. "child":{
  896. "id":"",
  897. "imgSize": "",
  898. "textSize": ""
  899. },
  900. "listType": [
  901. "id",
  902. "title",
  903. "imgurl",
  904. "author",
  905. "updated_at",
  906. "introduce",
  907. "islink",
  908. "linkurl",
  909. "copyfrom",
  910. "cat_arr_id",
  911. "catid",
  912. "pinyin"
  913. ],
  914. }
  915. }
  916. ]
  917. },
  918. //模块9新的新闻图文组合2 end---------------------------------------->
  919. //模块10 皮肤6 带标题新闻图文组合1 start---------------------------------------->
  920. ChannelNewsPhotoSector: {
  921. sectorName: "ChannelNewsPhotoSector",//板块名称
  922. componentList: [
  923. {
  924. "component_type": 1,
  925. "component_style": 1,
  926. "sort": 1,
  927. "componentData": {
  928. "category_id":"",
  929. "category_arr":"",
  930. "name":"自动生成",
  931. "level":"",
  932. "imgSize": 2,
  933. "textSize": 5,
  934. "child":{
  935. "id":"",
  936. "imgSize": "",
  937. "textSize": ""
  938. },
  939. "listType": [
  940. "id",
  941. "title",
  942. "imgurl",
  943. "author",
  944. "updated_at",
  945. "introduce",
  946. "islink",
  947. "linkurl",
  948. "copyfrom",
  949. "cat_arr_id",
  950. "catid",
  951. "pinyin"
  952. ],
  953. }
  954. },
  955. {
  956. "component_type": 1,
  957. "component_style": 1,
  958. "sort": 2,
  959. "componentData": {
  960. "category_id":"",
  961. "category_arr":"",
  962. "name":"自动生成",
  963. "level":"",
  964. "imgSize": 2,
  965. "textSize": 5,
  966. "child":{
  967. "id":"",
  968. "imgSize": "",
  969. "textSize": ""
  970. },
  971. "listType": [
  972. "id",
  973. "title",
  974. "imgurl",
  975. "author",
  976. "updated_at",
  977. "introduce",
  978. "islink",
  979. "linkurl",
  980. "copyfrom",
  981. "cat_arr_id",
  982. "catid",
  983. "pinyin"
  984. ],
  985. }
  986. }
  987. ]
  988. },
  989. //模块10 皮肤6 带标题新闻图文组合1 end---------------------------------------->
  990. //模块11 皮肤6不带标题图文组合1 start---------------------------------------->
  991. ChannelNewsSector: {
  992. "sectorName": "ChannelNewsSector",//板块名称
  993. "componentList": [
  994. {
  995. "component_type": 1,//组件类型 1=新闻 2=广告
  996. "component_style": 1,//该组件使用哪个展示样式
  997. "sort": 1,//排序位置
  998. "componentData": {
  999. "category_id":"",
  1000. "category_arr":"",
  1001. "name":"自动生成",
  1002. "level": "",
  1003. "imgSize": 1,
  1004. "textSize": 9,
  1005. "child": {
  1006. "id": "",
  1007. "imgSize": "",
  1008. "textSize": ""
  1009. },
  1010. "listType": [
  1011. "id",
  1012. "title",
  1013. "imgurl",
  1014. "author",
  1015. "updated_at",
  1016. "introduce",
  1017. "islink",
  1018. "linkurl",
  1019. "copyfrom",
  1020. "cat_arr_id",
  1021. "catid",
  1022. "pinyin"
  1023. ],
  1024. }
  1025. },
  1026. ]
  1027. },
  1028. //模块11 皮肤6不带标题图文组合1 end---------------------------------------->
  1029. //模块12 皮肤6 带标题新闻图文组合1 start---------------------------------------->
  1030. ChannelNewsPhoto: {
  1031. sectorName: "ChannelNewsPhoto",//板块名称
  1032. componentList: [
  1033. {
  1034. "component_type": 1,
  1035. "component_style": 1,
  1036. "sort": 1,
  1037. "componentData": {
  1038. "category_id":"",
  1039. "category_arr":"",
  1040. "name":"自动生成",
  1041. "level":"",
  1042. "imgSize": 0,
  1043. "textSize": 6,
  1044. "child":{
  1045. "id":"",
  1046. "imgSize": "",
  1047. "textSize": ""
  1048. },
  1049. "listType": [
  1050. "id",
  1051. "title",
  1052. "imgurl",
  1053. "author",
  1054. "updated_at",
  1055. "introduce",
  1056. "islink",
  1057. "linkurl",
  1058. "copyfrom",
  1059. "cat_arr_id",
  1060. "catid",
  1061. "pinyin"
  1062. ],
  1063. }
  1064. },
  1065. {
  1066. "component_type": 1,
  1067. "component_style": 1,
  1068. "sort": 2,
  1069. "componentData": {
  1070. "category_id":"",
  1071. "category_arr":"",
  1072. "name":"自动生成",
  1073. "level":"",
  1074. "imgSize": 2,
  1075. "textSize": 3,
  1076. "child":{
  1077. "id":"",
  1078. "imgSize": "",
  1079. "textSize": ""
  1080. },
  1081. "listType": [
  1082. "id",
  1083. "title",
  1084. "imgurl",
  1085. "author",
  1086. "updated_at",
  1087. "introduce",
  1088. "islink",
  1089. "linkurl",
  1090. "copyfrom",
  1091. "cat_arr_id",
  1092. "catid",
  1093. "pinyin"
  1094. ],
  1095. }
  1096. },
  1097. {
  1098. "component_type": 1,
  1099. "component_style": 1,
  1100. "sort": 3,
  1101. "componentData": {
  1102. "category_id":"",
  1103. "category_arr":"",
  1104. "name":"自动生成",
  1105. "level":"",
  1106. "imgSize": 1,
  1107. "textSize": 0,
  1108. "child":{
  1109. "id":"",
  1110. "imgSize": "",
  1111. "textSize": ""
  1112. },
  1113. "listType": [
  1114. "id",
  1115. "title",
  1116. "imgurl",
  1117. "author",
  1118. "updated_at",
  1119. "introduce",
  1120. "islink",
  1121. "linkurl",
  1122. "copyfrom",
  1123. "cat_arr_id",
  1124. "catid",
  1125. "pinyin"
  1126. ],
  1127. }
  1128. }
  1129. ]
  1130. },
  1131. //模块12 皮肤6 带标题新闻图文组合1 end---------------------------------------->
  1132. //模块13 皮肤6不带标题图文组合2 start---------------------------------------->
  1133. ChannelNewsAndPhoto: {
  1134. "sectorName": "ChannelNewsAndPhoto",//板块名称
  1135. "componentList": [
  1136. {
  1137. "component_type": 1,//组件类型 1=新闻 2=广告
  1138. "component_style": 1,//该组件使用哪个展示样式
  1139. "sort": 1,//排序位置
  1140. "componentData": {
  1141. "category_id":"",
  1142. "category_arr":"",
  1143. "name":"自动生成",
  1144. "level": "",
  1145. "imgSize": 5,
  1146. "textSize": 12,
  1147. "child": {
  1148. "id": "",
  1149. "imgSize": "",
  1150. "textSize": ""
  1151. },
  1152. "listType": [
  1153. "id",
  1154. "title",
  1155. "imgurl",
  1156. "author",
  1157. "updated_at",
  1158. "introduce",
  1159. "islink",
  1160. "linkurl",
  1161. "copyfrom",
  1162. "cat_arr_id",
  1163. "catid",
  1164. "pinyin"
  1165. ],
  1166. }
  1167. },
  1168. ]
  1169. },
  1170. //模块13 皮肤6不带标题图文组合2 end---------------------------------------->
  1171. //选项卡-新闻图文组合4-皮肤7 start-行业聚焦--------------------------------------->
  1172. newsTextTabsImgSectorClass: {
  1173. "sectorName": "newsTextTabsImgSectorClass",//板块名称
  1174. "componentList": [
  1175. {
  1176. "component_type": 1,
  1177. "component_style": 1,
  1178. "sort": 1,
  1179. "componentData": {
  1180. "category_id":"",
  1181. "category_arr":"",
  1182. "name":"自动生成",
  1183. "level":"",
  1184. "imgSize": 0,
  1185. "textSize": 10,
  1186. "child":{
  1187. "id":"",
  1188. "imgSize": "",
  1189. "textSize": ""
  1190. },
  1191. "listType": [
  1192. "id",
  1193. "title",
  1194. "imgurl",
  1195. "author",
  1196. "updated_at",
  1197. "introduce",
  1198. "islink",
  1199. "linkurl",
  1200. "copyfrom",
  1201. "cat_arr_id",
  1202. "catid",
  1203. "pinyin"
  1204. ],
  1205. }
  1206. },
  1207. {
  1208. "component_type": 1,
  1209. "component_style": 1,
  1210. "sort": 2,
  1211. "componentData": {
  1212. "category_id":"",
  1213. "category_arr":"",
  1214. "name":"自动生成",
  1215. "level":"",
  1216. "imgSize": 3,
  1217. "textSize": 3,
  1218. "child":{
  1219. "id":"",
  1220. "imgSize": "",
  1221. "textSize": ""
  1222. },
  1223. "listType": [
  1224. "id",
  1225. "title",
  1226. "imgurl",
  1227. "author",
  1228. "updated_at",
  1229. "introduce",
  1230. "islink",
  1231. "linkurl",
  1232. "copyfrom",
  1233. "cat_arr_id",
  1234. "catid",
  1235. "pinyin"
  1236. ],
  1237. }
  1238. },
  1239. {
  1240. "component_type": 1,
  1241. "component_style": 1,
  1242. "sort": 3,
  1243. "componentData": {
  1244. "category_id":"",
  1245. "category_arr":"",
  1246. "name":"自动生成",
  1247. "level":"",
  1248. "imgSize": 3,
  1249. "textSize": 10,
  1250. "child":{
  1251. "id":"",
  1252. "imgSize": "",
  1253. "textSize": ""
  1254. },
  1255. "listType": [
  1256. "id",
  1257. "title",
  1258. "imgurl",
  1259. "author",
  1260. "updated_at",
  1261. "introduce",
  1262. "islink",
  1263. "linkurl",
  1264. "copyfrom",
  1265. "cat_arr_id",
  1266. "catid",
  1267. "pinyin"
  1268. ],
  1269. }
  1270. },
  1271. {
  1272. "component_type": 1,
  1273. "component_style": 1,
  1274. "sort": 4,
  1275. "componentData": {
  1276. "category_id":"",
  1277. "category_arr":"",
  1278. "name":"自动生成",
  1279. "level":"",
  1280. "imgSize": 4,
  1281. "textSize": 8,
  1282. "child":{
  1283. "id":"",
  1284. "imgSize": "",
  1285. "textSize": ""
  1286. },
  1287. "listType": [
  1288. "id",
  1289. "title",
  1290. "imgurl",
  1291. "author",
  1292. "updated_at",
  1293. "introduce",
  1294. "islink",
  1295. "linkurl",
  1296. "copyfrom",
  1297. "cat_arr_id",
  1298. "catid",
  1299. "pinyin"
  1300. ],
  1301. }
  1302. }
  1303. ]
  1304. },
  1305. // 皮肤7-热点关注
  1306. skinSevenNewsHyjjSector: {
  1307. "sectorName": "skinSevenNewsHyjjSector",//板块名称
  1308. "componentList": [
  1309. {
  1310. "component_type": 1,
  1311. "component_style": 1,
  1312. "sort": 1,
  1313. "componentData": {
  1314. "category_id": "",
  1315. "category_arr": "",
  1316. "name": "自动生成",
  1317. "level": "",
  1318. "imgSize": 3,
  1319. "textSize": 6,
  1320. "child": {
  1321. "id": "",
  1322. "imgSize": "",
  1323. "textSize": ""
  1324. },
  1325. "listType": [
  1326. "id",
  1327. "title",
  1328. "imgurl",
  1329. "author",
  1330. "updated_at",
  1331. "introduce",
  1332. "islink",
  1333. "linkurl",
  1334. "copyfrom",
  1335. "cat_arr_id",
  1336. "catid",
  1337. "pinyin"
  1338. ],
  1339. },
  1340. },
  1341. {
  1342. "component_type": 1,
  1343. "component_style": 1,
  1344. "sort": 2,
  1345. "componentData": {
  1346. "category_id": "",
  1347. "category_arr": "",
  1348. "name": "自动生成",
  1349. "level": "",
  1350. "imgSize": 3,
  1351. "textSize": 3,
  1352. "child": {
  1353. "id": "",
  1354. "imgSize": "",
  1355. "textSize": ""
  1356. },
  1357. "listType": [
  1358. "id",
  1359. "title",
  1360. "imgurl",
  1361. "author",
  1362. "updated_at",
  1363. "introduce",
  1364. "islink",
  1365. "linkurl",
  1366. "copyfrom",
  1367. "cat_arr_id",
  1368. "catid",
  1369. "pinyin"
  1370. ],
  1371. },
  1372. },
  1373. {
  1374. "component_type": 1,
  1375. "component_style": 1,
  1376. "sort": 3,
  1377. "componentData": {
  1378. "category_id": "",
  1379. "category_arr": "",
  1380. "name": "自动生成",
  1381. "level": "",
  1382. "imgSize": 10,
  1383. "textSize": 10,
  1384. "child": {
  1385. "id": "",
  1386. "imgSize": "",
  1387. "textSize": ""
  1388. },
  1389. "listType": [
  1390. "id",
  1391. "title",
  1392. "imgurl",
  1393. "author",
  1394. "updated_at",
  1395. "introduce",
  1396. "islink",
  1397. "linkurl",
  1398. "copyfrom",
  1399. "cat_arr_id",
  1400. "catid",
  1401. "pinyin"
  1402. ],
  1403. },
  1404. },
  1405. ],
  1406. },
  1407. //新banner模块 皮肤7 轮播图 start---------------------------------------->
  1408. scrollTextImgSevenSkinchannelSector: {
  1409. "sectorName": "scrollTextImgSevenSkinchannelSector",//板块名称
  1410. "componentList": [
  1411. {
  1412. "component_type": 1,//组件类型 1=新闻 2=广告
  1413. "component_style": 1,//该组件使用哪个展示样式
  1414. "sort": 1,//排序位置
  1415. "componentData": {
  1416. "name": "自动选择",
  1417. "level": 2,
  1418. "imgSize": 6,
  1419. "textSize": 9,
  1420. "child": {
  1421. "id": "",
  1422. "imgSize": "",
  1423. "textSize": ""
  1424. },
  1425. "listType": [
  1426. "id",
  1427. "title",
  1428. "imgurl",
  1429. "author",
  1430. "updated_at",
  1431. "introduce",
  1432. "islink",
  1433. "linkurl",
  1434. "copyfrom",
  1435. "cat_arr_id",
  1436. "catid",
  1437. "pinyin"
  1438. ],
  1439. }
  1440. },
  1441. ]
  1442. },
  1443. //皮肤7模块1频道菜单 start----------------------------------------channelMenu>
  1444. channelNavigationSector: {
  1445. "sectorName": "channelNavigationSector",//板块名称
  1446. "componentList": [
  1447. {
  1448. "component_type": 3,// 子导航菜单
  1449. "component_style": 1,//组件选择了哪个版式
  1450. "sort": 1,
  1451. "componentData": {}
  1452. }
  1453. ],
  1454. },
  1455. }
  1456. },
  1457. methods: {
  1458. //添加模块
  1459. addModule(type, h, jsonData) {
  1460. let data = {
  1461. source: "click",//添加方式为点击
  1462. type: type,
  1463. h: h,
  1464. jsonData: jsonData
  1465. }
  1466. console.log(data);
  1467. this.$store.commit('template/addModule', data);
  1468. },
  1469. //拖拽开始
  1470. drag(type, h, jsonData) {
  1471. let data = {
  1472. type: type,
  1473. h: h,
  1474. jsonData: jsonData
  1475. }
  1476. this.$store.commit('template/drag', data);
  1477. },
  1478. //拖拽结束
  1479. dragend(type, h, jsonData) {
  1480. let data = {
  1481. type: type,
  1482. h: h,
  1483. jsonData: jsonData
  1484. }
  1485. this.$store.commit('template/dragend', data);
  1486. },
  1487. //设置组件预览状态
  1488. componentPreviewStatus(status,src) {
  1489. let setData = {
  1490. status: status,
  1491. img: src
  1492. }
  1493. this.$store.commit('template/setComponentPreviewStatus', setData);
  1494. }
  1495. },
  1496. mounted() {
  1497. let data = {
  1498. template_id: this.$route.query.style,
  1499. page_type: 2//1=首页 2=分类页 3=列表页 4=详情页 5=搜索页 6=底部列表页 7=底部详情页
  1500. }
  1501. //获得本页的通栏数据
  1502. this.$store.dispatch('template/getAllSector', data)
  1503. }
  1504. }
  1505. </script>
  1506. <style scoped lang="less">
  1507. .sectorBox {
  1508. height: 100%;
  1509. .sectorItemBox {
  1510. box-sizing: border-box;
  1511. padding: 0 20px 40px 20px;
  1512. cursor: pointer;
  1513. .sectorItem {
  1514. border: 1px solid #333644;
  1515. padding: 10px;
  1516. border-radius: 8px;
  1517. &:hover {
  1518. background: #333644;
  1519. transform: scale(1.1);
  1520. transition: all 0.2s ease-in-out;
  1521. }
  1522. img {
  1523. display: block;
  1524. width: 100%;
  1525. min-height: 20px;
  1526. }
  1527. }
  1528. .sectorItemTitle {
  1529. color: #fff;
  1530. font-size: 14px;
  1531. padding: 10px 0 0 0;
  1532. text-align: center;
  1533. }
  1534. }
  1535. }
  1536. </style>