Browse Source

no message

索隆 6 years ago
parent
commit
fcb9dffa21
3 changed files with 6 additions and 5 deletions
  1. 1 1
      js/management.js
  2. 1 1
      js/prediction.js
  3. 4 3
      js/top.js

+ 1 - 1
js/management.js

@@ -20,6 +20,6 @@ function getList(page){
20 20
 pageGo = getList;
21 21
 
22 22
 function updateStatus(obj, id){
23
-	Confirm("禁用该用户将无法在小程序中进行操作,是否继续?",function(){
23
+	confirm("禁用该用户将无法在小程序中进行操作,是否继续?",function(){
24 24
 	});
25 25
 }

+ 1 - 1
js/prediction.js

@@ -21,7 +21,7 @@ pageGo = getList;
21 21
 
22 22
 function updateStatus(obj, id){
23 23
 	var status = $(obj).data("status"), statusTxt=status.decode(0,'上架','-1','下架');
24
-	Confirm("该预测将被禁用并在列表中"+statusTxt+",是否继续操作?",function(){
24
+	confirm("该预测将被禁用并在列表中"+statusTxt+",是否继续操作?",function(){
25 25
 		ajax(apiUrl+"forecast/frame",{"forecastId": id,"onFrame": status},function(res){
26 26
 			if(res.code == 1){
27 27
 				$(obj).text(statusTxt);

+ 4 - 3
js/top.js

@@ -1,12 +1,13 @@
1
-var headHtml='<div class="header"></div>';
1
+var headHtml='<div class="header">';
2 2
 ajax({url:apiUrl+'info',data:{"token":$.cookie.get("token")},callBack:function(res){
3 3
 	if(res.code == 1){
4
-		headHtml='\n\
4
+		headHtml += '\n\
5 5
 			<div class="rFloat">\n\
6 6
 				<span class="userHead"><img src="img/head.png" /></span>'+res.data.name+'('+res.data.num+'),你好&nbsp;&nbsp;|&nbsp;&nbsp;<a href="javascript:loginout();">退出系统</a>\n\
7 7
 			</div>\n\
8 8
 			<a href="/webadmin/" class="logo"><h1></h1></a>';
9
-		$(".header").html(headHtml);
9
+		//$(".header").html(headHtml);
10 10
 	}
11 11
 },load:false});
12
+headHtml += "</div>";
12 13
 document.write(headHtml);