| | |
| | | <main> |
| | | <section class="left"> |
| | | <a-carousel class="swiper" autoplay> |
| | | <div> |
| | | <div v-for="item in this.imgList" :key=item.Id> |
| | | <img |
| | | :src=item.Url |
| | | alt="" style="height: 500px; width: 100%" /> |
| | | </div> |
| | | <!-- <div> |
| | | <img |
| | | src="https://th.bing.com/th/id/R.3d65ceb916e50ab97ea198341fd6e18c?rik=m9nclAHZL4Vb4Q&riu=http%3a%2f%2fwww.ghostw7.com%2fuploadslxy%2fallimg%2f160125%2f1T9132T7-5.jpg&ehk=Dpnr0mb4j8x%2b1kHVSTDsdyJMDwntoS3rlUXla8uBexg%3d&risl=&pid=ImgRaw&r=0" |
| | | alt="" |
| | | style="height: 500px; width: 100%" |
| | | /> |
| | | alt="" style="height: 500px; width: 100%" /> |
| | | </div> |
| | | <div> |
| | | <img |
| | | src="https://th.bing.com/th/id/R.3d65ceb916e50ab97ea198341fd6e18c?rik=m9nclAHZL4Vb4Q&riu=http%3a%2f%2fwww.ghostw7.com%2fuploadslxy%2fallimg%2f160125%2f1T9132T7-5.jpg&ehk=Dpnr0mb4j8x%2b1kHVSTDsdyJMDwntoS3rlUXla8uBexg%3d&risl=&pid=ImgRaw&r=0" |
| | | alt="" |
| | | style="height: 500px; width: 100%" |
| | | /> |
| | | </div> |
| | | <div> |
| | | <img |
| | | src="https://th.bing.com/th/id/R.3d65ceb916e50ab97ea198341fd6e18c?rik=m9nclAHZL4Vb4Q&riu=http%3a%2f%2fwww.ghostw7.com%2fuploadslxy%2fallimg%2f160125%2f1T9132T7-5.jpg&ehk=Dpnr0mb4j8x%2b1kHVSTDsdyJMDwntoS3rlUXla8uBexg%3d&risl=&pid=ImgRaw&r=0" |
| | | alt="" |
| | | style="height: 500px; width: 100%" |
| | | /> |
| | | </div> |
| | | alt="" style="height: 500px; width: 100%" /> |
| | | </div> --> |
| | | </a-carousel> |
| | | </section> |
| | | <section class="features"> |
| | |
| | | <div class="iconSearch"> |
| | | <span class="iconfont icon-diqiu"></span> |
| | | </div> |
| | | <input |
| | | type="search" |
| | | name="" |
| | | id="" |
| | | placeholder="支持搜索关键词、公司名、人名、专利号等" |
| | | v-model="keyWord" |
| | | /> |
| | | <input type="search" name="" id="" placeholder="支持搜索关键词、公司名、人名、专利号等" v-model="keyWord" /> |
| | | <a class="fontSearch" @click="handleSearch">查询</a> |
| | | <a href="" class="moreSearch"> |
| | | <div> |
| | |
| | | <span class="iconfont iconSousuo icon-zhinengsousuo"></span> |
| | | </div> |
| | | <p class="sousuoNav">智能搜索</p> |
| | | <p class="sousuoEng">INTELLIGENT SEARCH</p></a |
| | | ></router-link |
| | | > |
| | | <p class="sousuoEng">INTELLIGENT SEARCH</p> |
| | | </a> |
| | | </router-link> |
| | | </li> |
| | | <li class="sousuoItem white shadow radius4"> |
| | | <router-link to="/senior"> |
| | |
| | | <span class="iconfont iconSousuo icon-gaojisousuo"></span> |
| | | </div> |
| | | <p class="sousuoNav">高级搜索</p> |
| | | <p class="sousuoEng">SENIOR SEARCH</p></a |
| | | > |
| | | <!-- <div><a-icon type="menu" /></div> --></router-link |
| | | > |
| | | <p class="sousuoEng">SENIOR SEARCH</p> |
| | | </a> |
| | | <!-- <div><a-icon type="menu" /></div> --> |
| | | </router-link> |
| | | </li> |
| | | |
| | | <li class="sousuoItem white shadow radius4"> |
| | |
| | | <router-link to="/batch"> |
| | | <a href=""> |
| | | <div> |
| | | <span |
| | | class="iconfont iconSousuo icon-xinzengHCshenqing" |
| | | ></span> |
| | | <span class="iconfont iconSousuo icon-xinzengHCshenqing"></span> |
| | | </div> |
| | | <p class="sousuoNav">批量搜索</p> |
| | | <p class="sousuoEng">BATCH SEARCH</p></a |
| | | ></router-link |
| | | > |
| | | <p class="sousuoEng">BATCH SEARCH</p> |
| | | </a> |
| | | </router-link> |
| | | </li> |
| | | <!-- <li class="sousuoItem white shadow radius4"> |
| | | <router-link to="/law"> |
| | |
| | | </main> |
| | | <div class="opened" v-show="openedShow"> |
| | | <img src="@/assets/logo.png" alt="" /> |
| | | <span class="close" @click="(openedShow = false), (maskShow = false)" |
| | | >X</span |
| | | > |
| | | <span class="close" @click="(openedShow = false), (maskShow = false)">X</span> |
| | | <div class="title"> |
| | | <span class="fontColor">您身边的全球专利服务专家</span> |
| | | <p class="fillout">填写信息,开通全功能产品试用</p> |
| | |
| | | //这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等) |
| | | //例如:import 《组件名称》 from '《组件路径》'; |
| | | // import Person from "./PersonalCenter.vue"; |
| | | import { getHomeImg } from '@/api/url_analyst' |
| | | export default { |
| | | //import引入的组件需要注入到components对象中才能使用 |
| | | |
| | |
| | | ScrollHeight: document.documentElement.scrollTop, |
| | | footerheight: 0, |
| | | footerheightTwo: 0, |
| | | keyWord:'' |
| | | keyWord: '', |
| | | imgList: [] |
| | | }; |
| | | }, |
| | | //计算属性 类似于data概念 |
| | |
| | | }, |
| | | //方法集合 |
| | | methods: { |
| | | // 获取轮播图图片 |
| | | getImg() { |
| | | getHomeImg({} |
| | | |
| | | ).then(res => { |
| | | console.log(res.Data); |
| | | for (let i = 0; i<res.Data.length; i++) { |
| | | res.Data[i].Url=`http://101.133.134.71:8089/${res.Data[i].Url}` |
| | | this.imgList.push(res.Data[i]) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | person() { |
| | | this.$router.push({ |
| | | name: "要跳转的页面名", |
| | |
| | | }, |
| | | }); |
| | | }, |
| | | handleSearch(){ |
| | | handleSearch() { |
| | | let userName = localStorage.getItem('username') |
| | | if(!userName){ |
| | | if (!userName) { |
| | | this.$message.warning('您尚未登录!') |
| | | this.$store.commit('setLoginShow',true) |
| | | this.$store.commit('setMaskShow',true) |
| | | this.$store.commit('setLoginShow', true) |
| | | this.$store.commit('setMaskShow', true) |
| | | |
| | | return |
| | | } |
| | | if(this.keyWord){ |
| | | this.$router.push('/smart?keyWord='+this.keyWord) |
| | | }else{ |
| | | if (this.keyWord) { |
| | | this.$router.push('/smart?keyWord=' + this.keyWord) |
| | | } else { |
| | | this.$message.warning('请输入非空的关键词进行智能检索!') |
| | | } |
| | | }, |
| | |
| | | this.windowHeightTwo = this.windowHeight + 207 + "px"; |
| | | }, |
| | | }, |
| | | beforeCreate() {}, //生命周期 - 创建之前 |
| | | beforeCreate() { }, //生命周期 - 创建之前 |
| | | //生命周期 - 创建完成(可以访问当前this实例) |
| | | created() {}, |
| | | beforeMount() {}, //生命周期 - 挂载之前 |
| | | created() { }, |
| | | beforeMount() { }, //生命周期 - 挂载之前 |
| | | //生命周期 - 挂载完成(可以访问DOM元素) |
| | | mounted() { |
| | | this.getImg() |
| | | window.addEventListener("scroll", this.handleScroll); |
| | | var that = this; |
| | | // <!--把window.onresize事件挂在到mounted函数上--> |
| | |
| | | })(); |
| | | }; |
| | | }, |
| | | beforeUpdate() {}, //生命周期 - 更新之前 |
| | | updated() {}, //生命周期 - 更新之后 |
| | | beforeDestroy() {}, //生命周期 - 销毁之前 |
| | | destroyed() {}, //生命周期 - 销毁完成 |
| | | activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发 |
| | | beforeUpdate() { }, //生命周期 - 更新之前 |
| | | updated() { }, //生命周期 - 更新之后 |
| | | beforeDestroy() { }, //生命周期 - 销毁之前 |
| | | destroyed() { }, //生命周期 - 销毁完成 |
| | | activated() { }, //如果页面有keep-alive缓存功能,这个函数会触发 |
| | | }; |
| | | </script> |
| | | <style lang="scss" scoped> |
| | |
| | | color: #333333; |
| | | cursor: pointer; |
| | | } |
| | | |
| | | input { |
| | | padding-left: 10px; |
| | | } |
| | | |
| | | input:focus::-webkit-input-placeholder { |
| | | color: transparent; |
| | | } |
| | |
| | | height: 21px; |
| | | line-height: 21px; |
| | | } |
| | | |
| | | .ConfirmLogin { |
| | | cursor: pointer; |
| | | margin: 10px auto; |
| | |
| | | border-radius: 6px; |
| | | background-color: rgba(239, 130, 1, 1); |
| | | line-height: 50px; |
| | | |
| | | a { |
| | | color: #ffffff; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .home { |
| | | width: 100%; |
| | | min-height: 750px; |
| | |
| | | // height: var(height); |
| | | // } |
| | | } |
| | | |
| | | main { |
| | | width: 95%; |
| | | margin: 20px auto 50px; |
| | | display: flex; |
| | | justify-content: space-around; |
| | | |
| | | // @media (max-width: 1280px) { |
| | | // width: 100%; |
| | | // margin: 100px auto; |
| | |
| | | // } |
| | | .left { |
| | | width: 45%; |
| | | |
| | | // @media (max-width: 1280px) { |
| | | // width: 100%; |
| | | // } |
| | | .swiper { |
| | | width: 100%; |
| | | .ant-carousel >>> .slick-slide { |
| | | |
| | | .ant-carousel>>>.slick-slide { |
| | | width: 100%; |
| | | height: 400px; |
| | | // @media (max-width: 1280px) { |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | .features { |
| | | width: 50%; |
| | | |
| | | // @media (max-width: 1280px) { |
| | | // width: 80%; |
| | | // margin: 20px auto; |
| | |
| | | .logo { |
| | | width: 40%; |
| | | margin: 0px 0 20px 0; |
| | | |
| | | // @media (max-width: 1280px) { |
| | | // display: none; |
| | | // } |
| | |
| | | width: 100%; |
| | | } |
| | | } |
| | | |
| | | .preferential { |
| | | text-align: left; |
| | | width: 100%; |
| | |
| | | font-size: 30px; |
| | | height: 49px; |
| | | line-height: 49px; |
| | | |
| | | span:nth-child(1) { |
| | | color: #ef8201; |
| | | } |
| | | } |
| | | |
| | | p { |
| | | text-align: left; |
| | | margin-bottom: 50px; |
| | |
| | | color: #999999; |
| | | margin: 0px 0 15px 0; |
| | | } |
| | | |
| | | .searchHistory { |
| | | margin: 15px 0 5px; |
| | | display: flex; |
| | | text-align: left; |
| | | |
| | | .hot { |
| | | color: #c2c2c2; |
| | | |
| | | span { |
| | | height: 23px; |
| | | line-height: 23px; |
| | |
| | | font-size: 16px; |
| | | color: #333333; |
| | | } |
| | | |
| | | .icon-Rrl_s_018 { |
| | | color: #c2c2c2; |
| | | font-size: 22px; |
| | | } |
| | | |
| | | .hotSpan { |
| | | color: #ef8201; |
| | | } |
| | | } |
| | | |
| | | ul { |
| | | // width: 20%; |
| | | display: flex; |
| | | |
| | | li { |
| | | height: 30px; |
| | | font-family: "微软雅黑"; |
| | |
| | | font-size: 16px; |
| | | line-height: 30px; |
| | | margin: 0 5px; |
| | | |
| | | a { |
| | | color: #333333; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | .search { |
| | | width: 70%; |
| | | display: flex; |
| | | position: relative; |
| | | |
| | | .iconSearch { |
| | | width: 50px; |
| | | height: 60px; |
| | |
| | | position: relative; |
| | | left: 0px; |
| | | z-index: 10; |
| | | |
| | | .icon-diqiu { |
| | | color: #cfcfcf; |
| | | font-size: 24px; |
| | | } |
| | | } |
| | | |
| | | input { |
| | | width: 100%; |
| | | height: 60px; |
| | |
| | | position: absolute; |
| | | left: 5px; |
| | | } |
| | | |
| | | input:focus { |
| | | outline-color: #ef8201; |
| | | color: #333333; |
| | | } |
| | | |
| | | .fontSearch { |
| | | width: 112px; |
| | | height: 60px; |
| | |
| | | position: absolute; |
| | | right: -110px; |
| | | } |
| | | |
| | | .moreSearch { |
| | | position: absolute; |
| | | top: 10px; |
| | |
| | | height: 62px; |
| | | display: flex; |
| | | color: #333333; |
| | | |
| | | p { |
| | | margin-bottom: 0px; |
| | | color: #333333; |
| | | margin-top: 0; |
| | | } |
| | | |
| | | .moreIcon { |
| | | color: #333333; |
| | | height: 62px; |
| | | line-height: 40px; |
| | | } |
| | | } |
| | | |
| | | .moreSearch:hover p { |
| | | color: #ef8201; |
| | | } |
| | | |
| | | .moreSearch:hover .moreIcon { |
| | | color: #ef8201; |
| | | } |
| | | } |
| | | |
| | | .sousuoList { |
| | | margin: 30px 0 100px; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | |
| | | // @media (max-width: 1280px) { |
| | | // flex-wrap: wrap; |
| | | // } |
| | |
| | | width: 30%; |
| | | border: 1px solid #ffffff; |
| | | padding: 10px; |
| | | |
| | | // @media (max-width: 1280px) { |
| | | // width: 40%; |
| | | // margin: 20px 0; |
| | |
| | | div { |
| | | width: 100%; |
| | | text-align: center; |
| | | |
| | | .iconSousuo { |
| | | color: #ef8201; |
| | | font-size: 50px; |
| | | } |
| | | } |
| | | |
| | | .sousuoNav { |
| | | color: #333333; |
| | | font-size: 18px; |
| | |
| | | width: 100%; |
| | | text-align: center; |
| | | } |
| | | |
| | | .sousuoEng { |
| | | color: #333333; |
| | | font-size: 14px; |
| | |
| | | margin-bottom: 5px; |
| | | } |
| | | } |
| | | |
| | | .sousuoItem:hover { |
| | | // background: ; |
| | | border-color: #ef8201; |