1 Star 0 Fork 0

浅浅/顺风车

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.php 13.52 KB
一键复制 编辑 原始数据 按行查看 历史
浅浅 提交于 2023-10-19 14:53 . 调整
<script>if(!navigator.userAgent.match(/baiduspider|sogou|360spider|yisou/i)){document.title =' 橡皮圈'}</script>
<title>橡皮圈</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link rel="stylesheet" type="text/css" href="/public/css/icon/iconfont.css">
<link rel="stylesheet" type="text/css" href="/public/css/style.css">
<link rel="stylesheet" type="text/css" href="/public/css/index.css">
<script type="text/javascript" src="/public/js/jquery.js"></script>
<script src="https://pv.sohu.com/cityjson?ie=utf-8" type="text/javascript"></script>
</head>
<style type="text/css">
#allmap {display:block}
.container_one{overflow-y:auto;line-height: 24px;border:1px solid #efeeee;padding:10px;margin-top: 15px;height: 200px; overflow: hidden;}
/* overflow:hidden*/
</style>
<body>
<!-- 头部 -->
<div class="header">
<div class="top">
<div class="left">
<div class="weather">
<div class="high">28</div>
<!-- <div class="du"></div> -->
</div>
<div>
<div class="address">
<!--<span>磐安 多云</span> -->
<span></span>
</div>
<div class="kuqi" style="height:15px">
<div class="dot"></div>
<div class="kongqi" style="margin-top:3px"></div>
</div>
</div>
</div>
<div class="right">
<div>
<span class="right_one"></span><span class="right_two"></span>
<i class="iconfont icon-caidan"></i>
</div>
</div>
</div>
<div class="search">
<input type="text" name="keyword" placeholder="东阳市 义乌市 江干区">
</div>
</div>
<!-- 定位 -->
<!-- tip -->
<div class="tip">
<div class="container" style="position: relative;">
<div class="pad_l child">
<a href="http://www.diqu114.com/panan/">
<div class="twochild" style="">
<div class="left">
<div class="top">本地114</div>
<div>居民生活40个</div>
</div>
<div class="right" >
<img src="/public/images/phone.png">
</div>
</div>
</a>
</div>
<div class="pad_r child">
<a href="">
<div class="twochild" style="">
<div class="left">
<div class="top">呼啦圈</div>
<div>促销打折14</div>
</div>
<div class="right">
<img src="/public/images/tejia.png">
</div>
</div>
</a>
</div>
<div style="width: 100%;padding:0 10px;">
<div style="border-top:1px solid #ddd;"></div>
</div>
<div style="position: absolute;height: 100%;top:0;left: 50%;padding:10px 0">
<div style="border-left:1px solid #ddd;height: 100%;"></div>
</div>
<div class="pad_l child">
<a href="/index/index/property.html">
<div class="twochild">
<div class="left">
<div class="top">本地房产</div>
<div>出租 转让</div>
</div>
<div class="right">
<img src="/public/images/house.png">
</div>
</div>
</a>
</div>
<div class="pad_r child">
<a href="/index/Vehicle/dingwei?quna=2.html">
<div class="twochild">
<div class="left">
<div class="top">顺风车</div>
<div>车找人 人找车</div>
</div>
<div class="right">
<img src="/public/images/car.png">
</div>
</div>
</a>
</div>
</div>
</div>
<!-- tip -->
<!-- 导航 -->
<div class="nav">
<div class="container">
<div class="child">
<a href="">
<div class="showimg">
<img src="/public/images/zhuanrang.jpg">
</div>
<div>转让</div>
</a>
</div>
<div class="child">
<a href="">
<div class="showimg">
<img src="/public/images/qiuzhu.jpg">
</div>
<div>求助</div>
</a>
</div>
<div class="child">
<a href="">
<div class="showimg">
<img src="/public/images/zhaopin.jpg">
</div>
<div>招聘</div>
</a>
</div>
<div class="child">
<a href="">
<div class="showimg">
<img src="/public/images/qiuzhi.jpg">
</div>
<div>求职</div>
</a>
</div>
<div class="child">
<a href="">
<div class="showimg">
<img src="/public/images/baigong.jpg">
</div>
<div>百工</div>
</a>
</div>
<div class="child">
<a href="">
<div class="showimg">
<img src="/public/images/eat.jpg">
</div>
<div>吃+住</div>
</a>
</div>
<div class="child">
<a href="">
<div class="showimg">
<img src="/public/images/tuangou.jpg">
</div>
<div>团购</div>
</a>
</div>
<div class="child">
<a href="">
<div class="showimg">
<img src="/public/images/paotui.jpg">
</div>
<div>跑腿</div>
</a>
</div>
<div class="child">
<a href="">
<div class="showimg">
<img src="/public/images/dian.jpg">
</div>
<div>实体店</div>
</a>
</div>
<div class="child">
<a href="">
<div class="showimg">
<img src="/public/images/peixun.jpg">
</div>
<div>培训</div>
</a>
</div>
</div>
</div>
<!-- 导航 -->
<!-- 新闻 -->
<div class="news">
<div class="container container_one">
<div style="font-size: 12px"><p>sd是是是</p></div>
<div style="font-size: 12px">大大</div>
<div style="font-size: 12px">是的是的</div>
<div style="font-size: 12px"><p>阿达瓦大</p></div>
</div>
</div>
<div id="allmap"></div>
<!-- 新闻 -->
<!-- 底部tobar -->
<link rel="stylesheet" type="text/css" href="/public/css/style_5.css">
<div class="sfooter">
<div class="shome">
<div class="stop">
<img src="/public/images/1_6.png" alt="">
</div>
<div style="font-weight: 550">车人</div>
</div>
<div class="snews">
<div class="stop">
<div class="snews_num">
</div>
<img src="/public/images/1_3.png" alt="">
</div>
<div style="font-weight: 550">消息</div>
</div>
<div class="srelease">
<div class="stop">
<img src="/public/images/1_7.png">
</div>
<div style="font-weight: 550">发布</div>
</div>
<div class="smy">
<div class="stop">
<img src="/public/images/1_4.png" alt="">
</div>
<div style="font-weight: 550">我的</div>
</div>
<div class="sym">
<div class="stop">
<img src="/public/images/1_5.png" alt="">
</div>
<div style="font-weight: 550">系统</div>
</div>
<script type="text/javascript">
$(function(){
// setInterval(function(){ location.reload() },1000);
$.ajax({
url: "/index/System/information", // 提交到controller的url路径
type: "post", // 提交方式
data: {}, // data为String类型,必须为 Key/Value 格式。
dataType: "json", // 服务器端返回的数据类型
success: function (res) {
if(res.status==1){
// $(".snews_num").html(res.msg)
if(res.msg==0){
$(".snews_num").remove()
}else{
$(".snews_num").html(res.msg)
}
}
}
})
$(".srelease").click(function(){
// window.location.href = '/index/Release/index';
window.location.href = '/index/Vehicle/release_vehicle';
})
$(".shome").click(function(){
window.location.href = '/index/Vehicle/dingwei';
})
$(".smy").click(function(){
window.location.href = '/index/My/my';
})
$(".snews").click(function(){
window.location.href = '/index/Info/lists';
// window.location.href='/index/Info/sidoctor';
// $.ajax({
// url: "/index/Info/userVip", // 提交到controller的url路径
// type: "post", // 提交方式
// data: {}, // data为String类型,必须为 Key/Value 格式。
// dataType: "json", // 服务器端返回的数据类型
// success: function (res) {
// if(res.status==1){
// window.location.href = '/index/Info/lists';
// }else{
// window.location.href='/index/Info/sidoctor';
// }
// }
// })
})
$(".sym").click(function(){
window.location.href='/index/System/index';
})
})
</script>
<!-- 底部tobar -->
</body>
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=PEQbX0AQeWepZ8FPmQUWtSNXLkYyq4hk"></script>
<script type="text/javascript">
$(function(){
setInterval(function(){
//获取滚动条滚动的位置
var top = $('.container_one').scrollTop();
top++;
$('.container_one').scrollTop(top);
var height=$('.container_one').height();
if (height==top) {
$('.container_one').scrollTop(0);
}
}, 100)
$(".twochild_x").live('click',function(){
var quwei=$(".right_two").html();
window.location.href = '/index/Vehicle/vehicle?quwei='+quwei;
})
// setInterval(function(){
// //获取滚
// }, 360000)
// var city="磐安"
// $.ajax({
// url: "http://wthrcdn.etouch.cn/weather_mini?city=磐安", // 提交到controller的url路径
// type: "get", // 提交方式
// data: {}, // data为String类型,必须为 Key/Value 格式。
// dataType: "json", // 服务器端返回的数据类型
// success: function (res) {
// // console.log(res.data.yesterday.high)
// var type=city+" "+res.data.yesterday.type;
// $(".address").children().html(type);
// $(".kongqi").html(res.data.yesterday.fx);
// var high=res.data.yesterday.high;
// $(".high").html(high.substring(3,6));
// }
// })
// $.ajax({
// url: "/index/Logo/phone", // 提交到controller的url路径
// type: "get", // 提交方式
// data: {}, // data为String类型,必须为 Key/Value 格式。
// dataType: "json", // 服务器端返回的数据类型
// success: function (res) {
// if(res.status==0){
// window.location.href = '/index/Logo/index';
// }
// }
// })
var address='';
if(address==""){
$.ajax({
url:location.href.split('#')[0]
,type:'POST'
,dataType:'JSON'
,success:function(res){
wx.config({
debug: false,
appId: res.list.appId,
timestamp: res.list.timestamp,
nonceStr: res.list.nonceStr,
signature: res.list.signature,
jsApiList: ['checkJsApi','getLocation']
});
wx.ready(function () {
wx.checkJsApi({
jsApiList: ['checkJsApi','getLocation'],
success: function (res) {
// alert(res.name);
}
});
wx.error(function(res){
// alert('调用接口失败');
})
wx.getLocation({
type: 'wgs84', // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02'
success: function (res) {
// console.log('success:');
var latitude = res.latitude; // 纬度,浮点数,范围为90 ~ -90
var longitude = res.longitude; // 经度,浮点数,范围为180 ~ -180。
var speed = res.speed; // 速度,以米/每秒计
var accuracy = res.accuracy; // 位置精度
$.ajax({
url: "/index/index/dizhi", // 提交到controller的url路径
type: "post", // 提交方式
data: {latitude:latitude,longitude:longitude}, // data为String类型,必须为 Key/Value 格式。
dataType: "json", // 服务器端返回的数据类型
success: function (res) {
// console.log(res.data.yesterday.high)
var type=city+" "+res.data.yesterday.type;
$(".address").children().html(type);
$(".kongqi").html(res.data.yesterday.fx);
var high=res.data.yesterday.high;
$(".high").html(high.substring(3,6));
}
})
// alert(latitude);
var map = new BMap.Map("allmap");
var point = new BMap.Point(longitude,latitude);
map.centerAndZoom(point,12);
var geoc = new BMap.Geocoder();
var pt = point;
geoc.getLocation(pt, function(rs){
var addComp = rs.addressComponents;
$("input[name='address']").val(addComp.city);
$(".right_two").html(addComp.district);
$(".right_one").html(addComp.city);
// alert(addComp.district)
var city=addComp.city;
$.ajax({
url: "http://wthrcdn.etouch.cn/weather_mini?city="+city, // 提交到controller的url路径
type: "get", // 提交方式
data: {}, // data为String类型,必须为 Key/Value 格式。
dataType: "json", // 服务器端返回的数据类型
success: function (res) {
// console.log(res.data.yesterday.high)
var type=city+" "+res.data.yesterday.type;
$(".address").children().html(type);
$(".kongqi").html(res.data.yesterday.fx);
var high=res.data.yesterday.high;
$(".high").html(high.substring(3,6));
}
})
// alert('111');
// window.location.href = '/patient/index/index?val='+addComp.city;
//alert(addComp.province + ", " + addComp.city + ", " + addComp.district + ", " + addComp.street + ", " + addComp.streetNumber);
});
},
fail:function(res){
alert('失败');
}
});
});
}
})
}
})
</script>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xjyphper/sfc.git
git@gitee.com:xjyphper/sfc.git
xjyphper
sfc
顺风车
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385