|
@@ -41,7 +41,7 @@
|
|
|
<li class="choose_item">
|
|
|
<a href="/front/vipsubscribe/toChooseIndustryUpgrade">
|
|
|
<span class="label">行业</span>
|
|
|
- <input type="text" id="buyerclass" disabled value="" placeholder="选择采购单位行业" class="info">
|
|
|
+ <input type="text" id="buyerclass" value="" placeholder="选择采购单位行业" class="info">
|
|
|
<i class="iconfont icon-arrow"></i>
|
|
|
</a>
|
|
|
<p class="add_tips industry-list" style="display: none;">已新增 2 个行业</p>
|
|
@@ -86,16 +86,16 @@
|
|
|
<td colspan="2">按月购买</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td>5.8元 月/市/行业</td>
|
|
|
- <td>18元 月/市/全行业</td>
|
|
|
+ <td><span>5.8</span>元 月/市/行业</td>
|
|
|
+ <td><span>18</span>元 月/市/全行业</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td>11.8元 月/省/行业</td>
|
|
|
- <td>38元 月/省/全行业</td>
|
|
|
+ <td><span>11.8</span>元 月/省/行业</td>
|
|
|
+ <td><span>38</span>元 月/省/全行业</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td>118元 月/全国/行业</td>
|
|
|
- <td>388元 月/全国/全行业</td>
|
|
|
+ <td><span>118</span>元 月/全国/行业</td>
|
|
|
+ <td><span>388</span>元 月/全国/全行业</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
<table class="yearly">
|
|
@@ -103,16 +103,16 @@
|
|
|
<td colspan="2">按年购买</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td>58元 年/市/行业</td>
|
|
|
- <td>180元 年/市/全行业</td>
|
|
|
+ <td><span>58</span>元 年/市/行业</td>
|
|
|
+ <td><span>180</span>元 年/市/全行业</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td>118元 年/省/行业</td>
|
|
|
- <td>380元 年/省/全行业</td>
|
|
|
+ <td><span>118</span>元 年/省/行业</td>
|
|
|
+ <td><span>380</span>元 年/省/全行业</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td>1180元 年/全国/行业</td>
|
|
|
- <td>3880元 年/全国/全行业</td>
|
|
|
+ <td><span>1180</span>元 年/全国/行业</td>
|
|
|
+ <td><span>3880</span>元 年/全国/全行业</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
<dl class="tips">
|
|
@@ -194,7 +194,7 @@
|
|
|
<button class="weui-btn weui-btn_plain-default" type="button">
|
|
|
<div class="jy_icon decrease"></div>
|
|
|
</button>
|
|
|
- <span class="month_number">6</span>
|
|
|
+ <span class="month_number">1</span>
|
|
|
<button class="weui-btn weui-btn_plain-default add" type="button">
|
|
|
<div class="jy_icon increase"></div>
|
|
|
</button>
|
|
@@ -297,7 +297,7 @@
|
|
|
<script src="/vipsubscribe/js/jquery-2.1.4.js"></script>
|
|
|
<!--<script src="/vipsubscribe/js/fastclick.js?v={{Msg "seo" "version"}}"></script>-->
|
|
|
<script src="/vipsubscribe/js/weui.min.js?v={{Msg "seo" "version"}}"></script>
|
|
|
- <script src="/vipsubscribe/js/common.js?v={{Msg "seo" "version"}}"></script>
|
|
|
+ <script src="/vipsubscribe/js/common.js?v={{Msg "seo" "version"}}3"></script>
|
|
|
<script type="text/javascript">
|
|
|
//
|
|
|
try{
|
|
@@ -374,7 +374,24 @@
|
|
|
isPageHide = true;
|
|
|
});
|
|
|
});
|
|
|
-
|
|
|
+ //加载价格
|
|
|
+ $DoPost("/subscribepay/vipsubscribe/getPrice",{},function(r){
|
|
|
+ if(r){
|
|
|
+ $('.monthly span:eq(0)').text(r.month.oneCity_oneBuyerClass/100);
|
|
|
+ $('.monthly span:eq(1)').text(r.month.oneCity_allBuyerClass/100);
|
|
|
+ $('.monthly span:eq(2)').text(r.month.oneProvince_oneBuyerClass/100);
|
|
|
+ $('.monthly span:eq(3)').text(r.month.oneProvince_allBuyerClass/100);
|
|
|
+ $('.monthly span:eq(4)').text(r.month.allProvince_oneBuyerClass/100);
|
|
|
+ $('.monthly span:eq(5)').text(r.month.allProvince_allBuyerClass/100);
|
|
|
+
|
|
|
+ $('.yearly span:eq(0)').text(r.year.oneCity_oneBuyerClass/100);
|
|
|
+ $('.yearly span:eq(1)').text(r.year.oneCity_allBuyerClass/100);
|
|
|
+ $('.yearly span:eq(2)').text(r.year.oneProvince_oneBuyerClass/100);
|
|
|
+ $('.yearly span:eq(3)').text(r.year.oneProvince_allBuyerClass/100);
|
|
|
+ $('.yearly span:eq(4)').text(r.year.allProvince_oneBuyerClass/100);
|
|
|
+ $('.yearly span:eq(5)').text(r.year.allProvince_allBuyerClass/100);
|
|
|
+ }
|
|
|
+ },false)
|
|
|
var monthPrice = "";
|
|
|
var yearPrice = "";
|
|
|
|
|
@@ -489,7 +506,6 @@
|
|
|
$("#monthly").prop('checked', true);
|
|
|
$('#number_box_month').addClass('active')
|
|
|
$('.number_box span').removeClass('active')
|
|
|
-
|
|
|
var $number = $('#number_box_month span.month_number');
|
|
|
var $monthlyInput = $('#monthly');
|
|
|
// 未整理的data数组,里面的值都是字符串
|
|
@@ -599,12 +615,15 @@
|
|
|
$('.profit_tips').text("已选择"+val+"个月,建议“按年订阅”更划算哦~");
|
|
|
$('.profit_tips').show();
|
|
|
}
|
|
|
- console.log(val)
|
|
|
+
|
|
|
if (!isChecked) {
|
|
|
$('#number_box_month button').attr('disabled', true)
|
|
|
} else {
|
|
|
$('#number_box_month button').removeAttr('disabled')
|
|
|
}
|
|
|
+ if(val==="1"){
|
|
|
+ $('#number_box_month button:first').attr('disabled', true);
|
|
|
+ }
|
|
|
if(Number(val)>=10){
|
|
|
val = 10
|
|
|
}
|
|
@@ -854,7 +873,7 @@
|
|
|
function FinallyPrice(){
|
|
|
var nowUpgrade = "";
|
|
|
//
|
|
|
- var nowDate = new Date().toLocaleDateString();
|
|
|
+ var nowDate = new Date(startTime).toLocaleDateString();
|
|
|
nowDate = nowDate.split("/");
|
|
|
var nowMonth = Number(nowDate[1]);
|
|
|
var nowYear = Number(nowDate[0]);
|