sector.vue 92 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093
  1. <template>
  2. <div class="sectorBox">
  3. <div
  4. v-if="this.$store.state.template.sectorList.adSector"
  5. class="sectorItemBox"
  6. @click="addModule('adSector', 12, adSector)"
  7. @drag="drag('adSector', 12, adSector)"
  8. @dragend="dragend('adSector', 12, adSector)"
  9. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.adSector.sectorImg)"
  10. @mouseleave="componentPreviewStatus(false,'')"
  11. >
  12. <div class="sectorItem">
  13. <img :src="this.$store.state.template.sectorList.adSector.sectorImg"/>
  14. </div>
  15. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.adSector.sectorName}}</div>
  16. </div>
  17. <div
  18. v-if="this.$store.state.template.sectorList.headLineSector"
  19. class="sectorItemBox"
  20. @click="addModule('headLineSector', 17, headLineSector)"
  21. @drag="drag('headLineSector', 17, headLineSector)"
  22. @dragend="dragend('headLineSector', 17, headLineSector)"
  23. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.headLineSector.sectorImg)"
  24. @mouseleave="componentPreviewStatus(false,'')"
  25. >
  26. <div class="sectorItem">
  27. <img :src="this.$store.state.template.sectorList.headLineSector.sectorImg"/>
  28. </div>
  29. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.headLineSector.sectorName}}</div>
  30. </div>
  31. <!-- 首页轮播图 -->
  32. <div
  33. v-if="this.$store.state.template.sectorList.bannerSector"
  34. class="sectorItemBox"
  35. @click="addModule('bannerSector', 44, bannerSector)"
  36. @drag="drag('bannerSector', 44, bannerSector)"
  37. @dragend="dragend('bannerSector', 44, bannerSector)"
  38. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.bannerSector.sectorImg)"
  39. @mouseleave="componentPreviewStatus(false,'')"
  40. >
  41. <div class="sectorItem">
  42. <img :src="this.$store.state.template.sectorList.bannerSector.sectorImg"/>
  43. </div>
  44. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.bannerSector.sectorName}}</div>
  45. </div>
  46. <!-- 首页轮播图新版式 -->
  47. <div
  48. v-if="this.$store.state.template.sectorList.bannerSectorMerge"
  49. class="sectorItemBox"
  50. @click="addModule('bannerSectorMerge', 44, bannerSectorMerge)"
  51. @drag="drag('bannerSectorMerge', 44, bannerSectorMerge)"
  52. @dragend="dragend('bannerSectorMerge', 44, bannerSectorMerge)"
  53. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.bannerSectorMerge.sectorImg)"
  54. @mouseleave="componentPreviewStatus(false,'')"
  55. >
  56. <div class="sectorItem">
  57. <img :src="this.$store.state.template.sectorList.bannerSectorMerge.sectorImg"/>
  58. </div>
  59. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.bannerSectorMerge.sectorName}}</div>
  60. </div>
  61. <!-- 外链面板 start -->
  62. <div
  63. v-if="this.$store.state.template.sectorList.linkSector"
  64. class="sectorItemBox"
  65. @click="addModule('linkSector', 26, linkSector)"
  66. @drag="drag('linkSector', 26, linkSector)"
  67. @dragend="dragend('linkSector', 26, linkSector)"
  68. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.linkSector.sectorImg)"
  69. @mouseleave="componentPreviewStatus(false,'')"
  70. >
  71. <div class="sectorItem">
  72. <img :src="this.$store.state.template.sectorList.linkSector.sectorImg"/>
  73. </div>
  74. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.linkSector.sectorName}}</div>
  75. </div>
  76. <!-- 外链面板 end -->
  77. <!-- 新外链面板 start -->
  78. <div
  79. v-if="this.$store.state.template.sectorList.linkCxfwSector"
  80. class="sectorItemBox"
  81. @click="addModule('linkCxfwSector', 28, linkCxfwSector)"
  82. @drag="drag('linkCxfwSector', 28, linkCxfwSector)"
  83. @dragend="dragend('linkCxfwSector', 28, linkCxfwSector)"
  84. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.linkCxfwSector.sectorImg)"
  85. @mouseleave="componentPreviewStatus(false, '')">
  86. <div class="sectorItem">
  87. <img :src="this.$store.state.template.sectorList.linkCxfwSector.sectorImg" />
  88. </div>
  89. <div class="sectorItemTitle">{{ this.$store.state.template.sectorList.linkCxfwSector.sectorName }}</div>
  90. </div>
  91. <!-- 新外链面板 end -->
  92. <div
  93. v-if="this.$store.state.template.sectorList.manyPictureSector"
  94. class="sectorItemBox"
  95. @click="addModule('manyPictureSector', 47, manyPictureSector)"
  96. @drag="drag('manyPictureSector', 47, manyPictureSector)"
  97. @dragend="dragend('manyPictureSector', 47, manyPictureSector)"
  98. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.manyPictureSector.sectorImg)"
  99. @mouseleave="componentPreviewStatus(false,'')"
  100. >
  101. <div class="sectorItem">
  102. <img :src="this.$store.state.template.sectorList.manyPictureSector.sectorImg"/>
  103. </div>
  104. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.manyPictureSector.sectorName}}</div>
  105. </div>
  106. <div
  107. v-if="this.$store.state.template.sectorList.commentSector"
  108. class="sectorItemBox"
  109. @click="addModule('commentSector', 47, commentSector)"
  110. @drag="drag('commentSector', 47, commentSector)"
  111. @dragend="dragend('commentSector', 47, commentSector)"
  112. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.commentSector.sectorImg)"
  113. @mouseleave="componentPreviewStatus(false,'')"
  114. >
  115. <div class="sectorItem">
  116. <img :src="this.$store.state.template.sectorList.commentSector.sectorImg"/>
  117. </div>
  118. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.commentSector.sectorName}}</div>
  119. </div>
  120. <div
  121. v-if="this.$store.state.template.sectorList.listSector"
  122. class="sectorItemBox"
  123. @click="addModule('listSector', 98, listSector)"
  124. @drag="drag('listSector', 98, listSector)"
  125. @dragend="dragend('listSector', 98, listSector)"
  126. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.listSector.sectorImg)"
  127. @mouseleave="componentPreviewStatus(false,'')"
  128. >
  129. <div class="sectorItem">
  130. <img :src="this.$store.state.template.sectorList.listSector.sectorImg"/>
  131. </div>
  132. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.listSector.sectorName}}</div>
  133. </div>
  134. <div
  135. v-if="this.$store.state.template.sectorList.onlyImgSector"
  136. class="sectorItemBox"
  137. @click="addModule('onlyImgSector', 51, onlyImgSector)"
  138. @drag="drag('onlyImgSector', 51, onlyImgSector)"
  139. @dragend="dragend('onlyImgSector', 51, onlyImgSector)"
  140. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.onlyImgSector.sectorImg)"
  141. @mouseleave="componentPreviewStatus(false,'')"
  142. >
  143. <div class="sectorItem">
  144. <img :src="this.$store.state.template.sectorList.onlyImgSector.sectorImg"/>
  145. </div>
  146. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.onlyImgSector.sectorName}}</div>
  147. </div>
  148. <!--选项卡-->
  149. <div
  150. v-if="this.$store.state.template.sectorList.newsTabsSector"
  151. class="sectorItemBox"
  152. @click="addModule('newsTabsSector', 38, newsTabsSector)"
  153. @drag="drag('newsTabsSector', 38, newsTabsSector)"
  154. @dragend="dragend('newsTabsSector', 38, newsTabsSector)"
  155. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.newsTabsSector.sectorImg)"
  156. @mouseleave="componentPreviewStatus(false,'')"
  157. >
  158. <div class="sectorItem">
  159. <img :src="this.$store.state.template.sectorList.newsTabsSector.sectorImg"/>
  160. </div>
  161. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.newsTabsSector.sectorName}}</div>
  162. </div>
  163. <!--选项卡_广告混合通栏-->
  164. <div
  165. v-if="this.$store.state.template.sectorList.newsTabsAdSector"
  166. class="sectorItemBox"
  167. @click="addModule('newsTabsAdSector', 40, newsTabsAdSector)"
  168. @drag="drag('newsTabsAdSector', 40, newsTabsAdSector)"
  169. @dragend="dragend('newsTabsAdSector', 40, newsTabsAdSector)"
  170. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.newsTabsAdSector.sectorImg)"
  171. @mouseleave="componentPreviewStatus(false, '')">
  172. <div class="sectorItem">
  173. <img :src="this.$store.state.template.sectorList.newsTabsAdSector.sectorImg" />
  174. </div>
  175. <div class="sectorItemTitle">{{ this.$store.state.template.sectorList.newsTabsAdSector.sectorName }}</div>
  176. </div>
  177. <!-- 单个资讯通栏带标题 -->
  178. <div
  179. v-if="this.$store.state.template.sectorList.NewsHyjjSector"
  180. class="sectorItemBox"
  181. @click="addModule('NewsHyjjSector', 56, NewsHyjjSector)"
  182. @drag="drag('NewsHyjjSector', 56, NewsHyjjSector)"
  183. @dragend="dragend('NewsHyjjSector', 56, NewsHyjjSector)"
  184. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.NewsHyjjSector.sectorImg)"
  185. @mouseleave="componentPreviewStatus(false, '')">
  186. <div class="sectorItem">
  187. <img :src="this.$store.state.template.sectorList.NewsHyjjSector.sectorImg" />
  188. </div>
  189. <div class="sectorItemTitle">{{ this.$store.state.template.sectorList.NewsHyjjSector.sectorName }}</div>
  190. </div>
  191. <!-- 文字资讯通栏1 -->
  192. <div
  193. v-if="this.$store.state.template.sectorList.newsTextSector"
  194. class="sectorItemBox"
  195. @click="addModule('newsTextSector', 43, newsTextSector)"
  196. @drag="drag('newsTextSector', 43, newsTextSector)"
  197. @dragend="dragend('newsTextSector', 43, newsTextSector)"
  198. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.newsTextSector.sectorImg)"
  199. @mouseleave="componentPreviewStatus(false,'')"
  200. >
  201. <div class="sectorItem">
  202. <img :src="this.$store.state.template.sectorList.newsTextSector.sectorImg"/>
  203. </div>
  204. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.newsTextSector.sectorName}}</div>
  205. </div>
  206. <!-- 选项卡文字通栏 -->
  207. <div
  208. v-if="this.$store.state.template.sectorList.newsTabsTextSector"
  209. class="sectorItemBox"
  210. @click="addModule('newsTabsTextSector', 28, newsTabsTextSector)"
  211. @drag="drag('newsTabsTextSector', 28, newsTabsTextSector)"
  212. @dragend="dragend('newsTabsTextSector', 28, newsTabsTextSector)"
  213. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.newsTabsTextSector.sectorImg)"
  214. @mouseleave="componentPreviewStatus(false,'')"
  215. >
  216. <div class="sectorItem">
  217. <img :src="this.$store.state.template.sectorList.newsTabsTextSector.sectorImg"/>
  218. </div>
  219. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.newsTabsTextSector.sectorName}}</div>
  220. </div>
  221. <!-- 图片通栏 -->
  222. <div
  223. v-if="this.$store.state.template.sectorList.newsAllPictureSector"
  224. class="sectorItemBox"
  225. @click="addModule('newsAllPictureSector', 41, newsAllPictureSector)"
  226. @drag="drag('newsAllPictureSector', 41, newsAllPictureSector)"
  227. @dragend="dragend('newsAllPictureSector', 41, newsAllPictureSector)"
  228. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.newsAllPictureSector.sectorImg)"
  229. @mouseleave="componentPreviewStatus(false, '')">
  230. <div class="sectorItem">
  231. <img :src="this.$store.state.template.sectorList.newsAllPictureSector.sectorImg" />
  232. </div>
  233. <div class="sectorItemTitle">{{ this.$store.state.template.sectorList.newsAllPictureSector.sectorName }}</div>
  234. </div>
  235. <!-- 皮肤6 带标题带选项卡图文组合 -->
  236. <div
  237. v-if="this.$store.state.template.sectorList.newsTextTabsSector"
  238. class="sectorItemBox"
  239. @click="addModule('newsTextTabsSector', 47, newsTextTabsSector)"
  240. @drag="drag('newsTextTabsSector', 47, newsTextTabsSector)"
  241. @dragend="dragend('newsTextTabsSector', 47, newsTextTabsSector)"
  242. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.newsTextTabsSector.sectorImg)"
  243. @mouseleave="componentPreviewStatus(false, '')">
  244. <div class="sectorItem">
  245. <img :src="this.$store.state.template.sectorList.newsTextTabsSector.sectorImg" />
  246. </div>
  247. <div class="sectorItemTitle">{{ this.$store.state.template.sectorList.newsTextTabsSector.sectorName }}</div>
  248. </div>
  249. <!-- 皮肤6 选项卡图文组合通栏 -->
  250. <div
  251. v-if="this.$store.state.template.sectorList.TabsTextPhotoSector"
  252. class="sectorItemBox"
  253. @click="addModule('TabsTextPhotoSector', 51, TabsTextPhotoSector)"
  254. @drag="drag('TabsTextPhotoSector', 51, TabsTextPhotoSector)"
  255. @dragend="dragend('TabsTextPhotoSector', 51, TabsTextPhotoSector)"
  256. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.TabsTextPhotoSector.sectorImg)"
  257. @mouseleave="componentPreviewStatus(false, '')">
  258. <div class="sectorItem">
  259. <img :src="this.$store.state.template.sectorList.TabsTextPhotoSector.sectorImg" />
  260. </div>
  261. <div class="sectorItemTitle">{{ this.$store.state.template.sectorList.TabsTextPhotoSector.sectorName }}</div>
  262. </div>
  263. <!--皮肤6 带标题的混合通栏 -->
  264. <div
  265. v-if="this.$store.state.template.sectorList.newsTitleTabsSector"
  266. class="sectorItemBox"
  267. @click="addModule('newsTitleTabsSector', 58, newsTitleTabsSector)"
  268. @drag="drag('newsTitleTabsSector', 58, newsTitleTabsSector)"
  269. @dragend="dragend('newsTitleTabsSector', 58, newsTitleTabsSector)"
  270. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.newsTitleTabsSector.sectorImg)"
  271. @mouseleave="componentPreviewStatus(false, '')">
  272. <div class="sectorItem">
  273. <img :src="this.$store.state.template.sectorList.newsTitleTabsSector.sectorImg" />
  274. </div>
  275. <div class="sectorItemTitle">{{ this.$store.state.template.sectorList.newsTitleTabsSector.sectorName }}</div>
  276. </div>
  277. <!-- 皮肤6 选项卡图文组合通栏2 -->
  278. <div
  279. v-if="this.$store.state.template.sectorList.TabsTextPhotoTwo"
  280. class="sectorItemBox"
  281. @click="addModule('TabsTextPhotoTwo', 51, TabsTextPhotoTwo)"
  282. @drag="drag('TabsTextPhotoTwo', 51, TabsTextPhotoTwo)"
  283. @dragend="dragend('TabsTextPhotoTwo', 51, TabsTextPhotoTwo)"
  284. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.TabsTextPhotoTwo.sectorImg)"
  285. @mouseleave="componentPreviewStatus(false, '')">
  286. <div class="sectorItem">
  287. <img :src="this.$store.state.template.sectorList.TabsTextPhotoTwo.sectorImg" />
  288. </div>
  289. <div class="sectorItemTitle">{{ this.$store.state.template.sectorList.TabsTextPhotoTwo.sectorName }}</div>
  290. </div>
  291. <!-- 皮肤6 纯图片选项卡通栏 -->
  292. <div
  293. v-if="this.$store.state.template.sectorList.photoTabsSector"
  294. class="sectorItemBox"
  295. @click="addModule('photoTabsSector', 46, photoTabsSector)"
  296. @drag="drag('photoTabsSector', 46, photoTabsSector)"
  297. @dragend="dragend('photoTabsSector', 46, photoTabsSector)"
  298. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.photoTabsSector.sectorImg)"
  299. @mouseleave="componentPreviewStatus(false, '')">
  300. <div class="sectorItem">
  301. <img :src="this.$store.state.template.sectorList.photoTabsSector.sectorImg" />
  302. </div>
  303. <div class="sectorItemTitle">{{ this.$store.state.template.sectorList.photoTabsSector.sectorName }}</div>
  304. </div>
  305. <!-- <div
  306. class="sectorItemBox"
  307. @click="addModule('adSector', 12, adSector)"
  308. @drag="drag('adSector', 12, adSector)"
  309. @dragend="dragend('adSector', 12, adSector)"
  310. @mouseenter="componentPreviewStatus(true,'http://img.bjzxtw.org.cn/pre/image/png/20250604/1748998088187321.png')"
  311. @mouseleave="componentPreviewStatus(false,'')"
  312. >
  313. <div class="sectorItem">
  314. <img src="http://img.bjzxtw.org.cn/pre/image/png/20250604/1748998088187321.png" v-if="this.$store.state.template.editWebsiteClass==1"/>
  315. <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750817753245775.jpg" v-if="this.$store.state.template.editWebsiteClass==2"/>
  316. </div>
  317. <div class="sectorItemTitle">通栏广告</div>
  318. </div>
  319. <div
  320. class="sectorItemBox"
  321. @click="addModule('headLineSector', 17, headLineSector)"
  322. @drag="drag('headLineSector', 17, headLineSector)"
  323. @dragend="dragend('headLineSector', 17, headLineSector)"
  324. @mouseenter="componentPreviewStatus(true,'http://img.bjzxtw.org.cn/pre/image/png/20250603/1748914467583559.png')"
  325. @mouseleave="componentPreviewStatus(false,'')"
  326. >
  327. <div class="sectorItem">
  328. <img src="http://img.bjzxtw.org.cn/pre/image/png/20250603/1748914467583559.png" v-if="this.$store.state.template.editWebsiteClass==1"/>
  329. <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750819803899738.jpg" v-if="this.$store.state.template.editWebsiteClass==2"/>
  330. </div>
  331. <div class="sectorItemTitle">网站头条</div>
  332. </div>
  333. <div
  334. class="sectorItemBox"
  335. @click="addModule('bannerSector', 44, bannerSector)"
  336. @drag="drag('bannerSector', 44, bannerSector)"
  337. @dragend="dragend('bannerSector', 44, bannerSector)"
  338. @mouseenter="componentPreviewStatus(true,'http://img.bjzxtw.org.cn/pre/image/png/20250604/174899892158949.png')"
  339. @mouseleave="componentPreviewStatus(false,'')"
  340. >
  341. <div class="sectorItem">
  342. <img src="http://img.bjzxtw.org.cn/pre/image/png/20250604/174899892158949.png" v-if="this.$store.state.template.editWebsiteClass==1"/>
  343. <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750819938475436.jpg" v-if="this.$store.state.template.editWebsiteClass==2"/>
  344. </div>
  345. <div class="sectorItemTitle">焦点图</div>
  346. </div>
  347. <div
  348. class="sectorItemBox"
  349. @click="addModule('linkSector', 26, linkSector)"
  350. @drag="drag('linkSector', 26, linkSector)"
  351. @dragend="dragend('linkSector', 26, linkSector)"
  352. >
  353. <div class="sectorItem">
  354. <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250709/1752025989873169.jpg" v-if="this.$store.state.template.editWebsiteClass==1"/>
  355. <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250626/1750921543723236.jpg" v-if="this.$store.state.template.editWebsiteClass==2"/>
  356. </div>
  357. <div class="sectorItemTitle">外链面板</div>
  358. </div>
  359. <div
  360. class="sectorItemBox"
  361. @click="addModule('manyPictureSector', 47, manyPictureSector)"
  362. @drag="drag('manyPictureSector', 47, manyPictureSector)"
  363. @dragend="dragend('manyPictureSector', 47, manyPictureSector)"
  364. >
  365. <div class="sectorItem">
  366. <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250605/1749085058737998.jpg" v-if="this.$store.state.template.editWebsiteClass==1"/>
  367. <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/175082020060857.jpg" v-if="this.$store.state.template.editWebsiteClass==2"/>
  368. </div>
  369. <div class="sectorItemTitle">新闻图文组合1</div>
  370. </div>
  371. <div
  372. class="sectorItemBox"
  373. @click="addModule('commentSector', 47, commentSector)"
  374. @drag="drag('commentSector', 47, commentSector)"
  375. @dragend="dragend('commentSector', 47, commentSector)">
  376. <div class="sectorItem">
  377. <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250606/1749170683104422.jpg" v-if="this.$store.state.template.editWebsiteClass==1"/>
  378. <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750820111536544.jpg" v-if="this.$store.state.template.editWebsiteClass==2"/>
  379. </div>
  380. <div class="sectorItemTitle">新闻图文组合2</div>
  381. </div>
  382. <div
  383. class="sectorItemBox"
  384. @click="addModule('listSector', 98, listSector)"
  385. @drag="drag('listSector', 98, listSector)"
  386. @dragend="dragend('listSector', 98, listSector)"
  387. >
  388. <div class="sectorItem">
  389. <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250606/1749200397579402.jpg" v-if="this.$store.state.template.editWebsiteClass==1"/>
  390. <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750820339495190.jpg" v-if="this.$store.state.template.editWebsiteClass==2"/>
  391. </div>
  392. <div class="sectorItemTitle">新闻图文组合3</div>
  393. </div>
  394. <div
  395. class="sectorItemBox"
  396. @click="addModule('onlyImgSector', 51, onlyImgSector)"
  397. @drag="drag('onlyImgSector', 51, onlyImgSector)"
  398. @dragend="dragend('onlyImgSector', 51, onlyImgSector)"
  399. >
  400. <div class="sectorItem">
  401. <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250609/1749451127220319.jpg" v-if="this.$store.state.template.editWebsiteClass==1"/>
  402. <img src="http://img.bjzxtw.org.cn/pre/image/jpeg/20250625/1750820413450978.jpg" v-if="this.$store.state.template.editWebsiteClass==2"/>
  403. </div>
  404. <div class="sectorItemTitle">带广告新闻组合</div>
  405. </div> -->
  406. <!-- 皮肤7-通栏版式-带选项卡图文组合 newsTextTabsImgSector 热点关注-->
  407. <div
  408. v-if="this.$store.state.template.sectorList.newsTextTabsImgSector"
  409. class="sectorItemBox"
  410. @click="addModule('newsTextTabsImgSector', 118, newsTextTabsImgSector)"
  411. @drag="drag('newsTextTabsImgSector', 118, newsTextTabsImgSector)"
  412. @dragend="dragend('newsTextTabsImgSector', 118, newsTextTabsImgSector)"
  413. @mouseenter="componentPreviewStatus(true, $store.state.template.sectorList.newsTextTabsImgSector.sectorImg)"
  414. @mouseleave="componentPreviewStatus(false,'')"
  415. >
  416. <div class="sectorItem">
  417. <img :src="this.$store.state.template.sectorList.newsTextTabsImgSector.sectorImg"/>
  418. </div>
  419. <div class="sectorItemTitle">{{this.$store.state.template.sectorList.newsTextTabsImgSector.sectorName}}</div>
  420. </div>
  421. <!-- 皮肤7-通栏版式-带选项卡图文组合 -->
  422. </div>
  423. </template>
  424. <script>
  425. export default {
  426. props: {
  427. type: {
  428. },
  429. },
  430. data() {
  431. return {
  432. sectorData: [],
  433. //模块1通栏广告模块 start---------------------------------------->
  434. adSector: {
  435. "sectorName": "adSector",//板块名称
  436. "componentList": [
  437. {
  438. "component_type": 2,//组件类型 1=新闻(选择导航池id)2=广告(输入广告位名称)
  439. "component_style": 1,//组件选择了哪个样式
  440. "sort": 1,
  441. "componentData": {}
  442. }
  443. ],
  444. "ad": {
  445. "width": 1200, //宽度
  446. "height": 90, //高度
  447. "name": "",//广告名称
  448. "price": 0,//价格
  449. "introduce": "",//介绍
  450. "website_id": "",//网站id
  451. "thumb": "https://img.bjzxtw.org.cn/pre/image/png/20250530/1748588901281358.png",//示例图 - 默认值
  452. "typeid": 2,//广告类型 - 2 图片
  453. "ad_tag": ""//广告标识 - 网站标识 + 页面名称 + sort
  454. }
  455. },
  456. //添加通栏广告模块 start---------------------------------------->
  457. //添加头条广告模块 start---------------------------------------->
  458. headLineSector: {
  459. "sectorName": "headLineSector",//板块名称
  460. "componentList": [
  461. {
  462. "component_type": 1,//组件类型 1=新闻 2=广告
  463. "component_style": 1,//该组件使用哪个展示样式
  464. "sort": 1,//排序位置
  465. "componentData": {
  466. "level": 1,
  467. "imgSize": 0,
  468. "textSize": 4,
  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. //添加头条广告模块 start---------------------------------------->
  493. //添加banner模块 start---------------------------------------->
  494. bannerSector: {
  495. "sectorName": "bannerSector",//板块名称
  496. "componentList": [
  497. {
  498. "component_type": 1,//组件类型 1=新闻 2=广告
  499. "component_style": 1,//该组件使用哪个展示样式
  500. "sort": 1,//排序位置
  501. "componentData": {
  502. "level": 2,
  503. "imgSize": 5,
  504. "textSize": 0,
  505. "child": {
  506. "id": "",
  507. "imgSize": "",
  508. "textSize": ""
  509. },
  510. "listType": [
  511. "id",
  512. "title",
  513. "imgurl",
  514. "author",
  515. "updated_at",
  516. "introduce",
  517. "islink",
  518. "linkurl",
  519. "copyfrom",
  520. "cat_arr_id",
  521. "catid",
  522. "pinyin"
  523. ],
  524. }
  525. },
  526. {
  527. "component_type": 1,//组件类型 1=新闻 2=广告
  528. "component_style": 1,//该组件使用哪个展示样式
  529. "sort": 2,//排序位置
  530. "componentData": {
  531. "level": 6,
  532. "imgSize": 0,
  533. "textSize": 10,
  534. "child": {
  535. "id": "",
  536. "imgSize": "",
  537. "textSize": ""
  538. },
  539. "listType": [
  540. "id",
  541. "title",
  542. "imgurl",
  543. "author",
  544. "updated_at",
  545. "introduce",
  546. "islink",
  547. "linkurl",
  548. "copyfrom",
  549. "cat_arr_id",
  550. "catid",
  551. "pinyin"
  552. ],
  553. }
  554. }
  555. ]
  556. },
  557. //添加banner模块 end---------------------------------------->
  558. //新banner模块 start---------------------------------------->
  559. bannerSectorMerge: {
  560. "sectorName": "bannerSectorMerge",//板块名称
  561. "componentList": [
  562. {
  563. "component_type": 1,//组件类型 1=新闻 2=广告
  564. "component_style": 1,//该组件使用哪个展示样式
  565. "sort": 1,//排序位置
  566. "componentData": {
  567. "level": 2,
  568. "imgSize": 5,
  569. "textSize": 7,
  570. "child": {
  571. "id": "",
  572. "imgSize": "",
  573. "textSize": ""
  574. },
  575. "listType": [
  576. "id",
  577. "title",
  578. "imgurl",
  579. "author",
  580. "updated_at",
  581. "introduce",
  582. "islink",
  583. "linkurl",
  584. "copyfrom",
  585. "cat_arr_id",
  586. "catid",
  587. "pinyin"
  588. ],
  589. }
  590. }
  591. ]
  592. },
  593. //新banner模块 end---------------------------------------->
  594. //两列新闻组合模块1 start---------------------------------------->
  595. manyPictureSector: {
  596. "sectorName": "manyPictureSector",//板块名称
  597. "componentList": [
  598. {
  599. "component_type": 1,
  600. "component_style": 1,
  601. "sort": 1,
  602. "componentData": {
  603. "category_id": "",
  604. "category_arr": "",
  605. "name": "请选择导航..",
  606. "level": "",
  607. "imgSize": 3,
  608. "textSize": 9,
  609. "child": {
  610. "id": "",
  611. "imgSize": "",
  612. "textSize": ""
  613. },
  614. "listType": [
  615. "id",
  616. "title",
  617. "imgurl",
  618. "author",
  619. "updated_at",
  620. "introduce",
  621. "islink",
  622. "linkurl",
  623. "copyfrom",
  624. "cat_arr_id",
  625. "catid",
  626. "pinyin"
  627. ],
  628. }
  629. },
  630. {
  631. "component_type": 1,
  632. "component_style": 1,
  633. "sort": 2,
  634. "componentData": {
  635. "category_id": "",
  636. "category_arr": "",
  637. "name": "请选择导航..",
  638. "level": "",
  639. "imgSize": 3,
  640. "textSize": 6,
  641. "child": {
  642. "id": "",
  643. "imgSize": "",
  644. "textSize": ""
  645. },
  646. "listType": [
  647. "id",
  648. "title",
  649. "imgurl",
  650. "author",
  651. "updated_at",
  652. "introduce",
  653. "islink",
  654. "linkurl",
  655. "copyfrom",
  656. "cat_arr_id",
  657. "catid",
  658. "pinyin"
  659. ],
  660. }
  661. }
  662. ]
  663. },
  664. //两列新闻组合模块1 end---------------------------------------->
  665. //两列新闻组合模块2 end---------------------------------------->
  666. commentSector: {
  667. "sectorName": "commentSector",//板块名称
  668. "componentList": [
  669. {
  670. "component_type": 1,
  671. "component_style": 1,
  672. "sort": 1,
  673. "componentData": {
  674. "category_id": "",
  675. "category_arr": "",
  676. "name": "请选择导航..",
  677. "level": "",
  678. "imgSize": 2,
  679. "textSize": 12,
  680. "child": {
  681. "id": "",
  682. "imgSize": "",
  683. "textSize": ""
  684. },
  685. "listType": [
  686. "id",
  687. "title",
  688. "imgurl",
  689. "author",
  690. "updated_at",
  691. "introduce",
  692. "islink",
  693. "linkurl",
  694. "copyfrom",
  695. "cat_arr_id",
  696. "catid",
  697. "pinyin"
  698. ],
  699. }
  700. },
  701. {
  702. "component_type": 1,
  703. "component_style": 1,
  704. "sort": 2,
  705. "componentData": {
  706. "category_id": "",
  707. "category_arr": "",
  708. "name": "请选择导航..",
  709. "level": "",
  710. "imgSize": 1,
  711. "textSize": 3,
  712. "child": {
  713. "id": "",
  714. "imgSize": "",
  715. "textSize": ""
  716. },
  717. "listType": [
  718. "id",
  719. "title",
  720. "imgurl",
  721. "author",
  722. "updated_at",
  723. "introduce",
  724. "islink",
  725. "linkurl",
  726. "copyfrom",
  727. "cat_arr_id",
  728. "catid",
  729. "pinyin"
  730. ],
  731. }
  732. }
  733. ]
  734. },
  735. //两列新闻组合模块2 end---------------------------------------->
  736. //两列新闻组合模块3 start---------------------------------------->
  737. listSector: {
  738. "sectorName": "listSector",//板块名称
  739. "componentList": [
  740. {
  741. "component_type": 1,
  742. "component_style": 1,
  743. "sort": 1,
  744. "componentData": {
  745. "category_id": "",
  746. "category_arr": "",
  747. "name": "请选择导航..",
  748. "level": "",
  749. "imgSize": 2,
  750. "textSize": 6,
  751. "child": {
  752. "id": "",
  753. "imgSize": "",
  754. "textSize": ""
  755. },
  756. "listType": [
  757. "id",
  758. "title",
  759. "imgurl",
  760. "author",
  761. "updated_at",
  762. "introduce",
  763. "islink",
  764. "linkurl",
  765. "copyfrom",
  766. "cat_arr_id",
  767. "catid",
  768. "pinyin"
  769. ],
  770. }
  771. },
  772. {
  773. "component_type": 1,
  774. "component_style": 1,
  775. "sort": 2,
  776. "componentData": {
  777. "category_id": "",
  778. "category_arr": "",
  779. "name": "请选择导航..",
  780. "level": "",
  781. "imgSize": 2,
  782. "textSize": 14,
  783. "child": {
  784. "id": "",
  785. "imgSize": "",
  786. "textSize": ""
  787. },
  788. "listType": [
  789. "id",
  790. "title",
  791. "imgurl",
  792. "author",
  793. "updated_at",
  794. "introduce",
  795. "islink",
  796. "linkurl",
  797. "copyfrom",
  798. "cat_arr_id",
  799. "catid",
  800. "pinyin"
  801. ],
  802. }
  803. },
  804. {
  805. "component_type": 1,
  806. "component_style": 1,
  807. "sort": 3,
  808. "componentData": {
  809. "category_id": "",
  810. "category_arr": "",
  811. "name": "请选择导航..",
  812. "level": "",
  813. "imgSize": 7,
  814. "textSize": 0,
  815. "child": {
  816. "id": "",
  817. "imgSize": "",
  818. "textSize": ""
  819. },
  820. "listType": [
  821. "id",
  822. "title",
  823. "imgurl",
  824. "author",
  825. "updated_at",
  826. "introduce",
  827. "islink",
  828. "linkurl",
  829. "copyfrom",
  830. "cat_arr_id",
  831. "catid",
  832. "pinyin"
  833. ],
  834. }
  835. }
  836. ]
  837. },
  838. //两列新闻组合模块3 end---------------------------------------->
  839. //带广告新闻组合 start---------------------------------------->
  840. onlyImgSector: {
  841. "sectorName": "onlyImgSector",//板块名称
  842. "componentList": [
  843. {
  844. "component_type": 1,
  845. "component_style": 1,
  846. "sort": 1,
  847. "componentData": {
  848. "category_id": "",
  849. "category_arr": "",
  850. "name": "请选择导航..",
  851. "level": "",
  852. "imgSize": 3,
  853. "textSize": 4,
  854. "child": {
  855. "id": "",
  856. "imgSize": "",
  857. "textSize": ""
  858. },
  859. "listType": [
  860. "id",
  861. "title",
  862. "imgurl",
  863. "author",
  864. "updated_at",
  865. "introduce",
  866. "islink",
  867. "linkurl",
  868. "copyfrom",
  869. "cat_arr_id",
  870. "catid",
  871. "pinyin"
  872. ],
  873. }
  874. },
  875. ],
  876. "ad": {
  877. "width": 450, //宽度
  878. "height": 290, //高度
  879. "name": "",//广告名称
  880. "price": 0,//价格
  881. "introduce": "",//介绍
  882. "website_id": "",//网站id
  883. "thumb": "http://img.bjzxtw.org.cn/pre/image/png/20250609/174945725555092.png",//示例图 - 默认值
  884. "typeid": 2,//广告类型 - 2 图片
  885. "ad_tag": ""//广告标识 - 网站标识 + 页面名称 + sort
  886. }
  887. },
  888. //带广告新闻组合 end---------------------------------------->
  889. //外链面板 start---------------------------------------->
  890. linkSector: {
  891. "sectorName": "linkSector",
  892. "componentList": [
  893. {
  894. "component_type": 3,
  895. "component_style": 1,
  896. "sort": 1,
  897. "componentData": {}
  898. }
  899. ]
  900. },
  901. //外链面板 end---------------------------------------->
  902. // 新外链面板 start---------------------------------------->
  903. linkCxfwSector: {
  904. "sectorName": "linkCxfwSector",
  905. "componentList": [
  906. {
  907. "component_type": 3,
  908. "component_style": 1,
  909. "sort": 1,
  910. "componentData": {}
  911. }
  912. ]
  913. },
  914. //新外链面板 end---------------------------------------->
  915. //添加通栏广告模块 start---------------------------------------->
  916. globalAdSector: {
  917. "sectorName": "globalAdSector",
  918. "componentList": [
  919. {
  920. "component_type": 2,
  921. "component_style": 1,
  922. "sort": 1,
  923. "componentData": {}
  924. }
  925. ]
  926. },
  927. //添加通栏广告模块 end---------------------------------------->
  928. //选项卡-带热点新闻 start---------------------------------------->
  929. newsTabsSector: {
  930. "sectorName": "newsTabsSector",
  931. "componentList": [
  932. {
  933. "component_type": 1,//组件类型 1=新闻 2=广告 3=全局广告 4=选项卡
  934. "component_style": 1,
  935. "sort": 1,
  936. "componentData": {
  937. "category_id": "",
  938. "category_arr": "",
  939. "name": "请选择导航..",
  940. "level": "",
  941. "imgSize": 0,
  942. "textSize": 5,
  943. "child": {
  944. "id": "",
  945. "imgSize": "",
  946. "textSize": ""
  947. },
  948. "listType": [
  949. "id",
  950. "title",
  951. "imgurl",
  952. "author",
  953. "updated_at",
  954. "introduce",
  955. "islink",
  956. "linkurl",
  957. "copyfrom",
  958. "cat_arr_id",
  959. "catid",
  960. "pinyin"
  961. ],
  962. },
  963. },
  964. {
  965. "component_type": 1,//组件类型 1=新闻 2=广告 3=全局广告 4=选项卡
  966. "component_style": 1,
  967. "sort": 2,
  968. "componentData": [
  969. {
  970. "category_id": "",
  971. "category_arr": "",
  972. "name": "请选择导航..",
  973. "level": "",
  974. "imgSize": 0,
  975. "textSize": 5,
  976. "child": {
  977. "id": "",
  978. "imgSize": "",
  979. "textSize": ""
  980. },
  981. "listType": [
  982. "id",
  983. "title",
  984. "imgurl",
  985. "author",
  986. "updated_at",
  987. "introduce",
  988. "islink",
  989. "linkurl",
  990. "copyfrom",
  991. "cat_arr_id",
  992. "catid",
  993. "pinyin"
  994. ],
  995. },
  996. {
  997. "category_id": "",
  998. "category_arr": "",
  999. "name": "请选择导航..",
  1000. "level": "",
  1001. "imgSize": 0,
  1002. "textSize": 5,
  1003. "child": {
  1004. "id": "",
  1005. "imgSize": "",
  1006. "textSize": ""
  1007. },
  1008. "listType": [
  1009. "id",
  1010. "title",
  1011. "imgurl",
  1012. "author",
  1013. "updated_at",
  1014. "introduce",
  1015. "islink",
  1016. "linkurl",
  1017. "copyfrom",
  1018. "cat_arr_id",
  1019. "catid",
  1020. "pinyin"
  1021. ],
  1022. }
  1023. ]
  1024. },
  1025. ]
  1026. },
  1027. //选项卡-带热点新闻 end---------------------------------------->
  1028. // 选项卡-广告混合通栏 start---------------------------------------->
  1029. newsTabsAdSector: {
  1030. "sectorName": "newsTabsAdSector",//板块名称
  1031. "componentList": [
  1032. {
  1033. "component_type": 1,
  1034. "component_style": 1,
  1035. "sort": 1,
  1036. "componentData": [
  1037. {
  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. "category_id": "",
  1066. "category_arr": "",
  1067. "name": "请选择导航..",
  1068. "level": "",
  1069. "imgSize": 0,
  1070. "textSize": 6,
  1071. "child": {
  1072. "id": "",
  1073. "imgSize": "",
  1074. "textSize": ""
  1075. },
  1076. "listType": [
  1077. "id",
  1078. "title",
  1079. "imgurl",
  1080. "author",
  1081. "updated_at",
  1082. "introduce",
  1083. "islink",
  1084. "linkurl",
  1085. "copyfrom",
  1086. "cat_arr_id",
  1087. "catid",
  1088. "pinyin"
  1089. ],
  1090. }
  1091. ]
  1092. },
  1093. ],
  1094. "ad": [
  1095. {
  1096. "width": 380, //宽度
  1097. "height": 148, //高度
  1098. "name": "",//广告名称
  1099. "price": 0,//价格
  1100. "introduce": "",//介绍
  1101. "website_id": "",//网站id
  1102. "thumb": "http://192.168.1.234:19000/pre/image/jpeg/20251224/1766536894928122.jpg",//示例图 - 默认值
  1103. "typeid": 2,//广告类型 - 2 图片
  1104. "ad_tag": ""//广告标识 - 网站标识 + 页面名称 + sort
  1105. },
  1106. {
  1107. "width": 380, //宽度
  1108. "height": 148, //高度
  1109. "name": "",//广告名称
  1110. "price": 0,//价格
  1111. "introduce": "",//介绍
  1112. "website_id": "",//网站id
  1113. "thumb": "http://192.168.1.234:19000/pre/image/jpeg/20251224/1766536894928122.jpg",//示例图 - 默认值
  1114. "typeid": 2,//广告类型 - 2 图片
  1115. "ad_tag": ""//广告标识 - 网站标识 + 页面名称 + sort
  1116. }
  1117. ]
  1118. },
  1119. // 选项卡-广告混合通栏 end---------------------------------------->
  1120. // 单个资讯通栏带标题 start---------------------------------------->
  1121. NewsHyjjSector: {
  1122. "sectorName": "NewsHyjjSector",//板块名称
  1123. "componentList": [
  1124. {
  1125. "component_type": 1,
  1126. "component_style": 1,
  1127. "sort": 1,
  1128. "componentData": {
  1129. "category_id": "",
  1130. "category_arr": "",
  1131. "name": "请选择导航..",
  1132. "level": "",
  1133. "imgSize": 1,
  1134. "textSize": 9,
  1135. "child": {
  1136. "id": "",
  1137. "imgSize": "",
  1138. "textSize": ""
  1139. },
  1140. "listType": [
  1141. "id",
  1142. "title",
  1143. "imgurl",
  1144. "author",
  1145. "updated_at",
  1146. "introduce",
  1147. "islink",
  1148. "linkurl",
  1149. "copyfrom",
  1150. "cat_arr_id",
  1151. "catid",
  1152. "pinyin"
  1153. ],
  1154. },
  1155. },
  1156. ],
  1157. },
  1158. // 单个资讯通栏带标题 end---------------------------------------->
  1159. // 文字资讯通栏1 start---------------------------------------->
  1160. newsTextSector: {
  1161. "sectorName": "newsTextSector",//板块名称
  1162. "componentList": [
  1163. {
  1164. "component_type": 1,
  1165. "component_style": 1,
  1166. "sort": 1,
  1167. "componentData": {
  1168. "category_id": "",
  1169. "category_arr": "",
  1170. "name": "请选择导航..",
  1171. "level": "",
  1172. "imgSize": 0,
  1173. "textSize": 6,
  1174. "child": {
  1175. "id": "",
  1176. "imgSize": "",
  1177. "textSize": ""
  1178. },
  1179. "listType": [
  1180. "id",
  1181. "title",
  1182. "imgurl",
  1183. "author",
  1184. "updated_at",
  1185. "introduce",
  1186. "islink",
  1187. "linkurl",
  1188. "copyfrom",
  1189. "cat_arr_id",
  1190. "catid",
  1191. "pinyin"
  1192. ],
  1193. }
  1194. },
  1195. {
  1196. "component_type": 1,
  1197. "component_style": 1,
  1198. "sort": 2,
  1199. "componentData": {
  1200. "category_id": "",
  1201. "category_arr": "",
  1202. "name": "请选择导航..",
  1203. "level": "",
  1204. "imgSize": 0,
  1205. "textSize": 6,
  1206. "child": {
  1207. "id": "",
  1208. "imgSize": "",
  1209. "textSize": ""
  1210. },
  1211. "listType": [
  1212. "id",
  1213. "title",
  1214. "imgurl",
  1215. "author",
  1216. "updated_at",
  1217. "introduce",
  1218. "islink",
  1219. "linkurl",
  1220. "copyfrom",
  1221. "cat_arr_id",
  1222. "catid",
  1223. "pinyin"
  1224. ],
  1225. }
  1226. }
  1227. ]
  1228. },
  1229. // 文字资讯通栏1 end---------------------------------------->
  1230. //选项卡-带热点新闻 start---------------------------------------->
  1231. newsTabsTextSector: {
  1232. "sectorName": "newsTabsTextSector",//板块名称
  1233. "componentList": [
  1234. {
  1235. "component_type": 4,//组件类型 1=新闻 2=广告 3=全局广告 4=选项卡
  1236. "component_style": 1,
  1237. "sort": 1,
  1238. "componentData": [
  1239. {
  1240. "category_id": "",
  1241. "category_arr": "",
  1242. "name": "请选择导航..",
  1243. "level": "",
  1244. "imgSize": 0,
  1245. "textSize": 5,
  1246. "child": {
  1247. "id": "",
  1248. "imgSize": "",
  1249. "textSize": ""
  1250. },
  1251. "listType": [
  1252. "id",
  1253. "title",
  1254. "imgurl",
  1255. "author",
  1256. "updated_at",
  1257. "introduce",
  1258. "islink",
  1259. "linkurl",
  1260. "copyfrom",
  1261. "cat_arr_id",
  1262. "catid",
  1263. "pinyin"
  1264. ],
  1265. },
  1266. {
  1267. "category_id": "",
  1268. "category_arr": "",
  1269. "name": "请选择导航..",
  1270. "level": "",
  1271. "imgSize": 0,
  1272. "textSize": 5,
  1273. "child": {
  1274. "id": "",
  1275. "imgSize": "",
  1276. "textSize": ""
  1277. },
  1278. "listType": [
  1279. "id",
  1280. "title",
  1281. "imgurl",
  1282. "author",
  1283. "updated_at",
  1284. "introduce",
  1285. "islink",
  1286. "linkurl",
  1287. "copyfrom",
  1288. "cat_arr_id",
  1289. "catid",
  1290. "pinyin"
  1291. ],
  1292. }
  1293. ]
  1294. },
  1295. {
  1296. "component_type": 1,
  1297. "component_style": 1,
  1298. "sort": 2,
  1299. "componentData": [
  1300. {
  1301. "category_id": "",
  1302. "category_arr": "",
  1303. "name": "请选择导航..",
  1304. "level": "",
  1305. "imgSize": 0,
  1306. "textSize": 5,
  1307. "child": {
  1308. "id": "",
  1309. "imgSize": "",
  1310. "textSize": ""
  1311. },
  1312. "listType": [
  1313. "id",
  1314. "title",
  1315. "imgurl",
  1316. "author",
  1317. "updated_at",
  1318. "introduce",
  1319. "islink",
  1320. "linkurl",
  1321. "copyfrom",
  1322. "cat_arr_id",
  1323. "catid",
  1324. "pinyin"
  1325. ],
  1326. },
  1327. {
  1328. "category_id": "",
  1329. "category_arr": "",
  1330. "name": "请选择导航..",
  1331. "level": "",
  1332. "imgSize": 0,
  1333. "textSize": 5,
  1334. "child": {
  1335. "id": "",
  1336. "imgSize": "",
  1337. "textSize": ""
  1338. },
  1339. "listType": [
  1340. "id",
  1341. "title",
  1342. "imgurl",
  1343. "author",
  1344. "updated_at",
  1345. "introduce",
  1346. "islink",
  1347. "linkurl",
  1348. "copyfrom",
  1349. "cat_arr_id",
  1350. "catid",
  1351. "pinyin"
  1352. ],
  1353. }
  1354. ]
  1355. },
  1356. ]
  1357. },
  1358. //选项卡-带热点新闻 end---------------------------------------->
  1359. // 单个图片通栏 start---------------------------------------->
  1360. newsAllPictureSector: {
  1361. "sectorName": "newsAllPictureSector",//板块名称
  1362. "componentList": [
  1363. {
  1364. "component_type": 1,
  1365. "component_style": 1,
  1366. "sort": 1,
  1367. "componentData": {
  1368. "category_id": "",
  1369. "category_arr": "",
  1370. "name": "请选择导航..",
  1371. "level": "",
  1372. "imgSize": 7,
  1373. "textSize": 0,
  1374. "child": {
  1375. "id": "",
  1376. "imgSize": "",
  1377. "textSize": ""
  1378. },
  1379. "listType": [
  1380. "id",
  1381. "title",
  1382. "imgurl",
  1383. "author",
  1384. "updated_at",
  1385. "introduce",
  1386. "islink",
  1387. "linkurl",
  1388. "copyfrom",
  1389. "cat_arr_id",
  1390. "catid",
  1391. "pinyin"
  1392. ],
  1393. },
  1394. },
  1395. ],
  1396. },
  1397. // 单个资讯通栏带标题 end---------------------------------------->
  1398. // 带标题带选项卡图文组合 start---------------------------------------->
  1399. newsTextTabsSector: {
  1400. "sectorName": "newsTextTabsSector",//板块名称
  1401. "componentList": [
  1402. {
  1403. "component_type": 1,
  1404. "component_style": 1,
  1405. "sort": 1,
  1406. "componentData": {
  1407. "category_id": "",
  1408. "category_arr": "",
  1409. "name": "请选择导航..",
  1410. "level": "",
  1411. "imgSize": 0,
  1412. "textSize": 6,
  1413. "child": {
  1414. "id": "",
  1415. "imgSize": "",
  1416. "textSize": ""
  1417. },
  1418. "listType": [
  1419. "id",
  1420. "title",
  1421. "imgurl",
  1422. "author",
  1423. "updated_at",
  1424. "introduce",
  1425. "islink",
  1426. "linkurl",
  1427. "copyfrom",
  1428. "cat_arr_id",
  1429. "catid",
  1430. "pinyin"
  1431. ],
  1432. }
  1433. },
  1434. {
  1435. "component_type": 1,
  1436. "component_style": 1,
  1437. "sort": 2,
  1438. "componentData": {
  1439. "category_id": "",
  1440. "category_arr": "",
  1441. "name": "请选择导航..",
  1442. "level": "",
  1443. "imgSize": 2,
  1444. "textSize": 3,
  1445. "child": {
  1446. "id": "",
  1447. "imgSize": "",
  1448. "textSize": ""
  1449. },
  1450. "listType": [
  1451. "id",
  1452. "title",
  1453. "imgurl",
  1454. "author",
  1455. "updated_at",
  1456. "introduce",
  1457. "islink",
  1458. "linkurl",
  1459. "copyfrom",
  1460. "cat_arr_id",
  1461. "catid",
  1462. "pinyin"
  1463. ],
  1464. }
  1465. },
  1466. {
  1467. "component_type": 1,//组件类型 1=新闻 2=广告 3=全局广告 4=选项卡
  1468. "component_style": 1,
  1469. "sort": 3,
  1470. "componentData": [
  1471. {
  1472. "category_id": "",
  1473. "category_arr": "",
  1474. "name": "请选择导航..",
  1475. "level": "",
  1476. "imgSize": 1,
  1477. "textSize": 0,
  1478. "child": {
  1479. "id": "",
  1480. "imgSize": "",
  1481. "textSize": ""
  1482. },
  1483. "listType": [
  1484. "id",
  1485. "title",
  1486. "imgurl",
  1487. "author",
  1488. "updated_at",
  1489. "introduce",
  1490. "islink",
  1491. "linkurl",
  1492. "copyfrom",
  1493. "cat_arr_id",
  1494. "catid",
  1495. "pinyin"
  1496. ],
  1497. },
  1498. {
  1499. "category_id": "",
  1500. "category_arr": "",
  1501. "name": "请选择导航..",
  1502. "level": "",
  1503. "imgSize": 1,
  1504. "textSize": 0,
  1505. "child": {
  1506. "id": "",
  1507. "imgSize": "",
  1508. "textSize": ""
  1509. },
  1510. "listType": [
  1511. "id",
  1512. "title",
  1513. "imgurl",
  1514. "author",
  1515. "updated_at",
  1516. "introduce",
  1517. "islink",
  1518. "linkurl",
  1519. "copyfrom",
  1520. "cat_arr_id",
  1521. "catid",
  1522. "pinyin"
  1523. ],
  1524. }
  1525. ]
  1526. },
  1527. ]
  1528. },
  1529. // 带标题带选项卡图文组合 end---------------------------------------->
  1530. // 皮肤6 选项卡图文组合通栏 start---------------------------------------->
  1531. TabsTextPhotoSector: {
  1532. "sectorName": "TabsTextPhotoSector",//板块名称
  1533. "componentList": [
  1534. {
  1535. "component_type": 1,
  1536. "component_style": 1,
  1537. "sort": 1,
  1538. "componentData": [
  1539. {
  1540. "category_id": "",
  1541. "category_arr": "",
  1542. "name": "请选择导航..",
  1543. "level": "",
  1544. "imgSize": 7,
  1545. "textSize": 8,
  1546. "child": {
  1547. "id": "",
  1548. "imgSize": "",
  1549. "textSize": ""
  1550. },
  1551. "listType": [
  1552. "id",
  1553. "title",
  1554. "imgurl",
  1555. "author",
  1556. "updated_at",
  1557. "introduce",
  1558. "islink",
  1559. "linkurl",
  1560. "copyfrom",
  1561. "cat_arr_id",
  1562. "catid",
  1563. "pinyin"
  1564. ],
  1565. },
  1566. {
  1567. "category_id": "",
  1568. "category_arr": "",
  1569. "name": "请选择导航..",
  1570. "level": "",
  1571. "imgSize": 7,
  1572. "textSize": 8,
  1573. "child": {
  1574. "id": "",
  1575. "imgSize": "",
  1576. "textSize": ""
  1577. },
  1578. "listType": [
  1579. "id",
  1580. "title",
  1581. "imgurl",
  1582. "author",
  1583. "updated_at",
  1584. "introduce",
  1585. "islink",
  1586. "linkurl",
  1587. "copyfrom",
  1588. "cat_arr_id",
  1589. "catid",
  1590. "pinyin"
  1591. ],
  1592. }
  1593. ]
  1594. },
  1595. ]
  1596. },
  1597. // 皮肤6 选项卡图文组合通栏 end---------------------------------------->
  1598. // 皮肤6 带标题的混合通栏 start---------------------------------------->
  1599. newsTitleTabsSector: {
  1600. "sectorName": "newsTitleTabsSector",//板块名称
  1601. "componentList": [
  1602. {
  1603. "component_type": 1,
  1604. "component_style": 1,
  1605. "sort": 1,
  1606. "componentData": [
  1607. {
  1608. "category_id": "",
  1609. "category_arr": "",
  1610. "name": "请选择导航..",
  1611. "level": "",
  1612. "imgSize": 4,
  1613. "textSize": 12,
  1614. "child": {
  1615. "id": "",
  1616. "imgSize": "",
  1617. "textSize": ""
  1618. },
  1619. "listType": [
  1620. "id",
  1621. "title",
  1622. "imgurl",
  1623. "author",
  1624. "updated_at",
  1625. "introduce",
  1626. "islink",
  1627. "linkurl",
  1628. "copyfrom",
  1629. "cat_arr_id",
  1630. "catid",
  1631. "pinyin"
  1632. ],
  1633. },
  1634. {
  1635. "category_id": "",
  1636. "category_arr": "",
  1637. "name": "请选择导航..",
  1638. "level": "",
  1639. "imgSize": 4,
  1640. "textSize": 12,
  1641. "child": {
  1642. "id": "",
  1643. "imgSize": "",
  1644. "textSize": ""
  1645. },
  1646. "listType": [
  1647. "id",
  1648. "title",
  1649. "imgurl",
  1650. "author",
  1651. "updated_at",
  1652. "introduce",
  1653. "islink",
  1654. "linkurl",
  1655. "copyfrom",
  1656. "cat_arr_id",
  1657. "catid",
  1658. "pinyin"
  1659. ],
  1660. }
  1661. ]
  1662. },
  1663. ]
  1664. },
  1665. // 皮肤6 带标题的混合通栏 end---------------------------------------->
  1666. // 皮肤6 选项卡图文组合通栏 start---------------------------------------->
  1667. TabsTextPhotoTwo: {
  1668. "sectorName": "TabsTextPhotoTwo",//板块名称
  1669. "componentList": [
  1670. {
  1671. "component_type": 1,
  1672. "component_style": 1,
  1673. "sort": 1,
  1674. "componentData": [
  1675. {
  1676. "category_id": "",
  1677. "category_arr": "",
  1678. "name": "请选择导航..",
  1679. "level": "",
  1680. "imgSize": 5,
  1681. "textSize": 12,
  1682. "child": {
  1683. "id": "",
  1684. "imgSize": "",
  1685. "textSize": ""
  1686. },
  1687. "listType": [
  1688. "id",
  1689. "title",
  1690. "imgurl",
  1691. "author",
  1692. "updated_at",
  1693. "introduce",
  1694. "islink",
  1695. "linkurl",
  1696. "copyfrom",
  1697. "cat_arr_id",
  1698. "catid",
  1699. "pinyin"
  1700. ],
  1701. },
  1702. {
  1703. "category_id": "",
  1704. "category_arr": "",
  1705. "name": "请选择导航..",
  1706. "level": "",
  1707. "imgSize": 5,
  1708. "textSize": 12,
  1709. "child": {
  1710. "id": "",
  1711. "imgSize": "",
  1712. "textSize": ""
  1713. },
  1714. "listType": [
  1715. "id",
  1716. "title",
  1717. "imgurl",
  1718. "author",
  1719. "updated_at",
  1720. "introduce",
  1721. "islink",
  1722. "linkurl",
  1723. "copyfrom",
  1724. "cat_arr_id",
  1725. "catid",
  1726. "pinyin"
  1727. ],
  1728. }
  1729. ]
  1730. },
  1731. ]
  1732. },
  1733. // 皮肤6 选项卡图文组合通栏 end---------------------------------------->
  1734. // 皮肤6 纯图片选项卡通栏 start---------------------------------------->
  1735. photoTabsSector: {
  1736. "sectorName": "photoTabsSector",//板块名称
  1737. "componentList": [
  1738. {
  1739. "component_type": 1,
  1740. "component_style": 1,
  1741. "sort": 1,
  1742. "componentData": [
  1743. {
  1744. "category_id": "",
  1745. "category_arr": "",
  1746. "name": "请选择导航..",
  1747. "level": "",
  1748. "imgSize": 5,
  1749. "textSize": 0,
  1750. "child": {
  1751. "id": "",
  1752. "imgSize": "",
  1753. "textSize": ""
  1754. },
  1755. "listType": [
  1756. "id",
  1757. "title",
  1758. "imgurl",
  1759. "author",
  1760. "updated_at",
  1761. "introduce",
  1762. "islink",
  1763. "linkurl",
  1764. "copyfrom",
  1765. "cat_arr_id",
  1766. "catid",
  1767. "pinyin"
  1768. ],
  1769. },
  1770. {
  1771. "category_id": "",
  1772. "category_arr": "",
  1773. "name": "请选择导航..",
  1774. "level": "",
  1775. "imgSize": 5,
  1776. "textSize": 0,
  1777. "child": {
  1778. "id": "",
  1779. "imgSize": "",
  1780. "textSize": ""
  1781. },
  1782. "listType": [
  1783. "id",
  1784. "title",
  1785. "imgurl",
  1786. "author",
  1787. "updated_at",
  1788. "introduce",
  1789. "islink",
  1790. "linkurl",
  1791. "copyfrom",
  1792. "cat_arr_id",
  1793. "catid",
  1794. "pinyin"
  1795. ],
  1796. }
  1797. ]
  1798. },
  1799. ]
  1800. },
  1801. // 皮肤6 纯图片选项卡通栏 end---------------------------------------->
  1802. //选项卡-新闻图文组合4-皮肤7 start- 热点关注--------------------------------------->
  1803. newsTextTabsImgSector: {
  1804. "sectorName": "newsTextTabsImgSector",//板块名称
  1805. "componentList": [
  1806. {
  1807. "component_type": 1,//组件类型
  1808. "component_style": 1,
  1809. "sort": 1,
  1810. "componentData":
  1811. {
  1812. "category_id": "",
  1813. "category_arr": "",
  1814. "name": "请选择导航..",
  1815. "level": "",
  1816. "imgSize": 0,
  1817. "textSize": 10,
  1818. "child": {
  1819. "id": "",
  1820. "imgSize": "",
  1821. "textSize": ""
  1822. },
  1823. "listType": [
  1824. "id",
  1825. "title",
  1826. "imgurl",
  1827. "author",
  1828. "updated_at",
  1829. "introduce",
  1830. "islink",
  1831. "linkurl",
  1832. "copyfrom",
  1833. "cat_arr_id",
  1834. "catid",
  1835. "pinyin"
  1836. ],
  1837. },
  1838. },
  1839. {
  1840. "component_type": 1,
  1841. "component_style": 1,
  1842. "sort": 2,
  1843. "componentData":
  1844. {
  1845. "category_id": "",
  1846. "category_arr": "",
  1847. "name": "请选择导航..",
  1848. "level": "",
  1849. "imgSize": 1,
  1850. "textSize": 11,
  1851. "child": {
  1852. "id": "",
  1853. "imgSize": "",
  1854. "textSize": ""
  1855. },
  1856. "listType": [
  1857. "id",
  1858. "title",
  1859. "imgurl",
  1860. "author",
  1861. "updated_at",
  1862. "introduce",
  1863. "islink",
  1864. "linkurl",
  1865. "copyfrom",
  1866. "cat_arr_id",
  1867. "catid",
  1868. "pinyin"
  1869. ],
  1870. },
  1871. },
  1872. {
  1873. //选项卡-皮肤7
  1874. "component_type": 4,
  1875. "component_style": 1,
  1876. "sort": 3,
  1877. "componentData": [
  1878. {
  1879. "category_id": "",
  1880. "category_arr": "",
  1881. "name": "请选择导航..",
  1882. "level": "",
  1883. "imgSize": 3,
  1884. "textSize": 10,
  1885. "child": {
  1886. "id": "",
  1887. "imgSize": "",
  1888. "textSize": ""
  1889. },
  1890. "listType": [
  1891. "id",
  1892. "title",
  1893. "imgurl",
  1894. "author",
  1895. "updated_at",
  1896. "introduce",
  1897. "islink",
  1898. "linkurl",
  1899. "copyfrom",
  1900. "cat_arr_id",
  1901. "catid",
  1902. "pinyin"
  1903. ],
  1904. },
  1905. {
  1906. "category_id": "",
  1907. "category_arr": "",
  1908. "name": "请选择导航..",
  1909. "level": "",
  1910. "imgSize": 3,
  1911. "textSize": 10,
  1912. "child": {
  1913. "id": "",
  1914. "imgSize": "",
  1915. "textSize": ""
  1916. },
  1917. "listType": [
  1918. "id",
  1919. "title",
  1920. "imgurl",
  1921. "author",
  1922. "updated_at",
  1923. "introduce",
  1924. "islink",
  1925. "linkurl",
  1926. "copyfrom",
  1927. "cat_arr_id",
  1928. "catid",
  1929. "pinyin"
  1930. ],
  1931. }
  1932. ]
  1933. },
  1934. {
  1935. "component_type": 1,
  1936. "component_style": 1,
  1937. "sort": 4,
  1938. "componentData":
  1939. {
  1940. "category_id": "",
  1941. "category_arr": "",
  1942. "name": "请选择导航..",
  1943. "level": "",
  1944. "imgSize": 4,
  1945. "textSize": 8,
  1946. "child": {
  1947. "id": "",
  1948. "imgSize": "",
  1949. "textSize": ""
  1950. },
  1951. "listType": [
  1952. "id",
  1953. "title",
  1954. "imgurl",
  1955. "author",
  1956. "updated_at",
  1957. "introduce",
  1958. "islink",
  1959. "linkurl",
  1960. "copyfrom",
  1961. "cat_arr_id",
  1962. "catid",
  1963. "pinyin"
  1964. ],
  1965. },
  1966. },
  1967. ]
  1968. },
  1969. }
  1970. },
  1971. methods: {
  1972. //添加模块
  1973. addModule(type, h, jsonData) {
  1974. let data = {
  1975. source: "click",//添加方式为点击
  1976. type: type,
  1977. h: h,
  1978. jsonData: jsonData
  1979. }
  1980. console.log(data);
  1981. this.$store.commit('template/addModule', data);
  1982. },
  1983. //拖拽开始
  1984. drag(type, h, jsonData) {
  1985. let data = {
  1986. type: type,
  1987. h: h,
  1988. jsonData: jsonData
  1989. }
  1990. this.$store.commit('template/drag', data);
  1991. },
  1992. //拖拽结束
  1993. dragend(type, h, jsonData) {
  1994. let data = {
  1995. type: type,
  1996. h: h,
  1997. jsonData: jsonData
  1998. }
  1999. this.$store.commit('template/dragend', data);
  2000. },
  2001. //设置组件预览状态
  2002. componentPreviewStatus(status, src) {
  2003. let setData = {
  2004. status: status,
  2005. img: src
  2006. }
  2007. this.$store.commit('template/setComponentPreviewStatus', setData);
  2008. }
  2009. },
  2010. mounted() {
  2011. let data = {
  2012. template_id: this.$route.query.style,
  2013. page_type: 1//1=首页 2=分类页 3=列表页 4=详情页 5=搜索页 6=底部列表页 7=底部详情页
  2014. }
  2015. //获得本页的通栏数据
  2016. this.$store.dispatch('template/getAllSector', data)
  2017. }
  2018. }
  2019. </script>
  2020. <style scoped lang="less">
  2021. .sectorBox {
  2022. height: 100%;
  2023. .sectorItemBox {
  2024. box-sizing: border-box;
  2025. padding: 0 20px 40px 20px;
  2026. cursor: pointer;
  2027. .sectorItem {
  2028. border: 1px solid #333644;
  2029. padding: 10px;
  2030. border-radius: 8px;
  2031. &:hover {
  2032. background: #333644;
  2033. transform: scale(1.1);
  2034. transition: all 0.2s ease-in-out;
  2035. }
  2036. img {
  2037. display: block;
  2038. width: 100%;
  2039. min-height: 20px;
  2040. }
  2041. }
  2042. .sectorItemTitle {
  2043. color: #fff;
  2044. font-size: 14px;
  2045. padding: 10px 0 0 0;
  2046. text-align: center;
  2047. }
  2048. }
  2049. }
  2050. </style>