123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375 |
- <template>
- <footer class="index_foot">
- <div class="index_foot_name_box">
- <div class="index_foot_name">YOUQING</div>
- <div class="index_foot_name">友情链接</div>
- <div class="index_foot_name">LIANJIE</div>
- </div>
- <div class="foot_img_box">
- <a :href="item.url" v-for="(item, index) in bottomLink" target="_blank" :title="item.title">
- <img :src="item.logo_url" :alt="item.title">
- </a>
- </div>
- <div class="foot_frind_box">
- <span>友情链接</span>
- <div>
- <a :href="item.url" v-for="(item, index) in bottomText" :key="index" target="_blank" :title="item.title">{{ item.title }}</a>
- </div>
- </div>
- <div class="call_us_box">
- <span v-for="(item, index) in bottomMenu" :key="index">
- <NuxtLink :to="{ path: `/specialList/${item.id}` }" target="_blank" v-if="item.type == 1" :title="item.name">
- {{ item.name }}
- </NuxtLink>
- <NuxtLink :to="{ path: `/speciaArticle/${item.id}` }" target="_blank" v-if="item.type == 0" :title="item.name">
- {{ item.name }}
- </NuxtLink>
- </span>
- </div>
- <div class="foot_text_box">
- <!-- <p>{{ bottomBase.statistics_onetext }} <a :href="'http://' + bottomBase.statistics_twourl">中农兴业</a> {{ bottomBase.statistics_twotext }}</p> -->
- <p>{{ bottomBase.statistics_onetext }} <a :href="bottomBase.record_number_url" target="_blank" :title="中农兴业">中农兴业</a> {{ bottomBase.statistics_twotext }}</p>
- <p>{{ bottomBase.organizer }} <a :href="currentDomain" target="_blank" :title="三农资讯网">三农资讯网</a> {{ currentDomainUrl }} 版权所有。</p>
- <!-- <p><img :src="bottomBase.icp_number_img"><a :href="'http://' + bottomBase.statistics_twourl">{{ bottomBase.record_number }}</a> <a :href="'http://' + bottomBase.icp_number_url">{{ bottomBase.icp_number }}</a> </p> -->
- <p><a :href="bottomBase.record_number_url" target="_blank" title="ICP备案号">{{ bottomBase.record_number }}</a> <img :src="bottomBase.icp_number_img"><a :href="bottomBase.icp_number_url" target="_blank" title="京公网安备案号">{{ bottomBase.icp_number }}</a> </p>
- <p>{{ bottomBase.email }}</p>
- <p>{{ bottomBase.company_address }}</p>
- <p>{{ bottomBase.contact_number }}</p>
- </div>
- <div class="foot_logo_out" >
- <a :href="'http://' + bottomBase.company_url" :title="bottomBase.company_name" target="_blank">
- <img :src="bottomBase.project_logo" class="floatLogoLeft" :alt="bottomBase.company_name">
- </a>
- <a :href="'http://' + bottomBase.project_url" :title="bottomBase.project_name" target="_blank">
- <img :src="bottomBase.company_logo" class="floatLogoRight" :alt="bottomBase.project_name">
- </a>
- </div>
- <div class="foot_last_img_box">
- <a :href="item.url" v-for="(item, index) in bottomphoto" target="_blank" :title="item.title">
- <img :src="item.logo_url" :alt="item.title">
- </a>
- </div>
- </footer>
- </template>
- <script setup>
- //获得底部基本信息 start---------------------------------------->
- //1.获得友情链接图片
- const bottomLink = ref([])
- async function getModelData1() {
- const { data: mkdata, error: mkdataError } = requestData('/web/selectWebsiteLinks', {
- method: 'GET',
- query: {
- 'type':1,
- 'num':12,
- },
- });
- if (mkdataError.value) {
- //console.error('模块1数据上部分请求失败!', mkdataError.value);
- } else {
- if (mkdata.value) {
- bottomLink.value = mkdata.value.data;
- }
- }
- }
- getModelData1();
- //2.获得友情链接文字
- const bottomText = ref([])
- async function getModelData2() {
- const { data: mkdata, error: mkdataError } = requestData('/web/selectWebsiteLinks', {
- method: 'GET',
- query: {
- 'type':2,
- 'num':8,
- },
- });
- if (mkdataError.value) {
- //console.error('模块1数据上部分请求失败!', mkdataError.value);
- } else {
- if (mkdata.value) {
- bottomText.value = mkdata.value.data;
- }
- }
- }
- getModelData2();
- //3.获得底部图片
- const bottomphoto = ref([])
- async function getModelData3() {
- const { data: mkdata, error: mkdataError } = requestData('/web/selectWebsiteLinks', {
- method: 'GET',
- query: {
- 'type':3,
- 'num':4,
- },
- });
- if (mkdataError.value) {
- //console.error('模块1数据上部分请求失败!', mkdataError.value);
- } else {
- if (mkdata.value) {
- bottomphoto.value = mkdata.value.data;
- }
- }
- }
- getModelData3();
- //4.获得底部导航
- const bottomMenu = ref([])
- async function getModelData4() {
- const { data: mkdata, error: mkdataError } = requestData('/web/getWebsiteFooterCategory', {
- method: 'GET',
- query: {
- },
- });
- if (mkdataError.value) {
- //console.error('模块1数据上部分请求失败!', mkdataError.value);
- } else {
- if (mkdata.value) {
- bottomMenu.value = mkdata.value.data;
- }
- }
- }
- getModelData4();
- //5.获得底部基本信息
- const bottomBase = ref({})
- async function getModelData5() {
- const { data: mkdata, error: mkdataError } = requestData('/web/getWebsiteFootInfo', {
- method: 'GET',
- query: {
- },
- });
- if (mkdataError.value) {
- //console.error('模块1数据上部分请求失败!', mkdataError.value);
- } else {
- if (mkdata.value) {
- bottomBase.value = mkdata.value.data.website_foot;
- }
- }
- }
- getModelData5();
- //6.获取当前域名
- const currentDomain = ref('')
- const currentDomainUrl = ref('')
- const getDomain = () => {
- if (process.client) {
- const url = new URL(window.location.href)
- currentDomainUrl.value = url.hostname // 获取域名
- currentDomain.value = url.origin //协议和域名
- }
- }
- getDomain();
- //获得底部基本信息 end---------------------------------------->
- </script>
- <style lang="less" scoped>
- .index_foot {
- box-sizing: border-box;
- width: 1200px;
- margin: 0 auto;
- }
- .index_foot_name_box {
- margin: 40px auto 0px;
- text-align: center;
- font-size: 0px;
- }
- .index_foot_name {
- display: inline-block;
- height: 67px;
- line-height: 67px;
- color: #f2f9f4;
- font-size: 51px;
- font-weight: bold;
- overflow: hidden;
- }
- .index_foot_name:nth-of-type(even) {
- color: #333;
- font-size: 32px;
- }
- .foot_img_box {
- overflow: hidden;
- display: block;
- // margin: 40px auto 0;
- width: 100%;
- display: flex;
- justify-content: space-between;
- flex-wrap: wrap;
- }
- .foot_img_box>* {
- margin-top: 20px;
- float: left;
- width: 170px;
- height: 57px;
- overflow: hidden;
- /* box-sizing: border-box; */
- border: solid 1px #D7EDD4;
- }
- .foot_img_box>* * {
- display: block;
- width: 100%;
- height: 100%;
- }
- .foot_img_box>*:nth-of-type(7n) {
- margin-right: 0px;
- }
- .foot_frind_box {
- display: block;
- margin: 30px auto;
- overflow: hidden;
- display: flex;
- width: 100%;
- }
- .foot_frind_box span {
- word-break: keep-all;
- white-space: nowrap;
- line-height: 22px;
- font-size: 16px;
- color: #333;
- font-weight: bold;
- }
- .foot_frind_box div {
- width: 100%;
- overflow: hidden;
- }
- .foot_frind_box div * {
- float: left;
- line-height: 22px;
- height: 22px;
- color: #333;
- font-size: 16px;
- margin: 0 30px;
- }
- .call_us_box {
- display: block;
- width: 100%;
- margin: 30px auto 0;
- overflow: hidden;
- text-align: center;
- font-size: 0px;
- background: #a01c0e;
- a {
- color: #fff;
- }
- }
- .inner {
- width: 1200px;
- margin: 0 auto;
- }
- .inner>* {
- height: 12px;
- line-height: 12px;
- color: #fff;
- font-size: 14px;
- display: inline-block;
- box-sizing: border-box;
- padding: 0 19px;
- font-weight: bold;
- border-left: solid 1px #7e1c11;
- margin: 18px 0;
- }
- .inner>*:nth-of-type(1) {
- border-left: 0px;
- }
- .foot_text_box {
- margin: 20px auto 0px;
- text-align: center;
- color: #333;
- font-size: 14px;
- line-height: 25px;
- p {
- a {
- color: #333;
- font-size: 14px;
- }
- .webSitecolor {
- color: #a01c0e;
- }
- }
- }
- .top_content {
- padding: 0 170px;
- }
- .webSitecolor {
- color: #a01c0e;
- }
- .foot_text_box_green {
- color: #a01c0e;
- }
- .foot_text_box img {
- display: inline-block;
- height: 20px;
- vertical-align: middle;
- }
- .foot_logo_out {
- position: relative;
- margin: 0px auto;
- width: 100%;
- height: 0px;
- }
- .foot_logo_out * {
- width: 120px;
- display: block;
- }
- .foot_logo_out>* {
- position: absolute;
- top: -100px;
- }
- .foot_logo_out>*:nth-of-type(1) {
- left: 0px;
- }
- .foot_logo_out>*:nth-of-type(2) {
- right: 0px;
- }
- .foot_last_img_box {
- margin: 20px auto 10px;
- text-align: center;
- overflow: hidden;
- width: 100%;
- font-size: 0px;
- padding-bottom: 40px;
- }
- .foot_last_img_box>* {
- height: 50px;
- width: 150px;
- margin: 0px 12px;
- display: inline-block;
- overflow: hidden;
- }
- .foot_last_img_box>* * {
- display: block;
- height: 100%;
- width: 100%;
- overflow: hidden;
- }
- </style>
|