xuzhiheng преди 5 години
родител
ревизия
a5fda8b7dc

+ 6 - 4
src/jfw/modules/app/src/web/staticres/jyapp/vipsubscribe/js/vip_renew.js

@@ -169,11 +169,13 @@ var purchase = {
         var activeDiscount = parseFloat(live20200707.activeDiscount)
 		var startTimes = parseInt(startTime) * 1000;
 		var endTimes = parseInt(endTime) * 1000;
-		if (nowTime >= startTimes && nowTime < endTimes) {
-			$(".price-num").text(showPrice);
+		if (nowTime >= startTimes && nowTime < endTimes) {
+            if (flag !== 2) {
+                $(".price-num").text(showPrice);
+            	var activePrice = formatMoney(parseFloat(price) - parseFloat(price) * activeDiscount);
+            	$(".reduce-price").text(formatMoney(activePrice));
+            }
 			showPrice = formatMoney(parseFloat(price) * activeDiscount);
-			var activePrice = formatMoney(parseFloat(price) - parseFloat(price) * activeDiscount);
-			$(".reduce-price").text(formatMoney(activePrice));
 		}
 		if (flag === 1) {
 			$('.billing-price').text(showPrice);

+ 5 - 3
src/jfw/modules/app/src/web/templates/vipsubscribe/vip_purchase.html

@@ -570,10 +570,12 @@
 						var endTimes = parseInt(endTime)* 1000;
 						var buyCount = {{.T.buyCount}};
 						if (nowTime >= startTimes && nowTime < endTimes) {
-							$(".price-num").text(showPrice);
+                            if (flag !== 2) {
+                                $(".price-num").text(showPrice);
+                                var activePrice = formatMoney(parseFloat(price) - parseFloat(price) * activeDiscount);
+                                $(".reduce-price").text(formatMoney(activePrice));
+                            }
 							showPrice = formatMoney(parseFloat(price) * parseFloat(activeDiscount));
-							var activePrice = formatMoney(parseFloat(price) - parseFloat(price) * parseFloat(activeDiscount));
-							$(".reduce-price").text(formatMoney(activePrice));
 							$(".bought-num").text(buyCount);
 						}
                         if (flag === 1) {

+ 5 - 3
src/web/templates/weixin/vipsubscribe/vip_purchase.html

@@ -609,10 +609,12 @@
 					var endTimes = parseInt(endTime)* 1000;
 					var buyCount = {{.T.buyCount}};
 					if (nowTime >= startTimes && nowTime < endTimes) {
-						$(".price-num").text(showPrice);
+                        if (flag !== 2) {
+                            $(".price-num").text(showPrice);
+                            var activePrice = formatMoney(parseFloat(price) - parseFloat(price) * activeDiscount);
+                            $(".reduce-price").text(formatMoney(activePrice));
+                        }
 						showPrice = formatMoney(parseFloat(price) * activeDiscount);
-						var activePrice = formatMoney(parseFloat(price) - parseFloat(price) * activeDiscount);
-						$(".reduce-price").text(formatMoney(activePrice));
 						$(".bought-num").text(buyCount);
 					}
                     if (flag === 1) {

+ 5 - 3
src/web/templates/weixin/vipsubscribe/vip_renew.html

@@ -558,10 +558,12 @@
 			var startTimes = parseInt(startTime) * 1000;
 			var endTimes = parseInt(endTime) * 1000;
 			if (nowTime >= startTimes && nowTime < endTimes) {
-				$(".price-num").text(showPrice);
+                if (flag !== 2) {
+                    $(".price-num").text(showPrice);
+                    var activePrice = formatMoney(parseFloat(price) - parseFloat(price) * activeDiscount);
+                    $(".reduce-price").text(formatMoney(activePrice));
+                }
 				showPrice = formatMoney(parseFloat(price) * activeDiscount);
-				var activePrice = formatMoney(parseFloat(price) - parseFloat(price) * activeDiscount);
-				$(".reduce-price").text(formatMoney(activePrice));
 			}
             if (flag === 1) {
                 $('.billing-price').text(showPrice);