|
@@ -6656,9 +6656,19 @@ window.Modernizr = function(n, e, t) {
|
|
|
}),
|
|
|
|
|
|
// 手动触发 导览列表点击
|
|
|
- $("#myClickBox").on('click',function(){
|
|
|
- // 改第一个0,为索引值
|
|
|
- t.goToHighlight([5,0])
|
|
|
+ $("#myClickBox #go").on('click',function(){
|
|
|
+ const imgActIndex = $(".thumbImg.active").data('index')
|
|
|
+ const curIndex = typeof imgActIndex === 'number' ? imgActIndex : -1;
|
|
|
+ const nextIndex = Number(curIndex) + 1;
|
|
|
+ if (nextIndex >= Fe) return
|
|
|
+ t.goToHighlight([nextIndex,0])
|
|
|
+ })
|
|
|
+ $("#myClickBox #back").on('click',function(){
|
|
|
+ const imgActIndex = $(".thumbImg.active").data('index')
|
|
|
+ const curIndex = typeof imgActIndex === 'number' ? imgActIndex : -1;
|
|
|
+ const nextIndex = Number(curIndex) - 1;
|
|
|
+ if (nextIndex < 0) return
|
|
|
+ t.goToHighlight([nextIndex,0])
|
|
|
})
|
|
|
|
|
|
$(".previous").find("a").on("click", function(e) {
|