Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
xinhot
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9eb032c6
authored
Mar 15, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
css
parent
3e2f0ec2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
44 deletions
js/global.js
product_tep.html
js/global.js
View file @
9eb032c6
...
...
@@ -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
;
...
...
product_tep.html
View file @
9eb032c6
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment