فهرست منبع

微信支付码

xuzhiheng 5 سال پیش
والد
کامیت
d633d581e0
1فایلهای تغییر یافته به همراه3 افزوده شده و 4 حذف شده
  1. 3 4
      src/web/templates/course/pc/orderPay.html

+ 3 - 4
src/web/templates/course/pc/orderPay.html

@@ -289,7 +289,6 @@
 			})
             // 删除图片
             $('.upload_box').on('click','.screen',function(){
-                console.log("删除图片")
 				//$("#upload").upload("reset");
                 $('.upload_box img').remove();
                 $('.screen').hide();
@@ -306,7 +305,6 @@
 					async: false,
 					dataType: 'json',
 					success: function(r){
-						console.log(r)
 						if(r.success){
 			                $('.toast').show("linear");
 			                setTimeout(function () {
@@ -407,7 +405,6 @@
 			}
 		}
 		//获取支付二维码
-		console.log(pageName)
 		function OrderPay(){
 			if(pageName=="course"){
 				$(".t_left").text("订单已提交成功,请尽快支付,以免影响正常上课!")
@@ -454,7 +451,6 @@
 		}
 		//展示支付码 并倒计时
 		function showCode(code, prepaytime) {
-			console.log(code)
 			if (payWay == "wx_pc") {
 				$(".pay_content .con").eq(0).find(".qrcode_box").html("<img src='data:image/png;base64," + code + "'>");
 			} else {
@@ -467,6 +463,9 @@
 			var t = new Date(prepaytime).getTime() + limit - new Date().getTime();
 	        t=t>limit?limit:t;
 			interval_t = parseInt(t / 1000);
+			if(productType === "数据报告"){
+				interval_t = prepaytime;
+			}
 			interval = setInterval(function() {
 				var h = Math.floor(interval_t / 60 / 60 % 24);
 				var m = Math.floor(interval_t / 60 % 60);