(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugins/pond/prize/prize"],{"4b32":function(t,n,a){"use strict";(function(t){a("2d0a");e(a("66fd"));var n=e(a("62f7"));function e(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,a("543d")["createPage"])},"62f7":function(t,n,a){"use strict";a.r(n);var e=a("a55a"),i=a("6e41");for(var o in i)"default"!==o&&function(t){a.d(n,t,(function(){return i[t]}))}(o);a("7bf7");var r,u=a("f0c5"),d=Object(u["a"])(i["default"],e["b"],e["c"],!1,null,"359a3d33",null,!1,e["a"],r);n["default"]=d.exports},"6e41":function(t,n,a){"use strict";a.r(n);var e=a("ab98"),i=a.n(e);for(var o in e)"default"!==o&&function(t){a.d(n,t,(function(){return e[t]}))}(o);n["default"]=i.a},"7bf7":function(t,n,a){"use strict";var e=a("db96"),i=a.n(e);i.a},a55a:function(t,n,a){"use strict";var e;a.d(n,"b",(function(){return i})),a.d(n,"c",(function(){return o})),a.d(n,"a",(function(){return e}));var i=function(){var t=this,n=t.$createElement;t._self._c},o=[]},ab98:function(t,n,a){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a={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(a){if(0===a.code){var e=[n,0===a.data.list.length,t.list.concat(a.data.list)];t.page=e[0],t.args=e[1],t.list=e[2]}t.load=!1}))}},methods:{submit:function(n){var a=[{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(a)+"&preview_url="+encodeURIComponent(this.$api.pond.order_preview)+"&submit_url="+encodeURIComponent(this.$api.pond.order_submit)})}}};n.default=a}).call(this,a("543d")["default"])},db96:function(t,n,a){}},[["4b32","common/runtime","common/vendor"]]]);