123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956 |
- <!DOCTYPE HTML>
- <html>
- <head>
- <title>{{ $user->companyname }} - {{ subsite_config('aix.system.site.site.site_name') }}</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width" />
- <meta name="format-detection" content="telephone=no" />
- <meta name="format-detection" content="email=no" />
- <meta name="format-detection" content="address=no;">
- <meta name="apple-mobile-web-app-capable" content="yes" />
- <meta name="apple-mobile-web-app-status-bar-style" content="black" />
- <link type="text/css" href="{{ theme_asset('mobile/css/wzp_style.css') }}" rel="stylesheet" />
- <link type="text/css" href="{{ theme_asset('mobile/css/wzp_style_left.css') }}" rel="stylesheet" />
- <script type="text/javascript" charset="urf-8" src="{{ theme_asset('mobile/js/jq.mobi.min.js') }}"></script>
- </head>
- <body>
- <div class="dialog_bg">
- <div class="dialog">
- <div class="dia-title"><span class="dia-arrow"></span></div>
- <div class="dia-content">
- <p>{{ $user->contents }}</p>
- </div>
- </div>
- </div>
- <img src="@if($user->logo) {{ upload_asset($user->logo) }}@else {{ attach('no_logo.png','') }} @endif" width="0" height="0" />
- <div id="poster_contain">
- <section class="load" id="load">
- <div class="p_loading">
- <div class="p_loading_logo"></div>
- <p class="p_loading_tip">我们寻找与众不同的你</p>
- </div>
- </section>
- <section class="poster_wrap index focus" style="-webkit-transform: translate3d(0px, 0px, 0px); -webkit-transition-duration: 0ms; transition-duration: 0ms; opacity: 1; display: block; z-index: 20; background-color: rgb(89, 90, 160);">
- <div class="poster_index_bg"></div>
- <div class="poster_home_page">
- <div class="poster_logo_con">
- <div class="postter_praise_ring"></div>
- <div class="postter_praise_r"></div>
- <div class="postter_praise_rl"></div>
- <div class="poster_praise_logo"><img src="@if($user->logo) {{ upload_asset($user->logo) }}@else {{ attach('no_logo.png','') }} @endif"></div>
- </div>
- <h1 class="poster_tit">{{ $user->companyname }}</h1>
- <p class="poster_details">我们寻找与众不同的你</p>
- </div>
- </section>
- <section class="poster_wrap welf poster_wrap_about_us" style="-webkit-transform: translate3d(0px, 0px, 0px); -webkit-transition-duration: 0ms; transition-duration: 0ms; opacity: 1; display: none; z-index: 20;">
- <div class="company_intro">
- <div class="company_intro_list">
- <div class="company_intro_border">
- <div class="company_intro_logo">
- <i class="logo_ico city"></i>
- </div>
- </div>
- <p class="company_intro_tit">{{ $user->district_cn }}</p>
- </div>
- <div class="company_intro_list">
- <div class="company_intro_border">
- <div class="company_intro_logo">
- <i class="logo_ico num"></i>
- </div>
- </div>
- <p class="company_intro_tit">{{ get_category($user->scale) }}</p>
- </div>
- <div class="company_intro_list">
- <div class="company_intro_border">
- <div class="company_intro_logo">
- <i class="logo_ico nature"></i>
- </div>
- </div>
- <p class="company_intro_tit">{{ get_category($user->nature) }}</p>
- </div>
- </div>
- <div class="about_us_con">
- <h3 class="about_us_tit"><i class="about_us_tit_ico"></i>认识我们</h3>
- <div class="about_us_msg">
- <div class="about_us_msg_p">
- <div class="about_us_msg_p">
- <p class="about_us_msg_p">{{ $user->contents }}</p>
- </div>
- </div>
- <div class="about_bottom"></div>
- </div>
- </div>
- </section>
- @if($user->imgs->count())
- <!--企业风采-->
- <section class="poster_wrap imgs">
- <div class="img_list">
- <div class="img_msg_con">
- @foreach( $user->imgs as $k => $v)
- <div class="img_bg">
- <img class="onLoadImg" src="{{ upload_asset($v->image) }}">
- </div>
- @endforeach
- </div>
- </div>
- </section>
- <!--end-->
- @endif
- @if($user->tag && $user->tag[0])
- <section class="poster_wrap abus" style="-webkit-transform: translate3d(0px, 0px, 0px); -webkit-transition-duration: 0ms; transition-duration: 0ms; opacity: 1; display: none; z-index: 20;">
- <h1 class="abus_head"><i class="about_us_tit_ico"></i>我们的福利</h1>
- <div class="welf_bg">
- @foreach($user->tag as $key => $val)
- <div class="tag_{{ $key }}" style="-webkit-animation: none; -webkit-animation-play-state: initial;"><span>{{ get_category($val) }}</span></div>
- @endforeach
- </div>
- </section>
- @endif
- <!-- 职位列表 -->
- @if($jobs->isNotEmpty())
- <section class="poster_wrap posit" style="-webkit-transform: translate3d(0px, 0px, 0px); -webkit-transition-duration: 0ms; transition-duration: 0ms; opacity: 1; display: none; z-index: 20;">
- <h1 class="posit_tit"><i class="about_us_tit_ico"></i>我们招聘的职位</h1>
- <div class="posit_list_con">
- <div class="posit_list_ul" style="width: 840px; -webkit-transition-duration: 0ms; transition-duration: 0ms; -webkit-transition-timing-function: linear; transition-timing-function: linear; -webkit-transform: translate3d(0px, 0px, 0px);">
- @foreach($jobs as $key => $vo)
- <div class="posit_details" style="width: 260px;" jobs_id="{{ $vo->jobs->id }}" jobs_tel="{{ $vo->jobs->jobsContact->mobile }}" jobs_name="{{ $vo->jobs->jobs_name }}" company_id="{{ $vo->jobs->company_id }}" company_name="{{ $user->companyname }}">
- <div class="posit_details_head">
- <h3 class="posit_details_tit">{{ $vo->jobs->jobs_name }}</h3>
- <span class="posit_details_money"><strong>
- @if($vo->jobs->wage == -1)
- 面议
- @else
- @if($vo->jobs->wage!=0)
- {{ get_category($vo->jobs->wage) }}
- @else
- {{ $vo->jobs->wage_min }} ~ {{ $vo->jobs->wage_max }}
- @endif
- @endif
- </strong></span>
- <p class="posit_details_tip">@if($vo->jobs->experience){{ get_category($vo->jobs->experience) }}@endif @if($vo->jobs->education)、{{ get_category($vo->jobs->education) }} @endif</p>
- </div>
- <div class="job_details">
- <p class="job_address">工作地点:{{ get_district_cn($vo->jobs->district) }}</p>
- <h3 class="job_name">任职要求:<a class="job_name_details" href="{{ route('mobile.jobfair.jobs.show',['id'=>$vo->id]) }}">职位详情>></a></h3>
- <div class="job_msg">
- {{ $vo->jobs->jobs_content }}
- </div>
- </div>
- <div class="posit_arrow_bot"></div>
- </div>
- @endforeach
- </div>
- </div>
- <div class="job_btn_con">
- <div class="job_btn_list" jqmoldstyle="block">
- <a href="javascript:;" class="job_btn tel" id='jobs_phone' phone='1'>预约</a>
- </div>
- </div>
- </section>
- @endif
- <!-- 点赞 -->
- <section class="poster_wrap praise" style="-webkit-transform: translate3d(0px, 0px, 0px); -webkit-transition-duration: 0ms; transition-duration: 0ms; opacity: 1; display: none; z-index: 18;" jqmoldstyle="block">
- <div class="poster_praise_con">
- <div class="poster_praise_logo"><img src="@if($user->logo) {{ upload_asset($user->logo) }}@else {{ attach('no_logo.png','') }} @endif"></div>
- </div>
- {{--<p class="praise_tip">已有<b id="praise_num"></b>人觉得这家公司值得加入</p>--}}
- {{--<a class="praise_btn praise_btn_click" href="javascript:;">--}}
- {{--<i><em></em></i><span>点赞,值得加入</span>--}}
- {{--</a>--}}
- <a class="praise_share_btn" href="javascript:;" >分享给好友</a>
- <a class="more_position" href="{{ route('mobile.jobs') }}">查看更多职位>></a>
- </section>
- </div>
- <div class="arrow_con">
- <div class="arrow_top"><span></span></div>
- </div>
- <div class="layer"></div>
- <div class="wx_layer"></div>
- <!-- 电话联系 弹出框 -->
- <div class="menu choose_menu" id="jobs_phone_menu" style="opacity:0;position:absolute;z-index:9999;">
- <div class="menu_title">预约</div>
- <ul>
- <li id='phone_error'>{{ $phone_error }}</li>
- </ul>
- <div class="choose_but">
- <div class="but_left" id="">
- <a id="jobs_phone_code" code="{{ $phone_code }}" href = '{{ $phone_url }}'>{{ $phone_error_tit }}</a>
- </div>
- <div class="but_right" id="">
- <a>取消</a>
- </div>
- <div class="clear"></div>
- </div>
- </div>
- <div class="menu choose_menu" id="jobs_apply_resume" style="opacity:0;position:absolute;z-index:9999;">
- <div class="menu_title">投递简历</div>
- <ul>
- <li id='resume_error'>{{ $resume_error }}</li>
- </ul>
- <div class="describe">
- <span class="for-select"></span>
- <select name="resume_select_id" id="resume_select_id">
- <option value="278">简历20190403170445</option>
- <option value="279" selected="">简历20190403182910</option>
- <option value="293">简历20190415115054</option>
- </select>
- </div>
- <div class="choose_but">
- <div class="but_left" id="">
- <a id="jobs_resume_code" code="{{ $resume_code }}" href = '{{ $resume_url }}'>{{ $resume_error_tit }}</a>
- </div>
- <div class="but_right" id="">
- <a>取消</a>
- </div>
- <div class="clear"></div>
- </div>
- </div>
- </body>
- <script>
- var company_id = "{{ Request::get('id') }}";
- var isVisitor = 0;
- var utype = 0;
- @if($loginUser)
- isVisitor = 1;
- @if($loginUser->utype == 1)
- utype = 1;
- @else
- utype = 2;
- @endif
- @endif
- </script>
- <script src="{{theme_asset('mobile/js/qsToast.js')}}"></script>
- <script type="text/javascript" charset="urf-8" src="{{ theme_asset('mobile/js/jquery.swipe.js') }}"></script>
- <script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
- {{--<script type="text/javascript" charset="utf-8" src="{{ theme_asset('mobile/js/jquery.wzp.js') }}"></script>--}}
- <script>
- wx.config({
- // debug: true,
- appId: '{$signPackage.appId}',
- timestamp: '{$signPackage.timestamp}',
- nonceStr: '{$signPackage.nonceStr}',
- signature: '{$signPackage.signature}',
- jsApiList: [
- // 所有要调用的 API 都要加到这个列表中
- "onMenuShareTimeline",
- "onMenuShareAppMessage",
- "onMenuShareQQ",
- "onMenuShareWeibo"
- ]
- });
- wx.ready(function ()
- {
- var linkUrl = "{{ route('mobile.firm.com.wzp.index',['id'=>$user->id]) }}";//放链接
- var title = "{{ $user->companyname }}真棒,招个人都搞的这么轰动,下血本啊,小伙伴们快来看看吧。";
- var desc = "我司正在招聘人才,待遇福利优厚,欢迎各路人才,快来看看吧。";
- var imgUrl="{{ upload_asset($user->logo) }}";//图片链接
- wx.onMenuShareTimeline({
- title: title, // 分享标题
- desc: desc, // 分享描述
- link: linkUrl, // 分享链接
- imgUrl: imgUrl, // 分享图标
- success: function () {
- // 用户确认分享后执行的回调函数
- $.getJSON("{:U('Wzp/com_share')}",{id:company_id});
- },
- cancel: function () {
- // 用户取消分享后执行的回调函数
- }
- });
- wx.onMenuShareAppMessage({
- title: title, // 分享标题
- desc: desc, // 分享描述
- link: linkUrl, // 分享链接
- imgUrl: imgUrl, // 分享图标
- type: '', // 分享类型,music、video或link,不填默认为link
- dataUrl: '', // 如果type是music或video,则要提供数据链接,默认为空
- success: function () {
- // 用户确认分享后执行的回调函数
- $.getJSON("{:U('Wzp/com_share')}",{id:company_id});
- },
- cancel: function () {
- // 用户取消分享后执行的回调函数
- }
- });
- wx.onMenuShareQQ({
- title: title, // 分享标题
- desc: desc, // 分享描述
- link: linkUrl, // 分享链接
- imgUrl: imgUrl, // 分享图标
- success: function () {
- // 用户确认分享后执行的回调函数
- $.getJSON("{:U('Wzp/com_share')}",{id:company_id});
- },
- cancel: function () {
- // 用户取消分享后执行的回调函数
- }
- });
- wx.onMenuShareWeibo({
- title: title, // 分享标题
- desc: desc, // 分享描述
- link: linkUrl, // 分享链接
- imgUrl: imgUrl, // 分享图标
- success: function () {
- // 用户确认分享后执行的回调函数
- $.getJSON("{:U('Wzp/com_share')}",{id:company_id});
- },
- cancel: function () {
- // 用户取消分享后执行的回调函数
- }
- });
- });
- // 查看更多
- $('.about-more').on('click', function() {
- $('.dialog_bg').show();
- $('.dia-arrow').on('click', function () {
- $('.dialog_bg').hide();
- });
- });
- </script>
- <script>
- /*$(document).on('change','select', function () {
- $(this).prev().text($(this).find('option').not(function(){ return !this.selected }).text());
- })
- $('select').each(function () {
- $(this).prev().text($(this).find('option').not(function(){ return !this.selected }).text());
- })*/
- /* 投递简历 电话联系 对应相应的职位 */
- function load_jobs(index,utype)
- {
- var _job = $($(".posit_details").get(index));
- if(utype=="2")
- {
- $(".job_btn_list > .add").attr("jobs_id", _job.attr("jobs_id"));
- $(".job_btn_list > .add").attr("jobs_name", _job.attr("jobs_name"));
- $(".job_btn_list > .add").attr("company_id", _job.attr("company_id"));
- $(".job_btn_list > .add").attr("company_name", _job.attr("company_name"));
- $(".job_btn_list > .add").attr("company_uid", _job.attr("company_uid"));
- }
- else
- {
- $(".job_btn_list > .add").attr("href",'{{ route('mobile.login') }}');
- }
- var isTel = $("#jobs_phone_code").attr('code');
- if (isTel > 0) {
- $(".job_btn_list > .tel").attr("pho", "tel:"+_job.attr("jobs_tel"));
- };
- }
- /* 滑动 效果 */
- function swipe_self()
- {
- var winWidth = window.innerWidth;
- var winHeight = window.innerHeight;
- var screenFix = function(){
- $("#poster_contain").css({
- width:winWidth+"px",
- height:winHeight+"px"
- });
- };
- screenFix();
- var orientationEvent = ('onorientationchange' in window) ? 'orientationchange' : 'resize';
- window.addEventListener(orientationEvent, function() {
- window.setTimeout(function(){
- screenFix();
- }, 600);
- }, false);
- $(".layer, .wx_layer").on("click", function(){
- $(this).hide();
- });
- var _indexSwipeUp=0;
- var _indexSwipe=0;
- // 滑动
- $("#poster_contain").swipeUp({
- index:_indexSwipeUp,
- childrenClass:".poster_wrap",
- init:function()
- {
- $(".arrow_con").addClass("show");
- setTimeout(function(){
- $($("#poster_contain .poster_wrap").get(_indexSwipeUp)).addClass("focus");
- }, 300);
- },
- afterSwipe:function(index)
- {
- var _pw = $("#poster_contain .poster_wrap");
- _pw.removeClass("focus");
- $(_pw.get(index)).addClass("focus");
- if(index == _pw.length-1){
- $(".arrow_con").removeClass("show");
- }else{
- $(".arrow_con").addClass("show");
- }
- var rewardHomeCon=$('.reward_home_con'),
- rewardHomeConLength=rewardHomeCon.length;
- if(rewardHomeConLength>0){
- if(rewardHomeCon.hasClass("homt_active")){
- rewardHomeCon.removeClass("homt_active");
- }
- var rewardPlus=$('.reward_plus');
- if(rewardPlus.hasClass("plus_animate")){
- rewardPlus.removeClass("plus_animate");
- }
- }
- if(index == 2){
- welfInterval = setInterval(function(){
- var _s = parseInt(Math.random()*6);
- $(".welf_bg > div").css({"-webkit-animation":"none"});
- $($(".welf_bg > div").get(_s)).css({"-webkit-animation":"fuli"+(_s%2)+" 1s ease-out"});
- }, 1000);
- }else{
- if(typeof(welfInterval) != "undefined"){
- clearInterval(welfInterval);
- }
- $(".welf_bg > div").css({"-webkit-animation":"none"});
- }
- }
- });
- // 职位滑动
- var _width = winWidth;
- _width = _width-30*2;
- $(".posit_details").css({width:_width+"px"})
- $(".posit_details img").css({width:_width+"px"})
- var _ulWidth = $(".posit_details").length * (_width+15) + 15;
- $(".posit_list_ul").css({width:_ulWidth+"px"});
- $(".posit_list_ul").swipe({
- index:_indexSwipe,
- width:_width + 15,
- afterSwipe:function(index)
- {
- load_jobs(index,utype);
- }
- });
- // 企业图片
- var swipePage = {
- winWidth: document.documentElement.clientWidth,
- agent: navigator.userAgent.toLowerCase(),
- _indexSwipeUp: 0,
- _indexSwipe: 0,
- otherPage: false,
- isOpen: false,
- init: function() {
- if (swipePage.versions.iPhone && (swipePage.versions.ucbrowser || swipePage.versions.amqqbrowser)) {
- $(".arrow_con, .job_btn_con").css({
- bottom: "50px"
- })
- }
- swipePage.swipeUpInit();
- swipePage.swipeInit()
- },
- swipeUpInit: function() {
- var infoidParam = getparam.getUrlParam("infoid"),
- b = $("#poster_contain .poster_wrap");
- if (infoidParam != undefined && infoidParam != "") {
- b.each(function(c) {
- if ($(this).hasClass("posit")) {
- swipePage._indexSwipeUp = c
- }
- })
- }
- var isWxBack = pageConfig.isWeixinBack;
- if (typeof isWxBack != "undefined" && isWxBack == "true") {
- b.each(function(c) {
- if ($(this).hasClass("praise")) {
- swipePage._indexSwipeUp = c;
- swipePage.isOpen = true
- }
- })
- }
- try {
- if (guideAppWeixilie.isShow()) {
- swipePage._indexSwipeUp = 1
- }
- swipePage.addBtn()
- } catch (e) {}
- if (localStorage) {
- swipePage.otherPage = window.localStorage.getItem("otherPage")
- }
- if (typeof swipePage.otherPage !== "undefined" && swipePage.otherPage === "true") {
- b.each(function(i) {
- if ($(this).hasClass("posit")) {
- swipePage._indexSwipeUp = i
- }
- });
- window.localStorage.setItem("otherPage", false)
- }
- swipePage.addBtn(".focus");
- $("#poster_contain").swipeUp({
- index: swipePage._indexSwipeUp,
- childrenClass: ".poster_wrap",
- init: function() {
- $(".arrow_con").addClass("show");
- setTimeout(function() {
- $(b.get(swipePage._indexSwipeUp)).addClass("focus")
- }, 300)
- },
- afterSwipe: function(index) {
- var _pw = $("#poster_contain .poster_wrap");
- _pw.removeClass("focus");
- $(_pw.get(index)).addClass("focus");
- if (index == _pw.length - 1) {
- $(".arrow_con").removeClass("show")
- } else {
- $(".arrow_con").addClass("show")
- }
- if (index == 2) {
- welfInterval = setInterval(function() {
- var _s = parseInt(Math.random() * 6);
- $(".welf_bg div").css({
- "-webkit-animation": "none",
- animation: "none"
- });
- $($(".welf_bg div").get(_s)).css({
- "-webkit-animation": "fuli" + _s % 2 + " 1s ease-out",
- animation: "fuli" + _s % 2 + " 1s ease-out"
- })
- }, 1e3)
- } else {
- if (typeof welfInterval != "undefined") {
- clearInterval(welfInterval)
- }
- $(".welf_bg div").css({
- "-webkit-animation": "none",
- animation: "none"
- })
- }
- if (userid == getparam.getUserInfo().uid) {
- var isshare = $(".poster_wrap.posit");
- var jianli = $(".poster_wrap.jianli");
- if (isshare.hasClass("focus") || jianli.hasClass("focus")) {
- $(".nav_btn_con,.reward_btn_modular").hide()
- } else {
- $(".nav_btn_con,.reward_btn_modular").show()
- }
- }
- try {
- guideAppWeixilie.init({
- index: index
- })
- } catch (e) {}
- }
- })
- },
- swipeInit: function() {
- var infoidParam = getparam.getUrlParam("infoid");
- if (infoidParam != "") {
- $(".posit_list_ul .posit_details").each(function(i) {
- if ($(this).attr("data-infoid") == infoidParam) {
- swipePage._indexSwipe = i;
- return false
- }
- })
- }
- var a = swipePage.winWidth;
- if (swipePage.versions.android && swipePage.versions.micromessenger) {
- if (window.devicePixelRatio > 1) {
- if (swipePage.agent.miuibrowser) {
- a = swipePage.winWidth
- } else {
- a = window.screen.width / window.devicePixelRatio
- }
- }
- }
- a = a - 30 * 2;
- var b = $(".posit_details").length * (a + 15) + 15;
- $(".posit_details").css({
- width: a + "px"
- });
- $(".posit_list_ul").css({
- width: b + "px"
- });
- if ($(".posit").length > 0) {
- $(".posit_list_ul").attr("data-indexNum", swipePage._indexSwipe);
- $(".posit_list_ul").swipe({
- index: swipePage._indexSwipe,
- width: a + 15,
- childrenClass: ".posit_details",
- afterSwipe: function(index) {
- var _job = $($(".posit_details").get(index));
- if (typeof weizhan !== "undefined" && typeof weizhan.reward !== "undefined" && typeof eval(weizhan.reward.setRewardJobBtn) == "function") {
- weizhan.reward.setRewardJobBtn(_job)
- } else {
- $(".job_btn_list > .add").attr("href", _job.attr("url"));
- var telNum = _job.attr("tel");
- var tel = telNum.replace("-", "");
- $(".job_btn_list > .tel").attr("href", "tel:" + _job.attr("tel").replace("-", ""))
- }
- }
- })
- }
- if ($(".imgs").length > 0) {
- $(".img_bg").css("width", a + "px");
- $(".img_bg img").css("width", a - 6 + "px");
- var imgWidth = $(".img_bg").length * (a + 15) + 15;
- $(".img_msg_con").css("width", imgWidth + "px");
- $(".imgs .img_msg_con").swipe({
- index: 0,
- width: a + 15,
- childrenClass: ".img_bg",
- afterSwipe: function(index) {}
- })
- }
- },
- screenFix: function() {
- var winWidth = document.documentElement.clientWidth,
- winHeight = window.innerHeight;
- $("#poster_contain").css({
- width: winWidth + "px",
- height: winHeight + "px"
- })
- },
- openApp: function() {
- guideApp.init();
- },
- replaceTel: function(obj) {
- var telNum = obj.href;
- var tel = telNum.replace("-", "");
- obj.removeAttribute("href");
- obj.setAttribute("href", tel)
- },
- addBtn: function(param) {
- if (typeof param == "undefined") {
- param = ""
- }
- var active_page = $(".poster_wrap" + param);
- var about_text = $(active_page).find(".about_us_msg");
- var about_text_p = $(active_page).find("p");
- if (about_text[0]) {
- var about_text_height = about_text[0].clientHeight;
- var about_text_width = $(".about_us_msg_p")[0].clientWidth;
- var i = about_text_p.length - 1;
- var str_temp = $(".about_us_msg_p p").text().replace(/\s/g, "");
- var tatolfontNum = str_temp.length;
- var a_temp = Math.round(about_text_height / 22);
- var b_temp = about_text_width / 13;
- var c_temp = Math.round(tatolfontNum / b_temp);
- if (a_temp < c_temp) {
- var more_html = '<div class="more_detail"><span>查看更多>></span></div>';
- var about_bottom = $(active_page).find(".about_bottom")[0];
- $(about_bottom).html(more_html);
- $(".more_detail").on("click", function() {
- Dialog.init(about_text.find("p"))
- })
- }
- }
- },
- versions: function() {
- var u = navigator.userAgent,
- app = navigator.appVersion;
- return {
- ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),
- android: u.indexOf("Android") > -1 || u.indexOf("Linux") > -1,
- iPhone: u.indexOf("iPhone") > -1,
- iPad: u.indexOf("iPad") > -1,
- ucbrowser: u.indexOf("ucbrowser") > -1,
- mqqbrowser: u.indexOf("mqqbrowser") > -1,
- micromessenger: u.indexOf("micromessenger") > -1
- }
- }()
- };
- var a = swipePage.winWidth;
- if (swipePage.versions.android && swipePage.versions.micromessenger) {
- if (window.devicePixelRatio > 1) {
- if (swipePage.agent.miuibrowser) {
- a = swipePage.winWidth
- } else {
- a = window.screen.width / window.devicePixelRatio
- }
- }
- }
- a = a - 30 * 2;
- if ($(".imgs").length > 0) {
- $(".img_bg").css("width", a + "px");
- $(".img_bg img").css("width", a - 6 + "px");
- var imgWidth = $(".img_bg").length * (a + 15) + 15;
- $(".img_msg_con").css("width", imgWidth + "px");
- $(".imgs .img_msg_con").swipe({
- index: 0,
- width: a + 15,
- childrenClass: ".img_bg",
- afterSwipe: function(index) {}
- })
- }
- // 企业简介更多
- if (typeof param == "undefined") {
- param = ""
- }
- var active_page = $(".poster_wrap_about_us");
- var about_text = $(active_page).find(".about_us_msg");
- var about_text_p = $(active_page).find("p");
- if (about_text[0]) {
- var about_text_height = about_text[0].clientHeight;
- var about_text_width = $(".about_us_msg_p")[0].clientWidth;
- var i = about_text_p.length - 1;
- var str_temp = $(".about_us_msg_p p").text().replace(/\s/g, "");
- var tatolfontNum = str_temp.length;
- var a_temp = Math.round(about_text_height / 22);
- var b_temp = about_text_width / 13;
- var c_temp = Math.round(tatolfontNum / b_temp);
- if (tatolfontNum > 120) { // a_temp < c_temp
- var more_html = '<div class="more_detail"><span>查看更多>></span></div>';
- var about_bottom = $(active_page).find(".about_bottom")[0];
- $(about_bottom).html(more_html);
- $(".more_detail").on("click", function() {
- $('.dialog_bg').show();
- $('.dia-arrow').on('click', function () {
- $('.dialog_bg').hide();
- });
- })
- }
- }
- //分享按钮
- $('.praise_share_btn').on('click',function(){
- var agent = navigator.userAgent.toLowerCase();
- if(agent.indexOf('micromessenger') < 0)
- {
- share_();
- }
- else
- {
- share();
- }
- });
- $(".layer, .wx_layer").on("click", function(){
- $(this).hide();
- });
- };
- // 点赞
- {{--function praise(company_id)--}}
- {{--{--}}
- {{--$(".praise_btn_click").on('click',function(event)--}}
- {{--{--}}
- {{--setCookie('praise_'+company_id+'','1');--}}
- {{--if($(".praise_btn").hasClass('praise_btn_click')){--}}
- {{--$.getJSON("{{ route('mobile.firm.com.wzp.praise') }}",{id:company_id},function(result){--}}
- {{--if(result.status==1){--}}
- {{--$("#praise_num").html(result.data);--}}
- {{--$(".praise_btn").addClass('on').removeClass('praise_btn_click');--}}
- {{--}--}}
- {{--});--}}
- {{--}--}}
- {{--});--}}
- {{--}--}}
- function setCookie(name,value)
- {
- var Days = 30;
- var exp = new Date();
- exp.setTime(exp.getTime() + Days*24*60*60*1000);
- document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
- }
- //读取cookies
- function getCookie(name)
- {
- var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");
- if(arr=document.cookie.match(reg))
- return unescape(arr[2]);
- else
- return null;
- }
- function delCookie(name)
- {
- var exp = new Date();
- exp.setTime(exp.getTime() - 1);
- var cval=getCookie(name);
- if(cval!=null)
- document.cookie= name + "="+cval+";expires="+exp.toGMTString();
- }
- /* 延时加载 time */
- function loading(time){
- var time=time?time:1000;
- setTimeout(function(){
- $("#load").hide();
- swipe_self();
- }, time);
- };
- /* 申请职位 弹出框 */
- function showFloatBox()
- {
- var width = window.innerWidth;
- var height = window.innerHeight;
- $("body").prepend("<div class=\"menu_bg_layer\"></div>");
- $(".menu_bg_layer").css({ height:height+'px',width: width+"px", position: "absolute",left:"0", top:"0","z-index":"999","background-color":"#000000"});
- $(".menu_bg_layer").css("opacity",0.3);
- };
- /* 申请职位 操作 */
- {{--function jobs_apply()--}}
- {{--{--}}
- {{--$("#jobs_apply").on('click',function()--}}
- {{--{--}}
- {{--if (isVisitor) {--}}
- {{--if (utype == 1) {--}}
- {{--var height = window.innerHeight;--}}
- {{--var choose_menu_h = document.getElementById('jobs_apply_resume').offsetHeight;--}}
- {{--var top_ = (height-choose_menu_h)/2;--}}
- {{--$("#jobs_apply_resume").css("top",top_+"px");--}}
- {{--$("#jobs_apply_resume").css({"opacity":1,"z-index":9999});--}}
- {{--return false;--}}
- {{--}else{--}}
- {{--//申请职位--}}
- {{--var url = "{{route('mobile.jobs.apply')}}";--}}
- {{--$.ajax({--}}
- {{--type: 'POST',--}}
- {{--url: url,--}}
- {{--data: {jobs_id:jobs_id,_token:"{{csrf_token()}}"},--}}
- {{--success: function(data){--}}
- {{--if (data.status==1) {--}}
- {{--qsToast({type:1,context: data.msg});--}}
- {{--return false;--}}
- {{--} else if(data.status==2){--}}
- {{--//选择简历--}}
- {{--var dialog = new QSpopout();--}}
- {{--dialog.setContent(data.html);--}}
- {{--if(data.data=='no'){--}}
- {{--dialog.setBtn(1,'确定');--}}
- {{--}--}}
- {{--else if(data.data=='mix'){--}}
- {{--dialog.setBtn(1,'取消');--}}
- {{--}else{--}}
- {{--dialog.getPrimaryBtn().on('click', function () {--}}
- {{--var resume_id = $('#select_resume_id').val();--}}
- {{--$.ajax({--}}
- {{--type: 'POST',--}}
- {{--url: url,--}}
- {{--data: {jobs_id:jobs_id,resume_id:resume_id,_token:"{{csrf_token()}}"},--}}
- {{--success: function(res){--}}
- {{--if (res.status == 0) {--}}
- {{--qsToast({type:2,context: res.error});--}}
- {{--} else {--}}
- {{--qsToast({type:1,context: res.msg});--}}
- {{--}--}}
- {{--},--}}
- {{--error: function(apply_error){--}}
- {{--if(apply_error.status == 500 || apply_error.status == 400){--}}
- {{--disapperTooltip('remind',apply_error.responseJSON.message);--}}
- {{--} else {--}}
- {{--disapperTooltip('remind','申请失败!');--}}
- {{--}--}}
- {{--}--}}
- {{--});--}}
- {{--});--}}
- {{--}--}}
- {{--dialog.show();--}}
- {{--}else {--}}
- {{--qsToast({type:2,context: data.error});--}}
- {{--}--}}
- {{--},--}}
- {{--error: function(error){--}}
- {{--if(result.status == 500 || result.status == 400){--}}
- {{--disapperTooltip('remind',result.responseJSON.message);--}}
- {{--} else {--}}
- {{--disapperTooltip('remind','申请失败!');--}}
- {{--}--}}
- {{--}--}}
- {{--});--}}
- {{--}--}}
- {{--}else{--}}
- {{--trigger_login();--}}
- {{--}--}}
- {{--// var href= $(this).attr("href")--}}
- {{--// if(href=="javascript:;")--}}
- {{--// {--}}
- {{--// var jobs_id = $(this).attr("jobs_id");--}}
- {{--// if(qscms.resume_id){--}}
- {{--// $.getJSON(qscms.root+'?m=Mobile&c=AjaxPersonal&a=resume_apply',{jid:jobs_id},function(result){--}}
- {{--// if(result.status==1){--}}
- {{--// alert(result.msg);--}}
- {{--// }else{--}}
- {{--// alert(result.msg);--}}
- {{--// }--}}
- {{--// },'json');--}}
- {{--// }else{--}}
- {{--// alert('请选择简历');--}}
- {{--// }--}}
- {{--// }--}}
- {{--});--}}
- {{--};--}}
- $("#jobs_phone").on('click',function() {
- var href= $(this).attr("pho");
- if(href){
- var result = href.replace('tel:','');
- }else{
- var result = '';
- }
- if(result=='') {
- var shopping = document.getElementById("jobs_phone");
- var phone = shopping.getAttribute("phone");
- showFloatBox();
- $("#jobs_phone_menu").show();
- var height = window.innerHeight;
- var choose_menu_h = document.getElementById('jobs_phone_menu').offsetHeight;
- var top_ = (height-choose_menu_h)/2;
- $("#jobs_phone_menu").css("top",top_+"px");
- $("#jobs_phone_menu").css({"opacity":1,"z-index":9999});
- $(".but_right,.menu_bg_layer").on('click', function(event) {
- $("#jobs_phone_menu").hide();
- $(".menu_bg_layer").remove();
- });
- } else {
- window.location.href=href;
- }
- });
- /* 左侧 菜单*/
- function left_menu()
- {
- // 显示菜单
- $(".nav_btn_con").on("touchstart", function(){
- $(".reward_manager_list_con, .reward_manager_list_con_bg").addClass("on");
- });
- // 隐藏菜单
- $(".reward_manager_list_con_bg").on("touchstart", function(){
- $(".reward_manager_list_con, .reward_manager_list_con_bg").removeClass("on");
- });
- };
- /* 显示分享 覆盖层 */
- function share(){
- $(".wx_layer").show();
- };
- function share_(){
- $(".layer").show();
- };
- loading();
- left_menu();
- load_jobs(0,utype);
- // praise(company_id);
- // jobs_apply();
- if(getCookie('praise_'+company_id+'')==1)
- {
- $(".praise_btn").addClass('on').removeClass('praise_btn_click');
- }
- function trigger_login(){
- window.location = "{{route('mobile.login')}}";
- }
- </script>
- </html>
|