' + d.Dt_baoming + '报名' + d.Service_price + '元'; $(".m-fee-list").append(_li); } if (result.DealInfoList.Rec > 10) { $(".m-fee-watch-more").show(); } if (result.DealInfoList.Maxpage === 1) return; //分页 $(".pages").empty(); var ProductsId = ""; if ("" !== "") { ProductsId = "?ProductsId=" } var pageHtml = ""; if (page > 2) { pageHtml += '上一页' } else if (page === 2) { pageHtml += '上一页' } else { pageHtml += '上一页' } pageHtml += '' + page + ' / ' + result.DealInfoList.Maxpage + ''; if (page === result.DealInfoList.Maxpage) { pageHtml += '下一页'; } else { pageHtml += '下一页'; } $(".pages").html(pageHtml); } } else if (result && result.result === 2) {//次数过多 $("body").tuitionAlert3({ tel: window.UserLogin.usermobile, type: 'show', tit: '获取更多学费', viceTit: '查看该学费并向机构获取更多学费数据', tipsText: '您已查看5家机构成交学费,为了保障您和机构双方的体验,将由教育宝顾问为您服务', buryPoint: _buryPoint, indexPage: false }); } else if (result && result.result === 3) {//已登录未查看 $("body").tuitionAlert2({ tel: window.UserLogin.usermobile, type: 'show', tit: '获取更多学费', viceTit: '查看该学费并向机构获取更多学费数据', tipsText: '您已查看5家机构成交学费,为了保障您和机构双方的体验,将由教育宝顾问为您服务', buryPoint: _buryPoint, indexPage: false }); } else { $("body").tuitionAlert({//未登录或过期 type: 'show', tit: '获取更多学费', viceTit: '查看该学费并向机构获取更多学费数据', buryPoint: _buryPoint, indexPage: false }); } }, error: function (result) { $("body").tuitionAlert({ type: 'show', tit: '获取更多学费', viceTit: '查看该学费并向机构获取更多学费数据', buryPoint: _buryPoint, indexPage: false }); } }); } else { $("body").tuitionAlert({ type: 'show', tit: '获取更多学费', viceTit: '查看该学费并向机构获取更多学费数据', buryPoint: _buryPoint, indexPage: false }); } })(); }) function generateBarData(list) { var arr = []; for (var i = 0; i < list.length; i++) { arr.push(getBarItem(list[i])); } return arr; } function loadBarData(list) { var barOption = {}; barOption.data = generateBarData(list); $(".m-fee-bar-box").jybPhoneBar2(barOption); } function getBarItem(e) { var o = {}; o.id = e.code; o.label = e.name; o.lowest = e.minprice; o.average = e.avgprice; if (e.items && e.items.length > 0) { o.children = []; for (var i = 0; i < e.items.length; i++) { o.children.push(getBarItem(e.items[i])); } } return o; } function initPage(totalCount, page) { $(".page-content").pagination({ totalData: totalCount, showData: 10, current: page, mode: 'unfixed', keepShowPN: true, coping: true, prevContent: '', nextContent: '', count: 2, callback: function (api) { //console.log(api.getCurrent()) var p = api.getCurrent(); window.location.href = $.query.set("page", p); }, }); }