diff --git a/happyfri/static/img/1-1.jpg b/happyfri/static/img/1-1.jpg index 7507380..7421e05 100644 Binary files a/happyfri/static/img/1-1.jpg and b/happyfri/static/img/1-1.jpg differ diff --git a/happyfri/static/img/1-2.png b/happyfri/static/img/1-2.png index cc30c4c..3c8dbe6 100644 Binary files a/happyfri/static/img/1-2.png and b/happyfri/static/img/1-2.png differ diff --git a/happyfri/static/js/app.js b/happyfri/static/js/app.js index d7d7565..ad432f3 100644 --- a/happyfri/static/js/app.js +++ b/happyfri/static/js/app.js @@ -1,8 +1,8 @@ -webpackJsonp([5,3],{0:function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var o=n(63),a=i(o),r=n(141),c=i(r),u=n(71),s=i(u),l=n(73),d=i(l),p=n(10),f=i(p),h=n(69),m=i(h),v=n(11);n(122),n(70),"addEventListener"in document&&document.addEventListener("DOMContentLoaded",function(){m.default.attach(document.body)},!1),a.default.use(c.default);var g=new c.default({routes:s.default}),E=new Image;E.src=v.basePath+"static/img/1-1.jpg";var w=window.location.href;/users_id=/gi.test(w)||(window.location.href="http://wxinterface.putaoevent.com?wx_account_id="+v.weixinOrder+"&callback_url="+v.basePath+"?"+v.activeTopicId);var k=w.split("#")[0];(0,f.default)("GET","http://wxinterface.putaoevent.com/jssdk?wx_account_id="+v.weixinOrder+"&callback_url="+v.basePath+"&url="+k).then(function(t){wx.config({debug:!1,appId:t.appId,timestamp:t.timestamp,nonceStr:t.nonceStr,signature:t.signature,jsApiList:["onMenuShareTimeline","onMenuShareAppMessage"]})}),wx.ready(function(){wx.onMenuShareTimeline({title:"第一个题目,进来才知道",link:v.basePath+"?"+v.activeTopicId,imgUrl:v.basePath+"pthome.jpeg"}),wx.onMenuShareAppMessage({title:"第一个题目,进来才知道",desc:"这些知识我打赌你一个都不知道",link:v.basePath+"?"+v.activeTopicId,imgUrl:v.basePath+"pthome.jpeg",type:"link",dataUrl:""})}),new a.default({router:g,store:d.default}).$mount("#app")},10:function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(48),a=i(o),r=n(77),c=i(r);e.default=function(t,e){return new c.default(function(n,i){var o=void 0;o=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject,o.open(t,e,!0),o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o.onreadystatechange=function(){if(4==o.readyState&&200==o.status){var t=o.response;"object"!==("undefined"==typeof t?"undefined":(0,a.default)(t))&&(t=JSON.parse(t)),n(t)}},o.send()})}},11:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="http://h5.putaoevent.com/happyfri/",o="http://h5.putaoevent.com/happyfri/",a=["static/img/2-1.png","static/img/4-1.jpg","static/img/4-2.png","static/img/4-3.png","static/img/4-4.png","static/img/5-2.png"],r=1,c=window.location.href,u=c.match(/active_topic_id=\d+/gi)&&c.match(/active_topic_id=\d+/gi)[0]||"";e.targetUrl=i,e.basePath=o,e.urlArr=a,e.weixinOrder=r,e.activeTopicId=u},65:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={}},69:function(t,e,n){function i(t){return t&&t.__esModule?t:{default:t}}var o,a=n(48),r=i(a);!function(){"use strict";/** +webpackJsonp([5,3],{0:function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}var o=n(63),a=i(o),r=n(141),c=i(r),s=n(71),u=i(s),d=n(73),l=i(d),p=n(10),f=i(p),h=n(69),m=i(h),v=n(11);n(122),n(70),"addEventListener"in document&&document.addEventListener("DOMContentLoaded",function(){m.default.attach(document.body)},!1),a.default.use(c.default);var _=new c.default({routes:u.default}),g=new Image;g.src=v.basePath+"static/img/1-1.jpg";var w=window.location.href;!/users_id=/gi.test(w);var E=w.split("#")[0];(0,f.default)("GET","http://wxinterface.putaoevent.com/jssdk?wx_account_id="+v.weixinOrder+"&callback_url="+v.basePath+"&url="+E).then(function(t){wx.config({debug:!1,appId:t.appId,timestamp:t.timestamp,nonceStr:t.nonceStr,signature:t.signature,jsApiList:["onMenuShareTimeline","onMenuShareAppMessage"]})}),wx.ready(function(){wx.onMenuShareTimeline({title:"第一个题目,进来才知道",link:v.basePath+"?"+v.activeTopicId,imgUrl:v.basePath+"pthome.jpeg"}),wx.onMenuShareAppMessage({title:"第一个题目,进来才知道",desc:"这些知识我打赌你一个都不知道",link:v.basePath+"?"+v.activeTopicId,imgUrl:v.basePath+"pthome.jpeg",type:"link",dataUrl:""})}),new a.default({router:_,store:l.default}).$mount("#app")},10:function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(48),a=i(o),r=n(77),c=i(r);e.default=function(t,e){return new c.default(function(n,i){var o=void 0;o=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject,o.open(t,e,!0),o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o.onreadystatechange=function(){if(4==o.readyState&&200==o.status){var t=o.response;"object"!==("undefined"==typeof t?"undefined":(0,a.default)(t))&&(t=JSON.parse(t)),n(t)}},o.send()})}},11:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="http://h5.putaoevent.com/happyfri/",o="http://h5.putaoevent.com/happyfri/",a=["static/img/2-1.png","static/img/4-1.jpg","static/img/4-2.png","static/img/4-3.png","static/img/4-4.png","static/img/5-2.png"],r=1,c=window.location.href,s=c.match(/active_topic_id=\d+/gi)&&c.match(/active_topic_id=\d+/gi)[0]||"";e.targetUrl=i,e.basePath=o,e.urlArr=a,e.weixinOrder=r,e.activeTopicId=s},65:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={}},69:function(t,e,n){function i(t){return t&&t.__esModule?t:{default:t}}var o,a=n(48),r=i(a);!function(){"use strict";/** * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs. * * @codingstandard ftlabs-jsv2 * @copyright The Financial Times Limited [All Rights Reserved] * @license MIT License (see LICENSE.txt) */ -function i(t,e){function n(t,e){return function(){return t.apply(e,arguments)}}var o;if(e=e||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=e.touchBoundary||10,this.layer=t,this.tapDelay=e.tapDelay||200,this.tapTimeout=e.tapTimeout||700,!i.notNeeded(t)){for(var a=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],r=this,u=0,s=a.length;u=0,c=navigator.userAgent.indexOf("Android")>0&&!a,u=/iP(ad|hone|od)/.test(navigator.userAgent)&&!a,s=u&&/OS 4_\d(_\d)?/.test(navigator.userAgent),l=u&&/OS [6-7]_\d/.test(navigator.userAgent),d=navigator.userAgent.indexOf("BB10")>0;i.prototype.needsClick=function(t){switch(t.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(t.disabled)return!0;break;case"input":if(u&&"file"===t.type||t.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(t.className)},i.prototype.needsFocus=function(t){switch(t.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!c;case"input":switch(t.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!t.disabled&&!t.readOnly;default:return/\bneedsfocus\b/.test(t.className)}},i.prototype.sendClick=function(t,e){var n,i;document.activeElement&&document.activeElement!==t&&document.activeElement.blur(),i=e.changedTouches[0],n=document.createEvent("MouseEvents"),n.initMouseEvent(this.determineEventType(t),!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),n.forwardedTouchEvent=!0,t.dispatchEvent(n)},i.prototype.determineEventType=function(t){return c&&"select"===t.tagName.toLowerCase()?"mousedown":"click"},i.prototype.focus=function(t){var e;u&&t.setSelectionRange&&0!==t.type.indexOf("date")&&"time"!==t.type&&"month"!==t.type?(e=t.value.length,t.setSelectionRange(e,e)):t.focus()},i.prototype.updateScrollParent=function(t){var e,n;if(e=t.fastClickScrollParent,!e||!e.contains(t)){n=t;do{if(n.scrollHeight>n.offsetHeight){e=n,t.fastClickScrollParent=n;break}n=n.parentElement}while(n)}e&&(e.fastClickLastScrollTop=e.scrollTop)},i.prototype.getTargetElementFromEventTarget=function(t){return t.nodeType===Node.TEXT_NODE?t.parentNode:t},i.prototype.onTouchStart=function(t){var e,n,i;if(t.targetTouches.length>1)return!0;if(e=this.getTargetElementFromEventTarget(t.target),n=t.targetTouches[0],u){if(i=window.getSelection(),i.rangeCount&&!i.isCollapsed)return!0;if(!s){if(n.identifier&&n.identifier===this.lastTouchIdentifier)return t.preventDefault(),!1;this.lastTouchIdentifier=n.identifier,this.updateScrollParent(e)}}return this.trackingClick=!0,this.trackingClickStart=t.timeStamp,this.targetElement=e,this.touchStartX=n.pageX,this.touchStartY=n.pageY,t.timeStamp-this.lastClickTimen||Math.abs(e.pageY-this.touchStartY)>n},i.prototype.onTouchMove=function(t){return!this.trackingClick||((this.targetElement!==this.getTargetElementFromEventTarget(t.target)||this.touchHasMoved(t))&&(this.trackingClick=!1,this.targetElement=null),!0)},i.prototype.findControl=function(t){return void 0!==t.control?t.control:t.htmlFor?document.getElementById(t.htmlFor):t.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},i.prototype.onTouchEnd=function(t){var e,n,i,o,a,r=this.targetElement;if(!this.trackingClick)return!0;if(t.timeStamp-this.lastClickTimethis.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=t.timeStamp,n=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,l&&(a=t.changedTouches[0],r=document.elementFromPoint(a.pageX-window.pageXOffset,a.pageY-window.pageYOffset)||r,r.fastClickScrollParent=this.targetElement.fastClickScrollParent),i=r.tagName.toLowerCase(),"label"===i){if(e=this.findControl(r)){if(this.focus(r),c)return!1;r=e}}else if(this.needsFocus(r))return t.timeStamp-n>100||u&&window.top!==window&&"input"===i?(this.targetElement=null,!1):(this.focus(r),this.sendClick(r,t),u&&"select"===i||(this.targetElement=null,t.preventDefault()),!1);return!(!u||s||(o=r.fastClickScrollParent,!o||o.fastClickLastScrollTop===o.scrollTop))||(this.needsClick(r)||(t.preventDefault(),this.sendClick(r,t)),!1)},i.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},i.prototype.onMouse=function(t){return!this.targetElement||(!!t.forwardedTouchEvent||(!t.cancelable||(!(!this.needsClick(this.targetElement)||this.cancelNextClick)||(t.stopImmediatePropagation?t.stopImmediatePropagation():t.propagationStopped=!0,t.stopPropagation(),t.preventDefault(),!1))))},i.prototype.onClick=function(t){var e;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===t.target.type&&0===t.detail||(e=this.onMouse(t),e||(this.targetElement=null),e)},i.prototype.destroy=function(){var t=this.layer;c&&(t.removeEventListener("mouseover",this.onMouse,!0),t.removeEventListener("mousedown",this.onMouse,!0),t.removeEventListener("mouseup",this.onMouse,!0)),t.removeEventListener("click",this.onClick,!0),t.removeEventListener("touchstart",this.onTouchStart,!1),t.removeEventListener("touchmove",this.onTouchMove,!1),t.removeEventListener("touchend",this.onTouchEnd,!1),t.removeEventListener("touchcancel",this.onTouchCancel,!1)},i.notNeeded=function(t){var e,n,i,o;if("undefined"==typeof window.ontouchstart)return!0;if(n=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!c)return!0;if(e=document.querySelector("meta[name=viewport]")){if(e.content.indexOf("user-scalable=no")!==-1)return!0;if(n>31&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(d&&(i=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/),i[1]>=10&&i[2]>=3&&(e=document.querySelector("meta[name=viewport]")))){if(e.content.indexOf("user-scalable=no")!==-1)return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===t.style.msTouchAction||"manipulation"===t.style.touchAction||(o=+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1],!!(o>=27&&(e=document.querySelector("meta[name=viewport]"),e&&(e.content.indexOf("user-scalable=no")!==-1||document.documentElement.scrollWidth<=window.outerWidth)))||("none"===t.style.touchAction||"manipulation"===t.style.touchAction))},i.attach=function(t,e){return new i(t,e)},"object"===(0,r.default)(n(64))&&n(64)?(o=function(){return i}.call(e,n,e,t),!(void 0!==o&&(t.exports=o))):"undefined"!=typeof t&&t.exports?(t.exports=i.attach,t.exports.FastClick=i):window.FastClick=i}()},70:function(t,e){"use strict";!function(t,e){var n=t.documentElement,i="orientationchange"in window?"orientationchange":"resize",o=function(){var t=n.clientWidth;t&&(n.style.fontSize=20*(t/320)+"px")};t.addEventListener&&(e.addEventListener(i,o,!1),t.addEventListener("DOMContentLoaded",o,!1))}(document,window)},71:function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(133),a=i(o);e.default=[{path:"/",component:a.default,children:[{path:"",component:function(t){return n.e(1,function(){return t(n(134))})}},{path:"/item",component:function(t){return n.e(0,function(){return t(n(135))})}},{path:"/score",component:function(t){return n.e(2,function(){return t(n(136))})}}]}]},72:function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(10),a=i(o);e.default={addNum:function(t,e){var n=t.commit,i=t.state;n("REMBER_ANSWER",{id:e}),i.itemNum0&&(t.level=e.res.topiclist[0].active_topic_phase,t.active_id=e.res.topiclist[0].active_id,t.active_topic_id=e.res.topiclist[0].active_topic_id)):500==e.res.httpStatusCode?(t.activeCodeState=500,alert("活动不存在")):300==e.res.httpStatusCode?(t.activeCodeState=300,alert("活动尚未开始")):301==e.res.httpStatusCode&&(t.activeCodeState=301,alert("活动已经结束"))}),(0,r.default)(o,p,function(t,e){t.user_id=e.res.users_id}),(0,r.default)(o,u,function(t,e){t.itemNum+=e.num}),(0,r.default)(o,s,function(t,e){t.answerid[t.itemNum]=e.id}),(0,r.default)(o,l,function(t){t.timer=setInterval(function(){t.allTime++},1e3)}),(0,r.default)(o,d,function(t){t.itemNum=1,t.allTime=0}),o)},122:function(t,e){},124:function(t,e){},133:function(t,e,n){var i,o;n(124),i=n(65);var a=n(138);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=a.render,o.staticRenderFns=a.staticRenderFns,o._scopeId="data-v-964fd242",t.exports=i},138:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return e("div",{attrs:{id:"app"}},[e("router-view")])},staticRenderFns:[]}}}); \ No newline at end of file +function i(t,e){function n(t,e){return function(){return t.apply(e,arguments)}}var o;if(e=e||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=e.touchBoundary||10,this.layer=t,this.tapDelay=e.tapDelay||200,this.tapTimeout=e.tapTimeout||700,!i.notNeeded(t)){for(var a=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],r=this,s=0,u=a.length;s=0,c=navigator.userAgent.indexOf("Android")>0&&!a,s=/iP(ad|hone|od)/.test(navigator.userAgent)&&!a,u=s&&/OS 4_\d(_\d)?/.test(navigator.userAgent),d=s&&/OS [6-7]_\d/.test(navigator.userAgent),l=navigator.userAgent.indexOf("BB10")>0;i.prototype.needsClick=function(t){switch(t.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(t.disabled)return!0;break;case"input":if(s&&"file"===t.type||t.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(t.className)},i.prototype.needsFocus=function(t){switch(t.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!c;case"input":switch(t.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!t.disabled&&!t.readOnly;default:return/\bneedsfocus\b/.test(t.className)}},i.prototype.sendClick=function(t,e){var n,i;document.activeElement&&document.activeElement!==t&&document.activeElement.blur(),i=e.changedTouches[0],n=document.createEvent("MouseEvents"),n.initMouseEvent(this.determineEventType(t),!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),n.forwardedTouchEvent=!0,t.dispatchEvent(n)},i.prototype.determineEventType=function(t){return c&&"select"===t.tagName.toLowerCase()?"mousedown":"click"},i.prototype.focus=function(t){var e;s&&t.setSelectionRange&&0!==t.type.indexOf("date")&&"time"!==t.type&&"month"!==t.type?(e=t.value.length,t.setSelectionRange(e,e)):t.focus()},i.prototype.updateScrollParent=function(t){var e,n;if(e=t.fastClickScrollParent,!e||!e.contains(t)){n=t;do{if(n.scrollHeight>n.offsetHeight){e=n,t.fastClickScrollParent=n;break}n=n.parentElement}while(n)}e&&(e.fastClickLastScrollTop=e.scrollTop)},i.prototype.getTargetElementFromEventTarget=function(t){return t.nodeType===Node.TEXT_NODE?t.parentNode:t},i.prototype.onTouchStart=function(t){var e,n,i;if(t.targetTouches.length>1)return!0;if(e=this.getTargetElementFromEventTarget(t.target),n=t.targetTouches[0],s){if(i=window.getSelection(),i.rangeCount&&!i.isCollapsed)return!0;if(!u){if(n.identifier&&n.identifier===this.lastTouchIdentifier)return t.preventDefault(),!1;this.lastTouchIdentifier=n.identifier,this.updateScrollParent(e)}}return this.trackingClick=!0,this.trackingClickStart=t.timeStamp,this.targetElement=e,this.touchStartX=n.pageX,this.touchStartY=n.pageY,t.timeStamp-this.lastClickTimen||Math.abs(e.pageY-this.touchStartY)>n},i.prototype.onTouchMove=function(t){return!this.trackingClick||((this.targetElement!==this.getTargetElementFromEventTarget(t.target)||this.touchHasMoved(t))&&(this.trackingClick=!1,this.targetElement=null),!0)},i.prototype.findControl=function(t){return void 0!==t.control?t.control:t.htmlFor?document.getElementById(t.htmlFor):t.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},i.prototype.onTouchEnd=function(t){var e,n,i,o,a,r=this.targetElement;if(!this.trackingClick)return!0;if(t.timeStamp-this.lastClickTimethis.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=t.timeStamp,n=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,d&&(a=t.changedTouches[0],r=document.elementFromPoint(a.pageX-window.pageXOffset,a.pageY-window.pageYOffset)||r,r.fastClickScrollParent=this.targetElement.fastClickScrollParent),i=r.tagName.toLowerCase(),"label"===i){if(e=this.findControl(r)){if(this.focus(r),c)return!1;r=e}}else if(this.needsFocus(r))return t.timeStamp-n>100||s&&window.top!==window&&"input"===i?(this.targetElement=null,!1):(this.focus(r),this.sendClick(r,t),s&&"select"===i||(this.targetElement=null,t.preventDefault()),!1);return!(!s||u||(o=r.fastClickScrollParent,!o||o.fastClickLastScrollTop===o.scrollTop))||(this.needsClick(r)||(t.preventDefault(),this.sendClick(r,t)),!1)},i.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},i.prototype.onMouse=function(t){return!this.targetElement||(!!t.forwardedTouchEvent||(!t.cancelable||(!(!this.needsClick(this.targetElement)||this.cancelNextClick)||(t.stopImmediatePropagation?t.stopImmediatePropagation():t.propagationStopped=!0,t.stopPropagation(),t.preventDefault(),!1))))},i.prototype.onClick=function(t){var e;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===t.target.type&&0===t.detail||(e=this.onMouse(t),e||(this.targetElement=null),e)},i.prototype.destroy=function(){var t=this.layer;c&&(t.removeEventListener("mouseover",this.onMouse,!0),t.removeEventListener("mousedown",this.onMouse,!0),t.removeEventListener("mouseup",this.onMouse,!0)),t.removeEventListener("click",this.onClick,!0),t.removeEventListener("touchstart",this.onTouchStart,!1),t.removeEventListener("touchmove",this.onTouchMove,!1),t.removeEventListener("touchend",this.onTouchEnd,!1),t.removeEventListener("touchcancel",this.onTouchCancel,!1)},i.notNeeded=function(t){var e,n,i,o;if("undefined"==typeof window.ontouchstart)return!0;if(n=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!c)return!0;if(e=document.querySelector("meta[name=viewport]")){if(e.content.indexOf("user-scalable=no")!==-1)return!0;if(n>31&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(l&&(i=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/),i[1]>=10&&i[2]>=3&&(e=document.querySelector("meta[name=viewport]")))){if(e.content.indexOf("user-scalable=no")!==-1)return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===t.style.msTouchAction||"manipulation"===t.style.touchAction||(o=+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1],!!(o>=27&&(e=document.querySelector("meta[name=viewport]"),e&&(e.content.indexOf("user-scalable=no")!==-1||document.documentElement.scrollWidth<=window.outerWidth)))||("none"===t.style.touchAction||"manipulation"===t.style.touchAction))},i.attach=function(t,e){return new i(t,e)},"object"===(0,r.default)(n(64))&&n(64)?(o=function(){return i}.call(e,n,e,t),!(void 0!==o&&(t.exports=o))):"undefined"!=typeof t&&t.exports?(t.exports=i.attach,t.exports.FastClick=i):window.FastClick=i}()},70:function(t,e){"use strict";!function(t,e){var n=t.documentElement,i="orientationchange"in window?"orientationchange":"resize",o=function(){var t=n.clientWidth;t&&(n.style.fontSize=20*(t/320)+"px")};t.addEventListener&&(e.addEventListener(i,o,!1),t.addEventListener("DOMContentLoaded",o,!1))}(document,window)},71:function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(133),a=i(o);e.default=[{path:"/",component:a.default,children:[{path:"",component:function(t){return n.e(1,function(){return t(n(134))})}},{path:"/item",component:function(t){return n.e(0,function(){return t(n(135))})}},{path:"/score",component:function(t){return n.e(2,function(){return t(n(136))})}}]}]},72:function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(10),a=i(o);e.default={addNum:function(t,e){var n=t.commit,i=t.state;n("REMBER_ANSWER",{id:e}),i.itemNum0&&(t.level=e.res.topiclist[0].active_topic_phase,t.active_id=e.res.topiclist[0].active_id,t.active_topic_id=e.res.topiclist[0].active_topic_id)):500==e.res.httpStatusCode?(t.activeCodeState=500,alert("活动不存在")):300==e.res.httpStatusCode?(t.activeCodeState=300,alert("活动尚未开始")):301==e.res.httpStatusCode&&(t.activeCodeState=301,alert("活动已经结束"))}),(0,r.default)(o,p,function(t,e){t.user_id=e.res.users_id}),(0,r.default)(o,s,function(t,e){t.itemNum+=e.num}),(0,r.default)(o,u,function(t,e){t.answerid[t.itemNum]=e.id}),(0,r.default)(o,d,function(t){t.timer=setInterval(function(){t.allTime++},1e3)}),(0,r.default)(o,l,function(t){t.itemNum=1,t.allTime=0}),o)},122:function(t,e){},124:function(t,e){},133:function(t,e,n){var i,o;n(124),i=n(65);var a=n(138);o=i=i||{},"object"!=typeof i.default&&"function"!=typeof i.default||(o=i=i.default),"function"==typeof o&&(o=o.options),o.render=a.render,o.staticRenderFns=a.staticRenderFns,o._scopeId="data-v-964fd242",t.exports=i},138:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return e("div",{attrs:{id:"app"}},[e("router-view")])},staticRenderFns:[]}}}); \ No newline at end of file diff --git a/happyfri/static/js/home.38898271af93cb982b78.min.js b/happyfri/static/js/home.38898271af93cb982b78.min.js new file mode 100644 index 0000000..86e17c1 --- /dev/null +++ b/happyfri/static/js/home.38898271af93cb982b78.min.js @@ -0,0 +1,2 @@ +webpackJsonp([1,3],{25:function(e,t,i){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var A=i(47),n=i(10),o=(s(n),i(11));t.default={name:"itemcontainer",data:function(){return{itemId:null,choosedNum:null,choosedId:null}},props:["fatherComponent"],computed:(0,A.mapState)({itemNum:function(e){return e.itemNum},level:function(e){return e.level},itemDetail:function(e){return e.itemDetail}}),methods:{nextpage:function(){this.$router.push("item"),200==this.$store.state.activeCodeState?this.$router.push("item"):300==this.$store.state.activeCodeState?alert("活动尚未开始"):301==this.$store.state.activeCodeState?alert("活动已经结束"):500==this.$store.state.activeCodeState&&alert("活动不存在")},nextItem:function(){null!==this.choosedNum?(this.choosedNum=null,this.$store.dispatch("addNum",this.choosedId)):alert("您还没有选择答案哦")},chooseType:function(e){switch(e){case 0:return"A";case 1:return"B";case 2:return"C";case 3:return"D"}},choosed:function(e,t){this.choosedNum=e,this.choosedId=t},submitAnswer:function(){null!==this.choosedNum?(this.$store.dispatch("addNum",this.choosedId),clearInterval(this.$store.state.timer),this.$router.push("score")):alert("您还没有选择答案哦")},preLoadImg:function(e){for(var t=0;t0?t("div",{staticClass:"item_list_container"},[t("header",{staticClass:"item_title"},[e._s(e.itemDetail[e.itemNum-1].topic_name)])," ",t("ul",[e._l(e.itemDetail[e.itemNum-1].topic_answer,function(i,s){return t("li",{staticClass:"item_list",on:{click:function(t){e.choosed(s,i.topic_answer_id)}}},[t("span",{staticClass:"option_style",class:{has_choosed:e.choosedNum==s}},[e._s(e.chooseType(s))])," ",t("span",{staticClass:"option_detail"},[e._s(i.answer_name)])])})])]):e._e()])," ",e.itemNum0?e("div",{staticClass:"item_list_container"},[e("header",{staticClass:"item_title"},[t._s(t.itemDetail[t.itemNum-1].topic_name)])," ",e("ul",[t._l(t.itemDetail[t.itemNum-1].topic_answer,function(i,s){return e("li",{staticClass:"item_list",on:{click:function(e){t.choosed(s,i.topic_answer_id)}}},[e("span",{staticClass:"option_style",class:{has_choosed:t.choosedNum==s}},[t._s(t.chooseType(s))])," ",e("span",{staticClass:"option_detail"},[t._s(i.answer_name)])])})])]):t._e()])," ",t.itemNum0?e("div",{staticClass:"item_list_container"},[e("header",{staticClass:"item_title"},[t._s(t.itemDetail[t.itemNum-1].topic_name)])," ",e("ul",[t._l(t.itemDetail[t.itemNum-1].topic_answer,function(i,s){return e("li",{staticClass:"item_list",on:{click:function(e){t.choosed(s,i.topic_answer_id)}}},[e("span",{staticClass:"option_style",class:{has_choosed:t.choosedNum==s}},[t._s(t.chooseType(s))])," ",e("span",{staticClass:"option_detail"},[t._s(i.answer_name)])])})])]):t._e()])," ",t.itemNum0?t("div",{staticClass:"item_list_container"},[t("header",{staticClass:"item_title"},[e._s(e.itemDetail[e.itemNum-1].topic_name)])," ",t("ul",[e._l(e.itemDetail[e.itemNum-1].topic_answer,function(i,s){return t("li",{staticClass:"item_list",on:{click:function(t){e.choosed(s,i.topic_answer_id)}}},[t("span",{staticClass:"option_style",class:{has_choosed:e.choosedNum==s}},[e._s(e.chooseType(s))])," ",t("span",{staticClass:"option_detail"},[e._s(i.answer_name)])])})])]):e._e()])," ",e.itemNum - - + + @@ -47,6 +47,7 @@ export default { }), methods: { nextpage: function (){ + this.$router.push('item') ///////还分身乏术地方开始发售 if (this.$store.state.activeCodeState == 200) { this.$router.push('item') }else if (this.$store.state.activeCodeState == 300) { diff --git a/src/images/1-1.jpg b/src/images/1-1.jpg index 7507380..7421e05 100644 Binary files a/src/images/1-1.jpg and b/src/images/1-1.jpg differ diff --git a/src/images/1-2.png b/src/images/1-2.png old mode 100644 new mode 100755 index cc30c4c..3c8dbe6 Binary files a/src/images/1-2.png and b/src/images/1-2.png differ diff --git a/src/images/3-1.png b/src/images/3-1.png index 29f036c..44db8a0 100644 Binary files a/src/images/3-1.png and b/src/images/3-1.png differ diff --git a/src/main.js b/src/main.js index 0fc25c4..b3fbe7c 100644 --- a/src/main.js +++ b/src/main.js @@ -28,7 +28,7 @@ let img = new Image(); img.src = basePath + 'static/img/1-1.jpg'; let url = window.location.href; if (!(/users_id=/gi.test(url))) { - window.location.href = 'http://wxinterface.putaoevent.com?wx_account_id=' + weixinOrder + '&callback_url=' + basePath + '?' + activeTopicId + //window.location.href = 'http://wxinterface.putaoevent.com?wx_account_id=' + weixinOrder + '&callback_url=' + basePath + '?' + activeTopicId } let jssdkUrl = url.split('#')[0] @@ -56,7 +56,7 @@ wx.ready(function() { title: '第一个题目,进来才知道', // 分享标题 desc: '这些知识我打赌你一个都不知道', // 分享描述 link: basePath + '?' + activeTopicId, // 分享链接 - imgUrl:basePath + 'pthome.jpeg', // 分享图标 + imgUrl: basePath + 'pthome.jpeg', // 分享图标 type: 'link', // 分享类型,music、video或link,不填默认为link dataUrl: '', // 如果type是music或video,则要提供数据链接,默认为空 }); diff --git a/src/store/index.js b/src/store/index.js index 4e6b188..1e79a59 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -26,7 +26,69 @@ const state = { active_topic_id: '', timer: '', TransformNum: ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二', '十三', '十四', '十五', '十六', '十七', '十八', '十九', '二十', '二十一', '二十二', '二十三', '二十四', '二十五', '二十六', '二十七', '二十八', '二十九', '三十'], - itemDetail: [], + itemDetail: [{ + "topic_id": 20, + "active_topic_id": 4, + "type": "ONE", + "topic_name": "是分身乏术分", + "active_id": 1, + "active_title": "欢乐星期五标题", + "active_topic_phase": "第一周", + "active_start_time": "1479139200", + "active_end_time": "1482163200", + "topic_answer": [{ + "topic_answer_id": 66, + "topic_id": 20, + "answer_name": "说的发", + "is_standard_answer": 0 + }, { + "topic_answer_id": 67, + "topic_id": 20, + "answer_name": "说的发", + "is_standard_answer": 0 + }, { + "topic_answer_id": 68, + "topic_id": 20, + "answer_name": "说的发生", + "is_standard_answer": 0 + }, { + "topic_answer_id": 69, + "topic_id": 20, + "answer_name": "说的发", + "is_standard_answer": 1 + }] + }, { + "topic_id": 20, + "active_topic_id": 4, + "type": "ONE", + "topic_name": "是分身乏术分身乏术分似懂非懂所发生的发生分身乏术分是非得失分身乏术说", + "active_id": 1, + "active_title": "欢乐星期五标题", + "active_topic_phase": "第一周", + "active_start_time": "1479139200", + "active_end_time": "1482163200", + "topic_answer": [{ + "topic_answer_id": 66, + "topic_id": 20, + "answer_name": "说的发生的发生的分身乏术的发生的的发分服", + "is_standard_answer": 0 + }, { + "topic_answer_id": 67, + "topic_id": 20, + "answer_name": "说的发生的发生的分身乏术的发生的术分服", + "is_standard_answer": 0 + }, { + "topic_answer_id": 68, + "topic_id": 20, + "answer_name": "说的发生的发生的分身乏术的发生身乏术分服", + "is_standard_answer": 0 + }, { + "topic_answer_id": 69, + "topic_id": 20, + "answer_name": "说的发生的发生的分失分身乏术分服", + "is_standard_answer": 1 + }] + }], answerid: {} }