update:代码净化

This commit is contained in:
2021-10-18 16:58:48 +08:00
parent ccd1183caa
commit 3b4b4bc575
8 changed files with 52 additions and 55 deletions

View File

@@ -205,14 +205,13 @@ export default {
return { return {
mode: false, mode: false,
data: { data: {
// 522121123456789102223 idCard: "",
idCard: "522121123456789102223", userName: "无数据",
userName: "加载中...",
policiesRegulationsLists: { policiesRegulationsLists: {
totalCount: 0, totalCount: 0,
list: [ list: [
{ {
title: "宁波市房屋建设和建筑管理局办公室", title: "无数据",
publicTime: "无数据", publicTime: "无数据",
area: "无数据" area: "无数据"
}, },
@@ -222,41 +221,41 @@ export default {
}, },
prjList: [ prjList: [
{ {
name: "请求出错暂时没有可用数据", name: "数据",
currentState: "处于什么阶段", currentState: "无数据",
area: "宁波市房屋建设管理办公室九号楼项目办公室", area: "无数据",
zsbm: "无数据", zsbm: "无数据",
year: "无数据", year: "无数据",
zsjdh: "无数据", zsjdh: "无数据",
fhpgList: [ fhpgList: [
{ {
assessmentNo: "宁波市房屋建设和建筑管理局办公室", assessmentNo: "无数据",
houseAddress: "宁波市房屋建设和建筑管理局办公室", houseAddress: "无数据",
countValue: "无数据" countValue: "无数据"
}, },
{ {
assessmentNo: "宁波市房屋建设和建筑管理局办公室", assessmentNo: "无数据",
houseAddress: "宁波市房屋建设和建筑管理局办公室", houseAddress: "无数据",
countValue: "无数据" countValue: "无数据"
} }
], ],
bcxyList: [ bcxyList: [
{ {
xyNo: "无数据", xyNo: "无数据",
houseAddress: "宁波市房屋建设和建筑管理局办公室", houseAddress: "无数据",
switchProductionWay: "无数据", switchProductionWay: "无数据",
summationShouldCompensateMoney: "无数据" summationShouldCompensateMoney: "无数据"
}, },
{ {
xyNo: "无数据", xyNo: "无数据",
houseAddress: "宁波市房屋建设和建筑管理局办公室", houseAddress: "无数据",
switchProductionWay: "无数据", switchProductionWay: "无数据",
summationShouldCompensateMoney: "无数据" summationShouldCompensateMoney: "无数据"
} }
] ]
}, },
{ {
name: "请求出错", name: "无数据",
currentState: "无数据", currentState: "无数据",
area: "无数据", area: "无数据",
zsbm: "无数据", zsbm: "无数据",
@@ -318,7 +317,6 @@ export default {
}, },
appKey: "es4b8zmz+2001833218+dehllx", appKey: "es4b8zmz+2001833218+dehllx",
onSuccess: data => { onSuccess: data => {
console.log("首页数据", data);
window.sessionStorage.setItem("homeData", JSON.stringify(data)); window.sessionStorage.setItem("homeData", JSON.stringify(data));
if (data.data.success) { if (data.data.success) {
this.data = data.data.data; this.data = data.data.data;
@@ -364,6 +362,7 @@ export default {
if (sessionStorage.getItem("mode") == "older") { if (sessionStorage.getItem("mode") == "older") {
$("#app").addClass("old_app3"); $("#app").addClass("old_app3");
sessionStorage.setItem("mode", "normal"); sessionStorage.setItem("mode", "normal");
this.$parent.$parent.mode = false;
this.mode = false; this.mode = false;
$(".container").removeClass("old_container"); $(".container").removeClass("old_container");
$(".bottomContent").removeClass("old_bottomContent"); $(".bottomContent").removeClass("old_bottomContent");
@@ -371,6 +370,7 @@ export default {
} else { } else {
$("#app").removeClass("old_app3"); $("#app").removeClass("old_app3");
sessionStorage.setItem("mode", "older"); sessionStorage.setItem("mode", "older");
this.$parent.$parent.mode = true;
this.mode = true; this.mode = true;
changeStyle(); changeStyle();
$(".container").addClass("old_container"); $(".container").addClass("old_container");
@@ -457,17 +457,17 @@ export default {
}, },
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);
aplus_queue.push({ aplus_queue.push({
action: "aplus.sendPV", action: "aplus.sendPV",
arguments: [ arguments: [
@@ -486,11 +486,11 @@ export default {
}); });
}) })
.catch(error => { .catch(error => {
console.log(error); // console.log(error);
}); });
}) })
.catch(error => { .catch(error => {
console.log(error); // console.log(error);
}); });
}); });
} }

View File

@@ -78,30 +78,30 @@ export default {
}, },
saveImages() { saveImages() {
ZWJSBridge.onReady(() => { ZWJSBridge.onReady(() => {
console.log("初始化完成后执行bridge方法-saveImages"); // console.log("初始化完成后执行bridge方法-saveImages");
ZWJSBridge.saveImage({ ZWJSBridge.saveImage({
url: this.apidata.pdf url: this.apidata.pdf
}) })
.then(result => { .then(result => {
console.log("saveImage()成功:" + JSON.stringify(result)); // console.log("saveImage()成功:" + JSON.stringify(result));
}) })
.catch(error => { .catch(error => {
console.log("saveImage()失败:" + JSON.stringify(result)); // console.log("saveImage()失败:" + JSON.stringify(result));
console.log(error); // console.log(error);
}); });
}); });
}, },
testdownload4() { testdownload4() {
ZWJSBridge.onReady(() => { ZWJSBridge.onReady(() => {
console.log("初始化完成后执行bridge方法-testdownload4"); // console.log("初始化完成后执行bridge方法-testdownload4");
ZWJSBridge.openLink({ ZWJSBridge.openLink({
url: this.apidata.pdf url: this.apidata.pdf
}) })
.then(result => { .then(result => {
console.log("测试新开窗口():" + result); // console.log("测试新开窗口():" + result);
}) })
.catch(error => { .catch(error => {
console.log(error); // console.log(error);
}); });
}); });
} }

View File

@@ -62,7 +62,6 @@ export default {
appKey: "es4b8zmz+2001833218+dehllx", appKey: "es4b8zmz+2001833218+dehllx",
onSuccess: result => { onSuccess: result => {
if (result.data.success) { if (result.data.success) {
console.log("result.data.data:", result.data.data);
this.apidata = result.data.data; this.apidata = result.data.data;
this.pic_width = "100%"; this.pic_width = "100%";
this.pic_height = "100%"; this.pic_height = "100%";
@@ -99,30 +98,30 @@ export default {
}, },
saveImages() { saveImages() {
ZWJSBridge.onReady(() => { ZWJSBridge.onReady(() => {
console.log("初始化完成后执行bridge方法-saveImages"); // console.log("初始化完成后执行bridge方法-saveImages");
ZWJSBridge.saveImage({ ZWJSBridge.saveImage({
url: this.apidata.pdf url: this.apidata.pdf
}) })
.then(result => { .then(result => {
console.log("saveImage()成功:" + JSON.stringify(result)); // console.log("saveImage()成功:" + JSON.stringify(result));
}) })
.catch(error => { .catch(error => {
console.log("saveImage()失败:" + JSON.stringify(result)); // console.log("saveImage()失败:" + JSON.stringify(result));
console.log(error); // console.log(error);
}); });
}); });
}, },
testdownload4() { testdownload4() {
ZWJSBridge.onReady(() => { ZWJSBridge.onReady(() => {
console.log("初始化完成后执行bridge方法-testdownload4"); // console.log("初始化完成后执行bridge方法-testdownload4");
ZWJSBridge.openLink({ ZWJSBridge.openLink({
url: this.apidata.pdf url: this.apidata.pdf
}) })
.then(result => { .then(result => {
console.log("测试新开窗口():" + result); // console.log("测试新开窗口():" + result);
}) })
.catch(error => { .catch(error => {
console.log(error); // console.log(error);
}); });
}); });
} }

View File

@@ -15,7 +15,7 @@ export default {
return { return {
info: { info: {
title: "无数据", title: "无数据",
publicTime: "2020-1-1" publicTime: "无数据"
} }
}; };
}, },
@@ -49,7 +49,6 @@ export default {
onSuccess: data => { onSuccess: data => {
if (data.data.success) { if (data.data.success) {
const { data: res } = data; const { data: res } = data;
console.log("res.data", res.data);
this.info = res.data; this.info = res.data;
let content = document.querySelector(".content"); let content = document.querySelector(".content");
content.innerHTML = res.data.contents; content.innerHTML = res.data.contents;

View File

@@ -67,7 +67,7 @@ export default {
// 初始数据 // 初始数据
info: { info: {
userName: "无数据", userName: "无数据",
idCard: "522121123456789102223", idCard: "无数据",
prjList: [ prjList: [
{ {
area: "无数据", area: "无数据",
@@ -301,7 +301,7 @@ export default {
span:nth-child(2) { span:nth-child(2) {
word-break: break-all; word-break: break-all;
line-height: 36px; line-height: 36px;
margin-top: -4px; margin-top: -3px;
} }
} }
} }

View File

@@ -68,8 +68,8 @@ export default {
date: "无数据", date: "无数据",
xyNo: "无数据", xyNo: "无数据",
switchProductionWay: "无数据", switchProductionWay: "无数据",
countValue: "1000", countValue: "无数据",
signTime: "2021-9-28 10:07:24 aaaaaaaaaaa" signTime: "无数据"
} }
], ],
fhpgList: [{ countValue: "无数据", assessmentNo: "无数据" }] fhpgList: [{ countValue: "无数据", assessmentNo: "无数据" }]

View File

@@ -70,17 +70,17 @@ export default {
return { return {
isLoading: true, isLoading: true,
info: { info: {
houseAddress: "宁波市档案管理和数据中心百丈东路口", houseAddress: "无数据",
valuationMethodText: "价值录入", valuationMethodText: "无数据",
assessmentNo: "无数据", assessmentNo: "无数据",
number: "0001", number: "无数据",
housingAssessmentValue: "", housingAssessmentValue: "",
countValue: "", countValue: "",
attachedAssessedValue: "", attachedAssessedValue: "",
decorateAssessedValue: "", decorateAssessedValue: "",
exceedLandMoney: "报告录入", exceedLandMoney: "无数据",
atticAssessedValue: "报告录入", atticAssessedValue: "无数据",
remark: "Remark", remark: "无数据",
isExistPdf: true isExistPdf: true
} }
}; };
@@ -115,7 +115,6 @@ export default {
}, },
appKey: "es4b8zmz+2001833218+dehllx", appKey: "es4b8zmz+2001833218+dehllx",
onSuccess: data => { onSuccess: data => {
console.log("分户评估", data);
this.isLoading = false; this.isLoading = false;
window.sessionStorage.setItem("evaluateData", JSON.stringify(data)); window.sessionStorage.setItem("evaluateData", JSON.stringify(data));
if (data.data.success) { if (data.data.success) {

View File

@@ -123,16 +123,16 @@ export default {
fhpgList: [ fhpgList: [
{ {
assessmentNo: "无数据", assessmentNo: "无数据",
houseAddress: "宁波市档案管理和数据中心百丈东路口", houseAddress: "无数据",
countValue: "1000", countValue: "无数据",
type: "1", type: "1",
createUserName: "无数据", createUserName: "无数据",
createTime: "无数据" createTime: "无数据"
}, },
{ {
assessmentNo: "无数据", assessmentNo: "无数据",
houseAddress: "宁波市档案管理和数据中心百丈东路口", houseAddress: "无数据",
countValue: "2000", countValue: "无数据",
type: "2", type: "2",
createUserName: "无数据", createUserName: "无数据",
createTime: "无数据" createTime: "无数据"