com.blade.php 39 KB

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