spring.blade.php 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495
  1. @extends('mobile.module.layouts.empty')
  2. @push('meta')
  3. @endpush
  4. @push('css')
  5. <link rel="stylesheet" href="{{theme_asset('mobile/css/news.css')}}">
  6. <link rel="stylesheet" href="{{theme_asset('mobile/css/online2021.css')}}?v=4">
  7. <link href="{{ theme_asset('mobile/css/lottery.css') }}" rel="stylesheet">
  8. @endpush
  9. @push('js')
  10. @endpush
  11. @section('content')
  12. <div class="online2021_header">
  13. <img src="{{theme_asset('mobile/images/spring/header_2022.jpg')}}?v=5">
  14. </div>
  15. <div class="online2021_title">
  16. <p>晋江聚才网线上招聘会大厅</p>
  17. </div>
  18. <div class="online2021_ad">
  19. <p>聚才找工作赠好礼助力找工作稳就业。看直播,找工作,近千个岗位,近万份豪礼在线等着您。</p>
  20. </div>
  21. <div class="online2021_special">
  22. <ul>
  23. <a href="{{route('mobile.active.spring_special')}}">
  24. <li>
  25. <div class="special_box">
  26. <p>>>全晋江<<</p>
  27. </div>
  28. </li>
  29. </a>
  30. <a href="{{route('mobile.active.spring_special_jkq')}}">
  31. <li>
  32. <div class="special_box">
  33. <p>>>经济开发区专区<<</p>
  34. </div>
  35. </li>
  36. </a>
  37. <a href="{{route('mobile.active.spring_special',['citycategory'=>'yinglinzhen'])}}">
  38. <li>
  39. <div class="special_box">
  40. <p>>>英林镇专区<<</p>
  41. </div>
  42. </li>
  43. </a>
  44. <a href="{{route('mobile.active.spring_special',['citycategory'=>'cizaozhen'])}}">
  45. <li>
  46. <div class="special_box">
  47. <p>>>磁灶镇专区<<</p>
  48. </div>
  49. </li>
  50. </a>
  51. {{--<a href="{{route('mobile.active.spring_special',['citycategory'=>'anhaizhen'])}}">
  52. <li>
  53. <div class="special_box">
  54. <p>>>安海镇专区<<</p>
  55. </div>
  56. </li>
  57. </a>
  58. <a href="{{route('mobile.active.spring_special',['citycategory'=>'xintangjiedao'])}}">
  59. <li>
  60. <div class="special_box">
  61. <p>>>新塘街道专区<<</p>
  62. </div>
  63. </li>
  64. </a>
  65. <a href="{{route('mobile.active.spring_special',['citycategory'=>'neikengzhen'])}}">
  66. <li>
  67. <div class="special_box">
  68. <p>>>内坑镇专区<<</p>
  69. </div>
  70. </li>
  71. </a>--}}
  72. </ul>
  73. </div>
  74. <div class="online2021_title">
  75. <p>晋江聚才网网络直播招聘会</p>
  76. </div>
  77. <div class="online2021_online">
  78. @foreach($live_list as $k => $v)
  79. <div class="news-list-item for-event {{$v['status']}}">
  80. <div class="news-info">
  81. <div class="thumbnail">
  82. <img src="{{$v['images']}}" border="0">
  83. </div>
  84. <div class="info to_live" data-url="{{$v['url']}}">
  85. <div class="line-one substring"><span style="color:#000000;font-weight:bold;">{{$v['name']}}</span></div>
  86. <div class="line-two font12">
  87. <img src="{{theme_asset('mobile/images/online2021/icon_time.png')}}">{{$v['time']}}
  88. </div>
  89. <div class="line-two font12 substring"></div>
  90. <div class="line-two font9 font-red">
  91. (扫描求职交流微信群,红包礼品等你拿)
  92. </div>
  93. </div>
  94. <div class="clear"></div>
  95. </div>
  96. </div>
  97. @endforeach
  98. </div>
  99. <div class="online2021_title">
  100. <p>晋江市新春线下招聘会</p>
  101. </div>
  102. <div class="online2021_job_fair" style="padding-top: 40px;padding-bottom: 40px;">
  103. <table border="1" style="width:90%;margin:0 auto 20px auto;" cellpadding="0" cellspacing="0">
  104. <tr>
  105. <th>场次</th>
  106. <th>时间</th>
  107. <th>地点</th>
  108. </tr>
  109. <tr>
  110. <td>综合性人才专场</td>
  111. <td>2月8日-10日(正月初八-初十)09:00-17:00</td>
  112. <td>晋江经济开发区五里万业汇商业广场(中源路)</td>
  113. </tr>
  114. <tr>
  115. <td>综合性人才专场</td>
  116. <td>2月8日(正月初八)09:00-12:00</td>
  117. <td>晋江市和平广场海峡青年人才社区</td>
  118. </tr>
  119. <tr>
  120. <td>毕业生专场</td>
  121. <td>2月11日(正月十一)14:00-17:00</td>
  122. <td>晋江市和平广场海峡共享空间一楼</td>
  123. </tr>
  124. <tr>
  125. <td>人力行政、财会电商专场</td>
  126. <td>2月12日(正月十二)14:00-17:00</td>
  127. <td>晋江市和平广场海峡共享空间一楼</td>
  128. </tr>
  129. <tr>
  130. <td>综合性人才专场</td>
  131. <td>2月15日(正月十五)14:00-17:00</td>
  132. <td>晋江市宝龙广场一楼中庭</td>
  133. </tr>
  134. <tr>
  135. <td>互联网+工业制造企业专场</td>
  136. <td>2月18日(正月十八)14:00-17:00</td>
  137. <td>晋江市阳光广场</td>
  138. </tr>
  139. </table>
  140. <div class="btn btn_one"><a href="https://mp.weixin.qq.com/s/p-bKrqC_BZckt0EJ2w0RLQ">了解详情</a></div>
  141. </div>
  142. <div class="online2021_title">
  143. <p>晋江市企业赴省外招聘会</p>
  144. </div>
  145. <div class="online2021_job_fair onine2021_out" style="padding-top: 40px;">
  146. <table border="1" style="width:90%;margin:0 auto 20px auto;" cellpadding="0" cellspacing="0">
  147. <tr>
  148. <th>时间</th>
  149. <th>路线安排</th>
  150. </tr>
  151. <tr>
  152. <td>2022年2月8日</td>
  153. <td>贵州关岭、晴隆劳务协作</td>
  154. </tr>
  155. <tr>
  156. <td>2022年2月10日</td>
  157. <td>贵州习水、绥阳劳务协作</td>
  158. </tr>
  159. <tr>
  160. <td>2022年2月份</td>
  161. <td>云南保山市劳务协作</td>
  162. </tr>
  163. <tr>
  164. <td>2022年2月份</td>
  165. <td>云南红河州劳务协作</td>
  166. </tr>
  167. </table>
  168. <div class="btn btn_one"><a href="javascript:showWechat()">点击报名</a></div>
  169. <div class="clear"></div>
  170. </div>
  171. <div class="online2021_title">
  172. <p>抽奖活动</p>
  173. </div>
  174. <div class="onine2021_lottery">
  175. @foreach ($images as $k => $v)
  176. <img src="{{ $v }}" id="gift-img{{$k}}" style="display:none;"/>
  177. @endforeach
  178. <div class="banner">
  179. <div class="bgbox">
  180. <div class="tabbox clearfix" id="tabbox">
  181. <div class="boxlist">
  182. <div class="turnplate">
  183. <canvas class="item" id="wheelcanvas" width="422px" height="422px"></canvas>
  184. <img class="pointer" src="{{ theme_asset('mobile/images/lottery/btn_start.png') }}"/>
  185. </div>
  186. </div>
  187. </div>
  188. </div>
  189. </div>
  190. <img class="lottery_logo" src="{{ theme_asset('mobile/images/online2021/lottery_logo.png') }}"/>
  191. <div class="content_box content_box_one">
  192. <img class="content_header" src="{{ theme_asset('mobile/images/online2021/lottery_description.png') }}?v=1">
  193. <p class="lottery_description">
  194. <span class="description_title">※入群欢迎礼:</span>
  195. <span class="description_content">活动期间,扫描直播专区二维码进入求职交流群,即可获得抽奖机会一次,100%中奖;</span>
  196. </p>
  197. <p class="lottery_description">
  198. <span class="description_title">※求职响应礼:</span>
  199. <span class="description_content">活动期间,在2022年晋江市新春公益线上招聘会投递简历,获得活动抽奖次数一次;</span>
  200. </p>
  201. <p class="lottery_description">
  202. <span class="description_title">※应聘成功礼:</span>
  203. <span class="description_content">活动期间,登录晋江聚才网参加云上招聘活动应聘成功,获得活动抽奖次数一次;</span>
  204. </p>
  205. <p class="lottery_description">
  206. <span class="description_title">※有福同享礼:</span>
  207. <span class="description_content">在晋江聚才网网络直播招聘会期间,邀请好友参加活动前三名获得好礼一份,前二十名获得活动抽奖次数1次;</span>
  208. </p>
  209. <p class="lottery_description">
  210. <span class="description_title">※直播红包雨:</span>
  211. <span class="description_content">在晋江聚才网网络直播招聘会期间,不定时将有红包雨发放;</span>
  212. </p>
  213. <p class="lottery_description">
  214. <span class="description_title">※线下招聘会参与礼:</span>
  215. <span class="description_content">2月8日-10日(正月初八至初十),参加晋江经济开发区线下招聘会,凭此页面可在现场“兑奖区”领取参与礼一份。</span>
  216. </p>
  217. <p class="lottery_description mt20">
  218. <span class="description_title black">领取方式:</span>
  219. <span class="description_content">班期间,晋江经济开发区人才服务共享中心进行登记兑奖。</span>
  220. </p>
  221. <p class="lottery_description">
  222. <span class="description_content">图片仅供参考,礼品以最终实物为准。</span>
  223. </p>
  224. <p class="lottery_description">
  225. <span class="description_content">晋江聚才网客服热线:0595-88223456。</span>
  226. </p>
  227. <p class="lottery_description">
  228. <span class="description_content">经济开发区领奖热线:0595-85200580。</span>
  229. </p>
  230. </div>
  231. <div class="content_box content_box_two">
  232. <img class="content_header" src="{{ theme_asset('mobile/images/online2021/lottery_gift.png') }}?v=1">
  233. <div class="grid">
  234. @foreach($prize as $v)
  235. <div class="grid_item">
  236. <div class="grid_item_content lw_hairline">
  237. <img class="grid_item_img" src="{{ upload_asset($v->prize_image) }}">
  238. <span class="grid_item_text">{{$v->prize_name}}</span>
  239. </div>
  240. </div>
  241. @endforeach
  242. </div>
  243. </div>
  244. <div class="content_box content_box_three">
  245. <img class="content_header" src="{{ theme_asset('mobile/images/online2021/lottery_win.png') }}?v=1">
  246. @if (!empty($user))
  247. @foreach($win as $k => $v)
  248. <div class="cell">
  249. <div class="title">
  250. <span>{{$k+1}}</span>
  251. </div>
  252. <div class="content">
  253. <img src="{{ upload_asset($v->prize->prize_image) }}">
  254. 恭喜你中了{{ $v->prize->prize_name }}。
  255. </div>
  256. <div class="time">{{date('Y-m-d',strtotime($v->created_at))}}</div>
  257. </div>
  258. @endforeach
  259. <a href="{{route('mobile.person.lottery')}}">
  260. <div class="btn btn_one">查看全部中奖记录</div>
  261. </a>
  262. @else
  263. <a href="{{route('mobile.person.lottery')}}">
  264. <div class="btn btn_one">登录获取中奖记录</div>
  265. </a>
  266. @endif
  267. </div>
  268. </div>
  269. <a href="javascript:void(0);" class="to_lottery">抽奖</a>
  270. @include('mobile.module.section.online_footer')
  271. @endsection
  272. @section('script')
  273. <script src="{{theme_asset('statistics/js/layer/mobile/layer.js')}}"></script>
  274. <script type="text/javascript" src="{{ theme_asset('mobile/js/jquery-1.10.2.js') }}"></script>
  275. <script type="text/javascript" src="{{ theme_asset('mobile/js/awardRotate.js') }}"></script>
  276. <script type="text/javascript">
  277. $('.to_lottery').click(function () {
  278. var top = $('.onine2021_lottery').offset().top;
  279. $(window).scrollTop(top - 80);
  280. });
  281. // 欢乐转盘
  282. var turnplate = {
  283. number: "{{$number}}", //次数
  284. ids: [], //id列表
  285. restaraunts: [], //大转盘奖品名称
  286. colors: [], //大转盘奖品区块对应背景颜色
  287. images: [], //图片列表
  288. outsideRadius: 140, //大转盘外圆的半径
  289. textRadius: 150, //大转盘奖品位置距离圆心的距离
  290. insideRadius: 68, //大转盘内圆的半径
  291. startAngle: 0, //开始角度
  292. randomRate: [], //控制获奖率,百分制(相加需等于100%),对应restaraunts(顺序需要保持一致),
  293. bRotate: false //false:停止;ture:旋转
  294. };
  295. $(document).ready(function () {
  296. //动态添加大转盘的奖品与奖品区域背景颜色
  297. // 欢乐转盘
  298. turnplate.ids = {!! json_encode($ids)!!};
  299. turnplate.restaraunts = {!! json_encode($restaraunts)!!};
  300. turnplate.colors = {!! json_encode($colors)!!};
  301. turnplate.images = {!! json_encode($images)!!};
  302. var rotateTimeOut = function () {
  303. $('#wheelcanvas').rotate({
  304. angle: 0,
  305. animateTo: 2160,
  306. duration: 8000,
  307. callback: function () {
  308. alert('网络超时,请检查您的网络设置!');
  309. }
  310. });
  311. };
  312. //欢乐旋转转盘 item:奖品位置; txt:提示语;
  313. var rotateFn = function (item, txt) {
  314. var angles = item * (360 / turnplate.restaraunts.length) - (360 / (turnplate.restaraunts.length * 2));
  315. if (angles < 270) {
  316. angles = 270 - angles;
  317. } else {
  318. angles = 360 - angles + 270;
  319. }
  320. $('#wheelcanvas').stopRotate();
  321. $('#wheelcanvas').rotate({
  322. angle: 0,
  323. animateTo: angles + 1800,
  324. duration: 8000,
  325. callback: function () {
  326. alert(txt);//欢乐转盘弹出框
  327. turnplate.bRotate = !turnplate.bRotate;
  328. }
  329. });
  330. };
  331. // 欢乐转盘
  332. $('.pointer').click(function () {
  333. if (turnplate.number == 0) {
  334. alert('您今天已抽过奖,请明天再来!');
  335. return;
  336. }
  337. turnplate.number--;
  338. $('#number').html(turnplate.number);
  339. if (turnplate.bRotate) return;
  340. turnplate.bRotate = !turnplate.bRotate;
  341. //获取随机数(奖品个数范围内)
  342. $.post('{{route("mobile.lottery.lottery_post")}}', {
  343. open_id: "{{$open_id}}",
  344. type: "{{$type}}",
  345. _token: "{{csrf_token()}}"
  346. }, function (json) {
  347. if (json.status) {
  348. var item = 0;
  349. for (var i = 0; i < turnplate.ids.length; i++) {
  350. if (turnplate.ids[i] == json.id) {
  351. item = i + 1;
  352. break;
  353. }
  354. }
  355. //奖品数量等于10,指针落在对应奖品区域的中心角度[252, 216, 180, 144, 108, 72, 36, 360, 324, 288]
  356. rotateFn(item, json.msg);
  357. } else {
  358. alert(json.msg);
  359. }
  360. }, 'json');
  361. });
  362. });
  363. //页面所有元素加载完毕后执行drawRouletteWheel()方法对转盘进行渲染
  364. window.onload = function () {
  365. drawRouletteWheel();// 欢乐转盘
  366. };
  367. // 欢乐转盘
  368. function drawRouletteWheel() {
  369. var canvas = document.getElementById("wheelcanvas");
  370. if (canvas.getContext) {
  371. //根据奖品个数计算圆周角度
  372. var arc = Math.PI / (turnplate.restaraunts.length / 2);
  373. var ctx = canvas.getContext("2d");
  374. //在给定矩形内清空一个矩形
  375. ctx.clearRect(0, 0, 422, 422);
  376. //strokeStyle 属性设置或返回用于笔触的颜色、渐变或模式
  377. ctx.strokeStyle = "#FFBE04";
  378. //font 属性设置或返回画布上文本内容的当前字体属性
  379. ctx.font = '16px Microsoft YaHei';
  380. for (var i = 0; i < turnplate.restaraunts.length; i++) {
  381. var angle = turnplate.startAngle + i * arc;
  382. ctx.fillStyle = turnplate.colors[i];
  383. ctx.beginPath();
  384. //arc(x,y,r,起始角,结束角,绘制方向) 方法创建弧/曲线(用于创建圆或部分圆)
  385. ctx.arc(211, 211, turnplate.outsideRadius, angle, angle + arc, false);
  386. ctx.arc(211, 211, turnplate.insideRadius, angle + arc, angle, true);
  387. ctx.stroke();
  388. ctx.fill();
  389. //锁画布(为了保存之前的画布状态)
  390. ctx.save();
  391. //----绘制奖品开始----
  392. ctx.fillStyle = "#E5302F";
  393. var text = turnplate.restaraunts[i];
  394. var line_height = 17;
  395. //translate方法重新映射画布上的 (0,0) 位置
  396. ctx.translate(211 + Math.cos(angle + arc / 2) * turnplate.textRadius, 211 + Math.sin(angle + arc / 2) * turnplate.textRadius);
  397. //rotate方法旋转当前的绘图
  398. ctx.rotate(angle + arc / 2 + Math.PI / 2);
  399. /** 下面代码根据奖品类型、奖品名称长度渲染不同效果,如字体、颜色、图片效果。(具体根据实际情况改变) **/
  400. if (text.indexOf("M") > 0) {//流量包
  401. var texts = text.split("M");
  402. for (var j = 0; j < texts.length; j++) {
  403. ctx.font = j == 0 ? 'bold 20px Microsoft YaHei' : '16px Microsoft YaHei';
  404. if (j == 0) {
  405. ctx.fillText(texts[j] + "M", -ctx.measureText(texts[j] + "M").width / 2, j * line_height);
  406. } else {
  407. ctx.fillText(texts[j], -ctx.measureText(texts[j]).width / 2, j * line_height);
  408. }
  409. }
  410. } else if (text.indexOf("M") == -1 && text.length > 6) {//奖品名称长度超过一定范围
  411. text = text.substring(0, 6) + "||" + text.substring(6);
  412. var texts = text.split("||");
  413. for (var j = 0; j < texts.length; j++) {
  414. ctx.fillText(texts[j], -ctx.measureText(texts[j]).width / 2, j * line_height);
  415. }
  416. } else {
  417. //在画布上绘制填色的文本。文本的默认颜色是黑色
  418. //measureText()方法返回包含一个对象,该对象包含以像素计的指定字体宽度
  419. ctx.fillText(text, -ctx.measureText(text).width / 2, 0);
  420. }
  421. //添加对应图标
  422. var img = document.getElementById("gift-img" + i);
  423. img.onload = function () {
  424. ctx.drawImage(img, -18, 25, 40, 40);
  425. };
  426. ctx.drawImage(img, -18, 25, 40, 40);
  427. //把当前画布返回(调整)到上一个save()状态之前
  428. ctx.restore();
  429. //----绘制奖品结束----
  430. }
  431. }
  432. }
  433. </script>
  434. <script>
  435. $('.line-two .more').click(function (event) {
  436. var company = $(this).data('company').split(',');
  437. var str = '';
  438. for (var i = 0; i < company.length; i++) {
  439. str += '<p>' + company[i] + '</p>'; //分割后的字符输出
  440. }
  441. layer.open({
  442. title: [
  443. '参会企业',
  444. 'background-color: #ec0d00; color:#fff;'
  445. ]
  446. , content: str
  447. , btn: '我知道了'
  448. });
  449. event.stopPropagation();
  450. });
  451. $('.to_live').click(function(){
  452. url = $(this).data('url');
  453. location.href = url;
  454. });
  455. function showWechat() {
  456. var str='<img style="width:100%;display:block;margin:0 auto;" src="{{theme_asset('app/images/online2021/province_out.jpg')}}"/><p style="text-align:center;font-size:18px;color:#EC0C00;">添加微信好友报名参加赴省外招聘活动</p>';
  457. layer.open({
  458. title: [
  459. '微信扫码',
  460. 'background-color: #ec0d00; color:#fff;'
  461. ]
  462. , content: str
  463. , btn: '我知道了'
  464. });
  465. }
  466. </script>
  467. @endsection