Skip to content

Commit

Permalink
static: feat: clear the valid code once query succeed and set border …
Browse files Browse the repository at this point in the history
…on map container
  • Loading branch information
gtxzsxxk committed Apr 8, 2024
1 parent fcb9bf0 commit 5278973
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 515 deletions.
13 changes: 12 additions & 1 deletion static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,16 @@ <h4 class="card-title">查询结果</h4>
zoom: 8
});
}

var borderId = 0;
borderId = setInterval(() => {
let mapObject = document.getElementById("Microsoft.Maps.Imagery.RoadSceneWithoutLabels");
if (mapObject == null) {
return;
}
mapObject.style.cssText += "border-radius: 15px";
clearInterval(borderId);
}, 1000);
}

var app = new Vue({
Expand Down Expand Up @@ -476,6 +486,7 @@ <h4 class="card-title">查询结果</h4>
url: requestUrl,
type: "get",
success: function (result) {
app.validcode = "";
if (result.indexOf("{") == -1) {
INT = window.clearInterval(INT);
app.btn_available = true;
Expand Down Expand Up @@ -511,4 +522,4 @@ <h4 class="card-title">查询结果</h4>
</script>
</body>

</html>
</html>
Loading

0 comments on commit 5278973

Please sign in to comment.