Browse Source

Merge branch 'dev2.10.9' of http://192.168.3.207:10080/qmx/jy into dev2.10.9

wangshan 5 years ago
parent
commit
349d93a3e1
29 changed files with 207 additions and 83 deletions
  1. 1 1
      src/jfw/modules/app/src/app/active/active_zb.go
  2. 3 3
      src/jfw/modules/app/src/seo.json
  3. 1 0
      src/jfw/modules/app/src/web/staticres/jyapp/vipsubscribe/css/vip_index_new.css
  4. 13 0
      src/jfw/modules/app/src/web/staticres/jyapp/vipsubscribe/css/vip_order_detail.css
  5. 9 6
      src/jfw/modules/app/src/web/staticres/jyapp/vipsubscribe/js/vip_index_new.js
  6. 9 10
      src/jfw/modules/app/src/web/staticres/jyapp/vipsubscribe/js/vip_renew.js
  7. 5 0
      src/jfw/modules/app/src/web/templates/active/livePage/online.html
  8. 6 4
      src/jfw/modules/app/src/web/templates/dataExport/dataExport_toMyOrder.html
  9. 15 6
      src/jfw/modules/app/src/web/templates/vipsubscribe/vip_index_new.html
  10. 17 8
      src/jfw/modules/app/src/web/templates/vipsubscribe/vip_order_detail.html
  11. 3 2
      src/jfw/modules/app/src/web/templates/vipsubscribe/vip_purchase.html
  12. 2 1
      src/jfw/modules/app/src/web/templates/vipsubscribe/vip_renew.html
  13. 2 1
      src/jfw/modules/subscribepay/src/config.json
  14. 3 0
      src/jfw/modules/subscribepay/src/config/config.go
  15. 1 0
      src/jfw/modules/subscribepay/src/entity/subscribeVip.go
  16. 8 0
      src/jfw/modules/subscribepay/src/message.json
  17. 3 2
      src/jfw/modules/subscribepay/src/service/orderListDetails.go
  18. 2 1
      src/jfw/modules/subscribepay/src/service/vipSubscribeChange.go
  19. 2 1
      src/jfw/modules/subscribepay/src/service/vipSubscribePay.go
  20. 6 5
      src/jfw/modules/subscribepay/src/util/liveActiveMsgRemind.go
  21. 2 1
      src/seo.json
  22. 1 0
      src/web/staticres/vipsubscribe/css/vip_index_new.css
  23. 12 10
      src/web/staticres/vipsubscribe/js/vip_index_new.js
  24. 30 5
      src/web/templates/pc/billing_list.html
  25. 4 2
      src/web/templates/weixin/dataExport/dataExport_toMyOrder.html
  26. 9 1
      src/web/templates/weixin/vipsubscribe/vip_index_new.html
  27. 26 5
      src/web/templates/weixin/vipsubscribe/vip_order_detail.html
  28. 7 5
      src/web/templates/weixin/vipsubscribe/vip_purchase.html
  29. 5 3
      src/web/templates/weixin/vipsubscribe/vip_renew.html

+ 1 - 1
src/jfw/modules/app/src/app/active/active_zb.go

@@ -66,7 +66,7 @@ func (this *active_zb) LivePage() error {
 		isVip := false
 		r, _ := public.MQFW.FindById("user", userid, `{"i_vip_status":1}`)
 		if r != nil && len(*r) != 0 {
-			if util.IntAll((*r)["i_vip_status"]) > 0 {
+			if util.IntAll((*r)["i_vip_status"]) == 2 {
 				isVip = true
 			}
 		}

+ 3 - 3
src/jfw/modules/app/src/seo.json

@@ -1,8 +1,7 @@
 {	
-	"cdn":"http://web-jydev-wss.jianyu360.cn",
+	"cdn":"http://web-jydev-xzh.jianyu360.cn",
 	"cdns":{
-	 "app2-jytest.jianyu360.cn":"res://app2-jytest.jianyu360.cn",
-	 "web-jydev-wss.jianyu360.cn":"http://web-jydev-wss.jianyu360.cn"
+	 	"web-jydev-xzh.jianyu360.cn":""
 	},
     "qfw": {
         "swordfish": {
@@ -84,6 +83,7 @@
 	"ZBADDRESS":"https://res.jianyu360.com",
 	"liveActiveStartTime": "1592755200",
 	"liveActiveEndTime": "1594051200",
+	"activeDiscount": "0.6",
 	"IosExam":{
 		"flag":false,
 		"phone":"18613717801",

+ 1 - 0
src/jfw/modules/app/src/web/staticres/jyapp/vipsubscribe/css/vip_index_new.css

@@ -565,6 +565,7 @@
 }
 
 .jy-alert .weui-dialog__bd {
+  margin: 0;
   padding: 0 0.4rem 0.48rem;
   font-size: 0.28rem;
   color: #686868;

+ 13 - 0
src/jfw/modules/app/src/web/staticres/jyapp/vipsubscribe/css/vip_order_detail.css

@@ -459,3 +459,16 @@
 .origin-price-container .price-num {
   text-decoration: line-through;
 }
+
+.bill-origin-price {
+  display: none;
+  align-items: center;
+  justify-content: flex-end;
+  padding: 0 .32rem;
+  color: #9B9CA3;
+  margin-bottom: 0.2rem;
+}
+
+.bill-origin-price .price-num {
+  text-decoration: line-through;
+}

+ 9 - 6
src/jfw/modules/app/src/web/staticres/jyapp/vipsubscribe/js/vip_index_new.js

@@ -264,6 +264,9 @@ $(function () {
         pickerShow('.billing-list-container', false)
         pickerShow('.coupon-picker', false)
     })
+    $('body').on('click', '.jy-dialog .weui-mask', function () {
+        pickerShow('.jy-dialog', false)
+    })
 
     $('.close-expire-remind').on("click", function () {
         $(".expire-remind").hide();
@@ -344,6 +347,7 @@ $(function () {
             //cancelTip(module);
             window.history.back();
         });
+        window.removeEventListener('popstate')
         setTimeout(function () {
             window.addEventListener("popstate", function (e) {
                 //如果订单计费清单显示,则关闭清单;
@@ -730,18 +734,19 @@ $(function () {
 			var nowTime = new Date().getTime();
 			var startTime = live20200707.startTime;
 			var endTime = live20200707.endTime;
+            var activeDiscount = parseFloat(live20200707.activeDiscount)
 			var startTimes = parseInt(startTime) * 1000;
 			var endTimes = parseInt(endTime) * 1000;
 			if (nowTime >= startTimes && nowTime < endTimes) {
 				var price = status[0];
 				$(".price-num").text(price);
-				status[0] = parseFloat(price) * 0.6;
-				var activePrice = formatMoney(parseFloat(price) - parseFloat(price) * 0.6);
+				status[0] = parseFloat(price) * activeDiscount;
+				var activePrice = formatMoney(parseFloat(price) - parseFloat(price) * activeDiscount);
 				$(".reduce-price").text(formatMoney(activePrice));
 				// for (var i=0;i<status.length;i++){
 				// 	if(i===3){
 				// 		for (var a in status[i]){
-				// 			status[i][a].price = parseFloat(status[i][a].price) * 0.6;
+				// 			status[i][a].price = parseFloat(status[i][a].price) * activeDiscount;
 				// 		}
 				// 	}
 				// }
@@ -870,9 +875,7 @@ $(function () {
         var confirmButton = $('.coupon-picker .weui-picker__btn')
         var cancelButton = $('.coupon-picker .cancel')
         var value = input.val()
-        input.focus(function (e) {
-          e.target.scrollIntoView({ 'block': 'center' })
-        }).on('input', function () {
+        input.val('').focus().val(value).on('input', function () {
             value = this.value
             confirmButton.prop('disabled', (value === '' || value === undefined))
         })

+ 9 - 10
src/jfw/modules/app/src/web/staticres/jyapp/vipsubscribe/js/vip_renew.js

@@ -62,7 +62,7 @@ var purchase = {
 				isUsedActiveCode = true;
 			}
 			if (sessionStorage.liveActiveCode_renew === "jianyu360"){
-				$('.coupon-code-tx .keywords-text').text("支付成功赠送30天订阅周期");
+				$('.coupon-code-tx .keywords-text').text("支付成功赠送30天订阅周期");
 				$('.coupon-picker .weui-input').val("jianyu360");
 				$('.coupon-code-tx').off('click');
 			}
@@ -165,13 +165,14 @@ var purchase = {
 		var showPrice = formatMoney(price);
 		var nowTime = new Date().getTime();
 		var startTime = live20200707.startTime;
-		var endTime = live20200707.endTime;
+		var endTime = live20200707.endTime;
+        var activeDiscount = parseFloat(live20200707.activeDiscount)
 		var startTimes = parseInt(startTime) * 1000;
 		var endTimes = parseInt(endTime) * 1000;
 		if (nowTime >= startTimes && nowTime < endTimes) {
 			$(".price-num").text(showPrice);
-			showPrice = formatMoney(parseFloat(price) * 0.6);
-			var activePrice = formatMoney(parseFloat(price) - parseFloat(price) * 0.6);
+			showPrice = formatMoney(parseFloat(price) * activeDiscount);
+			var activePrice = formatMoney(parseFloat(price) - parseFloat(price) * activeDiscount);
 			$(".reduce-price").text(formatMoney(activePrice));
 		}
 		if (flag === 1) {
@@ -602,12 +603,10 @@ $('.coupon-code-tx').on('click', function() {
 	var confirmButton = $('.coupon-picker .weui-picker__btn')
 	var cancelButton = $('.coupon-picker .cancel')
 	var value = input.val()
-	input.focus(function (e) {
-    e.target.scrollIntoView({ 'block': 'center' })
-  }).on('input', function() {
-		value = this.value
-		confirmButton.prop('disabled', (value === '' || value === undefined))
-	})
+	input.val('').focus().val(value).on('input', function () {
+    value = this.value
+    confirmButton.prop('disabled', (value === '' || value === undefined))
+  })
 
 	confirmButton.on('click', function() {
 		if (value.toLowerCase() !== couponInfo.code) {

+ 5 - 0
src/jfw/modules/app/src/web/templates/active/livePage/online.html

@@ -122,6 +122,11 @@
     <script src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/active/livePage/js/weui.min.js?v={{Msg "seo" "version"}}"></script>
     <script src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/active/livePage/js/common.js?v={{Msg "seo" "version"}}"></script>
     <script>
+    	  window.addEventListener('pageshow', function(event) {
+          if (event.persisted || window.performance && window.performance.navigation.type == 2) {
+            location.reload();
+          }
+        }, false);
         $(function () {
             try{
         			JyObj.hiddenBottom("0");

+ 6 - 4
src/jfw/modules/app/src/web/templates/dataExport/dataExport_toMyOrder.html

@@ -1822,7 +1822,7 @@
 													+orderHtml
 												+'</div>'
 												+'<div class="card-content">'
-													+'<a  eid='+orderCode_vip+' class="media" isvipOrder="true" href="/jyapp/vipsubscribe/toOrderDetailPage?orderCode=' + orderCode_vip + '">'
+													+'<a onclick="setSessionStorage()"  eid='+orderCode_vip+' class="media" isvipOrder="true" href="/jyapp/vipsubscribe/toOrderDetailPage?orderCode=' + orderCode_vip + '">'
 														+'<div class="media-img">'
 															+'<img src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/vipsubscribe/image/vipBook.png?v=51430">'
 														+'</div>'
@@ -1833,7 +1833,8 @@
 														+'</div>'
 													+'</a>'
 									if(isUsedActiveCode){
-										var originPrice = (parseFloat(orderMoney_vip) / 0.6).toFixed(2);
+                                        var activeDiscount = {{Msg "seo" "activeDiscount"}};
+                                        var originPrice = (parseFloat(orderMoney_vip) / parseFloat(activeDiscount)).toFixed(2);
 										listhtml+= '<div class="price">'
 														+ '<span class="origin-price-container">'
 														+ '<span>原价:¥</span>'
@@ -1860,7 +1861,7 @@
 															+orderHtml
 														+'</div>'
 														+'<div class="card-content">'
-															+'<a  eid='+orderCode_vip+' class="media" isvipOrder="true" href="/jyapp/vipsubscribe/toOrderDetailPage?orderCode=' + orderCode_vip + '">'
+															+'<a onclick="setSessionStorage()"  eid='+orderCode_vip+' class="media" isvipOrder="true" href="/jyapp/vipsubscribe/toOrderDetailPage?orderCode=' + orderCode_vip + '">'
 																+'<div class="media-img">'
 																	+'<img src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/vipsubscribe/image/vipBook.png?v=51430">'
 																+'</div>'
@@ -1872,7 +1873,8 @@
 																+'</div>'
 															+'</a>'
 											if(isUsedActiveCode){
-												var originPrice = (parseFloat(orderMoney_vip) / 0.6).toFixed(2);
+                                                var activeDiscount = {{Msg "seo" "activeDiscount"}};
+                                                var originPrice = (parseFloat(orderMoney_vip) / parseFloat(activeDiscount)).toFixed(2);
 												listhtml+= '<div class="price">'
 																+ '<span class="origin-price-container">'
 																+ '<span>原价:¥</span>'

+ 15 - 6
src/jfw/modules/app/src/web/templates/vipsubscribe/vip_index_new.html

@@ -63,11 +63,11 @@
     VIP订阅
 <span></span></div>
 <div class="app-layout-content-b">
-	{{if not .T.isLiveActive}}
-	<div class="vip-upgrade">
-	{{else}}
-	<div class="vip-upgrade live-20200707">
-	{{end}}
+    {{if not .T.isLiveActive}}
+    <div class="vip-upgrade">
+    {{else}}
+    <div class="vip-upgrade live-20200707">
+    {{end}}
         <div class="vip-header">
             <div class="header-renew trail" style="display: none">
                 <div class="renew-l">
@@ -398,6 +398,13 @@
                     <span class="total-price">¥223.8</span>
                 </div>
             </div>
+			<div class="origin-price">
+			    <span class="price-label">原价:</span>
+			    <div class="price-container">
+			        <span class="currency-type">&yen;</span>
+			        <span class="price-num">5.80</span>
+			    </div>
+			</div>
         </div>
     </div>
     <!-- 选择订阅周期picker -->
@@ -507,12 +514,14 @@
 	<script>
         $(window).bind("pageshow", function (event) {
             if (event.originalEvent.persisted) {
+                sessionStorage.liveActiveCode_new = "";
                 window.location.reload();
             }
         });
 		var live20200707 = {
 			startTime: {{Msg "seo" "liveActiveStartTime"}},
-			endTime: {{Msg "seo" "liveActiveEndTime"}}
+			endTime: {{Msg "seo" "liveActiveEndTime"}},
+            activeDiscount: {{Msg "seo" "activeDiscount"}}
 		}
     </script>
 	<script src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/vipsubscribe/js/UpgradePrice.js?v={{Msg "seo" "version"}}"></script>

+ 17 - 8
src/jfw/modules/app/src/web/templates/vipsubscribe/vip_order_detail.html

@@ -14,7 +14,7 @@
     <link rel="stylesheet" type="text/css" href="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/vipsubscribe/iconfont/iconfont.css?v={{Msg "seo" "version"}}" />
     <link rel="stylesheet" type="text/css" href="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/vipsubscribe/css/public_.css?v={{Msg "seo" "version"}}">
     <link rel="stylesheet" type="text/css" href="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/local/weui.min.css">
-    <link rel="stylesheet" type="text/css" href="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/vipsubscribe/css/vip_order_detail.css?v={{Msg "seo" "version"}}">
+    <link rel="stylesheet" type="text/css" href="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/vipsubscribe/css/vip_order_detail.css?v={{Msg "seo" "version"}}3">
     <link rel="stylesheet" type="text/css" href="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/css/appbutton.css?v={{Msg "seo" "version"}}"/>
 
 	<link rel="stylesheet" type="text/css" href="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/local/layout.css" />
@@ -229,7 +229,7 @@
 	<div class="j-container" id="order_detail">
 	<!--			过期的订单-->
 	<div class="nothing" style="display:none">
-        <img src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/vipsubscribe/image/nothing.png?v=51430"/>
+        <img src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/vipsubscribe/image/nothing.png?v=51430"/>
 		<div class="nothingDiv">
 			该订单记录已删除
 		</div>
@@ -317,7 +317,7 @@
 											<span class="productType value"></span>
 										</p>
 										<p class="l-item">
-											<span class="label" id="price">订单金额:</span>
+											<span class="label" id="price">实付金额:</span>
 											<span class="price value"></span><em class="qingdan valuationList" style="display:none">计费清单</em>
 										</p>
 									</div>
@@ -347,6 +347,13 @@
 					<span class="total-price"></span>
 				</div>
 			</div>
+			<div class="bill-origin-price">
+			    <span class="price-label">原价:</span>
+			    <div class="price-container">
+			        <span class="currency-type">&yen;</span>
+			        <span class="price-num">5.80</span>
+			    </div>
+			</div>
 		</div>
 	</div>
 </body>
@@ -374,7 +381,7 @@
       if(r.success){
 		if(r.data.order.order_status==-1){
 			$(".nothing").show();
-			$(".j-body").hide();
+			$(".j-body").remove();
 		}
         //下单时间
         if(r.data.order.create_time) {
@@ -394,8 +401,10 @@
 		if(!r.data.order.isLiveActive){
 			$(".origin-price-container").hide();
 		}else{
-			var originPrice = (r.data.order.original_price/100 / 0.6).toFixed(2);
+            var activeDiscount = {{Msg "seo" "activeDiscount"}};
+			var originPrice = (r.data.order.original_price/100 / parseFloat(activeDiscount)).toFixed(2);
 			$(".price-num").text(originPrice);
+			$(".bill-origin-price").css("display","flex");
 		}
 		
 		var areaText="";
@@ -776,7 +785,7 @@
 				"order_code":orderCode
 			},
 			success: function (data) {
-        appendList(data.list);
+                appendList(data.list,data.order_money);
 			}
 		});
 		$(".valuationList").show();
@@ -964,7 +973,7 @@
 	 		}
 	 	}
 	 	var total_price=0;
-	 	function appendList(list){
+	 	function appendList(list,money){
 	 		var returnHtml = "";
 	 		for (var i = 0; i < list.length; i++) {
 	 			var showTime=""
@@ -1060,7 +1069,7 @@
 
 	 			total_price+=(list[i].price) ;
 	 		}
-	 		$(".total-price").text("共计:¥"+total_price/100);
+	 		$(".total-price").text("共计:¥"+money/100);
 	 		$(".list-content").html(returnHtml);
 	 	}
 

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

@@ -565,13 +565,14 @@
 						var nowTime = new Date().getTime();
 						var startTime = {{Msg "seo" "liveActiveStartTime"}};
 						var endTime = {{Msg "seo" "liveActiveEndTime"}};
+                        var activeDiscount = {{Msg "seo" "activeDiscount"}};
 						var startTimes = parseInt(startTime)* 1000;
 						var endTimes = parseInt(endTime)* 1000;
 						var buyCount = {{.T.buyCount}};
 						if (nowTime >= startTimes && nowTime < endTimes) {
 							$(".price-num").text(showPrice);
-							showPrice = formatMoney(parseFloat(price) * 0.6);
-							var activePrice = formatMoney(parseFloat(price) - parseFloat(price) * 0.6);
+							showPrice = formatMoney(parseFloat(price) * parseFloat(activeDiscount));
+							var activePrice = formatMoney(parseFloat(price) - parseFloat(price) * parseFloat(activeDiscount));
 							$(".reduce-price").text(formatMoney(activePrice));
 							$(".bought-num").text(buyCount);
 						}

+ 2 - 1
src/jfw/modules/app/src/web/templates/vipsubscribe/vip_renew.html

@@ -358,7 +358,8 @@
 	    });
 		var live20200707 = {
 			startTime: {{Msg "seo" "liveActiveStartTime"}},
-			endTime: {{Msg "seo" "liveActiveEndTime"}}
+			endTime: {{Msg "seo" "liveActiveEndTime"}},
+            activeDiscount: {{Msg "seo" "activeDiscount"}}
 		}
 	</script>
 	<script src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/vipsubscribe/js/vip_renew.js?v={{Msg "seo" "version"}}"></script>

+ 2 - 1
src/jfw/modules/subscribepay/src/config.json

@@ -56,5 +56,6 @@
 	"orderCountdown":"48h",
 	"liveOrderCountdown":"72h",
 	"liveActiveStartTime":1592755200,
-	"liveActiveEndTime":1594051200
+	"liveActiveEndTime":1594051200,
+	"activeDiscount":0.6
 }

+ 3 - 0
src/jfw/modules/subscribepay/src/config/config.go

@@ -52,6 +52,7 @@ type config struct {
 	LiveOrderCountdown  interface{}
 	LiveActiveStartTime int64
 	LiveActiveEndTime   int64
+	ActiveDiscount      float64
 }
 type timeTaskConfig struct {
 	ExpireRemind   string //到期提醒
@@ -82,6 +83,8 @@ type WxTplMsg struct {
 	Second   *qrpc.TmplItem
 	Third    *qrpc.TmplItem
 	Fourth   *qrpc.TmplItem
+	Fifth    *qrpc.TmplItem
+	Sixth    *qrpc.TmplItem
 	Keyword1 *qrpc.TmplItem
 	Keyword2 *qrpc.TmplItem
 	Keyword3 *qrpc.TmplItem

+ 1 - 0
src/jfw/modules/subscribepay/src/entity/subscribeVip.go

@@ -691,6 +691,7 @@ func PayCancel(userId, product_type, entname string) bool {
 				})
 				if bl {
 					util.MsgRemind.Delete(qutil.IntAll(v["id"]))
+					util.ActiveMsgRemind.Delete(qutil.IntAll(v["id"]))
 					i++
 				}
 			}

+ 8 - 0
src/jfw/modules/subscribepay/src/message.json

@@ -69,6 +69,14 @@
 			"value":"您的订单 %s 还未支付,将在 2 小时后关闭,现在支付享VIP订阅 6 折活动,立省%s元,全年仅此一次,错过不再有,请及时付款。",
 			"color":"#FE737A"
 		},
+		"fifth":{
+			"value":"您的订单 %s 还未支付,请及时付款。",
+			"color":"#FE737A"
+		},
+		"sixth":{
+			"value":"您的订单 %s 还未支付,将在 2 小时后关闭,请及时付款。",
+			"color":"#FE737A"
+		},
 		"keyword3": {
 			"value":"%s元"
 		},

+ 3 - 2
src/jfw/modules/subscribepay/src/service/orderListDetails.go

@@ -405,7 +405,7 @@ func (o *OrderListDetails) GetValuationList() error {
 		"order_code": order_code,
 		"user_Id":    userId,
 	}
-	filter := util.Mysql.FindOne(tableName_order, queryMap, "filter", "")
+	filter := util.Mysql.FindOne(tableName_order, queryMap, "filter,order_money", "")
 	if filter != nil {
 		res := qutil.ObjToMap((*filter)["filter"])
 		upgradeSubtotail = qutil.ObjArrToMapArr((*res)["upgradeSubtotail"].([]interface{}))
@@ -420,7 +420,8 @@ func (o *OrderListDetails) GetValuationList() error {
 	}
 	log.Println("upgradeSubtotail:", upgradeSubtotail)
 	o.ServeJson(map[string]interface{}{
-		"list": upgradeSubtotail,
+		"list":        upgradeSubtotail,
+		"order_money": (*filter)["order_money"],
 	})
 	return nil
 }

+ 2 - 1
src/jfw/modules/subscribepay/src/service/vipSubscribeChange.go

@@ -194,8 +194,9 @@ func (this *SubscribeChange) SaveChange() {
 		nowTime := time.Now().Unix()
 		liveActiveStartTime := config.Config.LiveActiveStartTime
 		liveActiveEndTime := config.Config.LiveActiveEndTime
+		activeDiscount := config.Config.ActiveDiscount
 		if nowTime >= liveActiveStartTime && nowTime < liveActiveEndTime {
-			final_price = int(float64(final_price) * 0.6)
+			final_price = int(float64(final_price) * activeDiscount)
 			log.Println("final_price", final_price)
 		}
 		if activeCode == "jianyu360" {

+ 2 - 1
src/jfw/modules/subscribepay/src/service/vipSubscribePay.go

@@ -100,9 +100,10 @@ func (this *SubVipPayOrder) CreateOrder() {
 		nowTime := time.Now().Unix()
 		liveActiveStartTime := config.Config.LiveActiveStartTime
 		liveActiveEndTime := config.Config.LiveActiveEndTime
+		activeDiscount := config.Config.ActiveDiscount
 		if nowTime >= liveActiveStartTime && nowTime < liveActiveEndTime {
 			if totalfee > 100 {
-				totalfee = int(float64(totalfee) * 0.6)
+				totalfee = int(float64(totalfee) * activeDiscount)
 			}
 			log.Println("totalfee", totalfee)
 		}

+ 6 - 5
src/jfw/modules/subscribepay/src/util/liveActiveMsgRemind.go

@@ -187,7 +187,8 @@ func (m *activeMsgRemind) run() {
 			if !ok || user == nil || len(*user) == 0 {
 				return true
 			}
-			origin := float64(unpaidOrder.orderMoney)/100/0.6 - float64(unpaidOrder.orderMoney)/100
+			activeDiscount := Config.ActiveDiscount
+			origin := float64(unpaidOrder.orderMoney)/100/activeDiscount - float64(unpaidOrder.orderMoney)/100
 			originPrice := fmt.Sprintf("%.2f", origin)
 			buyCount := strconv.Itoa(util.IntAll(redis.Get("other", "liveactiveRTB")))
 			log.Println("buyCount", buyCount)
@@ -219,17 +220,17 @@ func (m *activeMsgRemind) run() {
 				}
 				if remind_status == 1 {
 					tmplData["first"] = &qrpc.TmplItem{
-						Value: fmt.Sprintf(MessageConfig.WxTpl_Unpaid.Second.Value, unpaidOrder.orderCode, originPrice),
+						Value: fmt.Sprintf(MessageConfig.WxTpl_Unpaid.Fifth.Value, unpaidOrder.orderCode),
 						Color: MessageConfig.WxTpl_Unpaid.First.Color,
 					}
 				} else if remind_status == 2 {
 					tmplData["first"] = &qrpc.TmplItem{
-						Value: fmt.Sprintf(MessageConfig.WxTpl_Unpaid.Third.Value, unpaidOrder.orderCode, buyCount, originPrice),
+						Value: fmt.Sprintf(MessageConfig.WxTpl_Unpaid.Fifth.Value, unpaidOrder.orderCode),
 						Color: MessageConfig.WxTpl_Unpaid.First.Color,
 					}
 				} else if remind_status == 3 {
 					tmplData["first"] = &qrpc.TmplItem{
-						Value: fmt.Sprintf(MessageConfig.WxTpl_Unpaid.Fourth.Value, unpaidOrder.orderCode, originPrice),
+						Value: fmt.Sprintf(MessageConfig.WxTpl_Unpaid.Sixth.Value, unpaidOrder.orderCode),
 						Color: MessageConfig.WxTpl_Unpaid.First.Color,
 					}
 				}
@@ -254,7 +255,7 @@ func (m *activeMsgRemind) run() {
 				if remind_status == 1 {
 					tmplData["first"] = fmt.Sprintf(MessageConfig.WxTpl_Unpaid.Second.Value, unpaidOrder.orderCode, originPrice)
 				} else if remind_status == 2 {
-					tmplData["first"] = fmt.Sprintf(MessageConfig.WxTpl_Unpaid.Third.Value, unpaidOrder.orderCode, originPrice)
+					tmplData["first"] = fmt.Sprintf(MessageConfig.WxTpl_Unpaid.Third.Value, unpaidOrder.orderCode, buyCount, originPrice)
 				} else if remind_status == 3 {
 					tmplData["first"] = fmt.Sprintf(MessageConfig.WxTpl_Unpaid.Fourth.Value, unpaidOrder.orderCode, originPrice)
 				}

+ 2 - 1
src/seo.json

@@ -480,5 +480,6 @@
     },
 	"orderCountdown":"72h",
 	"liveActiveStartTime": "1592755200",
-	"liveActiveEndTime": "1594051200"
+	"liveActiveEndTime": "1594051200",
+	"activeDiscount": "0.6"
 }

+ 1 - 0
src/web/staticres/vipsubscribe/css/vip_index_new.css

@@ -560,6 +560,7 @@
 }
 
 .jy-alert .weui-dialog__bd {
+  margin: 0;
   padding: 0 0.4rem 0.48rem;
   font-size: 0.28rem;
   color: #686868;

+ 12 - 10
src/web/staticres/vipsubscribe/js/vip_index_new.js

@@ -266,6 +266,9 @@ $(function () {
         pickerShow('.billing-list-container', false)
         pickerShow('.coupon-picker', false)
     })
+    $('body').on('click', '.jy-dialog .weui-mask', function () {
+        pickerShow('.jy-dialog', false)
+    })
 
     $('.close-expire-remind').on("click", function () {
         $(".expire-remind").hide();
@@ -345,15 +348,15 @@ $(function () {
         $('.vip-footer .button-l.reset').off("click").on("click", function () {
             cancelTip(module);
         });
+        window.removeEventListener('popstate')
         window.addEventListener("popstate", function (e) {
-            //如果订单计费清单显示,则关闭清单;
+            // 如果订单计费清单显示,则关闭清单;
             if ($(".billing-list-container").css("display") != "none" && module === 2) {
                 pickerShow('.billing-list-container', false);
                 pushHistory();
             } else {//提示是否保存
                 $('.weui-mask').trigger('click')
                 cancelTip(module);
-                //pushHistory();
             }
         }, false);
     }
@@ -737,18 +740,19 @@ $(function () {
             var nowTime = new Date().getTime();
             var startTime = live20200707.startTime;
             var endTime = live20200707.endTime;
+            var activeDiscount = parseFloat(live20200707.activeDiscount);
             var startTimes = parseInt(startTime) * 1000;
             var endTimes = parseInt(endTime) * 1000;
             if (nowTime >= startTimes && nowTime < endTimes) {
               var price = status[0];
               $(".price-num").text(price);
-              status[0] = parseFloat(price) * 0.6;
-              var activePrice = formatMoney(parseFloat(price) - parseFloat(price) * 0.6);
+              status[0] = parseFloat(price) * activeDiscount;
+              var activePrice = formatMoney(parseFloat(price) - parseFloat(price) * activeDiscount);
               $(".reduce-price").text(formatMoney(activePrice));
               // for (var i=0;i<status.length;i++){
               //   if(i===3){
               //     for (var a in status[i]){
-              //       status[i][a].price = parseFloat(status[i][a].price) * 0.6;
+              //       status[i][a].price = parseFloat(status[i][a].price) * activeDiscount;
               //     }
               //   }
               // }
@@ -874,11 +878,9 @@ $(function () {
         var confirmButton = $('.coupon-picker .weui-picker__btn')
         var cancelButton = $('.coupon-picker .cancel')
         var value = input.val()
-        input.focus(function (e) {
-          e.target.scrollIntoView({ 'block': 'center' })
-        }).on('input', function () {
-            value = this.value
-            confirmButton.prop('disabled', (value === '' || value === undefined))
+        input.val('').focus().val(value).on('input', function () {
+          value = this.value
+          confirmButton.prop('disabled', (value === '' || value === undefined))
         })
 
         confirmButton.on('click', function () {

+ 30 - 5
src/web/templates/pc/billing_list.html

@@ -23,7 +23,23 @@
             <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
         <![endif]-->
 </head>
-
+<style type="text/css">
+    .m_thead{
+        display: flex;
+    }
+    .origin-price-container {
+      display: flex;
+      color: #9B9CA3;
+      align-self: flex-end;
+      font-size: 16px;
+      padding-left: 21px;
+      line-height: 29px;
+    }
+    
+    .origin-price-container .price-num {
+      text-decoration: line-through;
+    }
+</style>
 <body>
     <!-- header -->
 	{{include "/common/pchead.html"}}
@@ -40,6 +56,13 @@
                     <span class="yen">&yen;</span>
                     <span class="price"></span>
                 </div>
+               <div class="origin-price-container">
+                   <p class="price-label">原价:</p>
+                   <p class="origin-price">
+                       <span class="yen">&yen;</span>
+                       <span class="price-num">1234</span>
+                   </p>
+               </div>
             </div>
             <div class="m_body">
                 <ul class="clearfix">
@@ -68,13 +91,14 @@
 				data: {
 					"order_code":{{.T.order_code}}
 				},
-				success: function (data) {
-					appendList(data.list);
+				success: function (data) {
+                    // console.log(data)
+					appendList(data.list,data.order_money);
 				}
 			});
         })
 		
-		function appendList(list){
+		function appendList(list,money){
 			var returnHtml = "";
 			var total_price=0;
 			for (var i = 0; i < list.length; i++) {
@@ -160,7 +184,8 @@
 				total_price+=(list[i].price) ;
 			}
 			$(".m_body > ul").html(returnHtml);
-			$(".price").text(total_price/100);
+			$(".price").text(money/100);
+			$(".price-num").text(total_price/100);
 		}
 		function gettime(t){
 			  var y = t.getFullYear();

+ 4 - 2
src/web/templates/weixin/dataExport/dataExport_toMyOrder.html

@@ -1175,7 +1175,8 @@
                     //}
                     listhtml += '</div></a>'
 					if(isUsedActiveCode){
-						var originPrice = (parseFloat(orderMoney_vip) / 0.6).toFixed(2);
+                        var activeDiscount = {{Msg "seo" "activeDiscount"}};
+						var originPrice = (parseFloat(orderMoney_vip) / parseFloat(activeDiscount)).toFixed(2);
 						listhtml += '<div class="price">'
 						+ '<span class="origin-price-container">'
 						+ '<span>原价:¥</span>'
@@ -1214,7 +1215,8 @@
                     //}
                     listhtml += '</div></a>'
                     if(isUsedActiveCode){
-						var originPrice = (parseFloat(orderMoney_vip) / 0.6).toFixed(2);
+						var activeDiscount = {{Msg "seo" "activeDiscount"}};
+						var originPrice = (parseFloat(orderMoney_vip) / parseFloat(activeDiscount)).toFixed(2);
                     	listhtml += '<div class="price">'
                     	+ '<span class="origin-price-container">'
                     	+ '<span>原价:¥</span>'

+ 9 - 1
src/web/templates/weixin/vipsubscribe/vip_index_new.html

@@ -400,6 +400,13 @@
                 <span class="total-price">¥223.8</span>
             </div>
         </div>
+		<div class="origin-price">
+		    <span class="price-label">原价:</span>
+		    <div class="price-container">
+		        <span class="currency-type">&yen;</span>
+		        <span class="price-num">5.80</span>
+		    </div>
+		</div>
     </div>
 </div>
 <!-- 选择订阅周期picker -->
@@ -517,7 +524,8 @@
     });
 	var live20200707 = {
 		startTime: {{Msg "seo" "liveActiveStartTime"}},
-		endTime: {{Msg "seo" "liveActiveEndTime"}}
+		endTime: {{Msg "seo" "liveActiveEndTime"}},
+        activeDiscount: {{Msg "seo" "activeDiscount"}}
 	}
     try {
         var signature = {{.T.signature}};

+ 26 - 5
src/web/templates/weixin/vipsubscribe/vip_order_detail.html

@@ -35,6 +35,18 @@
     .j-footer {
       display: none;
     }
+	.bill-origin-price {
+	  display: none;
+	  align-items: center;
+	  justify-content: flex-end;
+	  padding: 0 .32rem;
+	  color: #9B9CA3;
+	  margin-bottom: 0.2rem;
+	}
+	
+	.bill-origin-price .price-num {
+	  text-decoration: line-through;
+	}
 </style>
 <body style="visibility:hidden">
 	<div class="nothing" style="display:none;text-align: center;  padding-top: 2rem;">
@@ -122,7 +134,7 @@
                             <span class="productType value"></span>
                         </p>
                         <p class="l-item">
-                            <span class="label" id="price">订单金额:</span>
+                            <span class="label" id="price">实付金额:</span>
                             <span class="price value"></span><em class="qingdan valuationList" style="display:none">计费清单</em>
                         </p>
                     </div>
@@ -152,6 +164,13 @@
 					<span class="total-price"></span>
 				</div>
 			</div>
+			<div class="bill-origin-price">
+			    <span class="price-label">原价:</span>
+			    <div class="price-container">
+			        <span class="currency-type">&yen;</span>
+			        <span class="price-num">5.80</span>
+			    </div>
+			</div>
 		</div>
 	</div>
 </body>
@@ -226,8 +245,10 @@ try{
 		if(!r.data.order.isLiveActive){
 			$(".origin-price-container").hide();
 		}else{
-			var originPrice = (r.data.order.original_price/100 / 0.6).toFixed(2);
+            var activeDiscount = {{Msg "seo" "activeDiscount"}};
+			var originPrice = (r.data.order.original_price/100 / parseFloat(activeDiscount)).toFixed(2);
 			$(".price-num").text(originPrice);
+            $(".bill-origin-price").css("display","flex")
 		}
 
         //订单条件
@@ -643,7 +664,7 @@ try{
       				"order_code":orderCode
       		    },
       		    success: function (data) {
-      		        appendList(data.list);
+      		        appendList(data.list,data.order_money);
       		    }
       		});
 
@@ -787,7 +808,7 @@ try{
 		}
 	}
 	var total_price=0;
-	function appendList(list){
+	function appendList(list,money){
 		var returnHtml = "";
 		for (var i = 0; i < list.length; i++) {
 			var showTime=""
@@ -883,7 +904,7 @@ try{
 
 			total_price+=(list[i].price) ;
 		}
-		$(".total-price").text("共计:¥"+total_price/100);
+		$(".total-price").text("共计:¥"+money/100);
 		$(".list-content").html(returnHtml);
 	}
 

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

@@ -346,7 +346,8 @@
         });
 		var live20200707 = {
 			startTime: {{Msg "seo" "liveActiveStartTime"}},
-			endTime: {{Msg "seo" "liveActiveEndTime"}}
+			endTime: {{Msg "seo" "liveActiveEndTime"}},
+            activeDiscount: {{Msg "seo" "activeDiscount"}}
 		}
         //微信支付start
         {{if not .T.isTrial }}
@@ -601,15 +602,16 @@
                     //var price = getsubVipOrderPrice(this.areaSelect, this.industrySelect, time, this.price);
                     var showPrice = formatMoney(price);
 					var nowTime = new Date().getTime();
-					var startTime = {{Msg "seo" "liveActiveStartTime"}};
-					var endTime = {{Msg "seo" "liveActiveEndTime"}};
+					var startTime = live20200707.startTime;
+					var endTime = live20200707.endTime;
+                    var activeDiscount = parseFloat(live20200707.activeDiscount);
 					var startTimes = parseInt(startTime)* 1000;
 					var endTimes = parseInt(endTime)* 1000;
 					var buyCount = {{.T.buyCount}};
 					if (nowTime >= startTimes && nowTime < endTimes) {
 						$(".price-num").text(showPrice);
-						showPrice = formatMoney(parseFloat(price) * 0.6);
-						var activePrice = formatMoney(parseFloat(price) - parseFloat(price) * 0.6);
+						showPrice = formatMoney(parseFloat(price) * activeDiscount);
+						var activePrice = formatMoney(parseFloat(price) - parseFloat(price) * activeDiscount);
 						$(".reduce-price").text(formatMoney(activePrice));
 						$(".bought-num").text(buyCount);
 					}

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

@@ -338,7 +338,8 @@
     });
 	var live20200707 = {
 		startTime: {{Msg "seo" "liveActiveStartTime"}},
-		endTime: {{Msg "seo" "liveActiveEndTime"}}
+		endTime: {{Msg "seo" "liveActiveEndTime"}},
+        activeDiscount: {{Msg "seo" "activeDiscount"}}
 	}
     try {
         var signature = {{.T.signature}};
@@ -553,12 +554,13 @@
 			var nowTime = new Date().getTime();
 			var startTime = live20200707.startTime;
 			var endTime = live20200707.endTime;
+            var activeDiscount = parseFloat(live20200707.activeDiscount);
 			var startTimes = parseInt(startTime) * 1000;
 			var endTimes = parseInt(endTime) * 1000;
 			if (nowTime >= startTimes && nowTime < endTimes) {
 				$(".price-num").text(showPrice);
-				showPrice = formatMoney(parseFloat(price) * 0.6);
-				var activePrice = formatMoney(parseFloat(price) - parseFloat(price) * 0.6);
+				showPrice = formatMoney(parseFloat(price) * activeDiscount);
+				var activePrice = formatMoney(parseFloat(price) - parseFloat(price) * activeDiscount);
 				$(".reduce-price").text(formatMoney(activePrice));
 			}
             if (flag === 1) {