update:更新页面接口数据

This commit is contained in:
2021-09-23 14:53:10 +08:00
parent 4e80b23861
commit e0925115ed
9 changed files with 93 additions and 116 deletions

View File

@@ -51,7 +51,7 @@
</div>
<van-divider style="margin:8px 0;" />
<div class="proDateBox">
<div>{{ item.prjId }}</div>
<div>{{ item.createRecordTime }}</div>
</div>
</div>
</van-list>
@@ -96,25 +96,9 @@ export default {
if (this.$route.params.type) {
window.sessionStorage.setItem("type", this.$route.params.type);
}
this.ticket = this.$route.params.ticket;
mgop({
api: "mgop.kykj.houseexpropriat.getprjlist",
host: "https://mapi.zjzwfw.gov.cn/",
dataType: "JSON",
type: "POST",
data: {
ticket:
this.$route.params.ticket || window.sessionStorage.getItem("ticket")
},
appKey: "es4b8zmz+2001833218+dehllx",
onSuccess: data => {
const { data: res } = data;
this.info = res.data;
},
onFail: err => {
console.log("用户无数据,不展示");
}
});
this.info = JSON.parse(
JSON.stringify(this.$store.state.homeData.data.data)
);
},
// 页面跳转
gotoDetail(id) {
@@ -123,8 +107,7 @@ export default {
this.$router.push({
name: "evalute",
params: {
prjId: id,
ticket: this.$route.params.ticket
prjId: id
}
});
} else if (window.sessionStorage.getItem("type") == "xy") {
@@ -132,8 +115,7 @@ export default {
this.$router.push({
name: "reportAgreement",
params: {
prjId: id,
ticket: this.$route.params.ticket
prjId: id
}
});
}