|
@@ -5,7 +5,10 @@ function calcBackOrderTime(filterObjNew) {
|
|
|
var cycle = ''
|
|
|
var cmap={1:"天",2:"月",3:"年",4:"季"}
|
|
|
if (filterObjNew.buy_type && filterObjNew.buy_type==filterObjNew.give_type){
|
|
|
- cycle = parseInt(filterObjNew.buy_cycle||0) +parseInt(filterObjNew.give_cycle||0) +cmap[filterObjNew.buy_type]
|
|
|
+ var cycleNum = parseInt(filterObjNew.buy_cycle||0) +parseInt(filterObjNew.give_cycle||0)
|
|
|
+ if (cycleNum>0) {
|
|
|
+ cycle = cycleNum +cmap[filterObjNew.buy_type]
|
|
|
+ }
|
|
|
}else{
|
|
|
if (filterObjNew.buy_cycle>0){
|
|
|
cycle+=filterObjNew.buy_cycle+cmap[filterObjNew.buy_type]
|
|
@@ -439,6 +442,10 @@ $(function () {
|
|
|
} else {
|
|
|
$('.cyclecount').parents('.l-item').hide()
|
|
|
}
|
|
|
+ } else {
|
|
|
+ if (!filterObj.cyclecount) {
|
|
|
+ $('.cyclecount').parents('.l-item').hide()
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//升级续费
|
|
@@ -460,7 +467,9 @@ $(function () {
|
|
|
$(".discountPrice").text('-¥'+ formatMoney(parseFloat(r.data.order.discount_price) / 100)+'元')
|
|
|
}
|
|
|
}
|
|
|
- $(".payPrice").text("¥ " + formatMoney(parseFloat(r.data.order.pay_money || r.data.order.order_money) / 100) + "元");
|
|
|
+ if (r.data.order.pay_money) {
|
|
|
+ $(".payPrice").text("¥ " + formatMoney(parseFloat(r.data.order.pay_money) / 100) + "元");
|
|
|
+ }
|
|
|
//未支付
|
|
|
$("#card-header-bg").addClass("bg nopay-bg")
|
|
|
$("#pageTitle").addClass("status")
|
|
@@ -475,6 +484,7 @@ $(function () {
|
|
|
window.location.href = "/jyapp/pay/checkout_subvip?orderCode=" + orderCode + "&t=3";
|
|
|
})
|
|
|
}
|
|
|
+ $(".payWay").text("公对公转账");
|
|
|
if (filterObj.transferV) {
|
|
|
initImgView(filterObj.transferV)
|
|
|
$(".payWay").html("公对公转账<span style='color: #2ABED1' onclick='showImg()'> 查看凭证</span>");
|
|
@@ -541,10 +551,14 @@ $(function () {
|
|
|
$(".discountPrice").text('-¥'+ formatMoney(parseFloat(r.data.order.discount_price) / 100)+'元')
|
|
|
}
|
|
|
}
|
|
|
- $(".payPrice").text("¥ " + formatMoney(parseFloat(r.data.order.pay_money || r.data.order.order_money) / 100) + "元");
|
|
|
+ if (r.data.order.pay_money) {
|
|
|
+ $(".payPrice").text("¥ " + formatMoney(parseFloat(r.data.order.pay_money) / 100) + "元");
|
|
|
+ }
|
|
|
//P307 权益码兑换 支付金额 0
|
|
|
if(filterObj.badge=="exchange"){
|
|
|
- $(".payPrice").text("¥ " + formatMoney(parseFloat(r.data.order.pay_money) / 100) + "元");
|
|
|
+ if (r.data.order.pay_money) {
|
|
|
+ $(".payPrice").text("¥ " + formatMoney(parseFloat(r.data.order.pay_money) / 100) + "元");
|
|
|
+ }
|
|
|
}
|
|
|
$("#card-header-bg").addClass("bg finish-bg")
|
|
|
$("#pageTitle").text("已完成");
|