Quellcode durchsuchen

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

cuiyalong vor 3 Jahren
Ursprung
Commit
c5b308b8fb

+ 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) {