|
@@ -30,12 +30,16 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ // 是否展示详情页
|
|
|
ishowDetails: true,
|
|
|
+ // 返回的公告总数据
|
|
|
result: {},
|
|
|
+ // 详情页数据
|
|
|
detailObj: {},
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
+ // 请求停水列表数据与详情
|
|
|
getCurrentPage().then((res) => {
|
|
|
console.log(res);
|
|
|
if (res.code === 1) {
|
|
@@ -44,12 +48,12 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 点击标题
|
|
|
toDetail(proId) {
|
|
|
this.ishowDetails = false;
|
|
|
this.result.records.forEach((item) => {
|
|
|
if (item.id === proId) {
|
|
|
this.detailObj = item;
|
|
|
- console.log("111", this.detailObj);
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -65,6 +69,7 @@ export default {
|
|
|
width: 100%;
|
|
|
}
|
|
|
ul {
|
|
|
+ min-height: 50vh;
|
|
|
li {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|