Merge branch 'master' of http://118.178.224.202:3000/ewide/zsxt_nbzs_h5
This commit is contained in:
@@ -53,7 +53,9 @@
|
||||
<van-list>
|
||||
<div :key="item.prjId" v-for="item in data.prjList">
|
||||
<div class="centerMagin">
|
||||
<!-- 图标所在行 -->
|
||||
<div class="project">
|
||||
<!-- window图标 -->
|
||||
<div>
|
||||
<van-image
|
||||
:src="require('@/assets/img/project.png')"
|
||||
@@ -61,6 +63,7 @@
|
||||
/>
|
||||
<span class="projectTitle">{{ item.name }}</span>
|
||||
</div>
|
||||
<!-- 补偿协议图标 -->
|
||||
<div class="projectRight">
|
||||
<van-image
|
||||
:src="require('@/assets/img/menu_yhxy.png')"
|
||||
@@ -70,8 +73,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 所有内容 -->
|
||||
<div class="projectCenter centerMagin">
|
||||
<!-- 曙光一村内容 -->
|
||||
<!-- 项目内容 -->
|
||||
<div class="projectCenterBox">
|
||||
<div class="projectCenterInfo">
|
||||
<div class="projectCenterInfo">
|
||||
@@ -126,15 +130,14 @@
|
||||
/>
|
||||
<span class="assessTitle">分户评估结果</span>
|
||||
</div>
|
||||
<!-- <div>
|
||||
<van-image :src="require('@/assets/img/skip.png')" class="assessRightIcon" round />
|
||||
</div>-->
|
||||
</div>
|
||||
<!-- 分户评估遍历内容 -->
|
||||
<van-list>
|
||||
<div
|
||||
:key="assess.id"
|
||||
class="assessCenter1"
|
||||
v-for="assess in item.fhpgList"
|
||||
@click="gotoProject('pg', item.prjId)"
|
||||
>
|
||||
<div class="assessBox">
|
||||
<span class="projectCenterFont">评估报告编号:</span>
|
||||
@@ -171,11 +174,13 @@
|
||||
<van-image :src="require('@/assets/img/skip.png')" class="assessRightIcon" round />
|
||||
</div>-->
|
||||
</div>
|
||||
<!-- 补偿协议遍历内容 -->
|
||||
<van-list>
|
||||
<div
|
||||
:key="protocol.id"
|
||||
class="assessCenter2"
|
||||
v-for="protocol in item.bcxyList"
|
||||
@click="gotoProject('xy', item.prjId)"
|
||||
>
|
||||
<div class="assessBox">
|
||||
<span class="projectCenterFont">协议编号:</span>
|
||||
@@ -225,6 +230,7 @@
|
||||
</div>
|
||||
<div class="centerMagin" style="padding-bottom: 20px">
|
||||
<div class="protocolBox">
|
||||
<!-- 遍历内容 -->
|
||||
<van-list>
|
||||
<div
|
||||
:key="item.id"
|
||||
@@ -281,6 +287,7 @@
|
||||
import "./home.css";
|
||||
import { apis } from "@/common/apis";
|
||||
import { mgop } from "@aligov/jssdk-mgop";
|
||||
import { SetTicket } from "@/common/util//tools";
|
||||
export default {
|
||||
name: "home",
|
||||
data() {
|
||||
@@ -289,15 +296,17 @@ export default {
|
||||
idCard: "加载中...",
|
||||
userName: "加载中...",
|
||||
policiesRegulationsLists: {
|
||||
totalCount: 0,
|
||||
},
|
||||
totalCount: 0
|
||||
}
|
||||
},
|
||||
ticket: "8a1189377bdad67c017bf66039d76376-ticket"
|
||||
};
|
||||
},
|
||||
async created() {
|
||||
this.onInit();
|
||||
console.log("this", this);
|
||||
this.setLocationAplus();
|
||||
SetTicket(this.$route.query.ticket || this.ticket);
|
||||
},
|
||||
methods: {
|
||||
// 获取数据
|
||||
@@ -308,11 +317,10 @@ export default {
|
||||
dataType: "JSON",
|
||||
type: "POST",
|
||||
data: {
|
||||
ticket: this.$route.query.ticket,
|
||||
//ticket: "8a118a427bda7bed017bed084ec10622-ticket"
|
||||
ticket: this.$route.query.ticket || this.ticket
|
||||
},
|
||||
appKey: "es4b8zmz+2001833218+dehllx",
|
||||
onSuccess: (data) => {
|
||||
onSuccess: data => {
|
||||
console.log("首页数据", data);
|
||||
if (data.data && data.data.success == true) {
|
||||
this.data = data.data.data;
|
||||
@@ -328,16 +336,20 @@ export default {
|
||||
} else console.log("用户无数据,不展示");
|
||||
}
|
||||
},
|
||||
onFail: (err) => {
|
||||
onFail: err => {
|
||||
console.log("用户无数据,不展示");
|
||||
},
|
||||
}
|
||||
});
|
||||
},
|
||||
// 跳转项目详情
|
||||
gotoProject(type) {
|
||||
gotoProject(type, id) {
|
||||
this.$router.push({
|
||||
name: "projectSelect",
|
||||
params: { type: type, ticket: this.$route.query.ticket },
|
||||
params: {
|
||||
type: type,
|
||||
ticket: this.$route.query.ticket || this.ticket,
|
||||
prjId: id || this.data.prjList[0].prjId
|
||||
}
|
||||
});
|
||||
},
|
||||
// 加载项目数统计信息
|
||||
@@ -357,19 +369,19 @@ export default {
|
||||
// 设置用户信息埋点
|
||||
aplus_queue.push({
|
||||
action: "aplus.setMetaInfo",
|
||||
arguments: ["_hold", "BLOCK"],
|
||||
arguments: ["_hold", "BLOCK"]
|
||||
});
|
||||
aplus_queue.push({
|
||||
action: "aplus.setMetaInfo",
|
||||
arguments: ["_user_nick", userName], // this.userInfoData.username],
|
||||
arguments: ["_user_nick", userName] // this.userInfoData.username],
|
||||
});
|
||||
aplus_queue.push({
|
||||
action: "aplus.setMetaInfo",
|
||||
arguments: ["_user_id", Userid],
|
||||
arguments: ["_user_id", Userid]
|
||||
});
|
||||
aplus_queue.push({
|
||||
action: "aplus.setMetaInfo",
|
||||
arguments: ["_hold", "START"],
|
||||
arguments: ["_hold", "START"]
|
||||
});
|
||||
},
|
||||
setLocationAplus() {
|
||||
@@ -389,7 +401,7 @@ export default {
|
||||
action: "aplus.sendPV",
|
||||
arguments: [
|
||||
{
|
||||
is_auto: false,
|
||||
is_auto: false
|
||||
},
|
||||
{
|
||||
isMini: true,
|
||||
@@ -397,20 +409,20 @@ export default {
|
||||
miniAppName: "房屋征收",
|
||||
long: result2.longitude,
|
||||
lati: result2.latitude,
|
||||
userType: result1.userType,
|
||||
},
|
||||
],
|
||||
userType: result1.userType
|
||||
}
|
||||
]
|
||||
});
|
||||
})
|
||||
.catch((error) => {
|
||||
.catch(error => {
|
||||
console.log(error);
|
||||
});
|
||||
})
|
||||
.catch((error) => {
|
||||
.catch(error => {
|
||||
console.log(error);
|
||||
});
|
||||
});
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user