|
@@ -142,20 +142,23 @@ var purchase = {
|
|
|
showArea: function () {
|
|
|
if (!$.isEmptyObject(this.areaSelect) && !this.areaSelect["一个省"]) { //有选择
|
|
|
if (this.nowBuyset.areacount === -1 || this.nowBuyset.areacount >= 16) {
|
|
|
- $(".area-result .item-r").text("全国");
|
|
|
+ // $(".area-result .item-r").text("全国");
|
|
|
+ $(".selected-area").text("全国");
|
|
|
} else {
|
|
|
var tipTxt = "";
|
|
|
- if (this.nowBuyset.areacount > 0) tipTxt += this.nowBuyset.areacount + " 个省";
|
|
|
- var count = 0;
|
|
|
- this.nowBuyset.citys.forEach(function (item, index) {
|
|
|
- count += item;
|
|
|
- });
|
|
|
- if (count > 0) {
|
|
|
- if (this.nowBuyset.areacount > 0) tipTxt += "、";
|
|
|
- tipTxt += count + " 个市";
|
|
|
- if (this.nowBuyset.citys.length > 1) tipTxt += "(分布在" + this.nowBuyset.citys.length + "个省内)"
|
|
|
- }
|
|
|
- $(".area-result .item-r").text(tipTxt);
|
|
|
+ // if (this.nowBuyset.areacount > 0) tipTxt += this.nowBuyset.areacount + "";
|
|
|
+ // var count = 0;
|
|
|
+ // this.nowBuyset.citys.forEach(function (item, index) {
|
|
|
+ // count += item;
|
|
|
+ // });
|
|
|
+ // if (count > 0) {
|
|
|
+ // if (this.nowBuyset.areacount > 0) tipTxt += "、";
|
|
|
+ // tipTxt += count + " 个市";
|
|
|
+ // if (this.nowBuyset.citys.length > 1) tipTxt += "(分布在" + this.nowBuyset.citys.length + "个省内)"
|
|
|
+ // }
|
|
|
+ // $(".area-result .item-r").text(tipTxt);
|
|
|
+ tipTxt = Object.keys(this.areaSelect).length
|
|
|
+ $(".selected-area").text(tipTxt);
|
|
|
}
|
|
|
} else {
|
|
|
$(".area-result .item-r").text("");
|
|
@@ -233,8 +236,11 @@ var purchase = {
|
|
|
purchase.areaSelect = {}
|
|
|
}
|
|
|
obj.areacount = Object.keys(purchase.areaSelect).length == 0 ? -1 : Object.keys(purchase.areaSelect).length
|
|
|
- var price = Calculation.GetUpgradeDetail(new Buyset(obj.areacount,[],obj.buyerclasscount,1), time)
|
|
|
- var givePrice = Calculation.GetUpgradeDetail(new Buyset(obj.areacount,[],obj.buyerclasscount,1), [time[1] === 1 ? 1 : time[0], time[1]])
|
|
|
+ // var price = Calculation.GetUpgradeDetail(new Buyset(obj.areacount,[],obj.buyerclasscount,1), time)
|
|
|
+ // var givePrice = Calculation.GetUpgradeDetail(new Buyset(obj.areacount,[],obj.buyerclasscount,1), [time[1] === 1 ? 1 : time[0], time[1]])
|
|
|
+ /* 超级订阅2.1版本 升级不再自动增加1个月周期,如需增加使用上面注释代码传入周期即可 */
|
|
|
+ var price = Calculation.GetUpgradeDetail(new Buyset(obj.areacount,[],obj.buyerclasscount,1))
|
|
|
+ var givePrice = Calculation.GetUpgradeDetail(new Buyset(obj.areacount,[],obj.buyerclasscount,1))
|
|
|
price = Number(price[0] / 100) < 0 ? 0 : Number(price[0] / 100)
|
|
|
|
|
|
var showPrice = formatMoney(price);
|
|
@@ -578,8 +584,8 @@ $(function () {
|
|
|
"area": flag ? JSON.stringify(area) : '',
|
|
|
'area_count': flag ? 0 : areaCount,
|
|
|
// "industry": industry.join(","),
|
|
|
- 'price': parseInt(coupon.initPrice*100),
|
|
|
- "time": purchase.timeValue.trim(),
|
|
|
+ 'price': parseInt(coupon.initPrice*10000/100),
|
|
|
+ // "time": purchase.timeValue.trim(),
|
|
|
// "orderType": 5,
|
|
|
"activeCode": activeCodes,
|
|
|
"disWord":GetQueryString("disWord"),
|