(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugins/scratch/prize/prize"],{"18e1":function(t,e,n){"use strict";n.r(e);var a=n("e5d5"),i=n("6c6c");for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("b352");var c,o=n("f0c5"),u=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,"4d1c2c66",null,!1,a["a"],c);e["default"]=u.exports},"444c":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"prize",components:{},data:function(){return{list:null,page:1,args:!1,load:!1}},onShow:function(){var t=this;t.$showLoading({title:"加载中"}),t.$request({url:t.$api.scratch.prize,data:{page:1}}).then((function(e){t.$hideLoading(),0===e.code&&(t.list=e.data)})).catch((function(e){t.$hideLoading()}))},onReachBottom:function(){var t=this;if(!t.args&&!t.load){t.load=!0;var e=t.page+1;t.$request({url:t.$api.scratch.prize,data:{page:e}}).then((function(n){if(0===n.code){var a=[e,0===n.data.length,t.list.concat(n.data)];t.page=a[0],t.args=a[1],t.list=a[2]}t.load=!1}))}},methods:{submit:function(e){var n=[{mch_id:0,scratch_id:e.id,goods_list:[{id:e.goods.id,attr:e.attr_list,num:1,cart_id:0,goods_attr_id:e.attr_id}]}];t.navigateTo({url:"/pages/order-submit/order-submit?mch_list="+JSON.stringify(n)+"&preview_url="+encodeURIComponent(this.$api.scratch.order_preview)+"&submit_url="+encodeURIComponent(this.$api.scratch.order_submit)})}}};e.default=n}).call(this,n("543d")["default"])},"59f2":function(t,e,n){"use strict";(function(t){n("8748");a(n("66fd"));var e=a(n("18e1"));function a(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},"6c6c":function(t,e,n){"use strict";n.r(e);var a=n("444c"),i=n.n(a);for(var r in a)"default"!==r&&function(t){n.d(e,t,(function(){return a[t]}))}(r);e["default"]=i.a},b352:function(t,e,n){"use strict";var a=n("eef7"),i=n.n(a);i.a},e5d5:function(t,e,n){"use strict";var a,i=function(){var t=this,e=t.$createElement;t._self._c},r=[];n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a}))},eef7:function(t,e,n){}},[["59f2","common/runtime","common/vendor"]]]);