feat: There is no way the, 手机端 搜索中心
This commit is contained in:
@@ -148,13 +148,23 @@ export default {
|
|||||||
this.$router.push('/phoneHome')
|
this.$router.push('/phoneHome')
|
||||||
},
|
},
|
||||||
jumpDetails(item){
|
jumpDetails(item){
|
||||||
this.$router.push({
|
if(item && item.indexType === 'stand' ){
|
||||||
name: 'domesticDetails',
|
this.$router.push({
|
||||||
query: {
|
name: 'domesticDetails',
|
||||||
id: item.id,
|
query: {
|
||||||
pageType: 'INLAND_STAND'
|
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(){
|
mounted(){
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
<div v-if="loading">
|
<div v-if="loading">
|
||||||
<van-loading size="24px" color="#3170A8">加载中...</van-loading>
|
<van-loading size="24px" color="#3170A8">加载中...</van-loading>
|
||||||
</div>
|
</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="standTitle">
|
||||||
<div v-if="titleType === 'POLICY'" class="title">{{item.lawsNumber}}</div>
|
<div v-if="titleType === 'POLICY'" class="title">{{item.lawsNumber}}</div>
|
||||||
<div v-else-if="titleType !== 'POLICY' && item.standYear" class="title">{{item.standSort + '  ' + item.standNumber + '-' + item.standYear }}</div>
|
<div v-else-if="titleType !== 'POLICY' && item.standYear" class="title">{{item.standSort + '  ' + item.standNumber + '-' + item.standYear }}</div>
|
||||||
@@ -123,6 +123,15 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
jumpDetails(item){
|
||||||
|
this.$router.push({
|
||||||
|
name: 'domesticDetails',
|
||||||
|
query: {
|
||||||
|
id: item.id,
|
||||||
|
pageType: 'INLAND_STAND'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
scrool(){
|
scrool(){
|
||||||
this.scrolled = this.$refs.cardBox.scrollTop
|
this.scrolled = this.$refs.cardBox.scrollTop
|
||||||
//获得可视区的高度
|
//获得可视区的高度
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<div v-if="loading">
|
<div v-if="loading">
|
||||||
<van-loading size="24px" color="#3170A8">加载中...</van-loading>
|
<van-loading size="24px" color="#3170A8">加载中...</van-loading>
|
||||||
</div>
|
</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="standTitle">
|
||||||
<div class="title">{{ item.standardName }}</div>
|
<div class="title">{{ item.standardName }}</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -74,6 +74,15 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
jumpDetails(item){
|
||||||
|
this.$router.push({
|
||||||
|
name: 'domesticDetails',
|
||||||
|
query: {
|
||||||
|
id: item.id,
|
||||||
|
pageType: 'FOREIGN_STAND'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
//返回上一个页面
|
//返回上一个页面
|
||||||
back() {
|
back() {
|
||||||
this.$router.push("/phoneHome");
|
this.$router.push("/phoneHome");
|
||||||
|
|||||||
Reference in New Issue
Block a user