Commit 9eb032c6 by 梁建民

css

parent 3e2f0ec2
Showing with 16 additions and 12 deletions
...@@ -53,17 +53,6 @@ ...@@ -53,17 +53,6 @@
}, },
handleBind: function (opt) { handleBind: function (opt) {
//menu
this.getData(null, 2, function (res) {
var html = [];
for (var i = 0; i < res.data.length; i++) {
html.push('<dd><a target="_blank" href="product_tep.html?id=' + (parseInt(i) + 1) + '">' + res.data[i].sample_name + '</a></dd>')
}
$("#menu").empty().append(html.join(''));
});
//nav hover //nav hover
$(".pc-nav-wrap").find('li').hover(function () { $(".pc-nav-wrap").find('li').hover(function () {
$(this).children('dl').slideDown('slow'); $(this).children('dl').slideDown('slow');
...@@ -150,6 +139,20 @@ ...@@ -150,6 +139,20 @@
} }
}); });
if($("#temp").length > 0){
//menu
this.getData(null, 2, function (res) {
var html = [];
for (var i = 0; i < res.data.length; i++) {
html.push('<dd><a target="_blank" href="product_tep.html?id=' + (parseInt(i) + 1) + '">' + res.data[i].sample_name + '</a></dd>')
}
$("#menu").empty().append(html.join(''));
});
//产品详情 //产品详情
var id = opt.getRequest('id'); var id = opt.getRequest('id');
if (id) { if (id) {
...@@ -184,6 +187,7 @@ ...@@ -184,6 +187,7 @@
}); });
} }
}
return this; return this;
}, },
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<link rel="stylesheet" type="text/css" href="./css/style.min.css"> <link rel="stylesheet" type="text/css" href="./css/style.min.css">
</head> </head>
<body> <body>
<div class="pc-index-head clr"> <div class="pc-index-head clr" id="temp">
<div class="head-wrap page-width"> <div class="head-wrap page-width">
<div class="fl l"> <div class="fl l">
<a href="index.html" class="lineBlock va-m logo"><img src="./images/logo.png" alt=""></a> <a href="index.html" class="lineBlock va-m logo"><img src="./images/logo.png" alt=""></a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment