spring.blade.php 22 KB

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