123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- define(['template', 'native', 'config'], function (template, native, config) {
- function back(event) {
- event.preventDefault();
- $(document).trigger('spa:navigate', {
- hash: ''
- });
- }
- return {
- title: '壹管家保洁师招聘',
- body: '',
- init: function (pageData, dtd) {
- var $view = this;
- var $doc = $(document);
- var tpl = template('hire/index', {
- showNavBar: !config.isWX && !config.isChubao
- });
- $('.spa-page-body', $view).html(tpl);
- setTimeout(function () {
- pageData.scroll = new IScroll('#hireScroll');
- }, 50);
- //返回
- $.newTouch('.back-button', function (event) {
- back.call(this, event);
- }, $view);
- $view.on('tapBackButton', function (event) {
- back.call(this, event);
- });
- $view.on('swipeRight', function (event) {
- back.call(this, event);
- });
- // setTimeout(function () {
- // //获取video
- // var oLiveVideo=document.getElementById("liveVideo");
- // //获取canvas画布
- // var oLiveCanvas=document.getElementById("liveCanvas");
- // //设置画布
- // var oLiveCanvas2D=oLiveCanvas.getContext('2d');
- // //设置setinterval定时器
- // var bLiveVideoTimer=null;
- // //监听播放
- // oLiveVideo.addEventListener('play',function() {
- // bLiveVideoTimer=setInterval(function() {
- // oLiveCanvas2D.drawImage(myPlayer,0,0,640,320);
- // },20);
- // },false);
- // //监听暂停
- // oLiveVideo.addEventListener('pause',function() {
- // clearInterval(bLiveVideoTimer);
- // },false);
- // //监听结束
- // oLiveVideo.addEventListener('ended',function() {
- // clearInterval(bLiveVideoTimer);
- // },false);
- // },500);
- //客服电话
- $.newTouch('.service-telephone', function (event) {
- event.preventDefault();
- native.call('021-62109097');
- }, $view);
- dtd.resolve();
- }
- }
- })
|