feat: There is no way the, 手机端 搜索中心

This commit is contained in:
super_liu
2022-06-13 11:30:10 +08:00
parent 99ed760eeb
commit 9ff2ae344f
3 changed files with 37 additions and 9 deletions
+17 -7
View File
@@ -148,13 +148,23 @@ export default {
this.$router.push('/phoneHome')
},
jumpDetails(item){
this.$router.push({
name: 'domesticDetails',
query: {
id: item.id,
pageType: 'INLAND_STAND'
}
})
if(item && item.indexType === 'stand' ){
this.$router.push({
name: 'domesticDetails',
query: {
id: item.id,
pageType: 'INLAND_STAND'
}
})
}else if(item && item.indexType === 'FOREIGN'){
this.$router.push({
name: 'domesticDetails',
query: {
id: item.id,
pageType: 'FOREIGN_STAND'
}
})
}
},
},
mounted(){
+10 -1
View File
@@ -21,7 +21,7 @@
<div v-if="loading">
<van-loading size="24px" color="#3170A8">加载中...</van-loading>
</div>
<div v-else-if="!loading && standList.length" class="card-content" v-for="item in standList" :key="item.id">
<div v-else-if="!loading && standList.length" class="card-content" v-for="item in standList" :key="item.id" @click="jumpDetails(item)">
<div class="standTitle">
<div v-if="titleType === 'POLICY'" class="title">{{item.lawsNumber}}</div>
<div v-else-if="titleType !== 'POLICY' && item.standYear" class="title">{{item.standSort + '&nbsp&nbsp' + item.standNumber + '-' + item.standYear }}</div>
@@ -123,6 +123,15 @@ export default {
}
},
methods:{
jumpDetails(item){
this.$router.push({
name: 'domesticDetails',
query: {
id: item.id,
pageType: 'INLAND_STAND'
}
})
},
scrool(){
this.scrolled = this.$refs.cardBox.scrollTop
//获得可视区的高度
+10 -1
View File
@@ -11,7 +11,7 @@
<div v-if="loading">
<van-loading size="24px" color="#3170A8">加载中...</van-loading>
</div>
<div v-else-if="!loading && standList.length" class="card-content" v-for="item in standList" :key="item.id">
<div v-else-if="!loading && standList.length" class="card-content" v-for="item in standList" :key="item.id" @click="jumpDetails(item)">
<div class="standTitle">
<div class="title">{{ item.standardName }}</div>
</div>
@@ -74,6 +74,15 @@ export default {
};
},
methods: {
jumpDetails(item){
this.$router.push({
name: 'domesticDetails',
query: {
id: item.id,
pageType: 'FOREIGN_STAND'
}
})
},
//返回上一个页面
back() {
this.$router.push("/phoneHome");