123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382 |
- <template>
- <div class="navigate">
- <!-- 导航 -->
- <div class="partOne">
- <div class="inner">
- <!-- 导航一 -->
- <ul class="navigationOne">
- <li v-for="(item,index) in data" :key="index">
- <NuxtLink to="/primaryNavigation/1">{{item.name }}</NuxtLink>
- </li>
- </ul>
- </div>
- </div>
- <div class="partTwo">
- <div class="inner">
- <ul class="navigationTwo">
- <li>写作大全</li>
- <li>招工招聘</li>
- <li>农资购销</li>
- <li>农产购销</li>
- <li>致富信息</li>
- <li>书刊信息</li>
- <li>农业导航</li>
- <li>打假维权</li>
- <li>三农服务</li>
- <li>三农调差</li>
- <li>三农内参</li>
- <li>贴身宝贝</li>
- </ul>
- </div>
- </div>
- <div class="partThree">
- <!-- 地方频道 -->
- <div class="inner">
- <!-- channel 频道 -->
- <h5 class="channel">地方频道</h5>
- <p class="areaChannel">
- <span v-for="(item, index) in areaList" :key="index">
- <a href="#">{{ item }}</a>
- </span>
- </p>
- </div>
- </div>
- <!-- 导航栏下的大图 -->
- <div class="logo">
- <div class="inner">
- <img src="../../static/images/banner 1.png" alt="">
- </div>
- </div>
- <!-- 行政查询 (未完成) -->
- <div class="select">
- <div class="inner">
- <ul class="role left">
- <li class="title">行政职能查询</li>
- <li class="searchRole">
- <em></em>
- <input type="text" placeholder="输入关键词">
- <i></i>
- <span>职能部门</span>
- <!-- <select>
- <option value="1">北京</option>
- <option value="1">天津</option>
- <option value="1">上海</option>
- <option value="1">广州</option>
- </select> -->
- </li>
- </ul>
- <ul class="region left">
- <li class="title">行政区划查询</li>
- <li class="searchRole">
- <em></em>
- <i></i>
- <span>请选择省</span>
- <i></i>
- <span>请选择市</span>
- <i></i>
- <span>请选择区/县</span>
- </li>
- </ul>
- </div>
- </div>
- </div>
- </template>
- <script setup>
- import { ref, onMounted } from 'vue';
- const nuxtApp = useNuxtApp();
- const axios = nuxtApp.$axios;
- const data = ref("");
- onMounted(async () => {
- try {
- const response = await axios.get('/web/getWebsiteCategory');
- console.log(response.data.data);
- data.value = response.data.data;
- } catch (error) {
- console.error(error);
- }
- })
- let areaList = ['北京', '天津', '河北', '山西', '内蒙古', '辽宁', '吉林', '黑龙江', '江苏', '浙江', '安徽', '福建', '江西', '山东', '河南', '湖北', '湖南', '广东', '广西', '贵州', '云南', '西藏', '陕西', '甘肃', '青海', '宁夏', '新疆', '香港', '澳门', '台湾']
- </script>
- <style lang="less" scoped>
- // 导航部分
- .partOne .navigationOne,
- .partOne .navigationOne>li,
- .partTwo .navigationTwo,
- .partTwo .navigationTwo>li {
- float: left;
- }
- .partOne {
- width: 100%;
- height: 66px;
- line-height: 66px;
- background-color: #fff;
- font-size: 20px;
- font-family: PingFang SC-Semibold;
- .navigationOne {
- color: #333;
- li {
- font-family: PingFang SC;
- font-weight: 600;
- font-size: 20px;
- text-align: left;
- font-style: normal;
- text-transform: none;
- margin-right: 14px;
- &:nth-last-child(1) {
- margin-right: 0px;
- }
- a {
- color: #333;
- }
- }
- >li:hover a{
- color: #139602;
- }
- }
- }
- .partTwo {
- width: 100%;
- height: 57px;
- line-height: 57px;
- border-bottom: 1px solid #e3e3e3;
- .navigationTwo {
- width: 1207px;
- height: 57px;
- color: #333333;
- border-bottom: 1px solid #e3e3e3;
- li {
- font-weight: 600;
- font-size: 20px;
- height: 56px;
- margin-right: 21px;
- &:nth-last-child(1) {
- margin-right: 0px;
- }
- }
- li:hover {
- color: #139602;
- border-bottom: 2px solid #139602;
- }
- }
- }
- .partThree {
- width: 100%;
- height: 75px;
- .inner {
- margin-bottom: 5px;
- }
- .channel,
- .areaChannel {
- float: left;
- margin-top: 17px;
- }
- .channel {
- width: 56px;
- height: 20px;
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 14px;
- color: #666666;
- line-height: 16px;
- text-align: left;
- font-style: normal;
- text-transform: none;
- }
- .areaChannel {
- width: 1122px;
- margin-left: 14px;
- >span {
- display: inline-block;
- width: 49px;
- height: 16px;
- line-height: 16px;
- margin-bottom: 10px;
- text-align: center;
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 14px;
- text-align: center;
- font-style: normal;
- text-transform: none;
- margin-right: 5px;
- border-right: 1px solid #e6e6e6;
- a {
- display: inline-block;
- width: 49px;
- height: 16px;
- color: #868686;
- }
- a:hover {
- color: #868686;
- }
- }
- >span:last-child,
- >span:nth-child(20) {
- border-right: none;
- }
- >span:hover a{
- color: #139602;
- }
- }
- }
- .logo {
- margin-top: 5px;
- height: 90px;
- img{
- width: 1200px;
- height: 90px;
- }
- }
- // 行政查询(未完成)
- .select {
- width: 100%;
- height: 62px;
- line-height: 62px;
- .inner {
- // width: 1200px;
- height: 62px;
- margin-top: 10px;
- background-color: #fafafa;
- }
- .role,
- .region {
- float: left;
- height: 62px;
- >.title {
- width: 120px;
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 20px;
- color: #666666;
- text-align: left;
- font-style: normal;
- text-transform: none;
- }
- li {
- float: left;
- }
- }
- .role {
- padding-left: 16px;
- .searchRole {
- width: 440px;
- height: 40px;
- line-height: 40px;
- background-color: #fff;
- border: 1px solid #ededed;
- margin: 10px 20px 12px 22px;
- border-radius: 25px;
- em {
- display: inline-block;
- width: 29px;
- height: 29px;
- margin: 4px 21px 4px 22px;
- vertical-align: middle;
- background: url('../../static/images/Iconly/Broken/Search.png');
- }
- input {
- width: 243px;
- font-family: PingFang SC, PingFang SC;
- font-weight: 600;
- font-size: 14px;
- color: #999999;
- line-height: 16px;
- text-align: left;
- font-style: normal;
- text-transform: none;
- border: none;
- outline: none;
- }
- i {
- display: inline-block;
- width: 24px;
- height: 24px;
- margin-right: 19px;
- vertical-align: middle;
- background: url("../../static/images/Iconly/Two-tone/Arrow - Down 3.png");
- }
- span {
- color: #999999;
- }
- }
- }
- .region {
- .searchRole {
- width: 440px;
- height: 40px;
- line-height: 40px;
- background-color: #fff;
- border: 1px solid #ededed;
- margin: 10px 0px 12px 16px;
- border-radius: 25px;
- }
- em {
- display: inline-block;
- width: 29px;
- height: 29px;
- margin: 4px 21px 4px 22px;
- vertical-align: middle;
- background: url('../../static/images/Iconly/Broken/Search.png');
- }
- i {
- display: inline-block;
- width: 24px;
- height: 24px;
- margin-right: 11px;
- vertical-align: middle;
- background: url("../../static/images/Iconly/Two-tone/Arrow - Down 3.png");
- }
- span {
- color: #999999;
- margin-right: 22px;
- }
- }
- }
- </style>
|