火鸟跑腿智能地图

	$("#saveBtn").bind("click", function(){
		var first = $("ul.root>li"), json = '[';
		for(var i = 0; i < first.length; i++){

			var tr = $("ul.root>li:eq("+i+")"),id = $("#hname"+i).attr("data-id"),title = $("#hname"+i).val(),ktime = $("#start_time"+i).val(),etime = $("#stop_time"+i).val(), number = tr.find(".semdinput").val();
			json = json + '{"id": "'+id+'","name":"'+title+'" ,"ktime": "'+ktime+'", "etime": "'+etime+'", "number": "'+number+'"},';
		}
		json = json.substr(0, json.length-1);
		json = json + ']';

		huoniao.operaJson("?dopost=update", "data="+json+"&token="+$("#token").val(), function(data){
			if(data.state == 100){
				huoniao.showTip("success", data.info, "auto");
				window.scroll(0, 0);
				setTimeout(function() {
					location.reload();
				}, 800);
			}else{
				huoniao.showTip("error", data.info, "auto");
			}
		});

	});

隐藏内容

<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>恭喜,站点创建成功!</title>
    <style>
        .container {
            width: 60%;
            margin: 10% auto 0;
            background-color: #f0f0f0;
            padding: 2% 5%;
            border-radius: 10px
        }

        ul {
            padding-left: 20px;
        }

            ul li {
                line-height: 2.3
            }

        a {
            color: #20a53a
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>恭喜, 站点创建成功!</h1>
        <h3>这是默认index.html,本页面由系统自动生成</h3>
        <ul>
            <li>本页面在FTP根目录下的index.html</li>
            <li>您可以修改、删除或覆盖本页面</li>
            <li>FTP相关信息,请到“面板系统后台 > FTP” 查看</li>
        </ul>
    </div>
</body>
</html>

 

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注