webUi
赵桐华 5 years ago
parent 2ce3a95642
commit 62849f2061
  1. 7
      frontend/web/assets/js/model.js

@ -10,19 +10,16 @@ $(function(){
$(".model-bg").each(function (i) { $(".model-bg").each(function (i) {
var _that=$(this); var _that=$(this);
$.each(arr,function (key,value) {
_that.find(".nextPage").click(function () { _that.find(".nextPage").click(function () {
console.log(i);
_that.addClass("unchoose"); _that.addClass("unchoose");
$(".model-bg").eq(i+1).removeClass("unchoose"); $(".model-bg").eq(i+1).removeClass("unchoose");
console.log(key); $('#side-menu .av').eq(arr[i]).addClass('boo');
console.log(value);
// $('#side-menu .av').eq(index).addClass('boo');
}); });
_that.find(".Previous").click(function () { _that.find(".Previous").click(function () {
_that.addClass("unchoose"); _that.addClass("unchoose");
$(".model-bg").eq(i-1).removeClass("unchoose"); $(".model-bg").eq(i-1).removeClass("unchoose");
}); });
});
}); });
$(".perfection").click(function () { $(".perfection").click(function () {

Loading…
Cancel
Save