index.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611
  1. <template>
  2. <!-- 头部 -->
  3. <templateHead></templateHead>
  4. <!-- 菜单 -->
  5. <templateMenu></templateMenu>
  6. <!-- 内容 -->
  7. <div>
  8. <!--头条-->
  9. <templateHeadline :skinId="skinId" :templateData="testTemplateData"></templateHeadline>
  10. <!--轮播图-->
  11. <templateBanner :skinId="skinId" :templateData="testTemplateData"></templateBanner>
  12. <!--广告组件 丙丙网-->
  13. <templateAd :adTag="'bbzxw_index_1'" :skinId="skinId" :adData="adData"></templateAd>
  14. <!--广告组件 农民工-->
  15. <!-- <templateAd :adTag="'nmw_index_0001'" :skinId="skinId" :adData="adData"></templateAd> -->
  16. <!--静态外链通栏-->
  17. <templateStaticLink :skinId="skinId" :templateData="testTemplateData2"></templateStaticLink>
  18. <!--图文组合1-->
  19. <!-- <templateNewSector1 :skinId="skinId" :templateData="testTemplateData" :testData="testTemplateData3"></templateNewSector1> -->
  20. <templateNewSector1 :skinId="skinId" :templateData="testTemplateData"></templateNewSector1>
  21. <!--图文组合2-->
  22. <templateNewSector2 :skinId="skinId" :templateData="testTemplateData"></templateNewSector2>
  23. <!--图文组合3-->
  24. <templateNewSector3 :skinId="skinId" :templateData="testTemplateData"></templateNewSector3>
  25. <!--图文与广告组合 丙丙网-->
  26. <templateNewAndAd :skinId="skinId" :templateData="testTemplateData" :adData="adData" :adTag="'bbzxw_index_9'"></templateNewAndAd>
  27. <!--图文与广告组合 农民工-->
  28. <!-- <templateNewAndAd :skinId="skinId" :templateData="testTemplateData" :adData="adData" :adTag="'nmw_index_0003'"></templateNewAndAd> -->
  29. </div>
  30. <!-- 底部 -->
  31. <templateFoot></templateFoot>
  32. </template>
  33. <script setup>
  34. //0.加载全局模板组件 start---------------------------------------->
  35. //0.1 全局通栏
  36. import templateHead from '@/components/template/sector/head/1200x200/1.vue'
  37. import templateMenu from '@/components/template/sector/menu/1200x130/1.vue'
  38. import templateFoot from '@/components/template/sector/foot/1200x580/1.vue'
  39. //0.2 局部通栏
  40. //0.2.1 广告组件
  41. import templateAd from '@/components/template/sector/body/ad/1200x90/1.vue'
  42. //0.2.2 网站头条
  43. import templateHeadline from '@/components/template/sector/body/index/headLine/1200x140/1.vue'
  44. //0.2.3 轮播图
  45. import templateBanner from '@/components/template/sector/body/index/banner/1200x410/1.vue'
  46. //0.2.4 静态外链通栏
  47. import templateStaticLink from '@/components/template/sector/body/index/link/1200x230/1.vue'
  48. //0.2.5 图文组合1
  49. import templateNewSector1 from '@/components/template/sector/body/index/list/1200x470/1.vue'
  50. //0.2.6 图文组合2
  51. import templateNewSector2 from '@/components/template/sector/body/index/list/1200x470/2.vue'
  52. //0.2.7 图文组合3
  53. import templateNewSector3 from '@/components/template/sector/body/index/list/1200x980/1.vue'
  54. //0.2.8 图文与广告组合
  55. import templateNewAndAd from '@/components/template/sector/body/index/list/1200x480/1.vue'
  56. //0.加载全局模板组件 end---------------------------------------->
  57. //1.获得基本信息单元 start---------------------------------------->
  58. //1.1获得页面依赖
  59. import { ref, onMounted } from 'vue';
  60. import { ElMessage } from 'element-plus';
  61. //1.2获得pinia源
  62. import { useTemplateBaseStore } from '@/stores/templateBase'
  63. const templateBaseStore = useTemplateBaseStore()
  64. //1.3获得该页的皮肤id - 在每个组件中也是同样的获得方法
  65. const skinId = ref("")
  66. const websiteId = ref("")
  67. //1.4获得站点基本信息
  68. const responseStatus = await requestDataPromise('/web/getWebsiteAllinfo', {
  69. method: 'GET',
  70. query: {
  71. 'link_textnum':24,
  72. 'link_imgnum':18,
  73. 'link_footnum':4
  74. },
  75. });
  76. if (responseStatus.code == 200) {
  77. //0.3.1设置站点基本信息
  78. templateBaseStore.setWebSiteInfo(responseStatus.data)
  79. websiteId.value = responseStatus.data.website_head.id;//获得网站id
  80. //0.3.2设置皮肤id
  81. skinId.value = templateBaseStore.webSiteInfo.website_foot.foot_info.template_id;
  82. console.log("当前的网站id:"+responseStatus.data.website_head.id)
  83. //0.3.3设置seo信息
  84. let seoTitle = templateBaseStore.webSiteInfo.website_head.title;
  85. let seoDescription = templateBaseStore.webSiteInfo.website_head.description;
  86. let seoKeywords = templateBaseStore.webSiteInfo.website_head.keywords;
  87. let seoSuffix = templateBaseStore.webSiteInfo.website_head.suffix;
  88. let seoName = templateBaseStore.webSiteInfo.website_head.website_name;
  89. useSeoMeta({
  90. title: seoTitle + "_" + seoSuffix,
  91. meta: [
  92. { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
  93. { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix, tagPriority: 10 }
  94. ]
  95. });
  96. }
  97. //1.5获得广告池
  98. const adData = ref([]);
  99. const adResponseStatus = await requestDataPromise('/web/getWebsiteAdvertisement', {
  100. method: 'GET',
  101. query: {},
  102. });
  103. if (adResponseStatus.code == 200) {
  104. adData.value = adResponseStatus.data;
  105. templateBaseStore.setAdList(adResponseStatus.data)
  106. }
  107. //1.获得基本信息单元 end---------------------------------------->
  108. //2.页面数据 start---------------------------------------->
  109. //2.1获得页面数据
  110. const responsePageData = await requestDataPromise('/client/indexData', {
  111. method: 'POST',
  112. body: {
  113. 'website_id':websiteId.value,
  114. 'getpage':'index'//获得首页数据
  115. },
  116. });
  117. const testTemplateData3 = responsePageData.data.template.index[5];
  118. //console.log(testTemplateData3)
  119. console.log(responsePageData)
  120. //2.0 测试数据 后期移除
  121. const testTemplateData = {
  122. "sectorName": "text",
  123. "componentList": [
  124. {
  125. "component_type": 1,//1=新闻 2=广告
  126. "component_style": 1,//样式
  127. "sort": 1,//组件位置
  128. "data": {
  129. "alias":"一级导航名称",
  130. "category_id": 11,
  131. "pinyin": "nongyeshengchan",
  132. "children_count": 1,//有多少个子集 用于跳转到频道页
  133. "text": [
  134. {
  135. "id": 2863,
  136. "title": "1以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  137. "islink": 0,
  138. "pinyin": "nongminxinnongcun/nongcunxinfangshe"
  139. },
  140. {
  141. "id": 50129,
  142. "title": "2以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  143. "islink": 0,
  144. "pinyin": "sannongzixun"
  145. },
  146. {
  147. "id": 50129,
  148. "title": "3以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  149. "islink": 0,
  150. "pinyin": "sannongzixun"
  151. },
  152. {
  153. "id": 2862,
  154. "title": "4以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  155. "islink": 0,
  156. "pinyin": "sannongzixun/buweidongtai"
  157. },
  158. {
  159. "id": 50126,
  160. "title": "5以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  161. "islink": 0,
  162. "pinyin": "sannongzixun"
  163. },
  164. {
  165. "id": 3976,
  166. "title": "6以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  167. "islink": 0,
  168. "pinyin": "sannongzixun"
  169. },
  170. {
  171. "id": 50189,
  172. "title": "7以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  173. "islink": 0,
  174. "pinyin": "nongminhezuoshe"
  175. },
  176. {
  177. "id": 50190,
  178. "title": "8以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  179. "islink": 0,
  180. "pinyin": "nongminhezuoshe"
  181. }
  182. ],
  183. "img": [
  184. {
  185. "id": 50129,
  186. "title": "1以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  187. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  188. "author": "linyuting123",
  189. "updated_at": "2025-05-30 13:50:54",
  190. "introduce": "以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  191. "islink": 0,
  192. "linkurl": "",
  193. "copyfrom": "以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  194. "cat_arr_id": "[1,201]",
  195. "catid": 201,
  196. "level": "[1,2,3]",
  197. "pinyin": "sannongzixun"
  198. },
  199. {
  200. "id": 50129,
  201. "title": "2以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  202. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  203. "author": "佚名",
  204. "updated_at": "2025-05-30 13:50:46",
  205. "introduce": "描述",
  206. "islink": 0,
  207. "linkurl": "",
  208. "copyfrom": "本网",
  209. "cat_arr_id": "[2]",
  210. "catid": 2,
  211. "level": "[2,3]",
  212. "pinyin": "sannongzixun"
  213. },
  214. {
  215. "id": 50129,
  216. "title": "3以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  217. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  218. "author": "佚名",
  219. "updated_at": "2025-05-30 13:50:45",
  220. "introduce": "描述",
  221. "islink": 0,
  222. "linkurl": "",
  223. "copyfrom": "本网",
  224. "cat_arr_id": "[1]",
  225. "catid": 1,
  226. "level": "[2]",
  227. "pinyin": "sannongzixun"
  228. },
  229. {
  230. "id": 50129,
  231. "title": "4以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  232. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  233. "author": "佚名",
  234. "updated_at": "2025-05-30 13:50:44",
  235. "introduce": "描述",
  236. "islink": 0,
  237. "linkurl": "",
  238. "copyfrom": "本网",
  239. "cat_arr_id": "[11]",
  240. "catid": 11,
  241. "level": "[2]",
  242. "pinyin": "xinnongcun"
  243. },
  244. {
  245. "id": 50129,
  246. "title": "5以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  247. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  248. "author": "佚名",
  249. "updated_at": "2025-05-30 13:50:43",
  250. "introduce": "描述",
  251. "islink": 0,
  252. "linkurl": "",
  253. "copyfrom": "本网",
  254. "cat_arr_id": "[14,240]",
  255. "catid": 240,
  256. "level": "[2,3]",
  257. "pinyin": "sannongzixun"
  258. },
  259. {
  260. "id": 50129,
  261. "title": "6以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙6",
  262. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  263. "author": "佚名",
  264. "updated_at": "2025-04-16 11:04:29",
  265. "introduce": "描述",
  266. "islink": 0,
  267. "linkurl": "",
  268. "copyfrom": "本网",
  269. "cat_arr_id": null,
  270. "catid": 36,
  271. "level": "[2]",
  272. "pinyin": "sannongzixun"
  273. }
  274. ]
  275. }
  276. },
  277. {
  278. "component_type": 1,//1=新闻 2=广告
  279. "component_style": 1,//样式
  280. "sort": 1,//组件位置
  281. "data": {
  282. "alias":"一级导航名称2",
  283. "category_id": 11,
  284. "children_count": 0,//有多少个子集 用于跳转到频道页
  285. "pinyin": "sannongzixun/zhengcefagui",
  286. "text": [
  287. {
  288. "id": 2863,
  289. "title": "1以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  290. "islink": 0,
  291. "pinyin": "nongminxinnongcun/nongcunxinfangshe"
  292. },
  293. {
  294. "id": 50129,
  295. "title": "2以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  296. "islink": 0,
  297. "pinyin": "sannongzixun"
  298. },
  299. {
  300. "id": 50129,
  301. "title": "3以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  302. "islink": 0,
  303. "pinyin": "sannongzixun"
  304. },
  305. {
  306. "id": 2862,
  307. "title": "4以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  308. "islink": 0,
  309. "pinyin": "sannongzixun/buweidongtai"
  310. },
  311. {
  312. "id": 50126,
  313. "title": "5以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  314. "islink": 0,
  315. "pinyin": "sannongzixun"
  316. },
  317. {
  318. "id": 3976,
  319. "title": "6以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  320. "islink": 0,
  321. "pinyin": "sannongzixun"
  322. },
  323. {
  324. "id": 50189,
  325. "title": "7以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  326. "islink": 0,
  327. "pinyin": "nongminhezuoshe"
  328. },
  329. {
  330. "id": 50190,
  331. "title": "8以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  332. "islink": 0,
  333. "pinyin": "nongminhezuoshe"
  334. }
  335. ],
  336. "img": [
  337. {
  338. "id": 50129,
  339. "title": "1以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  340. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  341. "author": "linyuting123",
  342. "updated_at": "2025-05-30 13:50:54",
  343. "introduce": "以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  344. "islink": 0,
  345. "linkurl": "",
  346. "copyfrom": "以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  347. "cat_arr_id": "[1,201]",
  348. "catid": 201,
  349. "level": "[1,2,3]",
  350. "pinyin": "sannongzixun"
  351. },
  352. {
  353. "id": 50129,
  354. "title": "2以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  355. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  356. "author": "佚名",
  357. "updated_at": "2025-05-30 13:50:46",
  358. "introduce": "描述",
  359. "islink": 0,
  360. "linkurl": "",
  361. "copyfrom": "本网",
  362. "cat_arr_id": "[2]",
  363. "catid": 2,
  364. "level": "[2,3]",
  365. "pinyin": "sannongzixun"
  366. },
  367. {
  368. "id": 50129,
  369. "title": "3以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  370. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  371. "author": "佚名",
  372. "updated_at": "2025-05-30 13:50:45",
  373. "introduce": "描述",
  374. "islink": 0,
  375. "linkurl": "",
  376. "copyfrom": "本网",
  377. "cat_arr_id": "[1]",
  378. "catid": 1,
  379. "level": "[2]",
  380. "pinyin": "sannongzixun"
  381. },
  382. {
  383. "id": 50129,
  384. "title": "4以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  385. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  386. "author": "佚名",
  387. "updated_at": "2025-05-30 13:50:44",
  388. "introduce": "描述",
  389. "islink": 0,
  390. "linkurl": "",
  391. "copyfrom": "本网",
  392. "cat_arr_id": "[11]",
  393. "catid": 11,
  394. "level": "[2]",
  395. "pinyin": "xinnongcun"
  396. },
  397. {
  398. "id": 50129,
  399. "title": "5以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  400. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  401. "author": "佚名",
  402. "updated_at": "2025-05-30 13:50:43",
  403. "introduce": "描述",
  404. "islink": 0,
  405. "linkurl": "",
  406. "copyfrom": "本网",
  407. "cat_arr_id": "[14,240]",
  408. "catid": 240,
  409. "level": "[2,3]",
  410. "pinyin": "sannongzixun"
  411. },
  412. {
  413. "id": 50129,
  414. "title": "6以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙6",
  415. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  416. "author": "佚名",
  417. "updated_at": "2025-04-16 11:04:29",
  418. "introduce": "描述",
  419. "islink": 0,
  420. "linkurl": "",
  421. "copyfrom": "本网",
  422. "cat_arr_id": null,
  423. "catid": 36,
  424. "level": "[2]",
  425. "pinyin": "sannongzixun"
  426. }
  427. ]
  428. }
  429. },
  430. {
  431. "component_type": 1,//1=新闻 2=广告
  432. "component_style": 1,//样式
  433. "sort": 3,//组件位置
  434. "data": {
  435. "alias":"一级导航名称3",
  436. "category_id": 11,
  437. "children_count": 0,//有多少个子集 用于跳转到频道页
  438. "pinyin": "sannongzixun/zhengcefagui",
  439. "text": [
  440. {
  441. "id": 2863,
  442. "title": "1以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  443. "islink": 0,
  444. "pinyin": "nongminxinnongcun/nongcunxinfangshe"
  445. },
  446. {
  447. "id": 50129,
  448. "title": "2以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  449. "islink": 0,
  450. "pinyin": "sannongzixun"
  451. },
  452. {
  453. "id": 50129,
  454. "title": "3以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  455. "islink": 0,
  456. "pinyin": "sannongzixun"
  457. },
  458. {
  459. "id": 2862,
  460. "title": "4以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  461. "islink": 0,
  462. "pinyin": "sannongzixun/buweidongtai"
  463. },
  464. {
  465. "id": 50126,
  466. "title": "5以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  467. "islink": 0,
  468. "pinyin": "sannongzixun"
  469. },
  470. {
  471. "id": 3976,
  472. "title": "6以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  473. "islink": 0,
  474. "pinyin": "sannongzixun"
  475. },
  476. {
  477. "id": 50189,
  478. "title": "7以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  479. "islink": 0,
  480. "pinyin": "nongminhezuoshe"
  481. },
  482. {
  483. "id": 50190,
  484. "title": "8以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  485. "islink": 0,
  486. "pinyin": "nongminhezuoshe"
  487. }
  488. ],
  489. "img": [
  490. {
  491. "id": 50129,
  492. "title": "1以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  493. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  494. "author": "linyuting123",
  495. "updated_at": "2025-05-30 13:50:54",
  496. "introduce": "以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  497. "islink": 0,
  498. "linkurl": "",
  499. "copyfrom": "以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  500. "cat_arr_id": "[1,201]",
  501. "catid": 201,
  502. "level": "[1,2,3]",
  503. "pinyin": "sannongzixun"
  504. },
  505. {
  506. "id": 50129,
  507. "title": "2以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  508. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  509. "author": "佚名",
  510. "updated_at": "2025-05-30 13:50:46",
  511. "introduce": "描述",
  512. "islink": 0,
  513. "linkurl": "",
  514. "copyfrom": "本网",
  515. "cat_arr_id": "[2]",
  516. "catid": 2,
  517. "level": "[2,3]",
  518. "pinyin": "sannongzixun"
  519. },
  520. {
  521. "id": 50129,
  522. "title": "3以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  523. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  524. "author": "佚名",
  525. "updated_at": "2025-05-30 13:50:45",
  526. "introduce": "描述",
  527. "islink": 0,
  528. "linkurl": "",
  529. "copyfrom": "本网",
  530. "cat_arr_id": "[1]",
  531. "catid": 1,
  532. "level": "[2]",
  533. "pinyin": "sannongzixun"
  534. },
  535. {
  536. "id": 50129,
  537. "title": "4以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  538. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  539. "author": "佚名",
  540. "updated_at": "2025-05-30 13:50:44",
  541. "introduce": "描述",
  542. "islink": 0,
  543. "linkurl": "",
  544. "copyfrom": "本网",
  545. "cat_arr_id": "[11]",
  546. "catid": 11,
  547. "level": "[2]",
  548. "pinyin": "xinnongcun"
  549. },
  550. {
  551. "id": 50129,
  552. "title": "5以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙",
  553. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  554. "author": "佚名",
  555. "updated_at": "2025-05-30 13:50:43",
  556. "introduce": "描述",
  557. "islink": 0,
  558. "linkurl": "",
  559. "copyfrom": "本网",
  560. "cat_arr_id": "[14,240]",
  561. "catid": 240,
  562. "level": "[2,3]",
  563. "pinyin": "sannongzixun"
  564. },
  565. {
  566. "id": 50129,
  567. "title": "6以生态为内核推动文旅发展海南深山黎寨找到乡村振兴金钥匙6",
  568. "imgurl": "http://img.bjzxtw.org.cn/dev/image/jpeg/20250220/1740044079754901.png",
  569. "author": "佚名",
  570. "updated_at": "2025-04-16 11:04:29",
  571. "introduce": "描述",
  572. "islink": 0,
  573. "linkurl": "",
  574. "copyfrom": "本网",
  575. "cat_arr_id": null,
  576. "catid": 36,
  577. "level": "[2]",
  578. "pinyin": "sannongzixun"
  579. }
  580. ]
  581. }
  582. },
  583. ],
  584. "ad": {
  585. "ad_tag": "nmw_index_0003"
  586. }
  587. }
  588. //静态链接测试数据
  589. const testTemplateData2 = {
  590. "sectorName": "linkSector",
  591. "componentList": [
  592. {
  593. "component_type": 3,
  594. "component_style": 1,
  595. "sort": 1,
  596. "componentData": {}
  597. }
  598. ],
  599. "sort": 4
  600. }
  601. //2.页面数据 end---------------------------------------->
  602. </script>
  603. <style lang="less" scoped>
  604. @import url('@/assets/css/index.less');
  605. </style>