(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/me/needs"],{"033f":function(t,e,a){},"13b8":function(t,e,a){"use strict";a.r(e);var n=a("a0d1"),i=a("717d");for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("7375");var s=a("828b"),c=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"7c02f60c",null,!1,n["a"],void 0);e["default"]=c.exports},"717d":function(t,e,a){"use strict";a.r(e);var n=a("e805"),i=a.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},7375:function(t,e,a){"use strict";var n=a("033f"),i=a.n(n);i.a},a0d1:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=(this._self._c,this.list.length);this.$mp.data=Object.assign({},{$root:{g0:e}})},i=[]},e300:function(t,e,a){"use strict";(function(t,e){var n=a("47a9");a("e92e");n(a("3240"));var i=n(a("13b8"));t.__webpack_require_UNI_MP_PLUGIN__=a,e(i.default)}).call(this,a("3223")["default"],a("df3c")["createPage"])},e805:function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{type:3,active:4,page:1,list:[],lastPage:1}},components:{list:function(){Promise.all([a.e("common/vendor"),a.e("components/productList")]).then(function(){return resolve(a("3ea9"))}.bind(null,a)).catch(a.oe)}},onLoad:function(e){this.type=e.type,this.handleList(),t.setNavigationBarTitle({title:3==this.type?"我的商品":"我的供需"})},onReachBottom:function(){console.log("this.lastPage",this.lastPage),!this.lastPage||this.page>=this.lastPage?t.showToast({title:"没有更多数据！",icon:"none"}):(this.page++,this.handleList())},methods:{handleList:function(){var t=this,e=this;e.$model.getProductListbyuser({status:e.active,pageNo:e.page,pageSize:10,type:3==this.type?3:9}).then((function(a){0==a.code?(e.list=t.list.concat(a.data.rows),e.lastPage=a.data.totalpage):e.$tools.msg(a.message)}))},handleActive:function(t){this.active=t,this.list=[],this.page=1,this.handleList()},handleDetail:function(e){console.log("详情",e);var a=this;a.$model.getProductDetailbyuser({id:e.id,type:e.type}).then((function(n){0==n.code?(n.data.active=a.active,n.data.type=e.type,t.navigateTo({url:"/pageTwo/me/addNeeds?status=edit&item="+JSON.stringify(n.data)})):a.$tools.msg(n.message)}))}}};e.default=n}).call(this,a("df3c")["default"])}},[["e300","common/runtime","common/vendor"]]]);