Commit 498cbe94 authored by sunyuhua's avatar sunyuhua

1.未导入路线时不显示‘保存’ 按钮

2.保存成功才可见“下载二维码”按钮
parent 22db0d02
......@@ -141,9 +141,7 @@
background-position: center;
background-repeat: no-repeat;
}
.load{
display: none;
}
.noroute{
display: none;
position: absolute;
......@@ -154,6 +152,9 @@
left: 50%;
margin-left: -69px;
}
.QRCodeDown{
display: none;
}
</style>
</head>
<body>
......
......@@ -155,6 +155,8 @@ function getGpsCp(roadId) {
if(data.status){
$('.load').hide();
$('.noroute').hide();
$('.QRCodeDown').show();
$('.save-btn').show();
var optionstring="<option value='' data-lat='' data-lng='' >- -</option>";
//将之前的下拉框的值清空
$(".gpscheckpoint").empty();
......@@ -169,6 +171,8 @@ function getGpsCp(roadId) {
}else{
$('.road-name[road-id="'+roadId+'"]').append($('.noroute'));
$('.noroute').show();
$('.QRCodeDown').hide();
$('.save-btn').hide();
$('.load').attr('road-id',roadId)
$('.load').show();
$(".gpscheckpoint").append("<option value='' data-lat='' data-lng=''>- -</option>");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment