update:更新
This commit is contained in:
@@ -32,25 +32,26 @@
|
||||
<van-list>
|
||||
<div
|
||||
:key="item.id"
|
||||
@click="gotoDetail(item.id)"
|
||||
class="proListBox shadow"
|
||||
v-for="item in info.prjList"
|
||||
>
|
||||
<div class="proAreaBox">
|
||||
<div class="proArea">{{ item.area }}</div>
|
||||
<div class="proCenterFont" v-if="item.state_cd == 1">
|
||||
· {{ item.currentState }}
|
||||
<div @click="gotoDetail(item.prjId)">
|
||||
<div class="proAreaBox">
|
||||
<div class="proArea">{{ item.area }}</div>
|
||||
<div class="proCenterFont" v-if="item.state_cd == 1">
|
||||
· {{ item.currentState }}
|
||||
</div>
|
||||
<div class="proCenterFont" style="color:#179D5C" v-else>
|
||||
· {{ item.currentState }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="proCenterFont" style="color:#179D5C" v-else>
|
||||
· {{ item.currentState }}
|
||||
<div class="proAreaBox">
|
||||
<div class="proTitleBox">{{ item.name }}</div>
|
||||
</div>
|
||||
<van-divider style="margin:8px 0;" />
|
||||
<div class="proDateBox">
|
||||
<div>{{ item.prjId }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="proAreaBox">
|
||||
<div class="proTitleBox">{{ item.zsbm }}</div>
|
||||
</div>
|
||||
<van-divider style="margin:8px 0;" />
|
||||
<div class="proDateBox">
|
||||
<div>{{ item.year }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</van-list>
|
||||
@@ -86,10 +87,12 @@ export default {
|
||||
},
|
||||
created() {
|
||||
this.onInit();
|
||||
this.onLoadData();
|
||||
},
|
||||
methods: {
|
||||
// 获取数据
|
||||
onInit() {
|
||||
this.type = this.$route.params.type;
|
||||
this.ticket = this.$route.params.ticket;
|
||||
mgop({
|
||||
api: "mgop.kykj.houseexpropriat.getprjlist",
|
||||
host: "https://mapi.zjzwfw.gov.cn/",
|
||||
@@ -100,7 +103,6 @@ export default {
|
||||
},
|
||||
appKey: "es4b8zmz+2001833218+dehllx",
|
||||
onSuccess: data => {
|
||||
console.log("首页数据", data);
|
||||
const { data: res } = data;
|
||||
this.info = res.data;
|
||||
},
|
||||
@@ -109,16 +111,17 @@ export default {
|
||||
}
|
||||
});
|
||||
},
|
||||
onLoadData() {
|
||||
this.type = this.$route.params.type;
|
||||
this.ticket = this.$route.params.ticket;
|
||||
},
|
||||
// 页面跳转
|
||||
gotoDetail(id) {
|
||||
if (this.type == "pg") {
|
||||
// 评估结果页面
|
||||
this.$router.push({
|
||||
name: "evaluteResult",
|
||||
params: { projectid: id, type: this.type, ticket: this.ticket }
|
||||
params: {
|
||||
prjId: id,
|
||||
type: this.type,
|
||||
ticket: this.$route.params.ticket
|
||||
}
|
||||
});
|
||||
} else if (this.type == "xy") {
|
||||
// 协议结果页面
|
||||
|
||||
Reference in New Issue
Block a user