Commit 9eb032c6 by 梁建民

css

parent 3e2f0ec2
Showing with 16 additions and 12 deletions
......@@ -53,17 +53,6 @@
},
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
$(".pc-nav-wrap").find('li').hover(function () {
$(this).children('dl').slideDown('slow');
......@@ -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');
if (id) {
......@@ -184,6 +187,7 @@
});
}
}
return this;
},
......
......@@ -14,7 +14,7 @@
<link rel="stylesheet" type="text/css" href="./css/style.min.css">
</head>
<body>
<div class="pc-index-head clr">
<div class="pc-index-head clr" id="temp">
<div class="head-wrap page-width">
<div class="fl l">
<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