Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
wtdmw committed Dec 27, 2018
1 parent c78ef12 commit 915513f
Show file tree
Hide file tree
Showing 14 changed files with 1,403 additions and 4 deletions.
42 changes: 42 additions & 0 deletions api/splb.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php

$qblsl=$_GET['qblsl'];

if($_GET['qbllx'] =="sj"){
//服务器地址
$severname="10.3.143.81";
//登陆用户名
$username="mgj_com";
//登陆密码
$password="63PWznc6a5pi7NFD";
//数据库名字
$dbname="mgj_com";

//创建链接
$con=new mysqli($severname,$username,$password,$dbname);
//检擦是否链接成功
if($con->connect_error){
exit("链接失败:".$con->connect_error);
}
//数据库查询语句
$sql = "select * from sp limit ".($qblsl*10-10).",10";
$result = $con->query($sql);


//创建一个数组接受转存数据库的值
$fhsz = array();
//逐条取出集中的值,并加入数组
while($row = $result->fetch_assoc()) {
$fhsz[] = $row;
// echo json_encode($row,JSON_UNESCAPED_UNICODE);
}
// echo $result;
// echo json_encode($results,JSON_UNESCAPED_UNICODE);

//关闭数据库链接
$con->close();
//返回数据
echo json_encode($fhsz,JSON_UNESCAPED_UNICODE);
};

?>
Empty file added api/xqy.php
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions css/sc.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
height: 490px;
/* background-color: antiquewhite; */
position: relative;
margin-bottom: 10px;
}
.sc_body_bdjh_banner{
width: 100%;
Expand Down Expand Up @@ -137,4 +138,15 @@
text-align: center;
padding-top: 100px;
box-sizing: border-box;
}
.sc_body_jrbq{
width: 100%;
height: 454px;
/* background-color: aliceblue; */
}
.sc_body_jrbq_n{
width: 1200px;
height: 454px;
background-color: antiquewhite;
margin: auto;
}
106 changes: 106 additions & 0 deletions css/splb.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
.splb_body{
width: 100%;
min-height: 300px;
margin-top: 153px;
}
.splb_body_n{
width: 1200px;
min-height: 300px;
margin: auto;
/* background-color: aliceblue; */
}
.splb_body_n_bt{
font-size: 26px;
margin-bottom: 10px;
font-weight: 500;
}
.splb_body_n_jgkz{
width: 1200px;
height: 40px;
border: 1px solid #d4d4d4;
line-height: 40px;
padding-left: 10px;
box-sizing: border-box;
margin-bottom: 14px;
}
.splb_body_n_jgkz input{
width: 50px;
height: 19px;
position: relative;
top: -1px;
}
.splb_body_n_jgkz input:nth-child(3){
background: none;
border: 1px solid #a9a9a9;
cursor: pointer;
height: 23px;
margin-left: 5px
}
.splb_body_n_splb{
width: 1200px;
min-height: 100px;
/* background-color: aliceblue; */
margin-bottom: 14px;
}
.splb_body_n_splb_g{
width: 220px;
height: 374px;
/* background-color: #d4d4d4; */
border: 1px solid #f2f2f2;
box-sizing: border-box;
display: inline-block;
margin: 0 17px 17px 0;
}
.splb_body_n_splb_g:hover{
border: 1px solid #f46;
}
.splb_body_n_splb_g_img{
width: 100%;
height: 293px;
background-color: aliceblue;
overflow: hidden;
}
.splb_body_n_splb_g_img img{
width: 100%;
}
.splb_body_n_splb_g_bt{
height: 39px;
overflow: hidden;
padding: 0 10px 0 10px;
box-sizing: border-box
}
.splb_body_n_splb_g_bt p{
font-size: 14px;
color: #757575;
line-height: 18px
}
.splb_body_n_splb_g_xx{
height: 36px;
width: 100%;
padding: 0 10px 0 10px;
box-sizing: border-box;
/* background-color: aliceblue; */
line-height: 36px;
}
.splb_body_n_splb_g_xx>span{

}
.splb_body_n_splb_g_jg{
float: left;
font-size: 16px;
font-weight: 600;
}
.splb_body_n_splb_g_yj{
float: left;
margin-left: 10px;
color: #757575;
text-decoration:line-through;
}
.splb_body_n_splb_g_sc{
float: right;
}
.splb_body_n_splb_g_sc img{
width: 15px;
position: relative;;
top: 2px;
}
Loading

0 comments on commit 915513f

Please sign in to comment.