-
Notifications
You must be signed in to change notification settings - Fork 0
/
origin.html
171 lines (168 loc) · 6.21 KB
/
origin.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
<title>圣女果</title>
<link rel="stylesheet" type="text/css" href="./css/common.css" />
<link rel="stylesheet" type="text/css" href="./css/style.css" />
</head>
<body>
<!-- [[ 顶部标题 -->
<div class="mainTopTitleBox"><span>溯源</span></div>
<div class="mainTopTitleNoneBox"><!-- 顶部占位 --></div>
<!-- 顶部标题 ]] -->
<!-- [[ 公司标志 -->
<!-- 公司标志 ]] -->
<!-- [[ 溯源导航 -->
<!-- 溯源导航]] -->
<!-- [[ 主区域框 -->
<div class="mainBlockNameBox"><span class="titleBox"><strong>溯源信息</strong></span></div>
<div class="mainOriginItemBox">
<!-- -->
<div class="originInfoBox">
<div class="headerBox"><span>种苗期</span></div>
<table class="tableBox01" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th>圣女果秧</th>
<td class="uploadPicBox"><img onclick="pic_eject(this)" src="http://zs.bluearp.com/Public/image/ent_pic/256/2017-11-27/E_25615555245.png" width="100%"></td>
</tr>
<tr>
<th>插秧时间</th>
<td>3月份</td>
</tr>
<tr>
<th>种植地</th>
<td>水果基地A</td>
</tr>
</table></div> <div class="originInfoBox">
<div class="headerBox"><span>科学种植</span></div>
<table class="tableBox01" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th>雄峰授粉</th>
<td class="uploadPicBox"><img onclick="pic_eject(this)" src="http://zs.bluearp.com/Public/image/ent_pic/256/2017-11-27/E_25615555280.png" width="100%"></td>
</tr>
<tr>
<th>物理防虫</th>
<td>利用物理防虫板进行防虫</td>
</tr>
<tr>
<th>物理补光</th>
<td>使用补光灯进行补光</td>
</tr>
</table></div> <div class="originInfoBox">
<div class="headerBox"><span>结果</span></div>
<table class="tableBox01" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th>青绿色圣女果</th>
<td class="uploadPicBox"><img onclick="pic_eject(this)" src="http://zs.bluearp.com/Public/image/ent_pic/256/2017-11-27/E_25615555240.png" width="100%"></td>
</tr>
<tr>
<th>成熟的圣女果</th>
<td>果实饱满、果肉厚实、脆嫩、酸甜可口</td>
</tr>
<tr>
<th>采摘</th>
<td class="uploadPicBox"><img onclick="pic_eject(this)" src="http://zs.bluearp.com/Public/image/ent_pic/256/2017-11-27/E_25615555234.png" width="100%"></td>
</tr>
</table></div> <div class="originInfoBox">
<div class="headerBox"><span>库房</span></div>
<table class="tableBox01" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th>入库时间</th>
<td>2017年6月</td>
</tr>
<tr>
<th>库房管理员</th>
<td>于思</td>
</tr>
<tr>
<th>联系方式</th>
<td>15968732195</td>
</tr>
<tr>
<th>储存方式</th>
<td>2~4℃温度下进行冷藏</td>
</tr>
</table></div>
<!-- -->
</div>
<!-- 主区域框 ]] -->
<!--<<弹出区域-->
<!--<<遮罩层-->
<div id="overlay"></div>
<!--遮罩层>>-->
<!--<<图片预览-->
<div class="mainPicLookBox">
<div class="picBox"id="pic_preview"></div>
<div class="picCloseBox"><span onClick="picClose();">×</span></div>
</div>
<!--图片预览>>-->
<!--弹出区域>>-->
<!-- [[ 底部导航 -->
<div class="mainFootNavBox">
<ul class="navMenuBox">
<li><a id="form3" href="index.html"><em class="icon01"></em><span>产品</span></a></li>
<li><a id="form1" href="authenticity.html"><em class="icon02"></em><span>真伪</span></a></li>
<li><a id="form2" href="origin.html"><em class="icon03"></em><span>溯源</span></a></li>
<li><a id="form0" href="aboutUs.html"><em class="icon00"></em><span>公司</span></a></li>
</ul>
</div>
<div class="mainFootNavNoneBox"><!-- 底部占位 --></div>
<ul class="mainSecondMenuBox">
</ul>
<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
$(function(){
var num = $(".navMenuBox li").index()+1;
var menuWidth = $(".mainFootNavBox").width();
$(".navMenuBox li").css("width",menuWidth/num);
});
$(function(){
var strUrl=window.location.href;
var arrUrl=strUrl.split("/");
var strPage=arrUrl[arrUrl.length-1];
switch (strPage){
case 'origin.html':
$("#form2").parent("li").addClass("on");
break;
case 'authenticity.html':
$("#form1").parent("li").addClass("on");
break;
case 'index.html':
$("#form3").parent("li").addClass("on");
break;
case 'aboutUs.html':
$("#form0").parent("li").addClass("on");
break;
default:
$("#form3").parent("li").addClass("on");
break;
}
})
</script><!-- 底部导航 ]] -->
</body>
</html>
<script>
$(function(){
calculatePage();
});
function calculatePage(){
var picWidth = $(".uploadPicBox").find("img").width();//获取图片的宽度
$(".uploadPicBox img").css("height",picWidth/2); // 图片高度等于宽度除以2
setTimeout("calculatePage()",1); //刷新频率 1000 为 1 秒
}
//打开上传图片预览
function pic_eject(obj){
$("#pic_preview").html("<img src='"+$(obj).attr("src")+"'>");
//$("body").css({"overflow":"hidden"});
$("#overlay").show();
$(".mainPicLookBox").show();
}
//关闭上传图片预览
function picClose(){
$("#overlay").hide();
$(".mainPicLookBox").hide();
//$("body").removeAttr("style");
}
</script>