xuzhiheng 5 vuotta sitten
vanhempi
commit
f5fedd869f

+ 7 - 1
core/src/web/templates/manage/dataExport.html

@@ -306,7 +306,7 @@
 						<div class="apply apply_reason">申请原因:</div>
 					</div>
 					<div class="apply_infos">
-						<div class="applys apply_names" id="apply_name">{{session "loginName"}}</div>
+						<div class="applys apply_names" id="apply_name"></div>
 						<div class="applys apply_times" id="apply_refund_time"></div>
 						<textarea class="applys apply_reasons" placeholder="请输入申请原因" id="applyReason"></textarea>
 					</div>
@@ -377,6 +377,12 @@
 			$(".right").children().hide();
 			$(".right-three").show();
 		})
+		var loginName = {{session "nickName"}}
+		if(loginName !== null && loginName !== ""&& loginName !== undefined){
+				  $("#apply_name").text(loginName);
+		}else{
+				  $("#apply_name").text("企明星管理员");
+		}
 		
 		$("#apply_refund_time").text(formatDate(new Date().getTime(), true))
 		var invoice = {{.T.res.invoice}};

+ 7 - 3
core/src/web/templates/manage/vipOrderDetail.html

@@ -250,7 +250,7 @@
 						<div class="apply apply_reason">申请原因:</div>
 					</div>
 					<div class="apply_infos">
-						<div class="applys apply_names" id="apply_name">{{session "loginName"}}</div>
+						<div class="applys apply_names" id="apply_name"></div>
 						<div class="applys apply_times" id="apply_refund_time"></div>
 						<textarea class="applys apply_reasons" placeholder="请输入申请原因" id="applyReason"></textarea>
 					</div>
@@ -323,6 +323,12 @@
 	  	$(".right").children().hide();
 	  	$(".right-three").show();
 	  })
+	  var loginName = {{session "nickName"}}
+	  if(loginName !== null && loginName !== ""&& loginName !== undefined){
+	  		  $("#apply_name").text(loginName);
+	  }else{
+	  		  $("#apply_name").text("企明星管理员");
+	  }
 	  
 	  $("#apply_refund_time").text(formatDate(new Date().getTime(), true))
 	  var invoice = {{.T.res.invoice}};
@@ -330,7 +336,6 @@
 	  var orderStatus = {{.T.res.order_status}};
 	  var applyHtml = "";
 	  var lineHtml = "";
-	  console.log({{.T.res}})
 	  var applyName = {{.T.res.apply_refund_name}}
 	  var applyTime = {{.T.res.apply_refund_time}}
 	  var applyReason = {{.T.res.apply_refund_reason}}
@@ -527,7 +532,6 @@
 	  		"applyTime": applyTime,
 	  		"applyReason": applyReason
 	  	}
-	  	console.log(param);
 	  	var url = "/manage/refund/"+ {{.T.res.order_code}};
 	  	$.post(url,param,function(r){
 	  		if(r.success){