Commit 9eb032c6 by 梁建民

css

parent 3e2f0ec2
Showing with 48 additions and 44 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,39 +139,54 @@
}
});
//产品详情
var id = opt.getRequest('id');
if (id) {
this.getData({
com_id: id
}, 1, function (res) {
var html_combg = [], html_cominfo = [], html_cominfotext = [];
html_combg.push('<img src="' + res.data['company_bg_img'].images + '" alt="" class="img">' +
' <div class="text">' +
' <a href="javascript:;" class="bg"><img src="' + res.data.logo_pc + '" alt=""></a>' +
' <p>' + res.data.slogan + '</p>' +
' </div>');
html_cominfo.push('<p class="t1">' + res.data['company_info'].com_name + '</p>' +
' <div class="text">' +
' <p>' +
' <span class="tx-1 va-t">总部地址:</span>' +
' <span class="tx-2 lineBlock va-t">' + res.data['company_info'].com_addr + '</span>' +
' </p>' +
' <p>' +
' <span class="tx-1 va-t">成立时间:</span>' +
' <span class="tx-2 lineBlock va-t">' + res.data['company_info'].build_time + '</span>' +
' </p>' +
' </div>');
html_cominfotext.push('<img src="' + res.data['company_img'][0].images + '" alt="">' +
' <div class="text">' + res.data['company_info']['com_desc'] + '</div>');
$("#company_bg_img").append(html_combg.join(''));
$("#company_info").append(html_cominfo.join(''));
$("#company_info_text").append(html_cominfotext.join(''));
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) {
this.getData({
com_id: id
}, 1, function (res) {
var html_combg = [], html_cominfo = [], html_cominfotext = [];
html_combg.push('<img src="' + res.data['company_bg_img'].images + '" alt="" class="img">' +
' <div class="text">' +
' <a href="javascript:;" class="bg"><img src="' + res.data.logo_pc + '" alt=""></a>' +
' <p>' + res.data.slogan + '</p>' +
' </div>');
html_cominfo.push('<p class="t1">' + res.data['company_info'].com_name + '</p>' +
' <div class="text">' +
' <p>' +
' <span class="tx-1 va-t">总部地址:</span>' +
' <span class="tx-2 lineBlock va-t">' + res.data['company_info'].com_addr + '</span>' +
' </p>' +
' <p>' +
' <span class="tx-1 va-t">成立时间:</span>' +
' <span class="tx-2 lineBlock va-t">' + res.data['company_info'].build_time + '</span>' +
' </p>' +
' </div>');
html_cominfotext.push('<img src="' + res.data['company_img'][0].images + '" alt="">' +
' <div class="text">' + res.data['company_info']['com_desc'] + '</div>');
$("#company_bg_img").append(html_combg.join(''));
$("#company_info").append(html_cominfo.join(''));
$("#company_info_text").append(html_cominfotext.join(''));
});
}
}
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