diff --git a/fangija-zsyf/main.html b/fangija-zsyf/main.html index f3eebe6..5798ce9 100644 --- a/fangija-zsyf/main.html +++ b/fangija-zsyf/main.html @@ -181,6 +181,9 @@ if (data.imgUrl != null) { localStorage.setItem("startPageImgUrl", data.imgUrl); } + if (data.startPageId != null) { + localStorage.setItem("startPageId", data.startPageId); + } if (data.url != null) { localStorage.setItem("startPageClickUrl", data.url); } diff --git a/fangija-zsyf/start.html b/fangija-zsyf/start.html index c5065e2..9f6a3cb 100644 --- a/fangija-zsyf/start.html +++ b/fangija-zsyf/start.html @@ -71,6 +71,7 @@ new Vue({ data: { imgUrl:"images/startImg.png", url:"", + starImgId:"", guideImgs:[] }, methods: { @@ -89,6 +90,16 @@ new Vue({ }, openView: function() { if (this.url != null && this.url != "") { + // 记录点击次数 + if (this.starImgId != "") { + axios.get("/rest/page/startPage/click", {params:{id:this.starImgId}}) + .then(function (response) { + + }) + .catch(function (error) { + + }); + } clicked('views/webview_embed.html', true,false,{},{url:this.url}) } } @@ -98,6 +109,10 @@ new Vue({ if (startPageImgUrl != null) { this.imgUrl = startPageImgUrl; } + var startPageId = localStorage.getItem("startPageId") + if (startPageId != null) { + this.starImgId = startPageId; + } var startPageClickUrl = localStorage.getItem("startPageClickUrl") if (startPageClickUrl != null) { this.url = startPageClickUrl;