Authored by 毕凯

Merge branch 'hotfix/auth' into 'gray'

Hotfix/auth



See merge request !1321
... ... @@ -115,39 +115,39 @@ router.get('/onlineservice', onlineService.getOnlineServiceInfo);
router.get('/onlineservicedetail', onlineService.getOnlineServiceDetail);
// 分期付款
router.get('/installment/index', installment.sessionKeyAuth, installment.index); // 开通分期首页
router.get('/installment/review', installment.sessionKeyAuth, installment.review); // 开通分期首页
router.get('/installment/starting-service', installment.sessionKeyAuth, installment.startingService); // 分期付款开通
router.get('/installment/starting-service/verify-code', installment.sessionKeyAuth, installment.verifyCode);
router.get('/installment/starting-service/check-verify-code', installment.sessionKeyAuth, installment.checkVerifyCode);
router.get('/installment/get-goods', installment.sessionKeyAuth, installment.getInstallmentGoods); // ajax请求分期专享商品数据
router.get('/installment/repay/overdue', installment.sessionKeyAuth, installment.overdueList); // 逾期未还款列表
router.get('/installment/repay/7daylist', installment.sessionKeyAuth, installment.sevenDayList); // 7日待还款列表
router.get('/installment/repay/month', installment.sessionKeyAuth, installment.monthRepayList); // 本月待还款列表
router.get('/installment/repay/total', installment.sessionKeyAuth, installment.totalRepayList); // 待还总金额列表
router.get('/installment/repay/record', installment.sessionKeyAuth, installment.repayRecordPage); // 还款记录
router.get('/installment/repay/get-record', installment.sessionKeyAuth, installment.getRepayRecord); // ajax请求还款记录
router.get('/installment/repay/detail', installment.sessionKeyAuth, installment.repayDetail); // 还款详情
router.get('/installment/account', installment.sessionKeyAuth, installment.account); // 账户管理
router.get('/installment/bind-card', installment.sessionKeyAuth, installment.bindCard); // 添加新银行卡
router.get('/installment/post-account', installment.sessionKeyAuth, installment.postAccount); // 添加新卡请求
router.get('/installment/bank-info', installment.sessionKeyAuth, installment.getBankInfo);
router.post('/installment/activate-service', installment.sessionKeyAuth, installment.activateService);
router.get('/installment/order', installment.sessionKeyAuth, installment.orderIndex);
router.get('/installment/order.html', installment.sessionKeyAuth, installment.orderList);
router.get('/installment/order/:id', installment.sessionKeyAuth, installment.orderDetail);
router.get('/installment/total-amount.json', installment.sessionKeyAuth, installment.totalAmount);
router.get('/installment/index', auth, installment.index); // 开通分期首页
router.get('/installment/review', auth, installment.review); // 开通分期首页
router.get('/installment/starting-service', auth, installment.startingService); // 分期付款开通
router.get('/installment/starting-service/verify-code', auth, installment.verifyCode);
router.get('/installment/starting-service/check-verify-code', auth, installment.checkVerifyCode);
router.get('/installment/get-goods', auth, installment.getInstallmentGoods); // ajax请求分期专享商品数据
router.get('/installment/repay/overdue', auth, installment.overdueList); // 逾期未还款列表
router.get('/installment/repay/7daylist', auth, installment.sevenDayList); // 7日待还款列表
router.get('/installment/repay/month', auth, installment.monthRepayList); // 本月待还款列表
router.get('/installment/repay/total', auth, installment.totalRepayList); // 待还总金额列表
router.get('/installment/repay/record', auth, installment.repayRecordPage); // 还款记录
router.get('/installment/repay/get-record', auth, installment.getRepayRecord); // ajax请求还款记录
router.get('/installment/repay/detail', auth, installment.repayDetail); // 还款详情
router.get('/installment/account', auth, installment.account); // 账户管理
router.get('/installment/bind-card', auth, installment.bindCard); // 添加新银行卡
router.get('/installment/post-account', auth, installment.postAccount); // 添加新卡请求
router.get('/installment/bank-info', auth, installment.getBankInfo);
router.post('/installment/activate-service', auth, installment.activateService);
router.get('/installment/order', auth, installment.orderIndex);
router.get('/installment/order.html', auth, installment.orderList);
router.get('/installment/order/:id', auth, installment.orderDetail);
router.get('/installment/total-amount.json', auth, installment.totalAmount);
router.get('/installment/help', installment.sessionKeyAuth, installment.help);// 帮助静态页面
router.get('/installment/agreement', installment.sessionKeyAuth, installment.agreement);// 服务协议静态页面
router.get('/installment/server-crash', installment.sessionKeyAuth, installment.serverCrash); // 服务器崩溃
router.get('/installment/bank-card', installment.sessionKeyAuth, installment.bankCard); // 银行卡列表
router.get('/installment/card-detail', installment.sessionKeyAuth, installment.cardDetail); // 银行卡详情
router.get('/installment/delBankCard', installment.sessionKeyAuth, installment.delBankCard); // 删除绑定
router.get('/installment/setMasterCard', installment.sessionKeyAuth, installment.setMasterCard); // 切换主卡
router.get('/installment/bank-card', auth, installment.bankCard); // 银行卡列表
router.get('/installment/card-detail', auth, installment.cardDetail); // 银行卡详情
router.get('/installment/delBankCard', auth, installment.delBankCard); // 删除绑定
router.get('/installment/setMasterCard', auth, installment.setMasterCard); // 切换主卡
router.get('/getaddress.json', addressController.newGetAddress); // TODO 模拟省数据
... ...
... ... @@ -54,6 +54,9 @@ class GradeDetailPage extends Page {
this.noListData = false;
this.graphData = {};
this.timer = null;
this.cacheMouthDetailResult = [];
this.graphRender();
this.monthDetailRender(true);
... ... @@ -81,30 +84,36 @@ class GradeDetailPage extends Page {
* 滑动事件处理
*/
dataZoomEvent() {
let optionData = this.eGradeGraph.getOption();
let endIndex = optionData.dataZoom[0].endValue;
if (this.timer) {
clearTimeout(this.timer);
}
let tapData = this.graphData.seriesData[endIndex];
this.timer = setTimeout(() => {
let optionData = this.eGradeGraph.getOption();
let endIndex = optionData.dataZoom[0].endValue;
this.year = tapData.year;
this.month = tapData.month;
this.page = 0;
let tapData = this.graphData.seriesData[endIndex];
this.refreshEchart(endIndex);
this.monthDetailRender(true);
this.year = tapData.year;
this.month = tapData.month;
this.page = 0;
if (window._yas && window._yas.sendCustomInfo) {
// 埋点
let C_ID = window._ChannelVary[window.cookie('_Channel')];
window._yas.sendCustomInfo({
op: 'YB_GRADE_DETAIL_GRAPH_DATAZOOM',
appop: 'YB_H5_GRADE_DETAIL_GRAPH_DATAZOOM',
param: JSON.stringify({
C_ID: C_ID
})
}, true);
}
this.refreshEchart(endIndex);
this.monthDetailRender(true);
if (window._yas && window._yas.sendCustomInfo) {
// 埋点
let C_ID = window._ChannelVary[window.cookie('_Channel')];
window._yas.sendCustomInfo({
op: 'YB_GRADE_DETAIL_GRAPH_DATAZOOM',
appop: 'YB_H5_GRADE_DETAIL_GRAPH_DATAZOOM',
param: JSON.stringify({
C_ID: C_ID
})
}, true);
}
}, 200);
}
/**
... ... @@ -208,6 +217,19 @@ class GradeDetailPage extends Page {
this.page++;
this.requesting = true;
let cacheResult = this.cacheMouthDetailResult[`${this.year}:${this.month}:${this.page}`];
if (cacheResult) {
if (isInit) {
this.view.gradeBillList.html(cacheResult);
} else {
this.view.gradeBillList.append(cacheResult);
}
this.requesting = false;
return;
}
this.ajax({
url: '/activity/grade/monthDetail',
data: {
... ... @@ -225,6 +247,7 @@ class GradeDetailPage extends Page {
this.view.gradeBillList.append(monthDetailPage);
}
this.cacheMouthDetailResult[`${this.year}:${this.month}:${this.page}`] = monthDetailPage;
return;
}
... ...