master 20220714
yujialong 2 years ago
parent a15a923975
commit 28146a03a5
  1. 18
      src/pages/account/login/index.vue
  2. 25
      src/pages/index/list/index.vue

@ -207,18 +207,12 @@ export default {
}, },
// //
getSchool() { getSchool() {
// const schoolList = util.local.get('schoolList') this.$get(this.api.querySchool, {
// if (schoolList && schoolList.length) { provinceId: '',
// this.setSchool(schoolList) cityId: ''
// } else { }).then(({ list }) => {
this.$get(this.api.querySchool, { this.setSchool(list)
provinceId: '', }).catch(res => {})
cityId: ''
}).then(({ list }) => {
this.setSchool(list)
// util.local.set('schoolList', list)
}).catch(res => {})
// }
}, },
// //
typeClick(tab) { typeClick(tab) {

@ -1,5 +1,5 @@
<template> <template>
<div class="wrap" :class="{index: !keyword, result: keyword}"> <div class="wrap index" :class="{result: keyword}">
<img class="screen" src="@/assets/img/index/index0.png" alt="首页"> <img class="screen" src="@/assets/img/index/index0.png" alt="首页">
<div class="banner"> <div class="banner">
<video class="video" ref="video" autoplay muted loop> <video class="video" ref="video" autoplay muted loop>
@ -7,7 +7,7 @@
您的浏览器不支持 video 标签 您的浏览器不支持 video 标签
</video> </video>
<div class="banner-inner"> <div class="banner-inner">
<div class="banner-title" v-if="!keyword">准确多元海量数据</div> <div class="banner-title">准确多元海量数据</div>
<div class="search-wrap"> <div class="search-wrap">
<div class="search"> <div class="search">
<input ref="keyword" v-model="keyword" type="text" placeholder="请输入关键词"> <input ref="keyword" v-model="keyword" type="text" placeholder="请输入关键词">
@ -25,7 +25,7 @@
</div> </div>
<div class="list-wrap" v-if="keyword"> <div class="list-wrap" v-if="keyword">
<div class="tips"> <div class="tips">
<p class="result"><img src="@/assets/img/index/search.png" alt=""> 搜索结果</p> <p class="result-title"><img src="@/assets/img/index/search.png" alt=""> 搜索结果</p>
<p class="num">搜索完成共有{{total}}个结果匹配</p> <p class="num">搜索完成共有{{total}}个结果匹配</p>
</div> </div>
@ -381,15 +381,13 @@ export default {
}, },
// //
getHot(){ getHot(){
this.$get(this.api.queryDatabaseInfo).then(res => { this.$get(this.api.queryDatabaseInfo).then(({ data }) => {
let list = res.data
list.map(n => n.download)
// //
list.sort((a,b) => { data.sort((a,b) => {
return b.download - a.download return b.downloads - a.downloads
}) })
// //
this.hotData = list.slice(0,3) this.hotData = data.slice(0,3)
}).catch(res => {}) }).catch(res => {})
}, },
initData(){ initData(){
@ -410,7 +408,7 @@ export default {
// , // ,
if(this.token){ if(this.token){
if (this.routes.find(e => e.path === '/data/list')) { if (this.routes.find(e => e.path === '/data/list')) {
this.$router.push(`/data?typeId=${row.categoryTwoId}`) this.$router.push(`/data?typeId=${row.secondId}`)
} else { } else {
this.keyword = row.categoryTwo this.keyword = row.categoryTwo
} }
@ -702,12 +700,11 @@ export default {
} }
} }
&.result{ &.result{
.banner{
padding: 46px 0;
}
.tips{ .tips{
margin-bottom: 22px; margin-bottom: 22px;
.result{ .result-title{
display: flex;
align-items: center;
margin: 30px 0 10px; margin: 30px 0 10px;
font-size: 17px; font-size: 17px;
color: $main-color; color: $main-color;

Loading…
Cancel
Save