|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div class='ConstructSearch'>
|
|
|
+ <div class="ConstructSearch">
|
|
|
<!-- 输入框 -->
|
|
|
<!-- <div class="inputBox" @keydown.enter="searchFu()">
|
|
|
<div class="searInco" @click="searchFu()">
|
|
@@ -10,8 +10,12 @@
|
|
|
<!-- 文字介绍 -->
|
|
|
<div class="searTxt">
|
|
|
<h3>芜湖市古建一张图</h3>
|
|
|
- <p>  芜湖是全国文明城市、全国创新型试点城市、全国电子商务示范城市、全国信息消费示范城市、全国双拥模范城、国家园林城市等。</p>
|
|
|
- <p>  辖区内有方特旅游度假区、天门山、镜湖公园、鸠兹古镇、丫山风景区、马仁奇峰、松鼠小镇、广济寺、王稼祥纪念园、繁昌窑遗址等景区。</p>
|
|
|
+ <p>
|
|
|
+   芜湖是全国文明城市、全国创新型试点城市、全国电子商务示范城市、全国信息消费示范城市、全国双拥模范城、国家园林城市等。
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+   辖区内有方特旅游度假区、天门山、镜湖公园、鸠兹古镇、丫山风景区、马仁奇峰、松鼠小镇、广济寺、王稼祥纪念园、繁昌窑遗址等景区。
|
|
|
+ </p>
|
|
|
</div>
|
|
|
<!-- 底部下拉 -->
|
|
|
<div class="searDown">
|
|
@@ -29,7 +33,13 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="downInfo" :class="{ downInfoAc: item.done }">
|
|
|
- <div @click="$router.push('/layout/goods')" v-for="val in item.children" :key="val.id">{{ val.name }}</div>
|
|
|
+ <div
|
|
|
+ @click="$router.push(`/layout/goods/${val.path}`)"
|
|
|
+ v-for="val in item.children"
|
|
|
+ :key="val.id"
|
|
|
+ >
|
|
|
+ {{ val.name }}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -39,48 +49,70 @@
|
|
|
|
|
|
<script>
|
|
|
export default {
|
|
|
- name: 'ConstructSearch',
|
|
|
+ name: "ConstructSearch",
|
|
|
components: {},
|
|
|
data() {
|
|
|
return {
|
|
|
- txt: '',
|
|
|
+ txt: "",
|
|
|
data: [
|
|
|
- { id: 1, name: '全部', done: false, children: [{ id: 1001, name: '芜湖老海关' }] },
|
|
|
- { id: 2, name: '镜湖', done: false, children: [{ id: 1001, name: '芜湖老海关' }] },
|
|
|
- { id: 3, name: '鸠江', done: false, children: [] },
|
|
|
- { id: 4, name: '弋江', done: false, children: [] },
|
|
|
- { id: 5, name: '湾沚', done: false, children: [] },
|
|
|
- { id: 6, name: '繁昌', done: false, children: [] },
|
|
|
- ]
|
|
|
+ {
|
|
|
+ id: 1,
|
|
|
+ name: "全部",
|
|
|
+ done: false,
|
|
|
+ children: [
|
|
|
+ { id: 1001, name: "老芜湖海关旧址", path: 1 },
|
|
|
+ { id: 1002, name: "英驻芜领事署旧址", path: 2 },
|
|
|
+ { id: 1003, name: "总税务司公所旧址", path: 3 },
|
|
|
+ { id: 1004, name: "洋员帮办楼旧址", path: 4 },
|
|
|
+ { id: 1005, name: "英驻芜领事官邸旧址", path: 5 },
|
|
|
+ { id: 1006, name: "天主堂", path: 6 },
|
|
|
+ { id: 1007, name: "神父楼", path: 7 },
|
|
|
+ { id: 1008, name: "天主教主教公署旧址", path: 8 },
|
|
|
+ { id: 1009, name: "圣母院旧址", path: 9 },
|
|
|
+ { id: 1010, name: "天主教修士楼", path: 10 },
|
|
|
+ { id: 1011, name: "内思高级工业职业学校旧址", path: 11 },
|
|
|
+ { id: 1012, name: "博仁堂", path: 12 },
|
|
|
+ { id: 1013, name: "义德堂", path: 13 },
|
|
|
+ { id: 1014, name: "经方堂", path: 14 },
|
|
|
+ { id: 1015, name: "广济寺塔", path: 15 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 2,
|
|
|
+ name: "镜湖",
|
|
|
+ done: false,
|
|
|
+ children: [{ id: 1001, name: "芜湖老海关", path: 1 }],
|
|
|
+ },
|
|
|
+ { id: 3, name: "鸠江", done: false, children: [] },
|
|
|
+ { id: 4, name: "弋江", done: false, children: [] },
|
|
|
+ { id: 5, name: "湾沚", done: false, children: [] },
|
|
|
+ { id: 6, name: "繁昌", done: false, children: [] },
|
|
|
+ ],
|
|
|
};
|
|
|
},
|
|
|
computed: {},
|
|
|
watch: {},
|
|
|
methods: {
|
|
|
searchFu() {
|
|
|
- console.log('---------');
|
|
|
- }
|
|
|
- },
|
|
|
- created() {
|
|
|
-
|
|
|
+ console.log("---------");
|
|
|
+ },
|
|
|
},
|
|
|
- mounted() {
|
|
|
-
|
|
|
- },
|
|
|
- beforeCreate() { }, //生命周期 - 创建之前
|
|
|
- beforeMount() { }, //生命周期 - 挂载之前
|
|
|
- beforeUpdate() { }, //生命周期 - 更新之前
|
|
|
- updated() { }, //生命周期 - 更新之后
|
|
|
- beforeDestroy() { }, //生命周期 - 销毁之前
|
|
|
- destroyed() { }, //生命周期 - 销毁完成
|
|
|
- activated() { }, //如果页面有keep-alive缓存功能,这个函数会触发
|
|
|
-}
|
|
|
+ created() {},
|
|
|
+ mounted() {},
|
|
|
+ beforeCreate() {}, //生命周期 - 创建之前
|
|
|
+ beforeMount() {}, //生命周期 - 挂载之前
|
|
|
+ beforeUpdate() {}, //生命周期 - 更新之前
|
|
|
+ updated() {}, //生命周期 - 更新之后
|
|
|
+ beforeDestroy() {}, //生命周期 - 销毁之前
|
|
|
+ destroyed() {}, //生命周期 - 销毁完成
|
|
|
+ activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
|
|
|
+};
|
|
|
</script>
|
|
|
<style lang='less' scoped>
|
|
|
.ConstructSearch {
|
|
|
width: 75%;
|
|
|
height: 100%;
|
|
|
- background-image: url('../../../assets/img/construct/searchBac.png');
|
|
|
+ background-image: url("../../../assets/img/construct/searchBac.png");
|
|
|
background-size: 100% 100%;
|
|
|
padding-top: 10px;
|
|
|
|
|
@@ -91,7 +123,7 @@ export default {
|
|
|
position: relative;
|
|
|
|
|
|
.searInco {
|
|
|
- color: #A0A0A0;
|
|
|
+ color: #a0a0a0;
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
@@ -171,7 +203,7 @@ export default {
|
|
|
width: 30px;
|
|
|
height: 24px;
|
|
|
border-radius: 5px;
|
|
|
- background-color: #ECB1B8;
|
|
|
+ background-color: #ecb1b8;
|
|
|
text-align: center;
|
|
|
line-height: 24px;
|
|
|
color: #fff;
|
|
@@ -183,8 +215,8 @@ export default {
|
|
|
}
|
|
|
|
|
|
.downInfo {
|
|
|
- &>div {
|
|
|
- transition: height .3s;
|
|
|
+ & > div {
|
|
|
+ transition: height 0.3s;
|
|
|
padding-left: 40px;
|
|
|
height: 0;
|
|
|
line-height: 0;
|
|
@@ -194,7 +226,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
.downInfoAc {
|
|
|
- &>div {
|
|
|
+ & > div {
|
|
|
opacity: 1;
|
|
|
height: 30px;
|
|
|
line-height: 30px;
|