123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495 |
- @extends('mobile.module.layouts.empty')
- @push('meta')
- @endpush
- @push('css')
- <link rel="stylesheet" href="{{theme_asset('mobile/css/news.css')}}">
- <link rel="stylesheet" href="{{theme_asset('mobile/css/online2021.css')}}?v=4">
- <link href="{{ theme_asset('mobile/css/lottery.css') }}" rel="stylesheet">
- @endpush
- @push('js')
- @endpush
- @section('content')
- <div class="online2021_header">
- <img src="{{theme_asset('mobile/images/spring/header_2022.jpg')}}?v=5">
- </div>
- <div class="online2021_title">
- <p>晋江聚才网线上招聘会大厅</p>
- </div>
- <div class="online2021_ad">
- <p>聚才找工作赠好礼助力找工作稳就业。看直播,找工作,近千个岗位,近万份豪礼在线等着您。</p>
- </div>
- <div class="online2021_special">
- <ul>
- <a href="{{route('mobile.active.spring_special')}}">
- <li>
- <div class="special_box">
- <p>>>全晋江<<</p>
- </div>
- </li>
- </a>
- <a href="{{route('mobile.active.spring_special_jkq')}}">
- <li>
- <div class="special_box">
- <p>>>经济开发区专区<<</p>
- </div>
- </li>
- </a>
- <a href="{{route('mobile.active.spring_special',['citycategory'=>'yinglinzhen'])}}">
- <li>
- <div class="special_box">
- <p>>>英林镇专区<<</p>
- </div>
- </li>
- </a>
- <a href="{{route('mobile.active.spring_special',['citycategory'=>'cizaozhen'])}}">
- <li>
- <div class="special_box">
- <p>>>磁灶镇专区<<</p>
- </div>
- </li>
- </a>
- {{--<a href="{{route('mobile.active.spring_special',['citycategory'=>'anhaizhen'])}}">
- <li>
- <div class="special_box">
- <p>>>安海镇专区<<</p>
- </div>
- </li>
- </a>
- <a href="{{route('mobile.active.spring_special',['citycategory'=>'xintangjiedao'])}}">
- <li>
- <div class="special_box">
- <p>>>新塘街道专区<<</p>
- </div>
- </li>
- </a>
- <a href="{{route('mobile.active.spring_special',['citycategory'=>'neikengzhen'])}}">
- <li>
- <div class="special_box">
- <p>>>内坑镇专区<<</p>
- </div>
- </li>
- </a>--}}
- </ul>
- </div>
- <div class="online2021_title">
- <p>晋江聚才网网络直播招聘会</p>
- </div>
- <div class="online2021_online">
- @foreach($live_list as $k => $v)
- <div class="news-list-item for-event {{$v['status']}}">
- <div class="news-info">
- <div class="thumbnail">
- <img src="{{$v['images']}}" border="0">
- </div>
- <div class="info to_live" data-url="{{$v['url']}}">
- <div class="line-one substring"><span style="color:#000000;font-weight:bold;">{{$v['name']}}</span></div>
- <div class="line-two font12">
- <img src="{{theme_asset('mobile/images/online2021/icon_time.png')}}">{{$v['time']}}
- </div>
- <div class="line-two font12 substring"></div>
- <div class="line-two font9 font-red">
- (扫描求职交流微信群,红包礼品等你拿)
- </div>
- </div>
- <div class="clear"></div>
- </div>
- </div>
- @endforeach
- </div>
- <div class="online2021_title">
- <p>晋江市新春线下招聘会</p>
- </div>
- <div class="online2021_job_fair" style="padding-top: 40px;padding-bottom: 40px;">
- <table border="1" style="width:90%;margin:0 auto 20px auto;" cellpadding="0" cellspacing="0">
- <tr>
- <th>场次</th>
- <th>时间</th>
- <th>地点</th>
- </tr>
- <tr>
- <td>综合性人才专场</td>
- <td>2月8日-10日(正月初八-初十)09:00-17:00</td>
- <td>晋江经济开发区五里万业汇商业广场(中源路)</td>
- </tr>
- <tr>
- <td>综合性人才专场</td>
- <td>2月8日(正月初八)09:00-12:00</td>
- <td>晋江市和平广场海峡青年人才社区</td>
- </tr>
- <tr>
- <td>毕业生专场</td>
- <td>2月11日(正月十一)14:00-17:00</td>
- <td>晋江市和平广场海峡共享空间一楼</td>
- </tr>
- <tr>
- <td>人力行政、财会电商专场</td>
- <td>2月12日(正月十二)14:00-17:00</td>
- <td>晋江市和平广场海峡共享空间一楼</td>
- </tr>
- <tr>
- <td>综合性人才专场</td>
- <td>2月15日(正月十五)14:00-17:00</td>
- <td>晋江市宝龙广场一楼中庭</td>
- </tr>
- <tr>
- <td>互联网+工业制造企业专场</td>
- <td>2月18日(正月十八)14:00-17:00</td>
- <td>晋江市阳光广场</td>
- </tr>
- </table>
- <div class="btn btn_one"><a href="https://mp.weixin.qq.com/s/p-bKrqC_BZckt0EJ2w0RLQ">了解详情</a></div>
- </div>
- <div class="online2021_title">
- <p>晋江市企业赴省外招聘会</p>
- </div>
- <div class="online2021_job_fair onine2021_out" style="padding-top: 40px;">
- <table border="1" style="width:90%;margin:0 auto 20px auto;" cellpadding="0" cellspacing="0">
- <tr>
- <th>时间</th>
- <th>路线安排</th>
- </tr>
- <tr>
- <td>2022年2月8日</td>
- <td>贵州关岭、晴隆劳务协作</td>
- </tr>
- <tr>
- <td>2022年2月10日</td>
- <td>贵州习水、绥阳劳务协作</td>
- </tr>
- <tr>
- <td>2022年2月份</td>
- <td>云南保山市劳务协作</td>
- </tr>
- <tr>
- <td>2022年2月份</td>
- <td>云南红河州劳务协作</td>
- </tr>
- </table>
- <div class="btn btn_one"><a href="javascript:showWechat()">点击报名</a></div>
- <div class="clear"></div>
- </div>
- <div class="online2021_title">
- <p>抽奖活动</p>
- </div>
- <div class="onine2021_lottery">
- @foreach ($images as $k => $v)
- <img src="{{ $v }}" id="gift-img{{$k}}" style="display:none;"/>
- @endforeach
- <div class="banner">
- <div class="bgbox">
- <div class="tabbox clearfix" id="tabbox">
- <div class="boxlist">
- <div class="turnplate">
- <canvas class="item" id="wheelcanvas" width="422px" height="422px"></canvas>
- <img class="pointer" src="{{ theme_asset('mobile/images/lottery/btn_start.png') }}"/>
- </div>
- </div>
- </div>
- </div>
- </div>
- <img class="lottery_logo" src="{{ theme_asset('mobile/images/online2021/lottery_logo.png') }}"/>
- <div class="content_box content_box_one">
- <img class="content_header" src="{{ theme_asset('mobile/images/online2021/lottery_description.png') }}?v=1">
- <p class="lottery_description">
- <span class="description_title">※入群欢迎礼:</span>
- <span class="description_content">活动期间,扫描直播专区二维码进入求职交流群,即可获得抽奖机会一次,100%中奖;</span>
- </p>
- <p class="lottery_description">
- <span class="description_title">※求职响应礼:</span>
- <span class="description_content">活动期间,在2022年晋江市新春公益线上招聘会投递简历,获得活动抽奖次数一次;</span>
- </p>
- <p class="lottery_description">
- <span class="description_title">※应聘成功礼:</span>
- <span class="description_content">活动期间,登录晋江聚才网参加云上招聘活动应聘成功,获得活动抽奖次数一次;</span>
- </p>
- <p class="lottery_description">
- <span class="description_title">※有福同享礼:</span>
- <span class="description_content">在晋江聚才网网络直播招聘会期间,邀请好友参加活动前三名获得好礼一份,前二十名获得活动抽奖次数1次;</span>
- </p>
- <p class="lottery_description">
- <span class="description_title">※直播红包雨:</span>
- <span class="description_content">在晋江聚才网网络直播招聘会期间,不定时将有红包雨发放;</span>
- </p>
- <p class="lottery_description">
- <span class="description_title">※线下招聘会参与礼:</span>
- <span class="description_content">2月8日-10日(正月初八至初十),参加晋江经济开发区线下招聘会,凭此页面可在现场“兑奖区”领取参与礼一份。</span>
- </p>
- <p class="lottery_description mt20">
- <span class="description_title black">领取方式:</span>
- <span class="description_content">班期间,晋江经济开发区人才服务共享中心进行登记兑奖。</span>
- </p>
- <p class="lottery_description">
- <span class="description_content">图片仅供参考,礼品以最终实物为准。</span>
- </p>
- <p class="lottery_description">
- <span class="description_content">晋江聚才网客服热线:0595-88223456。</span>
- </p>
- <p class="lottery_description">
- <span class="description_content">经济开发区领奖热线:0595-85200580。</span>
- </p>
- </div>
- <div class="content_box content_box_two">
- <img class="content_header" src="{{ theme_asset('mobile/images/online2021/lottery_gift.png') }}?v=1">
- <div class="grid">
- @foreach($prize as $v)
- <div class="grid_item">
- <div class="grid_item_content lw_hairline">
- <img class="grid_item_img" src="{{ upload_asset($v->prize_image) }}">
- <span class="grid_item_text">{{$v->prize_name}}</span>
- </div>
- </div>
- @endforeach
- </div>
- </div>
- <div class="content_box content_box_three">
- <img class="content_header" src="{{ theme_asset('mobile/images/online2021/lottery_win.png') }}?v=1">
- @if (!empty($user))
- @foreach($win as $k => $v)
- <div class="cell">
- <div class="title">
- <span>{{$k+1}}</span>
- </div>
- <div class="content">
- <img src="{{ upload_asset($v->prize->prize_image) }}">
- 恭喜你中了{{ $v->prize->prize_name }}。
- </div>
- <div class="time">{{date('Y-m-d',strtotime($v->created_at))}}</div>
- </div>
- @endforeach
- <a href="{{route('mobile.person.lottery')}}">
- <div class="btn btn_one">查看全部中奖记录</div>
- </a>
- @else
- <a href="{{route('mobile.person.lottery')}}">
- <div class="btn btn_one">登录获取中奖记录</div>
- </a>
- @endif
- </div>
- </div>
- <a href="javascript:void(0);" class="to_lottery">抽奖</a>
- @include('mobile.module.section.online_footer')
- @endsection
- @section('script')
- <script src="{{theme_asset('statistics/js/layer/mobile/layer.js')}}"></script>
- <script type="text/javascript" src="{{ theme_asset('mobile/js/jquery-1.10.2.js') }}"></script>
- <script type="text/javascript" src="{{ theme_asset('mobile/js/awardRotate.js') }}"></script>
- <script type="text/javascript">
- $('.to_lottery').click(function () {
- var top = $('.onine2021_lottery').offset().top;
- $(window).scrollTop(top - 80);
- });
- // 欢乐转盘
- var turnplate = {
- number: "{{$number}}", //次数
- ids: [], //id列表
- restaraunts: [], //大转盘奖品名称
- colors: [], //大转盘奖品区块对应背景颜色
- images: [], //图片列表
- outsideRadius: 140, //大转盘外圆的半径
- textRadius: 150, //大转盘奖品位置距离圆心的距离
- insideRadius: 68, //大转盘内圆的半径
- startAngle: 0, //开始角度
- randomRate: [], //控制获奖率,百分制(相加需等于100%),对应restaraunts(顺序需要保持一致),
- bRotate: false //false:停止;ture:旋转
- };
- $(document).ready(function () {
- //动态添加大转盘的奖品与奖品区域背景颜色
- // 欢乐转盘
- turnplate.ids = {!! json_encode($ids)!!};
- turnplate.restaraunts = {!! json_encode($restaraunts)!!};
- turnplate.colors = {!! json_encode($colors)!!};
- turnplate.images = {!! json_encode($images)!!};
- var rotateTimeOut = function () {
- $('#wheelcanvas').rotate({
- angle: 0,
- animateTo: 2160,
- duration: 8000,
- callback: function () {
- alert('网络超时,请检查您的网络设置!');
- }
- });
- };
- //欢乐旋转转盘 item:奖品位置; txt:提示语;
- var rotateFn = function (item, txt) {
- var angles = item * (360 / turnplate.restaraunts.length) - (360 / (turnplate.restaraunts.length * 2));
- if (angles < 270) {
- angles = 270 - angles;
- } else {
- angles = 360 - angles + 270;
- }
- $('#wheelcanvas').stopRotate();
- $('#wheelcanvas').rotate({
- angle: 0,
- animateTo: angles + 1800,
- duration: 8000,
- callback: function () {
- alert(txt);//欢乐转盘弹出框
- turnplate.bRotate = !turnplate.bRotate;
- }
- });
- };
- // 欢乐转盘
- $('.pointer').click(function () {
- if (turnplate.number == 0) {
- alert('您今天已抽过奖,请明天再来!');
- return;
- }
- turnplate.number--;
- $('#number').html(turnplate.number);
- if (turnplate.bRotate) return;
- turnplate.bRotate = !turnplate.bRotate;
- //获取随机数(奖品个数范围内)
- $.post('{{route("mobile.lottery.lottery_post")}}', {
- open_id: "{{$open_id}}",
- type: "{{$type}}",
- _token: "{{csrf_token()}}"
- }, function (json) {
- if (json.status) {
- var item = 0;
- for (var i = 0; i < turnplate.ids.length; i++) {
- if (turnplate.ids[i] == json.id) {
- item = i + 1;
- break;
- }
- }
- //奖品数量等于10,指针落在对应奖品区域的中心角度[252, 216, 180, 144, 108, 72, 36, 360, 324, 288]
- rotateFn(item, json.msg);
- } else {
- alert(json.msg);
- }
- }, 'json');
- });
- });
- //页面所有元素加载完毕后执行drawRouletteWheel()方法对转盘进行渲染
- window.onload = function () {
- drawRouletteWheel();// 欢乐转盘
- };
- // 欢乐转盘
- function drawRouletteWheel() {
- var canvas = document.getElementById("wheelcanvas");
- if (canvas.getContext) {
- //根据奖品个数计算圆周角度
- var arc = Math.PI / (turnplate.restaraunts.length / 2);
- var ctx = canvas.getContext("2d");
- //在给定矩形内清空一个矩形
- ctx.clearRect(0, 0, 422, 422);
- //strokeStyle 属性设置或返回用于笔触的颜色、渐变或模式
- ctx.strokeStyle = "#FFBE04";
- //font 属性设置或返回画布上文本内容的当前字体属性
- ctx.font = '16px Microsoft YaHei';
- for (var i = 0; i < turnplate.restaraunts.length; i++) {
- var angle = turnplate.startAngle + i * arc;
- ctx.fillStyle = turnplate.colors[i];
- ctx.beginPath();
- //arc(x,y,r,起始角,结束角,绘制方向) 方法创建弧/曲线(用于创建圆或部分圆)
- ctx.arc(211, 211, turnplate.outsideRadius, angle, angle + arc, false);
- ctx.arc(211, 211, turnplate.insideRadius, angle + arc, angle, true);
- ctx.stroke();
- ctx.fill();
- //锁画布(为了保存之前的画布状态)
- ctx.save();
- //----绘制奖品开始----
- ctx.fillStyle = "#E5302F";
- var text = turnplate.restaraunts[i];
- var line_height = 17;
- //translate方法重新映射画布上的 (0,0) 位置
- ctx.translate(211 + Math.cos(angle + arc / 2) * turnplate.textRadius, 211 + Math.sin(angle + arc / 2) * turnplate.textRadius);
- //rotate方法旋转当前的绘图
- ctx.rotate(angle + arc / 2 + Math.PI / 2);
- /** 下面代码根据奖品类型、奖品名称长度渲染不同效果,如字体、颜色、图片效果。(具体根据实际情况改变) **/
- if (text.indexOf("M") > 0) {//流量包
- var texts = text.split("M");
- for (var j = 0; j < texts.length; j++) {
- ctx.font = j == 0 ? 'bold 20px Microsoft YaHei' : '16px Microsoft YaHei';
- if (j == 0) {
- ctx.fillText(texts[j] + "M", -ctx.measureText(texts[j] + "M").width / 2, j * line_height);
- } else {
- ctx.fillText(texts[j], -ctx.measureText(texts[j]).width / 2, j * line_height);
- }
- }
- } else if (text.indexOf("M") == -1 && text.length > 6) {//奖品名称长度超过一定范围
- text = text.substring(0, 6) + "||" + text.substring(6);
- var texts = text.split("||");
- for (var j = 0; j < texts.length; j++) {
- ctx.fillText(texts[j], -ctx.measureText(texts[j]).width / 2, j * line_height);
- }
- } else {
- //在画布上绘制填色的文本。文本的默认颜色是黑色
- //measureText()方法返回包含一个对象,该对象包含以像素计的指定字体宽度
- ctx.fillText(text, -ctx.measureText(text).width / 2, 0);
- }
- //添加对应图标
- var img = document.getElementById("gift-img" + i);
- img.onload = function () {
- ctx.drawImage(img, -18, 25, 40, 40);
- };
- ctx.drawImage(img, -18, 25, 40, 40);
- //把当前画布返回(调整)到上一个save()状态之前
- ctx.restore();
- //----绘制奖品结束----
- }
- }
- }
- </script>
- <script>
- $('.line-two .more').click(function (event) {
- var company = $(this).data('company').split(',');
- var str = '';
- for (var i = 0; i < company.length; i++) {
- str += '<p>' + company[i] + '</p>'; //分割后的字符输出
- }
- layer.open({
- title: [
- '参会企业',
- 'background-color: #ec0d00; color:#fff;'
- ]
- , content: str
- , btn: '我知道了'
- });
- event.stopPropagation();
- });
- $('.to_live').click(function(){
- url = $(this).data('url');
- location.href = url;
- });
- function showWechat() {
- 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>';
- layer.open({
- title: [
- '微信扫码',
- 'background-color: #ec0d00; color:#fff;'
- ]
- , content: str
- , btn: '我知道了'
- });
- }
- </script>
- @endsection
|