com.blade.php 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <title>{{ $user->companyname }} - {{ subsite_config('aix.system.site.site.site_name') }}</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width" />
  7. <meta name="format-detection" content="telephone=no" />
  8. <meta name="format-detection" content="email=no" />
  9. <meta name="format-detection" content="address=no;">
  10. <meta name="apple-mobile-web-app-capable" content="yes" />
  11. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  12. <link type="text/css" href="{{ theme_asset('mobile/css/wzp_style.css') }}" rel="stylesheet" />
  13. <link type="text/css" href="{{ theme_asset('mobile/css/wzp_style_left.css') }}" rel="stylesheet" />
  14. <script type="text/javascript" charset="urf-8" src="{{ theme_asset('mobile/js/jq.mobi.min.js') }}"></script>
  15. </head>
  16. <body>
  17. <div class="dialog_bg">
  18. <div class="dialog">
  19. <div class="dia-title"><span class="dia-arrow"></span></div>
  20. <div class="dia-content">
  21. <p>{{ $user->contents }}</p>
  22. </div>
  23. </div>
  24. </div>
  25. <img src="@if($user->logo) {{ upload_asset($user->logo) }}@else {{ attach('no_logo.png','') }} @endif" width="0" height="0" />
  26. <div id="poster_contain">
  27. <section class="load" id="load">
  28. <div class="p_loading">
  29. <div class="p_loading_logo"></div>
  30. <p class="p_loading_tip">我们寻找与众不同的你</p>
  31. </div>
  32. </section>
  33. <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);">
  34. <div class="poster_index_bg"></div>
  35. <div class="poster_home_page">
  36. <div class="poster_logo_con">
  37. <div class="postter_praise_ring"></div>
  38. <div class="postter_praise_r"></div>
  39. <div class="postter_praise_rl"></div>
  40. <div class="poster_praise_logo"><img src="@if($user->logo) {{ upload_asset($user->logo) }}@else {{ attach('no_logo.png','') }} @endif"></div>
  41. </div>
  42. <h1 class="poster_tit">{{ $user->companyname }}</h1>
  43. <p class="poster_details">我们寻找与众不同的你</p>
  44. </div>
  45. </section>
  46. <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;">
  47. <div class="company_intro">
  48. <div class="company_intro_list">
  49. <div class="company_intro_border">
  50. <div class="company_intro_logo">
  51. <i class="logo_ico city"></i>
  52. </div>
  53. </div>
  54. <p class="company_intro_tit">{{ $user->district_cn }}</p>
  55. </div>
  56. <div class="company_intro_list">
  57. <div class="company_intro_border">
  58. <div class="company_intro_logo">
  59. <i class="logo_ico num"></i>
  60. </div>
  61. </div>
  62. <p class="company_intro_tit">{{ get_category($user->scale) }}</p>
  63. </div>
  64. <div class="company_intro_list">
  65. <div class="company_intro_border">
  66. <div class="company_intro_logo">
  67. <i class="logo_ico nature"></i>
  68. </div>
  69. </div>
  70. <p class="company_intro_tit">{{ get_category($user->nature) }}</p>
  71. </div>
  72. </div>
  73. <div class="about_us_con">
  74. <h3 class="about_us_tit"><i class="about_us_tit_ico"></i>认识我们</h3>
  75. <div class="about_us_msg">
  76. <div class="about_us_msg_p">
  77. <div class="about_us_msg_p">
  78. <p class="about_us_msg_p">{{ $user->contents }}</p>
  79. </div>
  80. </div>
  81. <div class="about_bottom"></div>
  82. </div>
  83. </div>
  84. </section>
  85. @if($user->imgs->count())
  86. <!--企业风采-->
  87. <section class="poster_wrap imgs">
  88. <div class="img_list">
  89. <div class="img_msg_con">
  90. @foreach( $user->imgs as $k => $v)
  91. <div class="img_bg">
  92. <img class="onLoadImg" src="{{ upload_asset($v->image) }}">
  93. </div>
  94. @endforeach
  95. </div>
  96. </div>
  97. </section>
  98. <!--end-->
  99. @endif
  100. @if($user->tag && $user->tag[0])
  101. <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;">
  102. <h1 class="abus_head"><i class="about_us_tit_ico"></i>我们的福利</h1>
  103. <div class="welf_bg">
  104. @foreach($user->tag as $key => $val)
  105. <div class="tag_{{ $key }}" style="-webkit-animation: none; -webkit-animation-play-state: initial;"><span>{{ get_category($val) }}</span></div>
  106. @endforeach
  107. </div>
  108. </section>
  109. @endif
  110. <!-- 职位列表 -->
  111. @if($user->job)
  112. <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;">
  113. <h1 class="posit_tit"><i class="about_us_tit_ico"></i>我们招聘的职位</h1>
  114. <div class="posit_list_con">
  115. @if($user->job)
  116. <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);">
  117. @foreach($user->job as $key => $vo)
  118. <div class="posit_details" style="width: 260px;" jobs_id="{{ $vo->id }}" jobs_tel="{{ $vo->jobsContact->telephone }}" jobs_name="{{ $vo->jobs_name }}" company_id="{{ $vo->company_id }}" company_name="{{ $user->companyname }}">
  119. <div class="posit_details_head">
  120. <h3 class="posit_details_tit">{{ $vo->jobs_name }}</h3>
  121. <span class="posit_details_money"><strong>
  122. @if($vo->wage == -1)
  123. 面议
  124. @else
  125. @if($vo->wage!=0)
  126. {{ get_category($vo->wage) }}
  127. @else
  128. {{ $vo->wage_min }} ~ {{ $vo->wage_max }}
  129. @endif
  130. @endif
  131. </strong></span>
  132. <p class="posit_details_tip">@if($vo->experience){{ get_category($vo->experience) }}@endif @if($vo->education)、{{ get_category($vo->education) }} @endif</p>
  133. </div>
  134. <div class="job_details">
  135. <p class="job_address">工作地点:{{ get_district_cn($vo->district) }}</p>
  136. <h3 class="job_name">任职要求:<a class="job_name_details" href="{{ route($sub_site.'mobile.jobs.show',['id'=>$vo->id]) }}">职位详情&gt;&gt;</a></h3>
  137. <div class="job_msg">
  138. {{ $vo->jobs_content }}
  139. </div>
  140. </div>
  141. <div class="posit_arrow_bot"></div>
  142. </div>
  143. @endforeach
  144. </div>
  145. @else
  146. <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);">
  147. <div class="posit_details" style="width: 260px;">
  148. <img src="{{ theme_asset('mobile/images/wzp_img/posit_none_logo.jpg') }}" >
  149. </div>
  150. </div>
  151. @endif
  152. </div>
  153. <div class="job_btn_con">
  154. <div class="job_btn_list" jqmoldstyle="block">
  155. {{--<a href="javascript:;" class="job_btn add" id="jobs_apply">投递简历</a>--}}
  156. <a href="javascript:;" class="job_btn tel" id='jobs_phone' phone='1'>电话联系</a>
  157. </div>
  158. </div>
  159. </section>
  160. @endif
  161. <!-- 点赞 -->
  162. <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">
  163. <div class="poster_praise_con">
  164. <div class="poster_praise_logo"><img src="@if($user->logo) {{ upload_asset($user->logo) }}@else {{ attach('no_logo.png','') }} @endif"></div>
  165. </div>
  166. {{--<p class="praise_tip">已有<b id="praise_num"></b>人觉得这家公司值得加入</p>--}}
  167. {{--<a class="praise_btn praise_btn_click" href="javascript:;">--}}
  168. {{--<i><em></em></i><span>点赞,值得加入</span>--}}
  169. {{--</a>--}}
  170. <a class="praise_share_btn" href="javascript:;" >分享给好友</a>
  171. <a class="more_position" href="{{ route($sub_site.'mobile.jobs') }}">查看更多职位&gt;&gt;</a>
  172. </section>
  173. </div>
  174. <div class="arrow_con">
  175. <div class="arrow_top"><span></span></div>
  176. </div>
  177. <div class="layer"></div>
  178. <div class="wx_layer"></div>
  179. <!-- 电话联系 弹出框 -->
  180. <div class="menu choose_menu" id="jobs_phone_menu" style="opacity:0;position:absolute;z-index:9999;">
  181. <div class="menu_title">电话联系</div>
  182. <ul>
  183. <li id='phone_error'>{{ $phone_error }}</li>
  184. </ul>
  185. <div class="choose_but">
  186. <div class="but_left" id="">
  187. <a id="jobs_phone_code" code="{{ $phone_code }}" href = '{{ $phone_url }}'>{{ $phone_error_tit }}</a>
  188. </div>
  189. <div class="but_right" id="">
  190. <a>取消</a>
  191. </div>
  192. <div class="clear"></div>
  193. </div>
  194. </div>
  195. <div class="menu choose_menu" id="jobs_apply_resume" style="opacity:0;position:absolute;z-index:9999;">
  196. <div class="menu_title">投递简历</div>
  197. <ul>
  198. <li id='resume_error'>{{ $resume_error }}</li>
  199. </ul>
  200. <div class="describe">
  201. <span class="for-select"></span>
  202. <select name="resume_select_id" id="resume_select_id">
  203. <option value="278">简历20190403170445</option>
  204. <option value="279" selected="">简历20190403182910</option>
  205. <option value="293">简历20190415115054</option>
  206. </select>
  207. </div>
  208. <div class="choose_but">
  209. <div class="but_left" id="">
  210. <a id="jobs_resume_code" code="{{ $resume_code }}" href = '{{ $resume_url }}'>{{ $resume_error_tit }}</a>
  211. </div>
  212. <div class="but_right" id="">
  213. <a>取消</a>
  214. </div>
  215. <div class="clear"></div>
  216. </div>
  217. </div>
  218. </body>
  219. <script>
  220. var company_id = "{{ Request::get('id') }}";
  221. var isVisitor = 0;
  222. var utype = 0;
  223. @if($loginUser)
  224. isVisitor = 1;
  225. @if($loginUser->utype == 1)
  226. utype = 1;
  227. @else
  228. utype = 2;
  229. @endif
  230. @endif
  231. </script>
  232. <script src="{{theme_asset('mobile/js/qsToast.js')}}"></script>
  233. <script type="text/javascript" charset="urf-8" src="{{ theme_asset('mobile/js/jquery.swipe.js') }}"></script>
  234. <script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
  235. {{--<script type="text/javascript" charset="utf-8" src="{{ theme_asset('mobile/js/jquery.wzp.js') }}"></script>--}}
  236. <script>
  237. wx.config({
  238. // debug: true,
  239. appId: '{$signPackage.appId}',
  240. timestamp: '{$signPackage.timestamp}',
  241. nonceStr: '{$signPackage.nonceStr}',
  242. signature: '{$signPackage.signature}',
  243. jsApiList: [
  244. // 所有要调用的 API 都要加到这个列表中
  245. "onMenuShareTimeline",
  246. "onMenuShareAppMessage",
  247. "onMenuShareQQ",
  248. "onMenuShareWeibo"
  249. ]
  250. });
  251. wx.ready(function ()
  252. {
  253. var linkUrl = "{{ route($sub_site.'mobile.firm.com.wzp.index',['id'=>$user->id]) }}";//放链接
  254. var title = "{{ $user->companyname }}真棒,招个人都搞的这么轰动,下血本啊,小伙伴们快来看看吧。";
  255. var desc = "我司正在招聘人才,待遇福利优厚,欢迎各路人才,快来看看吧。";
  256. var imgUrl="{{ upload_asset($user->logo) }}";//图片链接
  257. wx.onMenuShareTimeline({
  258. title: title, // 分享标题
  259. desc: desc, // 分享描述
  260. link: linkUrl, // 分享链接
  261. imgUrl: imgUrl, // 分享图标
  262. success: function () {
  263. // 用户确认分享后执行的回调函数
  264. $.getJSON("{:U('Wzp/com_share')}",{id:company_id});
  265. },
  266. cancel: function () {
  267. // 用户取消分享后执行的回调函数
  268. }
  269. });
  270. wx.onMenuShareAppMessage({
  271. title: title, // 分享标题
  272. desc: desc, // 分享描述
  273. link: linkUrl, // 分享链接
  274. imgUrl: imgUrl, // 分享图标
  275. type: '', // 分享类型,music、video或link,不填默认为link
  276. dataUrl: '', // 如果type是music或video,则要提供数据链接,默认为空
  277. success: function () {
  278. // 用户确认分享后执行的回调函数
  279. $.getJSON("{:U('Wzp/com_share')}",{id:company_id});
  280. },
  281. cancel: function () {
  282. // 用户取消分享后执行的回调函数
  283. }
  284. });
  285. wx.onMenuShareQQ({
  286. title: title, // 分享标题
  287. desc: desc, // 分享描述
  288. link: linkUrl, // 分享链接
  289. imgUrl: imgUrl, // 分享图标
  290. success: function () {
  291. // 用户确认分享后执行的回调函数
  292. $.getJSON("{:U('Wzp/com_share')}",{id:company_id});
  293. },
  294. cancel: function () {
  295. // 用户取消分享后执行的回调函数
  296. }
  297. });
  298. wx.onMenuShareWeibo({
  299. title: title, // 分享标题
  300. desc: desc, // 分享描述
  301. link: linkUrl, // 分享链接
  302. imgUrl: imgUrl, // 分享图标
  303. success: function () {
  304. // 用户确认分享后执行的回调函数
  305. $.getJSON("{:U('Wzp/com_share')}",{id:company_id});
  306. },
  307. cancel: function () {
  308. // 用户取消分享后执行的回调函数
  309. }
  310. });
  311. });
  312. // 查看更多
  313. $('.about-more').on('click', function() {
  314. $('.dialog_bg').show();
  315. $('.dia-arrow').on('click', function () {
  316. $('.dialog_bg').hide();
  317. });
  318. });
  319. </script>
  320. <script>
  321. /*$(document).on('change','select', function () {
  322. $(this).prev().text($(this).find('option').not(function(){ return !this.selected }).text());
  323. })
  324. $('select').each(function () {
  325. $(this).prev().text($(this).find('option').not(function(){ return !this.selected }).text());
  326. })*/
  327. /* 投递简历 电话联系 对应相应的职位 */
  328. function load_jobs(index,utype)
  329. {
  330. var _job = $($(".posit_details").get(index));
  331. if(utype=="2")
  332. {
  333. $(".job_btn_list > .add").attr("jobs_id", _job.attr("jobs_id"));
  334. $(".job_btn_list > .add").attr("jobs_name", _job.attr("jobs_name"));
  335. $(".job_btn_list > .add").attr("company_id", _job.attr("company_id"));
  336. $(".job_btn_list > .add").attr("company_name", _job.attr("company_name"));
  337. $(".job_btn_list > .add").attr("company_uid", _job.attr("company_uid"));
  338. }
  339. else
  340. {
  341. $(".job_btn_list > .add").attr("href",'{{ route($sub_site.'mobile.login') }}');
  342. }
  343. var isTel = $("#jobs_phone_code").attr('code');
  344. if (isTel > 0) {
  345. $(".job_btn_list > .tel").attr("pho", "tel:"+_job.attr("jobs_tel"));
  346. };
  347. }
  348. /* 滑动 效果 */
  349. function swipe_self()
  350. {
  351. var winWidth = window.innerWidth;
  352. var winHeight = window.innerHeight;
  353. var screenFix = function(){
  354. $("#poster_contain").css({
  355. width:winWidth+"px",
  356. height:winHeight+"px"
  357. });
  358. };
  359. screenFix();
  360. var orientationEvent = ('onorientationchange' in window) ? 'orientationchange' : 'resize';
  361. window.addEventListener(orientationEvent, function() {
  362. window.setTimeout(function(){
  363. screenFix();
  364. }, 600);
  365. }, false);
  366. $(".layer, .wx_layer").on("click", function(){
  367. $(this).hide();
  368. });
  369. var _indexSwipeUp=0;
  370. var _indexSwipe=0;
  371. // 滑动
  372. $("#poster_contain").swipeUp({
  373. index:_indexSwipeUp,
  374. childrenClass:".poster_wrap",
  375. init:function()
  376. {
  377. $(".arrow_con").addClass("show");
  378. setTimeout(function(){
  379. $($("#poster_contain .poster_wrap").get(_indexSwipeUp)).addClass("focus");
  380. }, 300);
  381. },
  382. afterSwipe:function(index)
  383. {
  384. var _pw = $("#poster_contain .poster_wrap");
  385. _pw.removeClass("focus");
  386. $(_pw.get(index)).addClass("focus");
  387. if(index == _pw.length-1){
  388. $(".arrow_con").removeClass("show");
  389. }else{
  390. $(".arrow_con").addClass("show");
  391. }
  392. var rewardHomeCon=$('.reward_home_con'),
  393. rewardHomeConLength=rewardHomeCon.length;
  394. if(rewardHomeConLength>0){
  395. if(rewardHomeCon.hasClass("homt_active")){
  396. rewardHomeCon.removeClass("homt_active");
  397. }
  398. var rewardPlus=$('.reward_plus');
  399. if(rewardPlus.hasClass("plus_animate")){
  400. rewardPlus.removeClass("plus_animate");
  401. }
  402. }
  403. if(index == 2){
  404. welfInterval = setInterval(function(){
  405. var _s = parseInt(Math.random()*6);
  406. $(".welf_bg > div").css({"-webkit-animation":"none"});
  407. $($(".welf_bg > div").get(_s)).css({"-webkit-animation":"fuli"+(_s%2)+" 1s ease-out"});
  408. }, 1000);
  409. }else{
  410. if(typeof(welfInterval) != "undefined"){
  411. clearInterval(welfInterval);
  412. }
  413. $(".welf_bg > div").css({"-webkit-animation":"none"});
  414. }
  415. }
  416. });
  417. // 职位滑动
  418. var _width = winWidth;
  419. _width = _width-30*2;
  420. $(".posit_details").css({width:_width+"px"})
  421. $(".posit_details img").css({width:_width+"px"})
  422. var _ulWidth = $(".posit_details").length * (_width+15) + 15;
  423. $(".posit_list_ul").css({width:_ulWidth+"px"});
  424. $(".posit_list_ul").swipe({
  425. index:_indexSwipe,
  426. width:_width + 15,
  427. afterSwipe:function(index)
  428. {
  429. load_jobs(index,utype);
  430. }
  431. });
  432. // 企业图片
  433. var swipePage = {
  434. winWidth: document.documentElement.clientWidth,
  435. agent: navigator.userAgent.toLowerCase(),
  436. _indexSwipeUp: 0,
  437. _indexSwipe: 0,
  438. otherPage: false,
  439. isOpen: false,
  440. init: function() {
  441. if (swipePage.versions.iPhone && (swipePage.versions.ucbrowser || swipePage.versions.amqqbrowser)) {
  442. $(".arrow_con, .job_btn_con").css({
  443. bottom: "50px"
  444. })
  445. }
  446. swipePage.swipeUpInit();
  447. swipePage.swipeInit()
  448. },
  449. swipeUpInit: function() {
  450. var infoidParam = getparam.getUrlParam("infoid"),
  451. b = $("#poster_contain .poster_wrap");
  452. if (infoidParam != undefined && infoidParam != "") {
  453. b.each(function(c) {
  454. if ($(this).hasClass("posit")) {
  455. swipePage._indexSwipeUp = c
  456. }
  457. })
  458. }
  459. var isWxBack = pageConfig.isWeixinBack;
  460. if (typeof isWxBack != "undefined" && isWxBack == "true") {
  461. b.each(function(c) {
  462. if ($(this).hasClass("praise")) {
  463. swipePage._indexSwipeUp = c;
  464. swipePage.isOpen = true
  465. }
  466. })
  467. }
  468. try {
  469. if (guideAppWeixilie.isShow()) {
  470. swipePage._indexSwipeUp = 1
  471. }
  472. swipePage.addBtn()
  473. } catch (e) {}
  474. if (localStorage) {
  475. swipePage.otherPage = window.localStorage.getItem("otherPage")
  476. }
  477. if (typeof swipePage.otherPage !== "undefined" && swipePage.otherPage === "true") {
  478. b.each(function(i) {
  479. if ($(this).hasClass("posit")) {
  480. swipePage._indexSwipeUp = i
  481. }
  482. });
  483. window.localStorage.setItem("otherPage", false)
  484. }
  485. swipePage.addBtn(".focus");
  486. $("#poster_contain").swipeUp({
  487. index: swipePage._indexSwipeUp,
  488. childrenClass: ".poster_wrap",
  489. init: function() {
  490. $(".arrow_con").addClass("show");
  491. setTimeout(function() {
  492. $(b.get(swipePage._indexSwipeUp)).addClass("focus")
  493. }, 300)
  494. },
  495. afterSwipe: function(index) {
  496. var _pw = $("#poster_contain .poster_wrap");
  497. _pw.removeClass("focus");
  498. $(_pw.get(index)).addClass("focus");
  499. if (index == _pw.length - 1) {
  500. $(".arrow_con").removeClass("show")
  501. } else {
  502. $(".arrow_con").addClass("show")
  503. }
  504. if (index == 2) {
  505. welfInterval = setInterval(function() {
  506. var _s = parseInt(Math.random() * 6);
  507. $(".welf_bg div").css({
  508. "-webkit-animation": "none",
  509. animation: "none"
  510. });
  511. $($(".welf_bg div").get(_s)).css({
  512. "-webkit-animation": "fuli" + _s % 2 + " 1s ease-out",
  513. animation: "fuli" + _s % 2 + " 1s ease-out"
  514. })
  515. }, 1e3)
  516. } else {
  517. if (typeof welfInterval != "undefined") {
  518. clearInterval(welfInterval)
  519. }
  520. $(".welf_bg div").css({
  521. "-webkit-animation": "none",
  522. animation: "none"
  523. })
  524. }
  525. if (userid == getparam.getUserInfo().uid) {
  526. var isshare = $(".poster_wrap.posit");
  527. var jianli = $(".poster_wrap.jianli");
  528. if (isshare.hasClass("focus") || jianli.hasClass("focus")) {
  529. $(".nav_btn_con,.reward_btn_modular").hide()
  530. } else {
  531. $(".nav_btn_con,.reward_btn_modular").show()
  532. }
  533. }
  534. try {
  535. guideAppWeixilie.init({
  536. index: index
  537. })
  538. } catch (e) {}
  539. }
  540. })
  541. },
  542. swipeInit: function() {
  543. var infoidParam = getparam.getUrlParam("infoid");
  544. if (infoidParam != "") {
  545. $(".posit_list_ul .posit_details").each(function(i) {
  546. if ($(this).attr("data-infoid") == infoidParam) {
  547. swipePage._indexSwipe = i;
  548. return false
  549. }
  550. })
  551. }
  552. var a = swipePage.winWidth;
  553. if (swipePage.versions.android && swipePage.versions.micromessenger) {
  554. if (window.devicePixelRatio > 1) {
  555. if (swipePage.agent.miuibrowser) {
  556. a = swipePage.winWidth
  557. } else {
  558. a = window.screen.width / window.devicePixelRatio
  559. }
  560. }
  561. }
  562. a = a - 30 * 2;
  563. var b = $(".posit_details").length * (a + 15) + 15;
  564. $(".posit_details").css({
  565. width: a + "px"
  566. });
  567. $(".posit_list_ul").css({
  568. width: b + "px"
  569. });
  570. if ($(".posit").length > 0) {
  571. $(".posit_list_ul").attr("data-indexNum", swipePage._indexSwipe);
  572. $(".posit_list_ul").swipe({
  573. index: swipePage._indexSwipe,
  574. width: a + 15,
  575. childrenClass: ".posit_details",
  576. afterSwipe: function(index) {
  577. var _job = $($(".posit_details").get(index));
  578. if (typeof weizhan !== "undefined" && typeof weizhan.reward !== "undefined" && typeof eval(weizhan.reward.setRewardJobBtn) == "function") {
  579. weizhan.reward.setRewardJobBtn(_job)
  580. } else {
  581. $(".job_btn_list > .add").attr("href", _job.attr("url"));
  582. var telNum = _job.attr("tel");
  583. var tel = telNum.replace("-", "");
  584. $(".job_btn_list > .tel").attr("href", "tel:" + _job.attr("tel").replace("-", ""))
  585. }
  586. }
  587. })
  588. }
  589. if ($(".imgs").length > 0) {
  590. $(".img_bg").css("width", a + "px");
  591. $(".img_bg img").css("width", a - 6 + "px");
  592. var imgWidth = $(".img_bg").length * (a + 15) + 15;
  593. $(".img_msg_con").css("width", imgWidth + "px");
  594. $(".imgs .img_msg_con").swipe({
  595. index: 0,
  596. width: a + 15,
  597. childrenClass: ".img_bg",
  598. afterSwipe: function(index) {}
  599. })
  600. }
  601. },
  602. screenFix: function() {
  603. var winWidth = document.documentElement.clientWidth,
  604. winHeight = window.innerHeight;
  605. $("#poster_contain").css({
  606. width: winWidth + "px",
  607. height: winHeight + "px"
  608. })
  609. },
  610. openApp: function() {
  611. guideApp.init();
  612. },
  613. replaceTel: function(obj) {
  614. var telNum = obj.href;
  615. var tel = telNum.replace("-", "");
  616. obj.removeAttribute("href");
  617. obj.setAttribute("href", tel)
  618. },
  619. addBtn: function(param) {
  620. if (typeof param == "undefined") {
  621. param = ""
  622. }
  623. var active_page = $(".poster_wrap" + param);
  624. var about_text = $(active_page).find(".about_us_msg");
  625. var about_text_p = $(active_page).find("p");
  626. if (about_text[0]) {
  627. var about_text_height = about_text[0].clientHeight;
  628. var about_text_width = $(".about_us_msg_p")[0].clientWidth;
  629. var i = about_text_p.length - 1;
  630. var str_temp = $(".about_us_msg_p p").text().replace(/\s/g, "");
  631. var tatolfontNum = str_temp.length;
  632. var a_temp = Math.round(about_text_height / 22);
  633. var b_temp = about_text_width / 13;
  634. var c_temp = Math.round(tatolfontNum / b_temp);
  635. if (a_temp < c_temp) {
  636. var more_html = '<div class="more_detail"><span>查看更多>></span></div>';
  637. var about_bottom = $(active_page).find(".about_bottom")[0];
  638. $(about_bottom).html(more_html);
  639. $(".more_detail").on("click", function() {
  640. Dialog.init(about_text.find("p"))
  641. })
  642. }
  643. }
  644. },
  645. versions: function() {
  646. var u = navigator.userAgent,
  647. app = navigator.appVersion;
  648. return {
  649. ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),
  650. android: u.indexOf("Android") > -1 || u.indexOf("Linux") > -1,
  651. iPhone: u.indexOf("iPhone") > -1,
  652. iPad: u.indexOf("iPad") > -1,
  653. ucbrowser: u.indexOf("ucbrowser") > -1,
  654. mqqbrowser: u.indexOf("mqqbrowser") > -1,
  655. micromessenger: u.indexOf("micromessenger") > -1
  656. }
  657. }()
  658. };
  659. var a = swipePage.winWidth;
  660. if (swipePage.versions.android && swipePage.versions.micromessenger) {
  661. if (window.devicePixelRatio > 1) {
  662. if (swipePage.agent.miuibrowser) {
  663. a = swipePage.winWidth
  664. } else {
  665. a = window.screen.width / window.devicePixelRatio
  666. }
  667. }
  668. }
  669. a = a - 30 * 2;
  670. if ($(".imgs").length > 0) {
  671. $(".img_bg").css("width", a + "px");
  672. $(".img_bg img").css("width", a - 6 + "px");
  673. var imgWidth = $(".img_bg").length * (a + 15) + 15;
  674. $(".img_msg_con").css("width", imgWidth + "px");
  675. $(".imgs .img_msg_con").swipe({
  676. index: 0,
  677. width: a + 15,
  678. childrenClass: ".img_bg",
  679. afterSwipe: function(index) {}
  680. })
  681. }
  682. // 企业简介更多
  683. if (typeof param == "undefined") {
  684. param = ""
  685. }
  686. var active_page = $(".poster_wrap_about_us");
  687. var about_text = $(active_page).find(".about_us_msg");
  688. var about_text_p = $(active_page).find("p");
  689. if (about_text[0]) {
  690. var about_text_height = about_text[0].clientHeight;
  691. var about_text_width = $(".about_us_msg_p")[0].clientWidth;
  692. var i = about_text_p.length - 1;
  693. var str_temp = $(".about_us_msg_p p").text().replace(/\s/g, "");
  694. var tatolfontNum = str_temp.length;
  695. var a_temp = Math.round(about_text_height / 22);
  696. var b_temp = about_text_width / 13;
  697. var c_temp = Math.round(tatolfontNum / b_temp);
  698. if (tatolfontNum > 120) { // a_temp < c_temp
  699. var more_html = '<div class="more_detail"><span>查看更多>></span></div>';
  700. var about_bottom = $(active_page).find(".about_bottom")[0];
  701. $(about_bottom).html(more_html);
  702. $(".more_detail").on("click", function() {
  703. $('.dialog_bg').show();
  704. $('.dia-arrow').on('click', function () {
  705. $('.dialog_bg').hide();
  706. });
  707. })
  708. }
  709. }
  710. //分享按钮
  711. $('.praise_share_btn').on('click',function(){
  712. var agent = navigator.userAgent.toLowerCase();
  713. if(agent.indexOf('micromessenger') < 0)
  714. {
  715. share_();
  716. }
  717. else
  718. {
  719. share();
  720. }
  721. });
  722. $(".layer, .wx_layer").on("click", function(){
  723. $(this).hide();
  724. });
  725. };
  726. // 点赞
  727. {{--function praise(company_id)--}}
  728. {{--{--}}
  729. {{--$(".praise_btn_click").on('click',function(event)--}}
  730. {{--{--}}
  731. {{--setCookie('praise_'+company_id+'','1');--}}
  732. {{--if($(".praise_btn").hasClass('praise_btn_click')){--}}
  733. {{--$.getJSON("{{ route($sub_site.'mobile.firm.com.wzp.praise') }}",{id:company_id},function(result){--}}
  734. {{--if(result.status==1){--}}
  735. {{--$("#praise_num").html(result.data);--}}
  736. {{--$(".praise_btn").addClass('on').removeClass('praise_btn_click');--}}
  737. {{--}--}}
  738. {{--});--}}
  739. {{--}--}}
  740. {{--});--}}
  741. {{--}--}}
  742. function setCookie(name,value)
  743. {
  744. var Days = 30;
  745. var exp = new Date();
  746. exp.setTime(exp.getTime() + Days*24*60*60*1000);
  747. document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
  748. }
  749. //读取cookies
  750. function getCookie(name)
  751. {
  752. var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");
  753. if(arr=document.cookie.match(reg))
  754. return unescape(arr[2]);
  755. else
  756. return null;
  757. }
  758. function delCookie(name)
  759. {
  760. var exp = new Date();
  761. exp.setTime(exp.getTime() - 1);
  762. var cval=getCookie(name);
  763. if(cval!=null)
  764. document.cookie= name + "="+cval+";expires="+exp.toGMTString();
  765. }
  766. /* 延时加载 time */
  767. function loading(time){
  768. var time=time?time:1000;
  769. setTimeout(function(){
  770. $("#load").hide();
  771. swipe_self();
  772. }, time);
  773. };
  774. /* 申请职位 弹出框 */
  775. function showFloatBox()
  776. {
  777. var width = window.innerWidth;
  778. var height = window.innerHeight;
  779. $("body").prepend("<div class=\"menu_bg_layer\"></div>");
  780. $(".menu_bg_layer").css({ height:height+'px',width: width+"px", position: "absolute",left:"0", top:"0","z-index":"999","background-color":"#000000"});
  781. $(".menu_bg_layer").css("opacity",0.3);
  782. };
  783. /* 申请职位 操作 */
  784. {{--function jobs_apply()--}}
  785. {{--{--}}
  786. {{--$("#jobs_apply").on('click',function()--}}
  787. {{--{--}}
  788. {{--if (isVisitor) {--}}
  789. {{--if (utype == 1) {--}}
  790. {{--var height = window.innerHeight;--}}
  791. {{--var choose_menu_h = document.getElementById('jobs_apply_resume').offsetHeight;--}}
  792. {{--var top_ = (height-choose_menu_h)/2;--}}
  793. {{--$("#jobs_apply_resume").css("top",top_+"px");--}}
  794. {{--$("#jobs_apply_resume").css({"opacity":1,"z-index":9999});--}}
  795. {{--return false;--}}
  796. {{--}else{--}}
  797. {{--//申请职位--}}
  798. {{--var url = "{{route($sub_site.'mobile.jobs.apply')}}";--}}
  799. {{--$.ajax({--}}
  800. {{--type: 'POST',--}}
  801. {{--url: url,--}}
  802. {{--data: {jobs_id:jobs_id,_token:"{{csrf_token()}}"},--}}
  803. {{--success: function(data){--}}
  804. {{--if (data.status==1) {--}}
  805. {{--qsToast({type:1,context: data.msg});--}}
  806. {{--return false;--}}
  807. {{--} else if(data.status==2){--}}
  808. {{--//选择简历--}}
  809. {{--var dialog = new QSpopout();--}}
  810. {{--dialog.setContent(data.html);--}}
  811. {{--if(data.data=='no'){--}}
  812. {{--dialog.setBtn(1,'确定');--}}
  813. {{--}--}}
  814. {{--else if(data.data=='mix'){--}}
  815. {{--dialog.setBtn(1,'取消');--}}
  816. {{--}else{--}}
  817. {{--dialog.getPrimaryBtn().on('click', function () {--}}
  818. {{--var resume_id = $('#select_resume_id').val();--}}
  819. {{--$.ajax({--}}
  820. {{--type: 'POST',--}}
  821. {{--url: url,--}}
  822. {{--data: {jobs_id:jobs_id,resume_id:resume_id,_token:"{{csrf_token()}}"},--}}
  823. {{--success: function(res){--}}
  824. {{--if (res.status == 0) {--}}
  825. {{--qsToast({type:2,context: res.error});--}}
  826. {{--} else {--}}
  827. {{--qsToast({type:1,context: res.msg});--}}
  828. {{--}--}}
  829. {{--},--}}
  830. {{--error: function(apply_error){--}}
  831. {{--if(apply_error.status == 500 || apply_error.status == 400){--}}
  832. {{--disapperTooltip('remind',apply_error.responseJSON.message);--}}
  833. {{--} else {--}}
  834. {{--disapperTooltip('remind','申请失败!');--}}
  835. {{--}--}}
  836. {{--}--}}
  837. {{--});--}}
  838. {{--});--}}
  839. {{--}--}}
  840. {{--dialog.show();--}}
  841. {{--}else {--}}
  842. {{--qsToast({type:2,context: data.error});--}}
  843. {{--}--}}
  844. {{--},--}}
  845. {{--error: function(error){--}}
  846. {{--if(result.status == 500 || result.status == 400){--}}
  847. {{--disapperTooltip('remind',result.responseJSON.message);--}}
  848. {{--} else {--}}
  849. {{--disapperTooltip('remind','申请失败!');--}}
  850. {{--}--}}
  851. {{--}--}}
  852. {{--});--}}
  853. {{--}--}}
  854. {{--}else{--}}
  855. {{--trigger_login();--}}
  856. {{--}--}}
  857. {{--// var href= $(this).attr("href")--}}
  858. {{--// if(href=="javascript:;")--}}
  859. {{--// {--}}
  860. {{--// var jobs_id = $(this).attr("jobs_id");--}}
  861. {{--// if(qscms.resume_id){--}}
  862. {{--// $.getJSON(qscms.root+'?m=Mobile&c=AjaxPersonal&a=resume_apply',{jid:jobs_id},function(result){--}}
  863. {{--// if(result.status==1){--}}
  864. {{--// alert(result.msg);--}}
  865. {{--// }else{--}}
  866. {{--// alert(result.msg);--}}
  867. {{--// }--}}
  868. {{--// },'json');--}}
  869. {{--// }else{--}}
  870. {{--// alert('请选择简历');--}}
  871. {{--// }--}}
  872. {{--// }--}}
  873. {{--});--}}
  874. {{--};--}}
  875. $("#jobs_phone").on('click',function() {
  876. var href= $(this).attr("pho");
  877. if(href){
  878. var result = href.replace('tel:','');
  879. }else{
  880. var result = '';
  881. }
  882. if(result=='') {
  883. var shopping = document.getElementById("jobs_phone");
  884. var phone = shopping.getAttribute("phone");
  885. showFloatBox();
  886. $("#jobs_phone_menu").show();
  887. var height = window.innerHeight;
  888. var choose_menu_h = document.getElementById('jobs_phone_menu').offsetHeight;
  889. var top_ = (height-choose_menu_h)/2;
  890. $("#jobs_phone_menu").css("top",top_+"px");
  891. $("#jobs_phone_menu").css({"opacity":1,"z-index":9999});
  892. $(".but_right,.menu_bg_layer").on('click', function(event) {
  893. $("#jobs_phone_menu").hide();
  894. $(".menu_bg_layer").remove();
  895. });
  896. } else {
  897. window.location.href=href;
  898. }
  899. });
  900. /* 左侧 菜单*/
  901. function left_menu()
  902. {
  903. // 显示菜单
  904. $(".nav_btn_con").on("touchstart", function(){
  905. $(".reward_manager_list_con, .reward_manager_list_con_bg").addClass("on");
  906. });
  907. // 隐藏菜单
  908. $(".reward_manager_list_con_bg").on("touchstart", function(){
  909. $(".reward_manager_list_con, .reward_manager_list_con_bg").removeClass("on");
  910. });
  911. };
  912. /* 显示分享 覆盖层 */
  913. function share(){
  914. $(".wx_layer").show();
  915. };
  916. function share_(){
  917. $(".layer").show();
  918. };
  919. loading();
  920. left_menu();
  921. load_jobs(0,utype);
  922. // praise(company_id);
  923. // jobs_apply();
  924. if(getCookie('praise_'+company_id+'')==1)
  925. {
  926. $(".praise_btn").addClass('on').removeClass('praise_btn_click');
  927. }
  928. function trigger_login(){
  929. window.location = "{{route($sub_site.'mobile.login')}}";
  930. }
  931. </script>
  932. </html>