Browse Source

微信数据导出完成页面修改

wangkaiyue 5 years ago
parent
commit
c1aafc5a5e

+ 1 - 0
src/jfw/front/ws_dataExport.go

@@ -95,6 +95,7 @@ func (w *WsDataExport) PaySuccessPage() error {
 	if res == nil || len(*res) == 0 {
 	if res == nil || len(*res) == 0 {
 		return errors.New("未支付完成")
 		return errors.New("未支付完成")
 	}
 	}
+	w.T["orderCode"] = orderCode
 	w.T["email"] = (*res)["user_mail"]
 	w.T["email"] = (*res)["user_mail"]
 	w.T["payTime"] = (*res)["pay_time"]
 	w.T["payTime"] = (*res)["pay_time"]
 	return w.Render("/weixin/dataExport/dataExport_paySuccess.html", &w.T)
 	return w.Render("/weixin/dataExport/dataExport_paySuccess.html", &w.T)

+ 0 - 1
src/web/templates/weixin/dataExport/dataExport_paySuccess.html

@@ -28,7 +28,6 @@
 			$(function(){
 			$(function(){
 				$(".email").text(email);
 				$(".email").text(email);
 				$(".orderCode").text(orderCode);
 				$(".orderCode").text(orderCode);
-				payTime =  payTime.split("-")[0]+"年"+payTime.split("-")[1]+"月"+payTime.split("-")[2]+"日";
 				$(".payTime").text(payTime);
 				$(".payTime").text(payTime);
 			})
 			})
 			function detail(){
 			function detail(){