(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugins/pond/prize/prize"],{"2f81":function(t,n,e){"use strict";e.r(n);var i=e("882e"),a=e.n(i);for(var o in i)"default"!==o&&function(t){e.d(n,t,(function(){return i[t]}))}(o);n["default"]=a.a},"356b":function(t,n,e){"use strict";e.r(n);var i=e("bcd9"),a=e("2f81");for(var o in a)"default"!==o&&function(t){e.d(n,t,(function(){return a[t]}))}(o);e("d238");var r,d=e("f0c5"),u=Object(d["a"])(a["default"],i["b"],i["c"],!1,null,"6a4951fe",null,!1,i["a"],r);n["default"]=u.exports},"882e":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={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.pond.prize,data:{page:1}}).then((function(n){t.$hideLoading(),0===n.code&&(t.list=n.data.list)})).catch((function(n){t.$hideLoading()}))},onReachBottom:function(){var t=this;if(!t.args&&!t.load){t.load=!0;var n=t.page+1;t.$request({url:t.$api.pond.prize,data:{page:n}}).then((function(e){if(0===e.code){var i=[n,0===e.data.list.length,t.list.concat(e.data.list)];t.page=i[0],t.args=i[1],t.list=i[2]}t.load=!1}))}},methods:{submit:function(n){var e=[{mch_id:0,pond_id:n.id,goods_list:[{id:n.goods.id,attr:n.attr_list,num:1,cart_id:0,goods_attr_id:n.attr_id}]}];t.navigateTo({url:"/pages/order-submit/order-submit?mch_list="+JSON.stringify(e)+"&preview_url="+encodeURIComponent(this.$api.pond.order_preview)+"&submit_url="+encodeURIComponent(this.$api.pond.order_submit)})}}};n.default=e}).call(this,e("543d")["default"])},"9df0":function(t,n,e){},b963:function(t,n,e){"use strict";(function(t){e("8748");i(e("66fd"));var n=i(e("356b"));function i(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},bcd9:function(t,n,e){"use strict";var i,a=function(){var t=this,n=t.$createElement;t._self._c},o=[];e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){return i}))},d238:function(t,n,e){"use strict";var i=e("9df0"),a=e.n(i);a.a}},[["b963","common/runtime","common/vendor"]]]);