spring.blade.php 21 KB

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