Commit 498cbe94 authored by sunyuhua's avatar sunyuhua

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

2.保存成功才可见“下载二维码”按钮
parent 22db0d02
...@@ -141,9 +141,7 @@ ...@@ -141,9 +141,7 @@
background-position: center; background-position: center;
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.load{
display: none;
}
.noroute{ .noroute{
display: none; display: none;
position: absolute; position: absolute;
...@@ -154,6 +152,9 @@ ...@@ -154,6 +152,9 @@
left: 50%; left: 50%;
margin-left: -69px; margin-left: -69px;
} }
.QRCodeDown{
display: none;
}
</style> </style>
</head> </head>
<body> <body>
......
...@@ -155,6 +155,8 @@ function getGpsCp(roadId) { ...@@ -155,6 +155,8 @@ function getGpsCp(roadId) {
if(data.status){ if(data.status){
$('.load').hide(); $('.load').hide();
$('.noroute').hide(); $('.noroute').hide();
$('.QRCodeDown').show();
$('.save-btn').show();
var optionstring="<option value='' data-lat='' data-lng='' >- -</option>"; var optionstring="<option value='' data-lat='' data-lng='' >- -</option>";
//将之前的下拉框的值清空 //将之前的下拉框的值清空
$(".gpscheckpoint").empty(); $(".gpscheckpoint").empty();
...@@ -169,6 +171,8 @@ function getGpsCp(roadId) { ...@@ -169,6 +171,8 @@ function getGpsCp(roadId) {
}else{ }else{
$('.road-name[road-id="'+roadId+'"]').append($('.noroute')); $('.road-name[road-id="'+roadId+'"]').append($('.noroute'));
$('.noroute').show(); $('.noroute').show();
$('.QRCodeDown').hide();
$('.save-btn').hide();
$('.load').attr('road-id',roadId) $('.load').attr('road-id',roadId)
$('.load').show(); $('.load').show();
$(".gpscheckpoint").append("<option value='' data-lat='' data-lng=''>- -</option>"); $(".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