...
|
...
|
@@ -19,7 +19,11 @@ var header1 = { |
|
|
var url8 = "/recommend/recommendTwoList"; // 接口
|
|
|
var answer1 = ''
|
|
|
var textStatus = 0
|
|
|
var screenWidth = ''
|
|
|
$(document).ready(function() {
|
|
|
//获取屏幕宽度
|
|
|
screenWidth = $(window).width()
|
|
|
console.log(screenWidth);
|
|
|
var url = window.location.search;
|
|
|
// console.log(url);
|
|
|
if (url.indexOf('?') != -1) {
|
...
|
...
|
@@ -111,6 +115,7 @@ $(document).ready(function() { |
|
|
|
|
|
//点击判断显示
|
|
|
$('#title-content').on('click', '.leftClick', function(e) {
|
|
|
console.log(screenWidth);
|
|
|
var first_id1 = $('.check').parents('#content-list')
|
|
|
console.log(first_id1);
|
|
|
//判断第一个没有上一步,最后一个没有下一步
|
...
|
...
|
@@ -122,15 +127,41 @@ $('#title-content').on('click', '.leftClick', function(e) { |
|
|
$(".show2-last-Btn1").css('display', 'none')
|
|
|
} else if ($(this).data('index') == length) {
|
|
|
console.log('我是最后一个');
|
|
|
$(".learn-next-Btn").css('display', 'none')
|
|
|
$(".learn-next-yuan").css('display', 'none')
|
|
|
$(".learn-next-Btn1").css('display', 'none')
|
|
|
if (screenWidth < 768) {
|
|
|
$(".learn-next-Btn").css('display', 'none')
|
|
|
$(".learn-next-yuan").css('display', 'none')
|
|
|
$(".learn-next-Btn1").css('display', 'block')
|
|
|
}else{
|
|
|
$(".learn-next-Btn").css('display', 'block')
|
|
|
$(".learn-next-yuan").css('display', 'block')
|
|
|
$(".learn-next-Btn1").css('display', 'none')
|
|
|
}
|
|
|
|
|
|
|
|
|
} else {
|
|
|
$(".show2-last-Btn").css('display', 'block')
|
|
|
$(".show-Btn-last-yuan").css('display', 'block')
|
|
|
$(".learn-next-Btn").css('display', 'block')
|
|
|
$(".learn-next-yuan").css('display', 'block')
|
|
|
if (screenWidth < 768) {
|
|
|
$(".learn-next-Btn").css('display', 'none')
|
|
|
$(".learn-next-Btn1").css('display','block')
|
|
|
$(".learn-next-yuan").css('display', 'none')
|
|
|
$(".show2-last-Btn").css('display', 'none')
|
|
|
$(".show-Btn-last-yuan").css('display', 'none')
|
|
|
$(".show2-last-Btn1").css('display','block')
|
|
|
}else{
|
|
|
$(".learn-next-yuan").css('display', 'block')
|
|
|
$(".learn-next-Btn").css('display', 'block')
|
|
|
$(".learn-next-Btn1").css('display','none')
|
|
|
$(".show2-last-Btn").css('display', 'block')
|
|
|
$(".show-Btn-last-yuan").css('display', 'block')
|
|
|
$(".show2-last-Btn1").css('display','none')
|
|
|
|
|
|
}
|
|
|
// $(".show2-last-Btn").css('display', 'block')
|
|
|
// $(".show-Btn-last-yuan").css('display', 'block')
|
|
|
// $(".learn-next-Btn").css('display', 'block')
|
|
|
// $(".learn-next-yuan").css('display', 'block')
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
//选中按钮添加圆圈样式
|
|
|
$(this).find('.noCheck').addClass('check');
|
...
|
...
|
|