This commit is contained in:
2021-11-05 16:45:08 +08:00
2 changed files with 84 additions and 57 deletions

View File

@@ -2,21 +2,15 @@
<div id="app"> <div id="app">
<van-overlay :show="show" @click="show = false"> <van-overlay :show="show" @click="show = false">
<div class="overlay"> <div class="overlay">
<div class="mode"> <div class="mode">进入老年模式</div>
进入老年模式
</div>
<img src="@/assets/img/jiantou.png" /> <img src="@/assets/img/jiantou.png" />
<div> <div>
为方便老年用户可点击此按钮进入 为方便老年用户可点击此按钮进入
<span>老年模式</span> <span>老年模式</span>
查询信息 查询信息
</div> </div>
<div> <div>更大的字体更多的贴心</div>
更大的字体更多的贴心 <div>轻触屏幕关闭此指引</div>
</div>
<div>
轻触屏幕关闭此指引
</div>
<div> <div>
<input type="radio" @click="inputEvent" /> <input type="radio" @click="inputEvent" />
@@ -36,7 +30,11 @@
<p>本服务由浙江政务服务网宁波市住房保障和房屋征收管理中心提供</p> <p>本服务由浙江政务服务网宁波市住房保障和房屋征收管理中心提供</p>
<p> <p>
服务咨询热线<b> <a href="tel://0574-88086606">0574-88086606</a></b> 服务咨询热线<b>
<a href="javascript:;" @click="callphone('0574-88086606')"
>0574-88086606</a
></b
>
</p> </p>
<div v-if="mode === true" class="logout" @click="logout"> <div v-if="mode === true" class="logout" @click="logout">
<span>退出老年模式</span> <span>退出老年模式</span>
@@ -57,7 +55,7 @@ export default {
mode: false, mode: false,
isLoading: true, isLoading: true,
show: true show: true,
}; };
}, },
created() { created() {
@@ -90,8 +88,19 @@ export default {
}, },
inputEvent() { inputEvent() {
localStorage.setItem("overlay", "flase"); localStorage.setItem("overlay", "flase");
} },
} callphone(phonenumber) {
ZWJSBridge.phoneCall({
corpId: phonenumber,
})
.then((result) => {
console.log(result);
})
.catch((error) => {
console.log(error);
});
},
},
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>

View File

@@ -6,9 +6,7 @@
element-loading-background="#c9c0c0" --> element-loading-background="#c9c0c0" -->
<div class="topBox"> <div class="topBox">
<div class="olderVersion"> <div class="olderVersion">
<div class="titleBox"> <div class="titleBox">被征收人信息查询</div>
被征收人信息查询
</div>
<div v-if="mode == false" @click="toOlderMode()" class="mode"> <div v-if="mode == false" @click="toOlderMode()" class="mode">
进入老年模式 进入老年模式
</div> </div>
@@ -25,15 +23,15 @@
</div> </div>
<!-- 三张背景图 --> <!-- 三张背景图 -->
<div class="gridBg"> <div class="gridBg">
<div style="background:#1897FB;"> <div @click="scan()" style="background: #1897fb">
<img src="@/assets/img/scan.png" /> <img src="@/assets/img/scan.png" />
<span>扫一扫</span> <span>扫一扫</span>
</div> </div>
<div @click="gotoProject('pg')" style="background:#F1AE4B;"> <div @click="gotoProject('pg')" style="background: #f1ae4b">
<img src="@/assets/img/evaluation.png" /> <img src="@/assets/img/evaluation.png" />
<span>查评估结果</span> <span>查评估结果</span>
</div> </div>
<div @click="gotoProject('xy')" style="background:#16D7ED;"> <div @click="gotoProject('xy')" style="background: #16d7ed">
<img src="@/assets/img/compensation.png" /> <img src="@/assets/img/compensation.png" />
<span>查补偿协议</span> <span>查补偿协议</span>
</div> </div>
@@ -175,7 +173,7 @@
> >
<!-- 非最后一行有边框 --> <!-- 非最后一行有边框 -->
<div <div
style="border-bottom: 1px dashed #E8E9EC" style="border-bottom: 1px dashed #e8e9ec"
v-if="i != data.policiesRegulationsLists.list.length - 1" v-if="i != data.policiesRegulationsLists.list.length - 1"
> >
<div>{{ item.title }}</div> <div>{{ item.title }}</div>
@@ -222,7 +220,7 @@ export default {
// }, // },
// { title: "无数据", publicTime: "无数据", area: "无数据" }, // { title: "无数据", publicTime: "无数据", area: "无数据" },
// { title: "无数据", publicTime: "无数据", area: "无数据" } // { title: "无数据", publicTime: "无数据", area: "无数据" }
] ],
}, },
prjList: [ prjList: [
{ {
@@ -257,7 +255,7 @@ export default {
// switchProductionWay: "无数据", // switchProductionWay: "无数据",
// summationShouldCompensateMoney: "无数据" // summationShouldCompensateMoney: "无数据"
// } // }
] ],
}, },
{ {
// name: "无数据", // name: "无数据",
@@ -280,10 +278,10 @@ export default {
// switchProductionWay: "无数据", // switchProductionWay: "无数据",
// summationShouldCompensateMoney: "无数据" // summationShouldCompensateMoney: "无数据"
// } // }
] ],
} },
] ],
} },
}; };
}, },
created() { created() {
@@ -319,10 +317,10 @@ export default {
dataType: "JSON", dataType: "JSON",
type: "POST", type: "POST",
data: { data: {
ticket: this.$route.query.ticket ticket: this.$route.query.ticket,
}, },
appKey: "es4b8zmz+2001833218+dehllx", appKey: "es4b8zmz+2001833218+dehllx",
onSuccess: data => { onSuccess: (data) => {
this.loading = false; this.loading = false;
window.sessionStorage.setItem("homeData", JSON.stringify(data)); window.sessionStorage.setItem("homeData", JSON.stringify(data));
if (data.data.success) { if (data.data.success) {
@@ -337,7 +335,7 @@ export default {
message: "登录超时,请重新登录", message: "登录超时,请重新登录",
duration: 3000, duration: 3000,
type: "info", type: "info",
center: true center: true,
}); });
setTimeout(() => { setTimeout(() => {
window.location.replace( window.location.replace(
@@ -349,20 +347,20 @@ export default {
message: "请求出错", message: "请求出错",
duration: 3000, duration: 3000,
type: "error", type: "error",
center: true center: true,
}); });
} }
} }
}, },
onFail: err => { onFail: (err) => {
this.loading = false; this.loading = false;
this.$notify({ this.$notify({
title: "错误", title: "错误",
message: "请求失败", message: "请求失败",
duration: 3000, duration: 3000,
type: "error" type: "error",
}); });
} },
}); });
}, },
toOlderMode() { toOlderMode() {
@@ -392,8 +390,8 @@ export default {
this.$router.push({ this.$router.push({
name: "projectSelect", name: "projectSelect",
params: { params: {
type: type type: type,
} },
}); });
}, },
// 直接跳转分户评估结果页面 // 直接跳转分户评估结果页面
@@ -404,8 +402,8 @@ export default {
name: "evaluatePage", name: "evaluatePage",
params: { params: {
fhpgId: id, fhpgId: id,
type type,
} },
}); });
}, },
// 直接跳转协议结果pdf // 直接跳转协议结果pdf
@@ -415,8 +413,8 @@ export default {
this.$router.push({ this.$router.push({
name: "showPdf", name: "showPdf",
params: { params: {
id id,
} },
}); });
}, },
// 加载项目数统计信息 // 加载项目数统计信息
@@ -431,38 +429,38 @@ export default {
$("#app").removeClass("old_app3"); $("#app").removeClass("old_app3");
this.$router.push({ this.$router.push({
name: "policyInfo", name: "policyInfo",
params: { id } params: { id },
}); });
}, },
setZwUserAplus(Userid, userName) { setZwUserAplus(Userid, userName) {
// 设置用户信息埋点 // 设置用户信息埋点
aplus_queue.push({ aplus_queue.push({
action: "aplus.setMetaInfo", action: "aplus.setMetaInfo",
arguments: ["_hold", "BLOCK"] arguments: ["_hold", "BLOCK"],
}); });
aplus_queue.push({ aplus_queue.push({
action: "aplus.setMetaInfo", action: "aplus.setMetaInfo",
arguments: ["_user_nick", userName] // this.userInfoData.username], arguments: ["_user_nick", userName], // this.userInfoData.username],
}); });
aplus_queue.push({ aplus_queue.push({
action: "aplus.setMetaInfo", action: "aplus.setMetaInfo",
arguments: ["_user_id", Userid] arguments: ["_user_id", Userid],
}); });
aplus_queue.push({ aplus_queue.push({
action: "aplus.setMetaInfo", action: "aplus.setMetaInfo",
arguments: ["_hold", "START"] arguments: ["_hold", "START"],
}); });
}, },
setLocationAplus() { setLocationAplus() {
ZWJSBridge.onReady(() => { ZWJSBridge.onReady(() => {
// console.log("初始化完成后执行bridge方法"); // console.log("初始化完成后执行bridge方法");
ZWJSBridge.getUserType() ZWJSBridge.getUserType()
.then(result1 => { .then((result1) => {
// console.log("getUserType():" + JSON.stringify(result1)); // console.log("getUserType():" + JSON.stringify(result1));
// console.log("result1.userType:" + result1.userType); // console.log("result1.userType:" + result1.userType);
//经纬度 //经纬度
ZWJSBridge.getLocation() ZWJSBridge.getLocation()
.then(result2 => { .then((result2) => {
// console.log("getLocation():" + JSON.stringify(result2)); // console.log("getLocation():" + JSON.stringify(result2));
// console.log("result2.longitude:" + result2.longitude); // console.log("result2.longitude:" + result2.longitude);
// console.log("result2.latitude:" + result2.latitude); // console.log("result2.latitude:" + result2.latitude);
@@ -470,7 +468,7 @@ export default {
action: "aplus.sendPV", action: "aplus.sendPV",
arguments: [ arguments: [
{ {
is_auto: false is_auto: false,
}, },
{ {
isMini: true, isMini: true,
@@ -478,21 +476,41 @@ export default {
miniAppName: "房屋征收", miniAppName: "房屋征收",
long: result2.longitude, long: result2.longitude,
lati: result2.latitude, lati: result2.latitude,
userType: result1.userType userType: result1.userType,
} },
] ],
}); });
}) })
.catch(error => { .catch((error) => {
// console.log(error); // console.log(error);
}); });
}) })
.catch(error => { .catch((error) => {
// console.log(error); // console.log(error);
}); });
}); });
},
scan() {
//扫一扫
ZWJSBridge.scan({ type: "qrCode" })
.then((data) => {
// data =>{"text" : "扫描到的内容"}
if (data.text.indexOf("http") > -1) {
window.location.replace(data.text);
} else {
this.$message({
message: data.text,
duration: 3000,
type: "info",
center: true,
});
} }
} })
.catch((error) => {
console.log(error);
});
},
},
}; };
</script> </script>