feat: There is no way the, 手机端 搜索中心
This commit is contained in:
@@ -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(){
|
||||
|
||||
@@ -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 + '  ' + 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
|
||||
//获得可视区的高度
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user