lucky-code.js 1.9 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugins/lottery/lucky-code/lucky-code"],{"10c6":function(t,n,e){"use strict";(function(t){e("8748");a(e("66fd"));var n=a(e("9379"));function a(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},9379:function(t,n,e){"use strict";e.r(n);var a=e("9e78"),o=e("cf0b");for(var r in o)"default"!==r&&function(t){e.d(n,t,(function(){return o[t]}))}(r);e("f591");var u,c=e("f0c5"),d=Object(c["a"])(o["default"],a["b"],a["c"],!1,null,"2d406534",null,!1,a["a"],u);n["default"]=d.exports},"9e78":function(t,n,e){"use strict";var a,o=function(){var t=this,n=t.$createElement;t._self._c},r=[];e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return r})),e.d(n,"a",(function(){return a}))},cf0b:function(t,n,e){"use strict";e.r(n);var a=e("feb3"),o=e.n(a);for(var r in a)"default"!==r&&function(t){e.d(n,t,(function(){return a[t]}))}(r);n["default"]=o.a},e716:function(t,n,e){},f591:function(t,n,e){"use strict";var a=e("e716"),o=e.n(a);o.a},feb3:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a={name:"lucky-code",components:{},data:function(){return{lottery_id:"",award:null,num:0,own:null,page:1,parent:null}},onLoad:function(t){var n=this;n.lottery_id=t.lottery_id,n.$showLoading({title:"加载中"}),n.$request({url:n.$api.lottery.code,data:{lottery_id:n.lottery_id}}).then((function(t){if(n.$hideLoading(),0===t.code){var e=[t.data.award,t.data.num,t.data.own,t.data.parent];n.award=e[0],n.num=e[1],n.own=e[2],n.parent=e[3]}})).catch((function(t){n.$hideLoading()}))},methods:{more:function(){var t=this;if(!t.args&&!t.load){t.load=!0;var n=t.page+1;t.$request({url:t.$api.lottery.code,data:{page:n,lottery_id:t.lottery_id}}).then((function(e){if(0===e.code){var a=[n,0===e.data.parent.length,t.parent.concat(e.data.parent)];t.page=a[0],t.args=a[1],t.parent=a[2]}t.load=!1}))}}}};n.default=a}},[["10c6","common/runtime","common/vendor"]]]);