(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-61d8d301"],{"856d":function(t,e,i){"use strict";i("86df")},"86df":function(t,e,i){},b157:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"box"},[t._m(0),i("div",{staticClass:"content"},[t.rule&&t.rule.gameId?i("div",{staticClass:"content-cell"},[t._m(1),i("div",{staticClass:"rule-box"},[i("div",{staticClass:"rule-item"},[i("div",{staticClass:"title"},[t._v("游戏时间")]),i("div",{staticClass:"value"},[t._v(t._s(t._f("formatDate")(t.rule.startDate))+"-"+t._s(t._f("formatDate")(t.rule.endDate)))])]),t.rule.playConditionFlag?i("div",{staticClass:"rule-item"},[i("div",{staticClass:"title"},[t._v("参与门槛")]),t._l(t.rule.gameRuleConditionList,(function(e){return i("div",{key:e,staticClass:"value point"},[21==e.conditionObj.type?i("div",[t._v("每天增加 "+t._s(e.conditionObj.value)+" 次免费游戏机会")]):22==e.conditionObj.type?i("div",[t._v("赠送 "+t._s(e.conditionObj.value)+" 次免费游戏机会")]):1==e.conditionObj.type?i("div",[t._v("每参加 1 次游戏消耗 "+t._s(e.conditionObj.value)+" 积分")]):11==e.conditionObj.type?i("div",[t._v("每邀请 "+t._s(e.conditionObj.inviteNum)+" 位用户认证，增加 "+t._s(e.conditionObj.value)+" 次游戏机会")]):12==e.conditionObj.type?i("div",[t._v("每邀请 "+t._s(e.conditionObj.inviteNum)+" 位用户关注服务号，增加 "+t._s(e.conditionObj.value)+" 次游戏机会")]):t._e()])}))],2):t._e(),t.rule.playTimes?i("div",{staticClass:"rule-item"},[i("div",{staticClass:"title"},[t._v("游戏参与次数")]),i("div",{staticClass:"value"},[t._v("每人"+t._s(t.rule.playTimes)+"次")])]):t._e(),i("div",{staticClass:"rule-item"},[i("div",{staticClass:"title"},[t._v("适用人群")]),i("div",{staticClass:"value"},[t._v(t._s(t.rule.memberDesc))])]),i("div",{staticClass:"rule-item"},[i("div",{staticClass:"title"},[t._v("游戏说明")]),i("div",{staticClass:"value point",domProps:{innerHTML:t._s(t.rule.gameRule)}})])])]):t._e(),t.rewardList&&t.rewardList.length?i("div",{staticClass:"content-cell"},[t._m(2),i("div",{staticClass:"reward-box"},t._l(t.rewardList,(function(e){return i("div",{key:e,staticClass:"reward-item-box"},[i("div",{staticClass:"reward-item-detail"},[i("div",{staticClass:"img-box"},[i("img",{staticClass:"reward-img",attrs:{src:e.prizeImageUrl,mode:"scaleToFit"}})]),i("div",{staticClass:"reward-name"},[t._v(t._s(e.prizeName))]),i("div",{staticClass:"reward-des"},[t._v(t._s(e.prizeDesc))])])])})),0)]):t._e()])])},s=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"page-bg"},[i("img",{staticClass:"bg-img",attrs:{src:"https://pic01-10001430.cos.ap-shanghai.myqcloud.com/game/template1/mould_01_rulebg.png",mode:"widthFix"}})])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"cell-top"},[i("div",{staticClass:"iconfont icon-duobianxing"}),i("div",{staticClass:"title"},[t._v("游戏规则")]),i("div",{staticClass:"iconfont icon-duobianxing"})])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"cell-top"},[i("div",{staticClass:"iconfont icon-duobianxing"}),i("div",{staticClass:"title"},[t._v("游戏奖品")]),i("div",{staticClass:"iconfont icon-duobianxing"})])}],n=i("5530"),r=i("1da1"),c=(i("96cf"),i("d81d"),i("2934")),l=c["a"].getGameRule,o=c["a"].getGameReward,d={components:{},data:function(){return{rule:{},rewardList:[]}},created:function(){document.title="游戏规则",this.loadData()},methods:{loadData:function(){this.getGameRule(),this.getGameReward()},getGameRule:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l(Object(n["a"])({},t.$route.query));case 2:i=e.sent,i.gameRuleConditionList&&i.gameRuleConditionList.map((function(t){t.conditionObj=JSON.parse(t.conditionJson)})),t.rule=i;case 5:case"end":return e.stop()}}),e)})))()},getGameReward:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,o(Object(n["a"])({},t.$route.query));case 2:i=e.sent,t.rewardList=i;case 4:case"end":return e.stop()}}),e)})))()}},filters:{formatDate:function(t){if(!t)return"--";var e=new Date(t);return e.getFullYear()+"年"+(e.getMonth()+1)+"月"+e.getDate()+"日"}}},u=d,v=(i("856d"),i("2877")),m=Object(v["a"])(u,a,s,!1,null,"21bd19b3",null);e["default"]=m.exports},d81d:function(t,e,i){"use strict";var a=i("23e7"),s=i("b727").map,n=i("1dde"),r=n("map");a({target:"Array",proto:!0,forced:!r},{map:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}})}}]);