update:代码净化
This commit is contained in:
@@ -205,14 +205,13 @@ export default {
|
||||
return {
|
||||
mode: false,
|
||||
data: {
|
||||
// 522121123456789102223
|
||||
idCard: "522121123456789102223",
|
||||
userName: "加载中...",
|
||||
idCard: "",
|
||||
userName: "无数据",
|
||||
policiesRegulationsLists: {
|
||||
totalCount: 0,
|
||||
list: [
|
||||
{
|
||||
title: "宁波市房屋建设和建筑管理局办公室",
|
||||
title: "无数据",
|
||||
publicTime: "无数据",
|
||||
area: "无数据"
|
||||
},
|
||||
@@ -222,41 +221,41 @@ export default {
|
||||
},
|
||||
prjList: [
|
||||
{
|
||||
name: "请求出错暂时没有可用数据",
|
||||
currentState: "处于什么阶段",
|
||||
area: "宁波市房屋建设管理办公室九号楼项目办公室",
|
||||
name: "无数据",
|
||||
currentState: "无数据",
|
||||
area: "无数据",
|
||||
zsbm: "无数据",
|
||||
year: "无数据",
|
||||
zsjdh: "无数据",
|
||||
fhpgList: [
|
||||
{
|
||||
assessmentNo: "宁波市房屋建设和建筑管理局办公室",
|
||||
houseAddress: "宁波市房屋建设和建筑管理局办公室",
|
||||
assessmentNo: "无数据",
|
||||
houseAddress: "无数据",
|
||||
countValue: "无数据"
|
||||
},
|
||||
{
|
||||
assessmentNo: "宁波市房屋建设和建筑管理局办公室",
|
||||
houseAddress: "宁波市房屋建设和建筑管理局办公室",
|
||||
assessmentNo: "无数据",
|
||||
houseAddress: "无数据",
|
||||
countValue: "无数据"
|
||||
}
|
||||
],
|
||||
bcxyList: [
|
||||
{
|
||||
xyNo: "无数据",
|
||||
houseAddress: "宁波市房屋建设和建筑管理局办公室",
|
||||
houseAddress: "无数据",
|
||||
switchProductionWay: "无数据",
|
||||
summationShouldCompensateMoney: "无数据"
|
||||
},
|
||||
{
|
||||
xyNo: "无数据",
|
||||
houseAddress: "宁波市房屋建设和建筑管理局办公室",
|
||||
houseAddress: "无数据",
|
||||
switchProductionWay: "无数据",
|
||||
summationShouldCompensateMoney: "无数据"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "请求出错",
|
||||
name: "无数据",
|
||||
currentState: "无数据",
|
||||
area: "无数据",
|
||||
zsbm: "无数据",
|
||||
@@ -318,7 +317,6 @@ export default {
|
||||
},
|
||||
appKey: "es4b8zmz+2001833218+dehllx",
|
||||
onSuccess: data => {
|
||||
console.log("首页数据", data);
|
||||
window.sessionStorage.setItem("homeData", JSON.stringify(data));
|
||||
if (data.data.success) {
|
||||
this.data = data.data.data;
|
||||
@@ -364,6 +362,7 @@ export default {
|
||||
if (sessionStorage.getItem("mode") == "older") {
|
||||
$("#app").addClass("old_app3");
|
||||
sessionStorage.setItem("mode", "normal");
|
||||
this.$parent.$parent.mode = false;
|
||||
this.mode = false;
|
||||
$(".container").removeClass("old_container");
|
||||
$(".bottomContent").removeClass("old_bottomContent");
|
||||
@@ -371,6 +370,7 @@ export default {
|
||||
} else {
|
||||
$("#app").removeClass("old_app3");
|
||||
sessionStorage.setItem("mode", "older");
|
||||
this.$parent.$parent.mode = true;
|
||||
this.mode = true;
|
||||
changeStyle();
|
||||
$(".container").addClass("old_container");
|
||||
@@ -457,17 +457,17 @@ export default {
|
||||
},
|
||||
setLocationAplus() {
|
||||
ZWJSBridge.onReady(() => {
|
||||
console.log("初始化完成后,执行bridge方法");
|
||||
// console.log("初始化完成后,执行bridge方法");
|
||||
ZWJSBridge.getUserType()
|
||||
.then(result1 => {
|
||||
console.log("getUserType():" + JSON.stringify(result1));
|
||||
console.log("result1.userType:" + result1.userType);
|
||||
// console.log("getUserType():" + JSON.stringify(result1));
|
||||
// console.log("result1.userType:" + result1.userType);
|
||||
//经纬度
|
||||
ZWJSBridge.getLocation()
|
||||
.then(result2 => {
|
||||
console.log("getLocation():" + JSON.stringify(result2));
|
||||
console.log("result2.longitude:" + result2.longitude);
|
||||
console.log("result2.latitude:" + result2.latitude);
|
||||
// console.log("getLocation():" + JSON.stringify(result2));
|
||||
// console.log("result2.longitude:" + result2.longitude);
|
||||
// console.log("result2.latitude:" + result2.latitude);
|
||||
aplus_queue.push({
|
||||
action: "aplus.sendPV",
|
||||
arguments: [
|
||||
@@ -486,11 +486,11 @@ export default {
|
||||
});
|
||||
})
|
||||
.catch(error => {
|
||||
console.log(error);
|
||||
// console.log(error);
|
||||
});
|
||||
})
|
||||
.catch(error => {
|
||||
console.log(error);
|
||||
// console.log(error);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user