|
@@ -136,53 +136,60 @@
|
|
|
<div class="foot">
|
|
|
<div class="head_nav">
|
|
|
<div class="nav_list">
|
|
|
- <a href="">
|
|
|
- <img src="../public/index/icon01.png" alt="招商引资">
|
|
|
- <span>招商引资</span>
|
|
|
- </a>
|
|
|
+ <NuxtLink :href="getLinkPath1(boxData2menu1[0])" v-if="boxData2menu1[0]"
|
|
|
+ :title="boxData2menu1[0].alias">
|
|
|
+ <img src="../public/index/icon01.png">
|
|
|
+ <span>{{ boxData2menu1[0].alias }}</span>
|
|
|
+ </NuxtLink>
|
|
|
</div>
|
|
|
<div class="nav_list">
|
|
|
- <a href="">
|
|
|
- <img src="../public/index/icon02.png" alt="产品营销">
|
|
|
- <span>产品营销</span>
|
|
|
- </a>
|
|
|
+ <NuxtLink :href="getLinkPath1(boxData2menu1[1])" v-if="boxData2menu1[1]"
|
|
|
+ :title="boxData2menu1[1].alias">
|
|
|
+ <img src="../public/index/icon02.png">
|
|
|
+ <span>{{ boxData2menu1[1].alias }}</span>
|
|
|
+ </NuxtLink>
|
|
|
</div>
|
|
|
<div class="nav_list">
|
|
|
- <a href="">
|
|
|
- <img src="../public/index/icon03.png" alt="项目推介">
|
|
|
- <span>项目推介</span>
|
|
|
- </a>
|
|
|
+ <NuxtLink :href="getLinkPath1(boxData2menu1[2])" v-if="boxData2menu1[2]"
|
|
|
+ :title="boxData2menu1[2].alias">
|
|
|
+ <img src="../public/index/icon03.png">
|
|
|
+ <span>{{ boxData2menu1[2].alias }}</span>
|
|
|
+ </NuxtLink>
|
|
|
</div>
|
|
|
-
|
|
|
<div class="nav_list">
|
|
|
- <a href="">
|
|
|
- <img src="../public/index/icon04.png" alt="打造品牌">
|
|
|
- <span>打造品牌</span>
|
|
|
- </a>
|
|
|
+ <NuxtLink :href="getLinkPath1(boxData2menu1[3])" v-if="boxData2menu1[3]"
|
|
|
+ :title="boxData2menu1[3].alias">
|
|
|
+ <img src="../public/index/icon04.png">
|
|
|
+ <span>{{ boxData2menu1[3].alias }}</span>
|
|
|
+ </NuxtLink>
|
|
|
</div>
|
|
|
<div class="nav_list">
|
|
|
- <a href="">
|
|
|
- <img src="../public/index/icon05.png" alt="策划服务">
|
|
|
- <span>策划服务</span>
|
|
|
- </a>
|
|
|
+ <NuxtLink :href="getLinkPath1(boxData2menu1[4])" v-if="boxData2menu1[4]"
|
|
|
+ :title="boxData2menu1[4].alias">
|
|
|
+ <img src="../public/index/icon05.png">
|
|
|
+ <span>{{ boxData2menu1[4].alias }}</span>
|
|
|
+ </NuxtLink>
|
|
|
</div>
|
|
|
<div class="nav_list">
|
|
|
- <a href="">
|
|
|
- <img src="../public/index/icon06.png" alt="认证服务">
|
|
|
- <span>认证服务</span>
|
|
|
- </a>
|
|
|
+ <NuxtLink :href="getLinkPath1(boxData2menu1[5])" v-if="boxData2menu1[5]"
|
|
|
+ :title="boxData2menu1[5].alias">
|
|
|
+ <img src="../public/index/icon06.png">
|
|
|
+ <span>{{ boxData2menu1[5].alias }}</span>
|
|
|
+ </NuxtLink>
|
|
|
</div>
|
|
|
<div class="nav_list">
|
|
|
- <a href="">
|
|
|
- <img src="../public/index/icon07.png" alt="培训服务">
|
|
|
- <span>培训服务</span>
|
|
|
- </a>
|
|
|
+ <NuxtLink :href="getLinkPath1(boxData2menu1[6])" v-if="boxData2menu1[6]"
|
|
|
+ :title="boxData2menu1[6].alias">
|
|
|
+ <img src="../public/index/icon07.png">
|
|
|
+ <span>{{ boxData2menu1[6].alias }}</span>
|
|
|
+ </NuxtLink>
|
|
|
</div>
|
|
|
<div class="nav_list">
|
|
|
- <a href="">
|
|
|
- <img src="../public/index/icon08.png" alt="信息服务">
|
|
|
- <span>信息服务</span>
|
|
|
- </a>
|
|
|
+ <NuxtLink :href="getLinkPath1(boxData2menu1[7])" v-if="boxData2menu1[7]"
|
|
|
+ :title="boxData2menu1[7].alias">
|
|
|
+ <img src="../public/index/icon08.png">
|
|
|
+ <span>{{ boxData2menu1[7].alias }}</span>
|
|
|
+ </NuxtLink>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="foot_nav">
|
|
@@ -279,12 +286,14 @@
|
|
|
</h2>
|
|
|
</div>
|
|
|
<div class="part1_right_content" v-if="tabsData1 == 1">
|
|
|
- <div class="part1_right_content_top" v-for="(item, index) in boxData5" :key="index">
|
|
|
- <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
|
|
|
- :target="item.islink == 1 ? '_blank' : '_self'">
|
|
|
- <img :src="item.imgurl" alt="">
|
|
|
- <span class="content_top_title2">{{ item.title }}</span>
|
|
|
- </NuxtLink>
|
|
|
+ <div class="part1_top_111">
|
|
|
+ <div class="part1_right_content_top" v-for="(item, index) in boxData5" :key="index">
|
|
|
+ <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
|
|
|
+ :target="item.islink == 1 ? '_blank' : '_self'">
|
|
|
+ <img :src="item.imgurl" alt="">
|
|
|
+ <span class="content_top_title2">{{ item.title }}</span>
|
|
|
+ </NuxtLink>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<ul class="part1_right_content_bottom">
|
|
|
<li class="content_bottom_list" v-for="(item, index) in boxData5data1" :key="index">
|
|
@@ -299,12 +308,14 @@
|
|
|
</ul>
|
|
|
</div>
|
|
|
<div class="part1_right_content" v-if="tabsData1 == 2">
|
|
|
- <div class="part1_right_content_top" v-for="(item, index) in boxData6" :key="index">
|
|
|
- <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
|
|
|
- :target="item.islink == 1 ? '_blank' : '_self'">
|
|
|
- <img :src="item.imgurl" alt="">
|
|
|
- <span class="content_top_title2">{{ item.title }}</span>
|
|
|
- </NuxtLink>
|
|
|
+ <div class="part1_top_111">
|
|
|
+ <div class="part1_right_content_top" v-for="(item, index) in boxData6" :key="index">
|
|
|
+ <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
|
|
|
+ :target="item.islink == 1 ? '_blank' : '_self'">
|
|
|
+ <img :src="item.imgurl" alt="">
|
|
|
+ <span class="content_top_title2">{{ item.title }}</span>
|
|
|
+ </NuxtLink>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<ul class="part1_right_content_bottom">
|
|
|
<li class="content_bottom_list" v-for="(item, index) in boxData6data1" :key="index">
|
|
@@ -319,12 +330,14 @@
|
|
|
</ul>
|
|
|
</div>
|
|
|
<div class="part1_right_content" v-if="tabsData1 == 3">
|
|
|
- <div class="part1_right_content_top" v-for="(item, index) in boxData7" :key="index">
|
|
|
- <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
|
|
|
- :target="item.islink == 1 ? '_blank' : '_self'">
|
|
|
- <img :src="item.imgurl" alt="">
|
|
|
- <span class="content_top_title2">{{ item.title }}</span>
|
|
|
- </NuxtLink>
|
|
|
+ <div class="part1_top_111">
|
|
|
+ <div class="part1_right_content_top" v-for="(item, index) in boxData7" :key="index">
|
|
|
+ <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
|
|
|
+ :target="item.islink == 1 ? '_blank' : '_self'">
|
|
|
+ <img :src="item.imgurl" alt="">
|
|
|
+ <span class="content_top_title2">{{ item.title }}</span>
|
|
|
+ </NuxtLink>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<ul class="part1_right_content_bottom">
|
|
|
<li class="content_bottom_list" v-for="(item, index) in boxData7data1" :key="index">
|
|
@@ -424,12 +437,14 @@
|
|
|
</h2>
|
|
|
</div>
|
|
|
<div class="part2_right_content" v-if="tabsData2 == 1">
|
|
|
- <div class="part2_right_content_top" v-for="(item, index) in boxData9" :key="index">
|
|
|
- <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
|
|
|
- :target="item.islink == 1 ? '_blank' : '_self'">
|
|
|
- <img :src="item.imgurl" :alt="item.title">
|
|
|
- <span class="content_top_title22">{{ item.title }}</span>
|
|
|
- </NuxtLink>
|
|
|
+ <div class="part2_top_1111">
|
|
|
+ <div class="part2_right_content_top" v-for="(item, index) in boxData9" :key="index">
|
|
|
+ <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
|
|
|
+ :target="item.islink == 1 ? '_blank' : '_self'">
|
|
|
+ <img :src="item.imgurl" :alt="item.title">
|
|
|
+ <span class="content_top_title22">{{ item.title }}</span>
|
|
|
+ </NuxtLink>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<ul class="part2_right_content_bottom">
|
|
|
<li class="content_bottom_list" v-for="(item, index) in boxData9data1" :key="index">
|
|
@@ -444,12 +459,14 @@
|
|
|
</ul>
|
|
|
</div>
|
|
|
<div class="part2_right_content" v-if="tabsData2 == 2">
|
|
|
- <div class="part2_right_content_top" v-for="(item, index) in boxData10" :key="index">
|
|
|
- <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
|
|
|
- :target="item.islink == 1 ? '_blank' : '_self'">
|
|
|
- <img :src="item.imgurl" :alt="item.title">
|
|
|
- <span class="content_top_title22">{{ item.title }}</span>
|
|
|
- </NuxtLink>
|
|
|
+ <div class="part2_top_1111">
|
|
|
+ <div class="part2_right_content_top" v-for="(item, index) in boxData10" :key="index">
|
|
|
+ <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
|
|
|
+ :target="item.islink == 1 ? '_blank' : '_self'">
|
|
|
+ <img :src="item.imgurl" :alt="item.title">
|
|
|
+ <span class="content_top_title22">{{ item.title }}</span>
|
|
|
+ </NuxtLink>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<ul class="part2_right_content_bottom">
|
|
|
<li class="content_bottom_list" v-for="(item, index) in boxData10data1" :key="index">
|
|
@@ -464,12 +481,14 @@
|
|
|
</ul>
|
|
|
</div>
|
|
|
<div class="part2_right_content" v-if="tabsData2 == 3">
|
|
|
- <div class="part2_right_content_top" v-for="(item, index) in boxData11" :key="index">
|
|
|
- <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
|
|
|
- :target="item.islink == 1 ? '_blank' : '_self'">
|
|
|
- <img :src="item.imgurl" :alt="item.title">
|
|
|
- <span class="content_top_title22">{{ item.title }}</span>
|
|
|
- </NuxtLink>
|
|
|
+ <div class="part2_top_1111">
|
|
|
+ <div class="part2_right_content_top" v-for="(item, index) in boxData11" :key="index">
|
|
|
+ <NuxtLink :href="getLinkPathDetail(item)" :title="item.title"
|
|
|
+ :target="item.islink == 1 ? '_blank' : '_self'">
|
|
|
+ <img :src="item.imgurl" :alt="item.title">
|
|
|
+ <span class="content_top_title22">{{ item.title }}</span>
|
|
|
+ </NuxtLink>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<ul class="part2_right_content_bottom">
|
|
|
<li class="content_bottom_list" v-for="(item, index) in boxData11data1" :key="index">
|
|
@@ -566,7 +585,7 @@
|
|
|
<div class="photo">
|
|
|
<img src="../public/index/fw02.png" alt="">
|
|
|
</div>
|
|
|
- <span class="part3_right_content_list">中国乡镇查询</span>
|
|
|
+ <span class="part3_right_content_list">行政村庄查询</span>
|
|
|
</NuxtLink>
|
|
|
</li>
|
|
|
<li class="content_list">
|
|
@@ -574,7 +593,7 @@
|
|
|
<div class="photo">
|
|
|
<img src="../public/index/fw03.png" alt="">
|
|
|
</div>
|
|
|
- <span class="part3_right_content_list">中国乡镇查询</span>
|
|
|
+ <span class="part3_right_content_list">乡村建站服务</span>
|
|
|
</NuxtLink>
|
|
|
</li>
|
|
|
<li class="content_list">
|
|
@@ -582,7 +601,7 @@
|
|
|
<div class="photo">
|
|
|
<img src="../public/index/fw04.png" alt="">
|
|
|
</div>
|
|
|
- <span class="part3_right_content_list">中国乡镇查询</span>
|
|
|
+ <span class="part3_right_content_list">信息发布服务</span>
|
|
|
</NuxtLink>
|
|
|
</li>
|
|
|
</ul>
|
|
@@ -649,6 +668,7 @@
|
|
|
<!-- 广告位 4 -->
|
|
|
<HomeAdvertising :imgurl="adImg4"></HomeAdvertising>
|
|
|
|
|
|
+ <!-- 第五部分 -->
|
|
|
<div class="part5">
|
|
|
<div class="inner">
|
|
|
<div class="part5_left">
|
|
@@ -934,10 +954,12 @@
|
|
|
<div class="adBox1" v-if="adImg5">
|
|
|
<a href="http://nzgxw.org.cn/" v-if="adImg5.image_url == null" target="_blank"
|
|
|
:title="adImg5.introduce">
|
|
|
- <img :src="adImg5.thumb" :title="adImg5.introduce" :id="adImg5.ad_tag" data-tag="adImg5.ad_tag">
|
|
|
+ <img :src="adImg5.thumb" :title="adImg5.introduce" :id="adImg5.ad_tag"
|
|
|
+ data-tag="adImg5.ad_tag">
|
|
|
</a>
|
|
|
<a :href="adImg5.image_url" :title="adImg5.introduce" v-else>
|
|
|
- <img :src="adImg5.image_src" :alt="adImg5.introduce" :id="adImg5.ad_tag" data-tag="adImg5.ad_tag">
|
|
|
+ <img :src="adImg5.image_src" :alt="adImg5.introduce" :id="adImg5.ad_tag"
|
|
|
+ data-tag="adImg5.ad_tag">
|
|
|
</a>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -948,71 +970,163 @@
|
|
|
<div class="part6">
|
|
|
<div class="inner">
|
|
|
<div class="part6_left">
|
|
|
+ <!-- 乡村商城 -->
|
|
|
<div class="part6_left_content1">
|
|
|
<h2 class="part6_left_content_title">
|
|
|
- <img src="../public/index/xcsc.png" alt="乡村商城">
|
|
|
- 乡村商城
|
|
|
+ <NuxtLink class="active" v-if="pageData[20].cid" href="/" :title="pageData[20].alias">
|
|
|
+ <img src="../public/index/xcsc.png" alt="乡村商城">
|
|
|
+ {{ pageData[20].alias }}
|
|
|
+ </NuxtLink>
|
|
|
</h2>
|
|
|
<ul class="part6_left_content111">
|
|
|
- <li class="part6_left_content_list" v-for="item in 4">
|
|
|
+ <li class="part6_left_content_list">
|
|
|
+ <span class="jiantou">></span>
|
|
|
+ <NuxtLink href="/" v-for="(item, index) in boxData21menu1" :key="index"
|
|
|
+ :title="item.alias">
|
|
|
+ <span class="fenlei">
|
|
|
+ {{ item.alias }}
|
|
|
+ </span>
|
|
|
+ </NuxtLink>
|
|
|
+ </li>
|
|
|
+ <li class="part6_left_content_list">
|
|
|
+ <span class="jiantou">></span>
|
|
|
+ <NuxtLink href="/" v-for="(item, index) in boxData21menu2" :key="index"
|
|
|
+ :title="item.alias">
|
|
|
+ <span class="fenlei">
|
|
|
+ {{ item.alias }}
|
|
|
+ </span>
|
|
|
+ </NuxtLink>
|
|
|
+ </li>
|
|
|
+ <li class="part6_left_content_list">
|
|
|
+ <span class="jiantou">></span>
|
|
|
+ <NuxtLink href="/" v-for="(item, index) in boxData21menu3" :key="index"
|
|
|
+ :title="item.alias">
|
|
|
+ <span class="fenlei">
|
|
|
+ {{ item.alias }}
|
|
|
+ </span>
|
|
|
+ </NuxtLink>
|
|
|
+ </li>
|
|
|
+ <li class="part6_left_content_list">
|
|
|
<span class="jiantou">></span>
|
|
|
- <span class="fenlei">农副产品</span>
|
|
|
- <span class="fenlei">农产资料</span>
|
|
|
+ <NuxtLink href="/" v-for="(item, index) in boxData21menu4" :key="index"
|
|
|
+ :title="item.alias">
|
|
|
+ <span class="fenlei">
|
|
|
+ {{ item.alias }}
|
|
|
+ </span>
|
|
|
+ </NuxtLink>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
- <div class="part6_left_content1">
|
|
|
+ <!-- 市场报价 -->
|
|
|
+ <div class="part6_left_content2">
|
|
|
<h2 class="part6_left_content_title">
|
|
|
- <img src="../public/index/scbj.png" alt="">
|
|
|
- 市场报价
|
|
|
- <span class="selectMore">查询 ></span>
|
|
|
+ <NuxtLink class="active" v-if="pageData[21].cid" href="/" :title="pageData[21].alias">
|
|
|
+ <img src="../public/index/scbj.png" alt="市场报价">
|
|
|
+ {{ pageData[21].alias }}
|
|
|
+ </NuxtLink>
|
|
|
</h2>
|
|
|
- <ul class="part6_left_content111">
|
|
|
- <li class="part6_left_content_list" v-for="item in 4">
|
|
|
- <span class="jiantou">></span>
|
|
|
- <span class="fenlei">最新报价</span>
|
|
|
- <span class="fenlei">分类查询</span>
|
|
|
+ <ul class="part6_left_content222">
|
|
|
+ <li class="part6_left_content_list">
|
|
|
+ <NuxtLink href="/" v-if="boxData22menu1[0]" :title="boxData22menu1[0].alias">
|
|
|
+ <img src="../public/index/scbj01.png">
|
|
|
+ <div class="title_div">
|
|
|
+ {{ boxData22menu1[0].alias }}
|
|
|
+ </div>
|
|
|
+ </NuxtLink>
|
|
|
+ </li>
|
|
|
+ <li class="part6_left_content_list">
|
|
|
+ <NuxtLink href="/" v-if="boxData22menu1[1]" :title="boxData22menu1[1].alias">
|
|
|
+ <img src="../public/index/scbj01.png">
|
|
|
+ <div class="title_div">
|
|
|
+ {{ boxData22menu1[1].alias }}
|
|
|
+ </div>
|
|
|
+ </NuxtLink>
|
|
|
+ </li>
|
|
|
+ <li class="part6_left_content_list">
|
|
|
+ <NuxtLink href="/" v-if="boxData22menu1[2]" :title="boxData22menu1[2].alias">
|
|
|
+ <img src="../public/index/scbj01.png">
|
|
|
+ <div class="title_div">
|
|
|
+ {{ boxData22menu1[2].alias }}
|
|
|
+ </div>
|
|
|
+ </NuxtLink>
|
|
|
+ </li>
|
|
|
+ <li class="part6_left_content_list">
|
|
|
+ <NuxtLink href="/" v-if="boxData22menu1[3]" :title="boxData22menu1[3].alias">
|
|
|
+ <img src="../public/index/scbj01.png">
|
|
|
+ <div class="title_div">
|
|
|
+ {{ boxData22menu1[3].alias }}
|
|
|
+ </div>
|
|
|
+ </NuxtLink>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <!-- 乡土特产 -->
|
|
|
<div class="part6_right">
|
|
|
- <h2 class="part6_right_title">土乡特色</h2>
|
|
|
+ <h2 class="part6_right_title">
|
|
|
+ <NuxtLink v-if="pageData[22].cid" :href="getLinkPath(pageData[22])" :title="pageData[22].alias">
|
|
|
+ {{ pageData[22].alias }}
|
|
|
+ </NuxtLink>
|
|
|
+ </h2>
|
|
|
<div class="part6_right_content">
|
|
|
- <ul class="part6_right_content_list">
|
|
|
+ <ul class="part6_right_content_list" v-if="boxData23menu1">
|
|
|
<li class="yslist">
|
|
|
- <img src="../public/index/ts01.png" alt="饮食特产">
|
|
|
- 饮食特产
|
|
|
+ <NuxtLink :href="getLinkPath1(boxData23menu1[0])" v-if="boxData23menu1[0]"
|
|
|
+ :title="boxData23menu1[0].alias">
|
|
|
+ <img src="../public/index/ts01.png">
|
|
|
+ {{ boxData23menu1[0].alias }}
|
|
|
+ </NuxtLink>
|
|
|
</li>
|
|
|
<li class="yslist">
|
|
|
- <img src="../public/index/ts02.png" alt="日用特产">
|
|
|
- 日用特产
|
|
|
+ <NuxtLink :href="getLinkPath1(boxData23menu1[1])" v-if="boxData23menu1[1]"
|
|
|
+ :title="boxData23menu1[1].alias">
|
|
|
+ <img src="../public/index/ts02.png">
|
|
|
+ {{ boxData23menu1[1].alias }}
|
|
|
+ </NuxtLink>
|
|
|
</li>
|
|
|
<li class="yslist">
|
|
|
- <img src="../public/index/ts03.png" alt="工业特产">
|
|
|
- 工业特产
|
|
|
+ <NuxtLink :href="getLinkPath1(boxData23menu1[2])" v-if="boxData23menu1[2]"
|
|
|
+ :title="boxData23menu1[2].alias">
|
|
|
+ <img src="../public/index/ts03.png">
|
|
|
+ {{ boxData23menu1[2].alias }}
|
|
|
+ </NuxtLink>
|
|
|
</li>
|
|
|
<li class="yslist">
|
|
|
- <img src="../public/index/ts04.png" alt="民族特产">
|
|
|
- 民族特产
|
|
|
+ <NuxtLink :href="getLinkPath1(boxData23menu1[3])" v-if="boxData23menu1[3]"
|
|
|
+ :title="boxData23menu1[3].alias">
|
|
|
+ <img src="../public/index/ts04.png">
|
|
|
+ {{ boxData23menu1[3].alias }}
|
|
|
+ </NuxtLink>
|
|
|
</li>
|
|
|
</ul>
|
|
|
- <ul class="part6_right_content_list1">
|
|
|
+ <ul class="part6_right_content_list1" v-if="boxData23menu2">
|
|
|
<li class="swlist">
|
|
|
- <img src="../public/index/ts05.png" alt="生物特产">
|
|
|
- 生物特产
|
|
|
+ <NuxtLink :href="getLinkPath1(boxData23menu2[0])" v-if="boxData23menu2[0]"
|
|
|
+ :title="boxData23menu2[0].alias">
|
|
|
+ <img src="../public/index/ts05.png">
|
|
|
+ {{ boxData23menu2[0].alias }}
|
|
|
+ </NuxtLink>
|
|
|
</li>
|
|
|
<li class="swlist">
|
|
|
- <img src="../public/index/ts06.png" alt="文化特产">
|
|
|
- 文化特产
|
|
|
+ <NuxtLink :href="getLinkPath1(boxData23menu2[1])" v-if="boxData23menu2[1]"
|
|
|
+ :title="boxData23menu2[1].alias">
|
|
|
+ <img src="../public/index/ts06.png">
|
|
|
+ {{ boxData23menu2[1].alias }}
|
|
|
+ </NuxtLink>
|
|
|
</li>
|
|
|
<li class="swlist">
|
|
|
- <img src="../public/index/ts07.png" alt="资源特产">
|
|
|
- 资源特产
|
|
|
+ <NuxtLink :href="getLinkPath1(boxData23menu2[2])" v-if="boxData23menu2[2]"
|
|
|
+ :title="boxData23menu2[2].alias">
|
|
|
+ <img src="../public/index/ts07.png">
|
|
|
+ {{ boxData23menu2[2].alias }}
|
|
|
+ </NuxtLink>
|
|
|
</li>
|
|
|
<li class="swlist">
|
|
|
- <img src="../public/index/ts08.png" alt="其他特产">
|
|
|
- 其他特产
|
|
|
+ <NuxtLink :href="getLinkPath1(boxData23menu2[3])" v-if="boxData23menu2[3]"
|
|
|
+ :title="boxData23menu2[3].alias">
|
|
|
+ <img src="../public/index/ts08.png">
|
|
|
+ {{ boxData23menu2[3].alias }}
|
|
|
+ </NuxtLink>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
@@ -1029,7 +1143,7 @@ import { ElMessage } from 'element-plus';
|
|
|
//1.页面必备方法 start ---------------------------------------->
|
|
|
//获得跳转链接
|
|
|
const getLinkPath = (item) => {
|
|
|
- console.log('item', item);
|
|
|
+ // console.log('item', item);
|
|
|
|
|
|
if (item.children_count == 0) {
|
|
|
//return `/newsList/${item.cid}?page=1`;
|
|
@@ -1040,7 +1154,7 @@ const getLinkPath = (item) => {
|
|
|
}
|
|
|
}
|
|
|
const getLinkPath1 = (item) => {
|
|
|
- console.log('item111', item);
|
|
|
+ // console.log('item111', item);
|
|
|
// return `/${item.url}/1.html`;
|
|
|
// return `/newsList/${item.category_id}?page=1`;
|
|
|
// return `/newsList/${item.category_id}`;
|
|
@@ -1077,6 +1191,7 @@ const boxData1 = ref([])
|
|
|
const boxData1menu = ref([])
|
|
|
//模块2 三农服务
|
|
|
const boxData2 = ref([]);
|
|
|
+const boxData2menu1 = ref([]);
|
|
|
// 模块3 网站公告
|
|
|
const boxData3 = ref([]);
|
|
|
//模块4 乡村招商
|
|
@@ -1157,6 +1272,21 @@ const boxData20data1 = ref([]);
|
|
|
const boxData20data2 = ref([]);
|
|
|
const boxData20data3 = ref([]);
|
|
|
|
|
|
+// 没有资讯的栏目
|
|
|
+// 栏目1 乡村商城
|
|
|
+const boxData21menu1 = ref([]);
|
|
|
+const boxData21menu2 = ref([]);
|
|
|
+const boxData21menu3 = ref([]);
|
|
|
+const boxData21menu4 = ref([]);
|
|
|
+// 栏目2 市场报价
|
|
|
+const boxData22menu1 = ref([]);
|
|
|
+const boxData22menu2 = ref([]);
|
|
|
+const boxData22menu3 = ref([]);
|
|
|
+const boxData22menu4 = ref([]);
|
|
|
+// 栏目3 乡土特色
|
|
|
+const boxData23menu1 = ref([]);
|
|
|
+const boxData23menu2 = ref([]);
|
|
|
+
|
|
|
//获取头条 start ---------------------------------------->
|
|
|
const headlinelist = ref("")
|
|
|
async function getModelData1() {
|
|
@@ -1172,7 +1302,7 @@ async function getModelData1() {
|
|
|
console.log("mkdata", mkdata);
|
|
|
if (mkdata.code == 200) {
|
|
|
headlinelist.value = mkdata.data;
|
|
|
- console.log("成功获取头条信息!", headlinelist.value);
|
|
|
+ // console.log("成功获取头条信息!", headlinelist.value);
|
|
|
|
|
|
} else {
|
|
|
console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
|
|
@@ -1195,7 +1325,7 @@ try {
|
|
|
},
|
|
|
});
|
|
|
if (navigateData.code == 200) {
|
|
|
- console.log("成功获取导航信息!", navigateData.data);
|
|
|
+ // console.log("成功获取导航信息!", navigateData.data);
|
|
|
|
|
|
// 遍历可用的导航池放到页面中
|
|
|
for (let index in navigateData.data) {
|
|
@@ -1226,7 +1356,6 @@ try {
|
|
|
//第三层
|
|
|
//三农投资408 12
|
|
|
if (navigateData.data[index].category_id == 12) { pageData.value[7] = data }
|
|
|
- // if (navigateData.data[index].category_id ==408) { pageData.value[7] = data }
|
|
|
//乡村生活322
|
|
|
if (navigateData.data[index].category_id == 322) { pageData.value[8] = data }
|
|
|
//乡村经济323
|
|
@@ -1253,6 +1382,14 @@ try {
|
|
|
if (navigateData.data[index].category_id == 16) { pageData.value[18] = data }
|
|
|
//招工求职344
|
|
|
if (navigateData.data[index].category_id == 344) { pageData.value[19] = data }
|
|
|
+
|
|
|
+ //第六层
|
|
|
+ // 乡村商城346
|
|
|
+ if (navigateData.data[index].category_id == 346) { pageData.value[20] = data }
|
|
|
+ // 市场报价345
|
|
|
+ if (navigateData.data[index].category_id == 345) { pageData.value[21] = data }
|
|
|
+ // 乡土特色343
|
|
|
+ if (navigateData.data[index].category_id == 343) { pageData.value[22] = data }
|
|
|
}
|
|
|
} else {
|
|
|
console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
|
|
@@ -1269,15 +1406,13 @@ try {
|
|
|
|
|
|
|
|
|
let getJson = [
|
|
|
-
|
|
|
- { "parent": "445,0,20", "child": "445,0,0" },//模块1 三农资讯328
|
|
|
- { "parent": "27,0,4", "child": "" },//模块2 三农服务27
|
|
|
+ { "parent": "445,0,20", "child": "445,0,0" },//模块1 三农资讯445
|
|
|
+ { "parent": "27,0,4", "child": "27,0,0" },//模块2 三农服务27
|
|
|
{ "parent": "410,0,4", "child": "" },//模块3 网站公告410
|
|
|
{ "parent": "325,3,10", "child": "325,0,0" },//模块4 乡村招商325
|
|
|
{ "parent": "320,2,0", "child": "" },//模块5 乡村建设320
|
|
|
{ "parent": "319,2,0", "child": "" },//模块6 乡村管理319
|
|
|
{ "parent": "321,2,0", "child": "" },//模块7 乡村文化321
|
|
|
- // { "parent": "408,3,10", "child": "408,0,0" },//模块8 三农投资408
|
|
|
{ "parent": "12,3,10", "child": "12,0,0" },//模块8 三农投资1 12
|
|
|
{ "parent": "322,2,0", "child": "" },//模块9 乡村生活322
|
|
|
{ "parent": "323,2,0", "child": "" },//模块10 乡村经济323
|
|
@@ -1291,6 +1426,11 @@ let getJson = [
|
|
|
{ "parent": "23,3,10", "child": "" },//模块18 致富信息23
|
|
|
{ "parent": "16,2,7", "child": "" },//模块19 三农探索16
|
|
|
{ "parent": "344,2,7", "child": "" },//模块20 招工求职344
|
|
|
+
|
|
|
+ //不包含资讯的导航
|
|
|
+ { "parent": "346,0,0", "child": "346,0,0" },//模块1 乡村商城346
|
|
|
+ { "parent": "345,0,0", "child": "345,0,0" },//模块5 市场报价345
|
|
|
+ { "parent": "343,0,0", "child": "343,0,0" },//模块5 乡土特色343
|
|
|
]
|
|
|
|
|
|
let jsonString = JSON.stringify(getJson);
|
|
@@ -1303,10 +1443,10 @@ async function getPageAllData() {
|
|
|
'id': jsonString
|
|
|
},
|
|
|
});
|
|
|
- console.log("成功获取模块数据1111!", mkdata);
|
|
|
+ // console.log("成功获取模块数据1111!", mkdata);
|
|
|
|
|
|
if (mkdata.code == 200) {
|
|
|
- console.log("成功获取模块数据1111222!", mkdata.data[1].textnum);
|
|
|
+ // console.log("成功获取模块数据1111222!", mkdata.data[1].textnum);
|
|
|
|
|
|
//模块1 三农资讯
|
|
|
boxData1.value = mkdata.data[0].textnum;
|
|
@@ -1315,7 +1455,7 @@ async function getPageAllData() {
|
|
|
}
|
|
|
//模块2 三农服务
|
|
|
boxData2.value = mkdata.data[1].textnum;
|
|
|
-
|
|
|
+ boxData2menu1.value = mkdata.data[1].child.all_childcat;
|
|
|
//模块3 网站公告
|
|
|
boxData3.value = mkdata.data[2].textnum;
|
|
|
//模块4 乡村招商
|
|
@@ -1440,6 +1580,30 @@ async function getPageAllData() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ //模块21 乡村商城
|
|
|
+ let data21 = mkdata.data[20].child.all_childcat;
|
|
|
+ for (let i in data21) {
|
|
|
+ if (i < 2) {
|
|
|
+ boxData21menu1.value.push(data21[i]);
|
|
|
+ } else if (i < 4) {
|
|
|
+ boxData21menu2.value.push(data21[i]);
|
|
|
+ } else if (i < 6) {
|
|
|
+ boxData21menu3.value.push(data21[i]);
|
|
|
+ } else if (i < 8) {
|
|
|
+ boxData21menu4.value.push(data21[i]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //模块22 市场报价
|
|
|
+ boxData22menu1.value = mkdata.data[21].child.all_childcat;
|
|
|
+ //模块23 乡土特色
|
|
|
+ let data23 = mkdata.data[22].child.all_childcat;
|
|
|
+ for (let i in data23) {
|
|
|
+ if (i < 4) {
|
|
|
+ boxData23menu1.value.push(data23[i]);
|
|
|
+ } else if (i < 8) {
|
|
|
+ boxData23menu2.value.push(data23[i]);
|
|
|
+ }
|
|
|
+ }
|
|
|
} else {
|
|
|
ElMessage.error(mkdata.message)
|
|
|
}
|
|
@@ -1448,14 +1612,14 @@ getPageAllData();
|
|
|
|
|
|
//获取模块下的特殊数据
|
|
|
let getJson1 = [
|
|
|
- { "parent": "320,0,6", "child": "" },//模块5 乡村建设320
|
|
|
- { "parent": "319,0,6", "child": "" },//模块6 乡村管理319
|
|
|
- { "parent": "321,0,6", "child": "" },//模块7 乡村文化321
|
|
|
- { "parent": "322,0,6", "child": "" },//模块9 乡村生活322
|
|
|
- { "parent": "323,0,6", "child": "" },//模块10 乡村经济323
|
|
|
- { "parent": "318,0,6", "child": "" },//模块11 乡村风采318
|
|
|
- { "parent": "16,0,2", "child": "" },//模块19 三农探索16
|
|
|
- { "parent": "344,0,2", "child": "" },//模块20 招工求职344
|
|
|
+ { "parent": "320,0,6" },//模块5 乡村建设320
|
|
|
+ { "parent": "319,0,6" },//模块6 乡村管理319
|
|
|
+ { "parent": "321,0,6" },//模块7 乡村文化321
|
|
|
+ { "parent": "322,0,6" },//模块9 乡村生活322
|
|
|
+ { "parent": "323,0,6" },//模块10 乡村经济323
|
|
|
+ { "parent": "318,0,6" },//模块11 乡村风采318
|
|
|
+ { "parent": "16,0,2" },//模块19 三农探索16
|
|
|
+ { "parent": "344,0,2" },//模块20 招工求职344
|
|
|
]
|
|
|
let jsonString1 = JSON.stringify(getJson1);
|
|
|
//获取模块下的特殊数据
|
|
@@ -1467,6 +1631,8 @@ async function getPageData() {
|
|
|
},
|
|
|
});
|
|
|
if (mkdata.code == 200) {
|
|
|
+ // console.log("成功获取模块数据2222!", mkdata);
|
|
|
+
|
|
|
//模块5乡村建设
|
|
|
boxData5data1.value = mkdata.data[0].textnum;
|
|
|
//模块6乡村管理
|
|
@@ -1566,20 +1732,30 @@ onMounted(async () => {
|
|
|
//3.广告 end ---------------------------------------->
|
|
|
|
|
|
//4.设置seo数据 start---------------------------------------->
|
|
|
-// const setData = await requestDataPromise('/web/getWebsiteFootInfo', {
|
|
|
-// method: 'GET',
|
|
|
-// query: {},
|
|
|
-// });
|
|
|
-// let seoTitle = setData.data.website_head.title;
|
|
|
-// let seoDescription = setData.data.website_head.description;
|
|
|
-// let seoKeywords = setData.data.website_head.keywords;
|
|
|
-// useSeoMeta({
|
|
|
-// title: seoTitle,
|
|
|
-// meta: [
|
|
|
-// { name: 'description', content: seoDescription },
|
|
|
-// { name: 'keywords', content: seoKeywords }
|
|
|
-// ]
|
|
|
-// });
|
|
|
+const setData = await requestDataPromise('/web/getWebsiteFootInfo', {
|
|
|
+ method: 'GET',
|
|
|
+ query: {},
|
|
|
+});
|
|
|
+if (setData.code == 200) {
|
|
|
+ let seoTitle = setData.data.website_head.title;
|
|
|
+ let seoDescription = setData.data.website_head.description;
|
|
|
+ let seoKeywords = setData.data.website_head.keywords;
|
|
|
+ let seoSuffix = setData.data.website_head.suffix;
|
|
|
+ let seoName = setData.data.website_head.website_name;
|
|
|
+
|
|
|
+ useSeoMeta({
|
|
|
+ title: seoTitle + "_" + seoSuffix,
|
|
|
+ meta: [
|
|
|
+ { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
|
|
|
+ { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix, tagPriority: 10 }
|
|
|
+ ]
|
|
|
+ });
|
|
|
+} else {
|
|
|
+ console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
|
|
|
+ console.log("错误位置:设置首页SEO数据")
|
|
|
+ console.log("后端错误反馈:", setData.message)
|
|
|
+ console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
|
|
|
+}
|
|
|
//4.设置seo数据 start---------------------------------------->
|
|
|
//5. 获取日期中单独的年 月 日 start--------------------------->
|
|
|
function getTime(date, part, digits) {
|