Commit 0651497e authored by 刘丹's avatar 刘丹

前端1

parent 3a530d58
......@@ -7,8 +7,8 @@ class Index
{
return view('index/index');
}
public function agent_detail()
public function share_detail()
{
return view('index/agent_detail');
return view('index/share_detail');
}
}
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>同联商业</title>
<meta http-equiv="X-UA-Compatible" content="IE=10"/>
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0"/>
<meta name="Keywords" content=""/>
<meta name="Description" content=""/>
<link rel="stylesheet" href="/app/css/common.css">
<link rel="stylesheet" href="/app/css/details.css">
<link rel="stylesheet" href="/app/css/lunbo.css">
<link rel="stylesheet" href="/app/css/details_tl.css">
<link>
</head>
<body style="background: #FFFFFF">
<header class="m_part1_w">
<div class="u_btn1b" onclick="window.history.go(-1)" style="margin-top:0.1rem"><span style=""><i class="icon-angle-left" style="font-size:0.65rem"></i></span></div>
<div class="lp-bunner">
<ul class="swiper-wrapper" id="img_item_ul">
</ul>
<span class="lp-bunner-page"> <span class="lp-index"> 1 </span> / <span class="lp-sum"> 50 </span> </span></div>
</header>
<!--大图展示-->
<div class="shopBigBox">
<header class="head">
<div class="top">
<div class="head-l"><a class="return"> </a></div>
<h1><i id="totalIndex">1</i>/ <i>50</i></h1>
<div class="u_detail_btn1" onclick="$('.shopBigBox').hide();"></div>
<div class="u_detail_btn2" style="display: none;"></div>
</div>
</header>
<div class="shopBigScrollBox"></div>
<div id="classNames" class="showBigClass classNamesScroll">
<ul class="swiper-wrapper">
<li class="swiper-slide" data-index="101" id="handle_img_1"> 效果图</li>
<li class="swiper-slide" data-index="102" id="handle_img_2"> 实景图</li>
<li class="swiper-slide" data-index="103" id="handle_img_3"> 样板图</li>
<li class="swiper-slide" data-index="104" id="handle_img_4"> 户型图</li>
<li class="swiper-slide" data-index="105" id="handle_img_5"> 交通图</li>
</ul>
</div>
</div>
<!--line 1-->
<div class="line_a">
<p class="a_fonta">
恒大国际广场
</p>
<p class="a_fontb">
20000-25000元/月(月租金)
</p>
<span class="a_fontc">
物业管理费:2000元/月
</span>
<span class="a_fontd">
进场费:200000元
</span>
</div>
<div class="line_a_ul">
<ul class="line_a_ulul">
<li>
随时看房
</li>
<li>
繁华看房
</li>
<li>
随时看房
</li>
</ul>
</div>
<p class="line_hr"></p>
<!--line 2-->
<div class="line_b">
<ul>
<li class="ul_b1">
<span class="b1_span">
剩余铺数
</span>
<span class="b1_span2 balance_num">
</span>
</li>
<li class="ul_b2">
<span class="b1_span">
商铺面积
</span>
<span class="b1_span2">
<span class="b1_span3">
</span>
<font class="b1_font">
</font>
</span>
</li>
<li class="ul_b3">
<span class="b1_span">
商业面积
</span>
<span class="b1_span2">
<span class="b1_span4">
</span>
<font class="b1_font">
</font>
</span>
</li>
</ul>
</div>
<p class="line_hr"></p>
<!--line 3-->
<p class="b3_font1">
商铺类型:
<span class="b3_span gw"></span>
</p>
<p class="b3_font2">
适合经营:
<span class="b3_span2 gw"></span>
</p>
<span class="b3_font3 dt">
已入驻:
</span>
<span class="b3_span3 gw dt"></span>
<p class="line_hr"></p>
<!--line 4-->
<div class="b4_font">
<p class="b4_font_p">
项目优势
</p>
<p class="b4_font_p1 yw"></p>
</div>
<p class="line_hr"></p>
<!--line 5-->
<div class="b4_font">
<p class="b4_font_p">
签约规则
</p>
<p class="b5_font_p1 yw">
</p>
</div>
<p class="line_hr"></p>
<!--line 6-->
<div class="b4_font" id="b4_font">
<p class="b4_font_p">
详细信息
</p>
<p class="b4_font2">
营业时间:
<span class="b4_span1 gw">
9:00—21:00
</span>
</p>
<p class="b4_font2">
招商时间:
<span class="b4_span1 gw">
9:00—21:00
</span>
</p>
<p class="b4_font2">
开业时间:
<span class="b4_span1 gw">
9:00—21:00
</span>
</p>
<p class="b4_font2">
是否有煤气:
<span class="b4_span1 gw">
</span>
</p>
<p class="b4_font2">
地址:
<span class="b4_span1 gw">
上海市长宁区杨紫璐199号
</span>
</p>
<span class="b4_font3">
交通:
</span>
<span class="b3_span3 gw">
购物中心,嘟嘟嘟,嘟嘟u嘟嘟,嘟嘟嘟嘟,嘟嘟嘟,嘟嘟u嘟嘟,嘟嘟嘟嘟
</span>
</div>
<!--<div class="img_url" id="allmap">-->
<!--</div>-->
<p class="line_hr"></p>
<!--line 7-->
<div class="b4_font">
<p class="b4_font_p">
楼盘平面
<img src="images/tonglian/but_right@2x.png" class="but_right">
</p>
</div>
<div class="slider3">
</div>
<!--下载app部分-->
<div class="public fix_area_top" style=" z-index: 9999999;top: 0;display: none;">
<img src="images/pbl_cha.png" class="pbl_cha" />
<img src="images/pbl_logo.png" class="pbl_logo" />
<p>
<span style="font-size: 0.24rem">更多优质真实的商铺信息</span>
<span style="font-size: 0.22rem; margin-top: 0.06rem;">请下载同联商业APP</span>
</p>
<a id="jump_link" href="javascript:;">
<img src="images/pbl_dakai.png" class="pbl_xz">
</a>
</div>
<!--底部联系人浮窗部分-->
<div class="fix_area_bottom">
<div>
<div>购房请联系:<span id="fix_name">小明</span></div>
<div><p><img src="images/tele_icon@2x.png" /><a id="fix_tel" href="javascript:;">13636508937</a></p></div>
</div>
<a href="javascript:;" id="fix_area_bottom_btn"><img src="images/xq_cha@2x.png" /></a>
</div>
<script src="/app/js/jquery.js"></script>
<script src="/app/js/swiper.js"></script>
<script src="/app/js/app_jump.js" ></script>
<script src="/app/js/details_tl.js"></script>
<!--<script src="/app/js/detaila_tl.js"></script>-->
<script src="/app/js/Tab_min.js" charset="utf-8"></script>
<script src="/app/js/jquery.bxslider.js" charset="utf-8"></script>
<script src="/app/js/jquery.easing.min.js" charset="utf-8"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.slider3').bxSlider({
slideWidth:330,
minSlides:1,
maxSlides:3,
moveSlides:1,
slideMargin:30
});
});
</script>
</body>
</html>
......@@ -42,7 +42,7 @@ Route::rule(['/city/:name' => 'error/index'] , '' ,'GET');*/
Route::group('app',[
'index' => ['app/index/index',['method' => 'get']],
'agent_detail' => ['app/index/agent_detail',['method' => 'get']]
'share_detail' => ['app/index/share_detail', ['method' => 'get']],
]);
......@@ -59,6 +59,7 @@ Route::group('api',[
//get
'sendSms/:phone' => ['api/member/sendSms', ['method' => 'get']], //发送短信
'index' => ['api/member/index', ['method' => 'get']],
//get broker
'getBroker'=> ['api/broker/index',['method'=>'get']], //获取当前商铺或街铺的经纪人
......
This diff is collapsed.
.line_a{
width: 92%;
height: auto;
overflow: hidden;
margin: 0 auto;
}
.a_fonta{
font-size: 0.44rem;
color: #333333;
float: left;
font-weight: 900;
margin-top:0.4rem;
width: 100%;
}
.a_fontb{
font-size: 0.4rem;
color: #111;
float: left;
font-weight: 900;
margin-top:0.3rem;
width: 100%;
}
.a_fontc{
background-image: url("../images/tonglian/di_wuye@2x.png");
background-size: 100% 0.6rem;
color: #ff9419;
font-size: 0.28rem;
text-indent: 0.26rem;
font-weight: 400;
float: left;
padding-right: 0.26rem;
line-height: 0.6rem;
margin-top: 0.3rem;
}
.a_fontd{
background-image: url("../images/tonglian/di_jinchang@2x.png");
background-size: 100% 0.6rem;
color: #ff9419;
font-size: 0.28rem;
text-indent: 0.26rem;
font-weight: 400;
float: left;
padding-right: 0.26rem;
line-height: 0.6rem;
margin-left: 0.3rem;
margin-top: 0.3rem;
}
.line_a_ul{
width: 100%;
}
.line_a_ulul{
margin-top: 0.15rem;
}
.line_a_ul ul li{
width: 1.5rem;
height: 0.6rem;
border: 1px solid #999999;
font-size: 0.28rem;
color: #333;
line-height: 0.6rem;
float: left;
margin-left: 0.3rem;
text-align: center;
margin-top: 0.15rem;
}
.line_hr{
width: 92%;
height: 1px;
background: #E6E6E6;
margin-top: 0.4rem;
float: left;
margin-left: 3%;
}
.line_b{
width: 92%;
height: auto;
overflow: hidden;
}
.line_b ul li{
float: left;
}
.ul_b1{
width: 28%;
margin-left: 4%;
}
.ul_b3{
width: 28%;
margin-left: 4%;
}
.b1_span{
width: 100%;
font-size: 0.24rem;
color: #999;
text-align: center;
float: left;
margin-top: 0.4rem;
}
.b1_span2{
color: #ff9419;
font-size: 0.4rem;
width: 100%;
text-align: center;
float: left;
margin-top: 0.3rem;
}
.ul_b2{
width: 35%;
margin-left: 1%;
}
.b1_font{
color: #ff9419;
font-size: 0.28rem;
}
.b3_font1{
width: 92%;
font-size: 0.28rem;
color: #999999;
margin-left: 0.3rem;
float: left;
margin-top: 0.4rem;
}
.b3_font2{
width: 92%;
font-size: 0.28rem;
color: #999999;
margin-left: 0.3rem;
float: left;
margin-top: 0.3rem;
}
.gw{
color: #333333;
}
.b3_font3{
width: 15%;
font-size: 0.28rem;
color: #999999;
margin-left: 0.3rem;
float: left;
}
.b3_span3{
width: 78%;
float: left;
font-size: 0.28rem;
}
.dt{
margin-top: 0.3rem;
}
.b4_font{
width: 92%;
margin: 0 auto;
height: auto;
}
.b4_font .b4_font_p{
color: #333333;
font-size: 0.4rem;
width: 100%;
float: left;
font-weight: 900;
margin-top: 0.4rem;
}
.yw{
width: 100%;
font-size: 0.28rem;
color: #333333;
float: left;
margin-top: 0.3rem;
}
.b4_font2{
width: 92%;
font-size: 0.28rem;
color: #999999;
float: left;
margin-top: 0.3rem;
}
.b4_font3 {
width: 15%;
font-size: 0.28rem;
color: #999999;
/* margin-left: 0.3rem; */
float: left;
margin-top: 0.3rem;
}
.img_url{
width: 100%;
height: 3rem;
background: #fff5bd;
float: left;
margin-top: 0.4rem;
}
.but_right{
width: 0.13rem;
height: 0.23rem;
float: right;
margin-top: 0.13rem;
}
.lp{
margin-left: 0!important;
}
/*楼盘图*/
.bx-wrapper {
position: relative;
margin: 0 auto 60px;
padding: 0;
*zoom: 1;
}
.bx-wrapper img {
max-width: 100%;
display: block;
margin-top: 0.3rem;
}
.bx-wrapper .bx-pager,
.bx-wrapper .bx-controls-auto {
position: absolute;
bottom: -30px;
width: 100%;
display: none;
}
.bx-wrapper .bx-controls-direction a {
position: absolute;
top: 50%;
margin-top: -16px;
outline: 0;
width: 32px;
height: 32px;
text-indent: -9999px;
z-index: 9999;
}
.bx-wrapper .bx-controls-direction a.disabled {
display: none;
}
/* AUTO CONTROLS (START / STOP) */
.bx-wrapper .bx-controls-auto {
text-align: center;
}
.bx-wrapper .bx-controls-auto .bx-start:hover,
.bx-wrapper .bx-controls-auto .bx-start.active {
background-position: -86px 0;
}
.bx-wrapper .bx-controls-auto .bx-stop:hover,
.bx-wrapper .bx-controls-auto .bx-stop.active {
background-position: -86px -33px;
}
/* PAGER WITH AUTO-CONTROLS HYBRID LAYOUT */
.bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-pager {
text-align: left;
width: 80%;
}
.bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-controls-auto {
right: 0;
width: 35px;
}
/* IMAGE CAPTIONS */
.bx-wrapper .bx-caption {
position: absolute;
bottom: 0;
left: 0;
background: #666\9;
background: rgba(80, 80, 80, 0.75);
width: 100%;
}
.slide img{
width: 3.3rem;
float: left;
margin-left: 0.2rem;
}
.head {
position: fixed;
top: 0;
z-index: 999;
width: 100%;
height: 0.88rem;
}
.head .share {
padding-left: 1rem;
height: 0.88rem;
display: inline-block
}
.head-r {
position: absolute;
right: 1rem;
top: 0;
padding-left: 1rem;
font-size: 1.166667rem
}
.head-l {
position: absolute;
left: 1rem;
top: 0
}
.top {
position: relative;
height: 0.88rem;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
padding: 0 1rem;
line-height: 0.88rem
}
.top .icon-clear {
position: absolute;
right: 0;
top: 0;
width: 2.7rem;
height: 2.7rem;
display: inline-block;
cursor: pointer
}
.top h1 {
-webkit-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
text-align: center;
font-size: 0.34rem;
font-weight: bold
}
.top h1 i {
font-style: normal;
}
.return {
height: 0.88rem;
width: 2rem;
display: inline-block
}
.main .fixed-top {
max-width: 750px
}
.swiper-wrapper {
position: relative;
width: 100%;
height: 100%;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-transition-property: -webkit-transform;
transition-property: transform;
box-sizing: content-box
}
.swiper-wrapper li {
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
width: 100%;
height: 100%;
position: relative
}
.swiper-wrapper li a {
display: block
}
.JsNewsImg .swiper-pagination {
width: 100%;
position: absolute;
bottom: 1rem;
text-align: center
}
.JsNewsImg .swiper-pagination span {
margin: 0 .2rem;
width: .5rem;
height: .5rem;
display: inline-block;
background: #fff;
border-radius: 50%;
opacity: .3
}
.JsNewsImg .swiper-pagination .swiper-pagination-bullet-active {
opacity: 1
}
.lp-bunner {
position: relative;
height: 5.2rem;
overflow: hidden;
background: #aaa
}
.lp-bunner ul, .lp-bunner li {
height: 100%
}
.lp-bunner a {
height: 100%;
display: block;
position: relative
}
.lp-bunner .icon-video {
left: 1rem;
bottom: 1rem
}
.lp-bunner img {
width: 100%;
height: 100%
}
.lp-bunner-page {
font-size: 0.26rem;
position: absolute;
left:44%;
bottom: 0.3rem;
text-align: center;
color: #fff;
display: inline-block;
width: 1rem;
height: 0.5rem;
border-radius: 0.25rem;
background:rgba(0,0,0,0.5);
line-height: 0.48rem;
}
#classNames li {
height: 1rem;
line-height: 1rem;
background: #141414;
}
.shopBigBox {
display: none;
position: fixed;
top: 0;
bottom: 0;
z-index: 9999999;
width: 100%;
background: #000
}
.shopBigBox .showBigNext, .shopBigBox .showBigClass {
font-size: 0.2rem;
text-align: center;
color: #fff;
position: absolute;
bottom: 3rem;
width: 100%
}
.shopBigBox .showBigClass {
bottom: 0;
}
.shopBigBox .showBigClass li {
width: 1.8rem !important
}
#classNames .on {
color: #d92f22;
background: #1f1f1f;
}
.shopBigScrollBox {
height: 100%;
overflow: hidden
}
.shopBigScrollBox ul {
height: 100%
}
.shopBigScrollBox li a {
width: 100%;
position: absolute;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%)
}
/*楼盘详情*/
.qx_c1 {
width: 100%;
background: url("../images/px.jpg") no-repeat center;
background-size: 100%, 4.43rem;
}
.qx_c1 ul {
width: 100%;
height: 4.43rem;
margin: 0 auto
}
.qx_c1 ul li {
width: 25%;
height: 2.21rem;
float: left;
}
.qx_c1 ul li img {
width: 0.6rem;
height: 0.6rem;
margin: 0 auto;
display: block;
margin-top: 0.45rem
}
.qx_c1 ul li p {
width: 100%;
font-size: 0.28rem;
color: #4c4c4c;
text-align: center;
float: left;
margin-top: 0.3rem;
line-height: 0
}
.qx_c1 ul li span {
width: 100%;
text-align: center;
float: left;
display: block;
font-size: 0.24rem;
color: #808080;
margin-top: 0.45rem;
line-height: 0
}
.qx_c1_xia {
width: 100%;
height: 1.5rem;
background: #FFFFFF;
margin-top: 0.1rem;
}
.qx_c1_xia p {
font-size: 0.28rem;
width: 100%;
color: #808080;
float: left;
text-indent: 0.3rem;
}
var Tab=function(t){var e=function(t){this.conf=this._extends({bonds:[],selected:"tab_selected",auto:false,startOn:0,trigger:"mouseover",touchDir:"h",customSelect:null,onRender:function(){},onBefore:function(){},onAfter:function(){}},t);this._initDoms();this._initStates();this._initEvents();this._launch()};e.prototype={constructor:e,_id:function(t){return document.getElementById(t)},_class:function(t,e,s){var a=[],n,o,r;if(e==null)e=document.body;if(s==null)s="*";if(e.getElementsByClassName){return e.getElementsByClassName(t)}if(e.querySelectorAll){return e.querySelectorAll("."+t)}n=e.getElementsByTagName(s);o=n.length;r=new RegExp("(^|\\s)"+t+"(\\s|$)");for(i=0,j=0;i<o;i++){if(r.test(n[i].className)){a[j]=n[i];j++}}return a},_extends:function(t,e){for(property in e){t[property]=e[property]}return t},_addEvent:function(t,e,s){t.addEventListener?t.addEventListener(e,s,false):t.attachEvent("on"+e,s)},_hasClass:function(t,e){var s=new RegExp("(^| )"+e+"( |$)");return s.test(t.className)},_removeClass:function(t,e){var s=new RegExp("(^| )"+e+"( |$)");if(e){t.className=t.className.replace(s," ").replace(/^\s+|\s+$/g,"")}else{t.className=""}},_addClass:function(t,e){if(!this._hasClass(t,e)){t.className+=" "+e}},_initDoms:function(){var t=this,e=this.conf,s=e.bonds.length,a=[],n=[];for(var i=0;i<s;i++){var o=e.bonds[i];if(o.length<2){throw new Error("参数长度不匹配")}a.push(typeof o[0]==="string"?this._id(o[0]):o[0]);n.push(typeof o[1]==="string"?this._id(o[1]):o[1])}this.doms={tabs:a,conts:n}},_initStates:function(){var t=this,e=this.conf,s=this.doms,a,n,i,o,r,l;n=s.tabs.length;o="ontouchstart"in window?e.touchDir:false;this.states={curIdx:0,total:n,auto:e.auto,order:null,enable:true,touchDir:o}},_initEvents:function(){var t=this,e=this.conf,s=this.doms,a=this.states,n,i,o=false,r=false,l,c,u;for(var h=0;h<a.total;h++){if(s.tabs[h].getAttribute("data-tabed")){continue}this._addEvent(s.tabs[h],e.trigger,function(e){return function(s){if(!a.enable){return}t.select(e)}}(h));if(a.touchDir){n=a.touchDir=="v"?"pageY":"pageX";i=a.touchDir=="v"?"pageX":"pageY";this._addEvent(s.conts[h],"touchstart",f);this._addEvent(s.conts[h],"touchmove",d);this._addEvent(s.conts[h],"touchend",v)}s.tabs[h].setAttribute("data-tabed",h)}function f(e){if(e.touches.length!==1){return}o=true;t._autoPlay&&clearInterval(t._autoPlay);startPos=e.touches[0][n];c=e.touches[0][i]}function d(e){var s,o,l;if(e.touches.length!==1||r){return}s=e.touches[0][n]-startPos;if(!u){o=e.touches[0][i]-c;if(Math.abs(s)>Math.abs(o)*10){u=true}}u&&e.preventDefault();if(Math.abs(s)>50){if(s>0){l=a.curIdx-1<0?a.total-1:a.curIdx-1}else{l=a.curIdx+1==a.total?0:a.curIdx+1}t.select(l);r=true}}function v(e){startPos=c=null;u=false;r=o=false;a.auto&&t.autoPlay(a.auto)}},_launch:function(){var t=this.conf,e=this.doms,s=this.states;if(!isNaN(t.startOn)){this.select(t.startOn)}t.onRender&&t.onRender.call(this);if(t.auto){this.autoPlay(t.auto)}},add:function(t,e){var s=this.conf,a=this.doms,n=this.states;if(typeof t=="string"){t=this._id(t)}if(typeof e=="string"){e=this._id(e)}a.tabs.push(t);a.conts.push(e);n.total++;this._initEvents()},order:function(t){},prev:function(){var t=this,e=this.conf,s=this.doms,a=this.states;if(a.curIdx==0){this.select(a.total-1)}else{this.select(a.curIdx-1)}},next:function(){var t=this,e=this.conf,s=this.doms,a=this.states;if(a.curIdx==a.total-1){this.select(0)}else{this.select(a.curIdx+1)}},select:function(t,e){var s=this,a=this.conf,n=this.doms,i=this.states;if(t==i.curIdx){return}if(!i.enable){return}if(t<0||t>i.total-1){throw new Error("所切换的选项卡不存在");return}this._selectTimeout&&clearTimeout(this._selectTimeout);this._selectTimeout=setTimeout(function(){a.onBefore&&a.onBefore.call(s,t);s._autoPlay&&clearInterval(s._autoPlay);if(a.customSelect&&typeof a.customSelect==="function"){for(var o=0;o<i.total;o++){if(t==o){s._addClass(n.tabs[t],a.selected)}else{s._removeClass(n.tabs[o],a.selected)}}a.customSelect.call(s,t)}else{for(var o=0;o<i.total;o++){if(t==o){s._addClass(n.tabs[t],a.selected);n.conts[t].style.display=""}else{s._removeClass(n.tabs[o],a.selected);n.conts[o].style.display="none"}}}i.curIdx=t;i.auto&&s.autoPlay(i.auto);a.onAfter&&a.onAfter.call(s,t);e&&e.call(s)},50)},autoPlay:function(t){var e=this,s=this.conf,a=this.doms,n=this.states,i=t?isNaN(t)?5e3:t*1e3:false;this._autoPlay&&clearInterval(this._autoPlay);if(i){this._autoPlay=setInterval(function(){if(n.curIdx==n.total-1){e.select(0)}else{e.select(n.curIdx+1)}},i)}n.auto=t},enable:function(t){this.states.enable=!!t}};return e}();
\ No newline at end of file
//从浏览器页面跳转到app,安卓处理
function readUrlAndroid(isFutang, fn) {
var _href_temp = location.href.replace('?share=1','');
var _href = _href_temp.replace('&share=1','');
var _pathname = location.pathname;
var _rt = '';
var _headerMarks = 'tonglianjituan';
if(isFutang == '1'){
_headerMarks = 'futangchina';
}
if(_pathname.indexOf('details_tl.html') >= 0) {
//楼盘详情
var _houseid = getUrlParam('id');
var _housename = getUrlParam('housename');
_rt = _headerMarks + '://admin.tonglianjituan.com/house/details?id=' + _houseid + '&name=' + _housename;
}else if(_pathname.indexOf('news2_app.html') >= 0){
var _newstype = getUrlParam('newstype');
var _id = getUrlParam('id');
var _name = getUrlParam('name');
if(_newstype == '1'){
//商学院里的新闻
_rt = _headerMarks + '://admin.tonglianjituan.com/business/details?url=' + _href + '&name=' + _name;
}else{
//头条详情里的新闻
_rt = _headerMarks + '://admin.tonglianjituan.com/news/details?id=' + _id + '&name=' + _name;
}
}else if(_pathname.indexOf('money_banner.html') >= 0){
//banner 在线结佣
_rt = _headerMarks + '://admin.tonglianjituan.com/url/details?url='+ _href +'&name=在线结佣';
}else if(_pathname.indexOf('poster_intro.html') >= 0){
//海报设计,海报制作
_rt = _headerMarks + '://admin.tonglianjituan.com/url/details?url='+ _href +'&name=海报设计';
}else if(_pathname.indexOf('invite_intro.html') >= 0){
//邀好友
_rt = _headerMarks + '://admin.tonglianjituan.com/url/details?url='+ _href +'&name=邀好友';
}else if(_pathname.indexOf('come_intro.html') >= 0){
//进场红包
_rt = _headerMarks + '://admin.tonglianjituan.com/url/details?url='+ _href +'?down_hide=1&name=进场红包';
}
return fn(_rt);
}
//从浏览器页面跳转到app,苹果处理
function readUrlIos(isFutang, fn){
var _href_temp = location.href.replace('?share=1','');
var _href = _href_temp.replace('&share=1','');
var _pathname = location.pathname;
var _search_temp = location.search.replace('?share=1','');
var _search = _search_temp.replace('&share=1','');
var _rt = '';
var _headerMarks = 'tonglianjituan';
if(isFutang == '1'){
_headerMarks = 'futangchina';
}
if(_pathname.indexOf('money_banner.html') >= 0){
//banner 在线结佣
_rt = _headerMarks + '://admin.tonglianjituan.com' + _pathname + '?url='+ _href +'&name=在线结佣';
}else if(_pathname.indexOf('poster_intro.html') >= 0){
//海报设计,海报制作
_rt = _headerMarks + '://admin.tonglianjituan.com' + _pathname + '?url='+ _href +'&name=海报设计';
}else if(_pathname.indexOf('invite_intro.html') >= 0){
//邀好友
_rt = _headerMarks + '://admin.tonglianjituan.com' + _pathname + '?url='+ _href +'&name=邀好友';
}else if(_pathname.indexOf('come_intro.html') >= 0){
//进场红包
_rt = _headerMarks + '://admin.tonglianjituan.com' + _pathname + '?url='+ _href +'&name=进场红包';
}else{
_rt = _headerMarks + '://admin.tonglianjituan.com' + _pathname + _search;
}
return fn(_rt);
}
function jumpEvent(){
var _ft = getUrlParam('ft');
// if(_ft == '1'){
// $('.fix_area_top>img:nth-of-type(2)').attr('src','images/pbl_logo_ft.png');
// $('.fix_area_top>p>span:nth-of-type(2)').html('请下载福堂中国APP');
// $('#jump_link>img').attr('src','images/pbl_dakai_ft.png');
// }
//自动跳转app设置
if(device.isIos()) {
readUrlIos(_ft, function(_url){
window.location = _url;
});
} else if(device.isAndroid()) {
readUrlAndroid(_ft, function(_url){
window.location = _url;
});
} else {
console.log("other device");
}
//点立即打开之后的事件
$('#jump_link').click(function(e) {
if(device.isIos()) {
readUrlIos(_ft, function(_url){
window.location = _url;
});
} else if(device.isAndroid()) {
readUrlAndroid(_ft, function(_url){
window.location = _url;
});
} else {
console.log("other device");
}
var t = Date.now();
setTimeout(function() {
if(Date.now() - t < 1200) {
// if(_ft == '1'){
// location.href = 'xiazai.html?ft=1';
// }else{
location.href = 'xiazai.html';
// }
}
}, 1000);
});
}
This diff is collapsed.
/*
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
*
* Uses the built in easing capabilities added In jQuery 1.1
* to offer multiple easing options
*
* TERMS OF USE - EASING EQUATIONS
*
* Open source under the BSD License.
*
* Copyright 횂짤 2001 Robert Penner
* All rights reserved.
*
* TERMS OF USE - jQuery Easing
*
* Open source under the BSD License.
*
* Copyright 횂짤 2008 George McGinley Smith
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* Neither the name of the author nor the names of contributors may be used to endorse
* or promote products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
jQuery.easing.jswing = jQuery.easing.swing;
jQuery.extend(jQuery.easing, {
def: "easeOutQuad",
swing: function(e, f, a, h, g) {
return jQuery.easing[jQuery.easing.def](e, f, a, h, g)
},
easeInQuad: function(e, f, a, h, g) {
return h * (f /= g) * f + a
},
easeOutQuad: function(e, f, a, h, g) {
return - h * (f /= g) * (f - 2) + a
},
easeInOutQuad: function(e, f, a, h, g) {
if ((f /= g / 2) < 1) {
return h / 2 * f * f + a
}
return - h / 2 * ((--f) * (f - 2) - 1) + a
},
easeInCubic: function(e, f, a, h, g) {
return h * (f /= g) * f * f + a
},
easeOutCubic: function(e, f, a, h, g) {
return h * ((f = f / g - 1) * f * f + 1) + a
},
easeInOutCubic: function(e, f, a, h, g) {
if ((f /= g / 2) < 1) {
return h / 2 * f * f * f + a
}
return h / 2 * ((f -= 2) * f * f + 2) + a
},
easeInQuart: function(e, f, a, h, g) {
return h * (f /= g) * f * f * f + a
},
easeOutQuart: function(e, f, a, h, g) {
return - h * ((f = f / g - 1) * f * f * f - 1) + a
},
easeInOutQuart: function(e, f, a, h, g) {
if ((f /= g / 2) < 1) {
return h / 2 * f * f * f * f + a
}
return - h / 2 * ((f -= 2) * f * f * f - 2) + a
},
easeInQuint: function(e, f, a, h, g) {
return h * (f /= g) * f * f * f * f + a
},
easeOutQuint: function(e, f, a, h, g) {
return h * ((f = f / g - 1) * f * f * f * f + 1) + a
},
easeInOutQuint: function(e, f, a, h, g) {
if ((f /= g / 2) < 1) {
return h / 2 * f * f * f * f * f + a
}
return h / 2 * ((f -= 2) * f * f * f * f + 2) + a
},
easeInSine: function(e, f, a, h, g) {
return - h * Math.cos(f / g * (Math.PI / 2)) + h + a
},
easeOutSine: function(e, f, a, h, g) {
return h * Math.sin(f / g * (Math.PI / 2)) + a
},
easeInOutSine: function(e, f, a, h, g) {
return - h / 2 * (Math.cos(Math.PI * f / g) - 1) + a
},
easeInExpo: function(e, f, a, h, g) {
return (f == 0) ? a: h * Math.pow(2, 10 * (f / g - 1)) + a
},
easeOutExpo: function(e, f, a, h, g) {
return (f == g) ? a + h: h * ( - Math.pow(2, -10 * f / g) + 1) + a
},
easeInOutExpo: function(e, f, a, h, g) {
if (f == 0) {
return a
}
if (f == g) {
return a + h
}
if ((f /= g / 2) < 1) {
return h / 2 * Math.pow(2, 10 * (f - 1)) + a
}
return h / 2 * ( - Math.pow(2, -10 * --f) + 2) + a
},
easeInCirc: function(e, f, a, h, g) {
return - h * (Math.sqrt(1 - (f /= g) * f) - 1) + a
},
easeOutCirc: function(e, f, a, h, g) {
return h * Math.sqrt(1 - (f = f / g - 1) * f) + a
},
easeInOutCirc: function(e, f, a, h, g) {
if ((f /= g / 2) < 1) {
return - h / 2 * (Math.sqrt(1 - f * f) - 1) + a
}
return h / 2 * (Math.sqrt(1 - (f -= 2) * f) + 1) + a
},
easeInElastic: function(f, h, e, l, k) {
var i = 1.70158;
var j = 0;
var g = l;
if (h == 0) {
return e
}
if ((h /= k) == 1) {
return e + l
}
if (!j) {
j = k * 0.3
}
if (g < Math.abs(l)) {
g = l;
var i = j / 4
} else {
var i = j / (2 * Math.PI) * Math.asin(l / g)
}
return - (g * Math.pow(2, 10 * (h -= 1)) * Math.sin((h * k - i) * (2 * Math.PI) / j)) + e
},
easeOutElastic: function(f, h, e, l, k) {
var i = 1.70158;
var j = 0;
var g = l;
if (h == 0) {
return e
}
if ((h /= k) == 1) {
return e + l
}
if (!j) {
j = k * 0.3
}
if (g < Math.abs(l)) {
g = l;
var i = j / 4
} else {
var i = j / (2 * Math.PI) * Math.asin(l / g)
}
return g * Math.pow(2, -10 * h) * Math.sin((h * k - i) * (2 * Math.PI) / j) + l + e
},
easeInOutElastic: function(f, h, e, l, k) {
var i = 1.70158;
var j = 0;
var g = l;
if (h == 0) {
return e
}
if ((h /= k / 2) == 2) {
return e + l
}
if (!j) {
j = k * (0.3 * 1.5)
}
if (g < Math.abs(l)) {
g = l;
var i = j / 4
} else {
var i = j / (2 * Math.PI) * Math.asin(l / g)
}
if (h < 1) {
return - 0.5 * (g * Math.pow(2, 10 * (h -= 1)) * Math.sin((h * k - i) * (2 * Math.PI) / j)) + e
}
return g * Math.pow(2, -10 * (h -= 1)) * Math.sin((h * k - i) * (2 * Math.PI) / j) * 0.5 + l + e
},
easeInBack: function(e, f, a, i, h, g) {
if (g == undefined) {
g = 1.70158
}
return i * (f /= h) * f * ((g + 1) * f - g) + a
},
easeOutBack: function(e, f, a, i, h, g) {
if (g == undefined) {
g = 1.70158
}
return i * ((f = f / h - 1) * f * ((g + 1) * f + g) + 1) + a
},
easeInOutBack: function(e, f, a, i, h, g) {
if (g == undefined) {
g = 1.70158
}
if ((f /= h / 2) < 1) {
return i / 2 * (f * f * (((g *= (1.525)) + 1) * f - g)) + a
}
return i / 2 * ((f -= 2) * f * (((g *= (1.525)) + 1) * f + g) + 2) + a
},
easeInBounce: function(e, f, a, h, g) {
return h - jQuery.easing.easeOutBounce(e, g - f, 0, h, g) + a
},
easeOutBounce: function(e, f, a, h, g) {
if ((f /= g) < (1 / 2.75)) {
return h * (7.5625 * f * f) + a
} else {
if (f < (2 / 2.75)) {
return h * (7.5625 * (f -= (1.5 / 2.75)) * f + 0.75) + a
} else {
if (f < (2.5 / 2.75)) {
return h * (7.5625 * (f -= (2.25 / 2.75)) * f + 0.9375) + a
} else {
return h * (7.5625 * (f -= (2.625 / 2.75)) * f + 0.984375) + a
}
}
}
},
easeInOutBounce: function(e, f, a, h, g) {
if (f < g / 2) {
return jQuery.easing.easeInBounce(e, f * 2, 0, h, g) * 0.5 + a
}
return jQuery.easing.easeOutBounce(e, f * 2 - g, 0, h, g) * 0.5 + h * 0.5 + a
}
});
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
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 to comment