Commit 7f4d7812 authored by shilei's avatar shilei

feat: 走进园区筛选

parent 624172b8
...@@ -26,4 +26,6 @@ export default { ...@@ -26,4 +26,6 @@ export default {
queryInvestInfos: '/postcard/api/investClueInfo/page', queryInvestInfos: '/postcard/api/investClueInfo/page',
// 联系我们列表 // 联系我们列表
queryContacts: '/postcard/api/scSourceInfo/contact', queryContacts: '/postcard/api/scSourceInfo/contact',
// 获取查询条件列表
queryFiltersList: '/postcard/api/sysDictData/listByCodes'
} }
...@@ -135,7 +135,7 @@ export default { ...@@ -135,7 +135,7 @@ export default {
deep: true, deep: true,
immediate: true, immediate: true,
handler(obj) { handler(obj) {
if (obj.itemList1) { if (obj?.itemList1) {
this.canChoose = true; this.canChoose = true;
} }
}, },
...@@ -253,7 +253,7 @@ export default { ...@@ -253,7 +253,7 @@ export default {
newList.forEach((res) => { newList.forEach((res) => {
res.child.forEach((item) => { res.child.forEach((item) => {
item.child.forEach((e) => { item.child.forEach((e) => {
arr.push(e.description); arr.push(e.dictLabel);
}); });
}); });
}); });
...@@ -267,7 +267,7 @@ export default { ...@@ -267,7 +267,7 @@ export default {
if (newList.length > 0) { if (newList.length > 0) {
let arr = []; let arr = [];
newList.forEach((item) => { newList.forEach((item) => {
arr.push(item.description); arr.push(item.dictLabel);
}); });
this.menuList[this.selectIndex].showName = arr.toString(); this.menuList[this.selectIndex].showName = arr.toString();
} else { } else {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
: '' : ''
" "
@click.stop="selectLeft(index)" @click.stop="selectLeft(index)"
>{{ item.description }} >{{ item.dictLabel }}
</view> </view>
</scroll-view> </scroll-view>
<scroll-view class="item-middle" scroll-y="true"> <scroll-view class="item-middle" scroll-y="true">
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
@click.stop="selectMiddle(inx)" @click.stop="selectMiddle(inx)"
> >
<view class="item-middle-list-name"> <view class="item-middle-list-name">
{{ mess.description }} {{ mess.dictLabel }}
</view> </view>
<!-- <image <!-- <image
v-if="mess.chooseState" v-if="mess.chooseState"
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
@click.stop="selectRight(mess)" @click.stop="selectRight(mess)"
> >
<view class="item-right-list-name"> <view class="item-right-list-name">
{{ mess.description }} {{ mess.dictLabel }}
</view> </view>
<image <image
v-if="mess.chooseState" v-if="mess.chooseState"
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
: '' : ''
" "
@click.stop="chooseLeft(index)" @click.stop="chooseLeft(index)"
>{{ item.name }} >{{ item.dictLabel }}
</view> </view>
</scroll-view> </scroll-view>
<scroll-view <scroll-view
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
class="item-right-list-name-info" class="item-right-list-name-info"
:style="mess.chooseState ? 'color:' + themeColor : ''" :style="mess.chooseState ? 'color:' + themeColor : ''"
> >
{{ mess.name }} {{ mess.dictLabel }}
</view> </view>
<image <image
v-if="mess.chooseState" v-if="mess.chooseState"
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
@click.stop="selectRight(item)" @click.stop="selectRight(item)"
:style="item.chooseState ? 'background: #F2F2F2' : ''" :style="item.chooseState ? 'background: #F2F2F2' : ''"
> >
<view class="item-right-list-name">{{ item.description }} </view> <view class="item-right-list-name">{{ item.dictLabel }} </view>
<image <image
v-if="item.chooseState" v-if="item.chooseState"
class="item-right-list-img" class="item-right-list-img"
......
<template> <template>
<media-card <media-card
:img="areaInfo.imgUrl" :img="areaInfo.imgUrl || ''"
:title="areaInfo.name" :title="areaInfo.name || ''"
:cardId="areaInfo.id" :cardId="areaInfo.id"
@click="toDetail" @click="toDetail"
> >
......
<template> <template>
<media-card <media-card
:img="detail.imgUrl" :img="detail.imgUrl || ''"
:title="detail.name" :title="detail.name || ''"
:keyWords="keyWords" :keyWords="keyWords"
:cardId="detail.id" :cardId="detail.id"
@click="toDetail" @click="toDetail"
...@@ -26,13 +26,16 @@ ...@@ -26,13 +26,16 @@
<script> <script>
import mediaCard from "./card.vue"; import mediaCard from "./card.vue";
export default { export default {
name: "AreaCard",
components: {mediaCard}, components: {mediaCard},
props: { props: {
detail: { detail: {
type: Object, type: Object,
default: () => ({}), default: () => ({}),
}, },
keyWords: {
type: String,
default: "",
},
}, },
methods: { methods: {
toDetail() { toDetail() {
......
<template> <template>
<media-card <media-card
:img="parkInfo.imgUrl" :img="parkInfo.imgUrl || ''"
:title="parkInfo.name" :title="parkInfo.name || ''"
:keyWords="keyWords" :keyWords="keyWords"
:cardId="parkInfo.id" :cardId="parkInfo.id"
@click="toDetail" @click="toDetail"
...@@ -40,20 +40,6 @@ export default { ...@@ -40,20 +40,6 @@ export default {
type: String, type: String,
default: "", default: "",
}, },
hideCollect: {
default: false,
},
showUpdateTime: {
default: false,
},
showBtn: {
type: Boolean,
default: false,
},
from: {
type: String,
default: '',
},
}, },
data() { data() {
return { return {
......
This diff is collapsed.
src/static/img/icon-tab_1.png

749 Bytes | W: | H:

src/static/img/icon-tab_1.png

1.63 KB | W: | H:

src/static/img/icon-tab_1.png
src/static/img/icon-tab_1.png
src/static/img/icon-tab_1.png
src/static/img/icon-tab_1.png
  • 2-up
  • Swipe
  • Onion skin
src/static/img/icon-tab_1_active.png

1.86 KB | W: | H:

src/static/img/icon-tab_1_active.png

1.37 KB | W: | H:

src/static/img/icon-tab_1_active.png
src/static/img/icon-tab_1_active.png
src/static/img/icon-tab_1_active.png
src/static/img/icon-tab_1_active.png
  • 2-up
  • Swipe
  • Onion skin
src/static/img/icon-tab_2.png

845 Bytes | W: | H:

src/static/img/icon-tab_2.png

1.73 KB | W: | H:

src/static/img/icon-tab_2.png
src/static/img/icon-tab_2.png
src/static/img/icon-tab_2.png
src/static/img/icon-tab_2.png
  • 2-up
  • Swipe
  • Onion skin
src/static/img/icon-tab_2_active.png

1.13 KB | W: | H:

src/static/img/icon-tab_2_active.png

1.52 KB | W: | H:

src/static/img/icon-tab_2_active.png
src/static/img/icon-tab_2_active.png
src/static/img/icon-tab_2_active.png
src/static/img/icon-tab_2_active.png
  • 2-up
  • Swipe
  • Onion skin
src/static/img/icon-tab_3.png

1.44 KB | W: | H:

src/static/img/icon-tab_3.png

2.85 KB | W: | H:

src/static/img/icon-tab_3.png
src/static/img/icon-tab_3.png
src/static/img/icon-tab_3.png
src/static/img/icon-tab_3.png
  • 2-up
  • Swipe
  • Onion skin
src/static/img/icon-tab_3_active.png

1.49 KB | W: | H:

src/static/img/icon-tab_3_active.png

2.54 KB | W: | H:

src/static/img/icon-tab_3_active.png
src/static/img/icon-tab_3_active.png
src/static/img/icon-tab_3_active.png
src/static/img/icon-tab_3_active.png
  • 2-up
  • Swipe
  • Onion skin
src/static/img/icon-tab_4.png

1.32 KB | W: | H:

src/static/img/icon-tab_4.png

2.62 KB | W: | H:

src/static/img/icon-tab_4.png
src/static/img/icon-tab_4.png
src/static/img/icon-tab_4.png
src/static/img/icon-tab_4.png
  • 2-up
  • Swipe
  • Onion skin
src/static/img/icon-tab_4_active.png

1.35 KB | W: | H:

src/static/img/icon-tab_4_active.png

2.03 KB | W: | H:

src/static/img/icon-tab_4_active.png
src/static/img/icon-tab_4_active.png
src/static/img/icon-tab_4_active.png
src/static/img/icon-tab_4_active.png
  • 2-up
  • Swipe
  • Onion skin
import Vue from 'vue' import Vue from 'vue'
import Vuex from 'vuex' import Vuex from 'vuex'
import fetch from '@/utils/request.js'
import API from "@/api/url";
Vue.use(Vuex) Vue.use(Vuex)
const store = new Vuex.Store({ const store = new Vuex.Store({
state: { state: {
policyList: [], policyList: [],
primaryIndustryList: [] primaryIndustryList: [],
filterEnum: []
},
actions: {
getFilterEnum({commit}) {
const queryStr =
'park_level,park_direction,park_area,park_resources,land_price,industry_policy,development_level,development_type,development_direction,development_area,industry_policy,land_type,land_area,carrier_area,carrier_type,carrier_construction,floor_height,load_bearing,pillar_distance';
return new Promise((resolve, reject) => {
fetch({
url: API.queryFiltersList,
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
data: {
code: queryStr
},
success: res => {
commit('setFilterEnum', res)
resolve(res)
}
})
})
}
}, },
mutations: { mutations: {
setPolicyList(state, provider) { setPolicyList(state, provider) {
...@@ -14,6 +39,9 @@ const store = new Vuex.Store({ ...@@ -14,6 +39,9 @@ const store = new Vuex.Store({
}, },
setPrimaryIndustryList(state, provider) { setPrimaryIndustryList(state, provider) {
state.primaryIndustryList = provider state.primaryIndustryList = provider
},
setFilterEnum(state, provider) {
state.filterEnum = provider;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment