From f74baac231dbcff8e02f5146b3f81fea91958690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Tue, 29 May 2018 10:53:23 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/manifest.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fangija-zsyf/manifest.json b/fangija-zsyf/manifest.json index 19e4917..314814b 100644 --- a/fangija-zsyf/manifest.json +++ b/fangija-zsyf/manifest.json @@ -7,8 +7,8 @@ "id": "H5693FF3D",/*应用的标识,创建应用时自动生成,勿手动修改*/ "name": "有房",/*应用名称,程序桌面图标名称*/ "version": { - "name": "1.1.12",/*应用版本名称*/ - "code": "20111" + "name": "1.1.13",/*应用版本名称*/ + "code": "20112" }, "description": "有房,围绕房产提供全方位数据分析的房产及金融服务平台,通过个性化的智能推荐,定制专属的个人投资或购房计划,多维度管理自有房产并提供房产融资通道。",/*应用描述信息*/ "icons": { From d2d11072237892aa90323d0bd252dcf975a51967 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E5=90=89=E6=AC=A2?= Date: Tue, 29 May 2018 11:08:32 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E6=98=AF=E5=90=A6=E5=BC=80=E5=90=AF=E5=8A=A0?= =?UTF-8?q?=E5=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/js/axiosPlugin.js | 4 ++-- fangija-zsyf/main.html | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fangija-zsyf/js/axiosPlugin.js b/fangija-zsyf/js/axiosPlugin.js index 75db793..b622781 100644 --- a/fangija-zsyf/js/axiosPlugin.js +++ b/fangija-zsyf/js/axiosPlugin.js @@ -11,8 +11,8 @@ document.addEventListener('plusready', function() { // 添加请求拦截器 axios.interceptors.request.use(function (config) { - // 对所有POST请加密,必须是json数据提交,不支持表单 - if (config.method == "post") { + // 对所有POST请加密,必须是json数据提交,不支持表单,可通过后台控制是否要开启加密 + if (config.method == "post" && localStorage.getItem("encrypt") == "true") { config.data = EncryptData(JSON.stringify(config.data)); } var token = localStorage.getItem("user_token"); diff --git a/fangija-zsyf/main.html b/fangija-zsyf/main.html index b1dca64..9e81c35 100644 --- a/fangija-zsyf/main.html +++ b/fangija-zsyf/main.html @@ -192,11 +192,13 @@ localStorage.setItem("guidePageUrls",JSON.stringify(data.guideImgs)); } + localStorage.setItem("encrypt", data.encrypt); //存入localStorage Boolean类型变成String //加载菜单信息,控制是否显示贷款菜单 localStorage.setItem("showLoanMenu", data.showLoanMenu); } else { localStorage.setItem("showLoanMenu", false); + localStorage.setItem("encrypt", false); } }, error: function(XMLHttpRequest, textStatus, errorThrown) {