|
@@ -275,7 +275,7 @@
|
|
|
if (Object.keys(filterObjNew).length <= 0) return
|
|
|
var cycle = ''
|
|
|
var cmap={1:"天",2:"月",3:"年",4:"季"}
|
|
|
- if (filterObjNew.buy_type==filterObjNew.give_type){
|
|
|
+ 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]
|
|
|
}else{
|
|
|
if (filterObjNew.buy_cycle>0){
|
|
@@ -550,25 +550,29 @@
|
|
|
} else if (year === 0 && month !== 0) {
|
|
|
$(".dyzq").text(month + "个月");
|
|
|
}
|
|
|
- if (filterObj.cycleunit == 1) {
|
|
|
- $(".dyzq").text(filterObj.cyclecount + "年")
|
|
|
- } else if (filterObj.cycleunit == 2) {
|
|
|
- $(".dyzq").text(filterObj.cyclecount + "个月")
|
|
|
- } else if (filterObj.cycleunit == 3) {
|
|
|
- $(".dyzq").text(filterObj.cyclecount + "天")
|
|
|
- } else if (filterObj.cycleunit == 4) {
|
|
|
- $(".dyzq").text(filterObj.cyclecount + "季")
|
|
|
+ if (filterObj) {
|
|
|
+ if (filterObj.cycleunit == 1) {
|
|
|
+ $(".dyzq").text(filterObj.cyclecount + "年")
|
|
|
+ } else if (filterObj.cycleunit == 2) {
|
|
|
+ $(".dyzq").text(filterObj.cyclecount + "个月")
|
|
|
+ } else if (filterObj.cycleunit == 3) {
|
|
|
+ $(".dyzq").text(filterObj.cyclecount + "天")
|
|
|
+ } else if (filterObj.cycleunit == 4) {
|
|
|
+ $(".dyzq").text(filterObj.cyclecount + "季")
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
//未支付
|
|
|
- if (filterObj.cycleunit == 1) {
|
|
|
- $(".dyzq").text(filterObj.cyclecount + "年")
|
|
|
- } else if (filterObj.cycleunit == 2) {
|
|
|
- $(".dyzq").text(filterObj.cyclecount + "个月")
|
|
|
- } else if (filterObj.cycleunit == 3) {
|
|
|
- $(".dyzq").text(filterObj.cyclecount + "天")
|
|
|
- } else if (filterObj.cycleunit == 4) {
|
|
|
- $(".dyzq").text(filterObj.cyclecount + "季")
|
|
|
+ if (filterObj) {
|
|
|
+ if (filterObj.cycleunit == 1) {
|
|
|
+ $(".dyzq").text(filterObj.cyclecount + "年")
|
|
|
+ } else if (filterObj.cycleunit == 2) {
|
|
|
+ $(".dyzq").text(filterObj.cyclecount + "个月")
|
|
|
+ } else if (filterObj.cycleunit == 3) {
|
|
|
+ $(".dyzq").text(filterObj.cyclecount + "天")
|
|
|
+ } else if (filterObj.cycleunit == 4) {
|
|
|
+ $(".dyzq").text(filterObj.cyclecount + "季")
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if (r.data.order.order_status == 1) {
|
|
@@ -595,15 +599,18 @@
|
|
|
$(".zq_text").text("续费周期");
|
|
|
} else if (order.vip_type == 2 || order.service_type == 3) {
|
|
|
$(".vip_type").text("(升级)");
|
|
|
- if (filterObj.cycleunit == 1) {
|
|
|
- $(".dyzq").text(filterObj.cyclecount + "年")
|
|
|
- } else if (filterObj.cycleunit == 2) {
|
|
|
- $(".dyzq").text(filterObj.cyclecount + "个月")
|
|
|
- } else if (filterObj.cycleunit == 3) {
|
|
|
- $(".dyzq").text(filterObj.cyclecount + "天")
|
|
|
- } else if (filterObj.cycleunit == -1) {
|
|
|
- $(".dyzq").text("不延期");
|
|
|
+ if (filterObj) {
|
|
|
+ if (filterObj.cycleunit == 1) {
|
|
|
+ $(".dyzq").text(filterObj.cyclecount + "年")
|
|
|
+ } else if (filterObj.cycleunit == 2) {
|
|
|
+ $(".dyzq").text(filterObj.cyclecount + "个月")
|
|
|
+ } else if (filterObj.cycleunit == 3) {
|
|
|
+ $(".dyzq").text(filterObj.cyclecount + "天")
|
|
|
+ } else if (filterObj.cycleunit == -1) {
|
|
|
+ $(".dyzq").text("不延期");
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
//续费升级逻辑修改后判断是否不延期
|
|
|
if (filterObj.cycleunit == 0 && filterObj.cyclecount == 0) {
|
|
|
$(".dyzq").text("不延期");
|
|
@@ -639,7 +646,7 @@
|
|
|
}
|
|
|
|
|
|
//计价清单
|
|
|
- var filterObj = JSON.parse(r.data.order.filter);
|
|
|
+ var filterObj = JSON.parse(r.data.order.filter) || {};
|
|
|
var upgradeSubtotail = filterObj.upgradeSubtotail;
|
|
|
if (upgradeSubtotail) { //有则显示
|
|
|
$(".valuationList").css("display", "");
|