detail.html
1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<div id="newchart-detail" class="page out" data-title="图表详情">
	<div id="newchart-detail-header"></div>
	<div id="newchart-detail-a"></div>
    <script>
        require(["NavHeader", "Html"], function(NavHeader, Html) {
        	function getParam(key){
        		var result = "";
        		var hash = location.hash;
        		if(location.hash.indexOf("?" != -1)){
        			location.hash.split("?")[1].split("&").forEach(function(item){
        				var splits = item.split("=");
        				if(key == splits[0]){
        					result = splits[1];
        					return;
        				}
        			});
            		
        		}
        		return decodeURIComponent(result);
        	};
        	
        	new NavHeader({
        		el: "newchart-detail-header",
        		option: {
        			title : "图表详情"
        		}
        	}).render();
        	
        	new Html({
        		el: "newchart-detail-a",
        		option: {
        			htm: [
        			      	'名称:',getParam("name"),
        			        '<br>类型:',getParam("seriesname"),
        			        '<br>值:',getParam("value")
        			     ].join('')
       			}
        	}).render();
        });
    </script>
</div>