소스 검색

fix: 支付成功页面计算升级省份逻辑完善

cuiyalong 3 년 전
부모
커밋
c5b308b8fb
2개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      src/jfw/modules/app/src/web/templates/commonPay/paySuccess.html
  2. 2 1
      src/web/templates/weixin/commonPay/paySuccess.html

+ 2 - 2
src/jfw/modules/app/src/web/templates/commonPay/paySuccess.html

@@ -191,8 +191,8 @@
             cycleType = ' 年'
         }
 
-        var upgradeText = orderFilter.num === -1 ? '全国' : (orderFilter.num - orderFilter.OldNum)
-        var html = `${titleMap[orderFilter.ordertype]}省份数量:<span class="highlight-text">${upgradeText}</span>${orderFilter.num === -1 ? '' : ' 个省'}`
+        var buyText = orderFilter.num === -1 ? '全国' : (orderFilter.num - (orderFilter.OldNum || 0))
+        var html = `${titleMap[orderFilter.ordertype]}省份数量:<span class="highlight-text">${buyText}</span>${orderFilter.num === -1 ? '' : ' 个省'}`
         html += `&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;`
         html += `订阅周期:`
         if (orderFilter.ordertype == 2) {

+ 2 - 1
src/web/templates/weixin/commonPay/paySuccess.html

@@ -158,7 +158,8 @@
             cycleType = ' 年'
         }
 
-        var html = `${titleMap[orderFilter.ordertype]}省份数量:<span class="highlight-text">${orderFilter.num === -1 ? '全国' : orderFilter.num}</span>${orderFilter.num === -1 ? '' : ' 个省'}`
+        var buyText = orderFilter.num === -1 ? '全国' : (orderFilter.num - (orderFilter.OldNum || 0))
+        var html = `${titleMap[orderFilter.ordertype]}省份数量:<span class="highlight-text">${buyText}</span>${orderFilter.num === -1 ? '' : ' 个省'}`
         html += `&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;`
         html += `订阅周期:`
         if (orderFilter.ordertype == 2) {