...
|
...
|
@@ -6,6 +6,7 @@ |
|
|
|
|
|
var $ = require('yoho-jquery'),
|
|
|
ellipsis = require('yoho-mlellipsis'),
|
|
|
cookie = require('yoho-cookie'),
|
|
|
ListData = require('./installment-goods'),
|
|
|
bp = require('./burying-point'),
|
|
|
PullRefresh = require('../plugin/pull-refresh'),
|
...
|
...
|
@@ -41,7 +42,7 @@ var installment = { |
|
|
uuid: self.uuidVal
|
|
|
});
|
|
|
|
|
|
if (self.cookieTab && window.queryString.refresh) {
|
|
|
if (self.cookieTab) {
|
|
|
self.$tab.eq(self.cookieTab).addClass('on').siblings().removeClass('on');
|
|
|
self.$installmentCont.hide().eq(self.cookieTab).fadeIn();
|
|
|
} else {
|
...
|
...
|
@@ -49,6 +50,8 @@ var installment = { |
|
|
self.$installmentCont.hide().eq(0).fadeIn();
|
|
|
}
|
|
|
|
|
|
cookie.remove('installmentTab');
|
|
|
|
|
|
// 已开通tab 切换
|
|
|
self.$tab.on('click', function() {
|
|
|
self.tabChangeAction(this);
|
...
|
...
|
@@ -129,7 +132,7 @@ var installment = { |
|
|
var starIScroll = new PullRefresh('.installment-main', {
|
|
|
pullDown: function() {
|
|
|
window.setCookie('installmentTab', $('.detail-tab .on').index());
|
|
|
location.href = '/home/installment/index?uid=' + window.queryString.uid + '&refresh=1';
|
|
|
location.reload();
|
|
|
}
|
|
|
});
|
|
|
|
...
|
...
|
|