require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/activity/goods_bargain/index"],{"427c":function(t,n,i){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e=i("4d38"),a=i("b0fe"),o=i("7391"),s=i("92f9"),r=i("5088"),c=i("8f59"),u=(getApp(),{data:function(){return{bargainList:[],page:1,limit:20,loading:!1,loadend:!1,userInfo:{},isAuto:!1,isShowAuth:!1,imgHost:e.HTTP_REQUEST_URL,getHeight:this.$util.getWXStatusHeight()}},components:{emptyPage:function(){i.e("components/emptyPage").then(function(){return resolve(i("398a"))}.bind(null,i)).catch(i.oe)},NavBar:function(){i.e("components/NavBar").then(function(){return resolve(i("a7d8"))}.bind(null,i)).catch(i.oe)}},computed:(0,c.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(t,n){},deep:!0}},onLoad:function(t){this.getBargainList(),this.isLogin&&this.getUserInfo()},onShow:function(){t.removeStorageSync("form_type_cart")},onPageScroll:function(n){t.$emit("scroll")},methods:{authColse:function(t){this.isShowAuth=t},goarrow:function(){t.navigateBack()},getUserInfo:function(){var t=this;(0,s.getUserInfo)().then((function(n){t.$set(t,"userInfo",n.data)}))},openSubscribe:function(n){if(this.isLogin){var i=n;t.showLoading({title:"正在加载"}),(0,o.openBargainSubscribe)().then((function(n){t.hideLoading(),t.navigateTo({url:i})})).catch((function(n){t.hideLoading()}))}else(0,r.toLogin)()},getBargainList:function(){var t=this;t.loadend||t.loading||(t.loading=!0,(0,a.getBargainList)({page:t.page,limit:t.limit}).then((function(n){t.$set(t,"bargainList",t.bargainList.concat(n.data)),t.$set(t,"page",t.page+1),t.$set(t,"loadend",t.limit>n.data.length),t.$set(t,"loading",!1)})).catch((function(n){t.loading=!1})))}},onReachBottom:function(){this.getBargainList()},onShareAppMessage:function(){return{title:"砍价列表",path:"/pages/activity/goods_bargain/index?spid="+this.$store.state.app.uid,imageUrl:e.HTTP_REQUEST_URL+"/statics/images/bargain-list-bg.png"}},onShareTimeline:function(){return{title:"砍价列表",path:"/pages/activity/goods_bargain/index?spid="+ +this.$store.state.app.uid,imageUrl:e.HTTP_REQUEST_URL+"/statics/images/bargain-list-bg.png"}}});n.default=u}).call(this,i("df3c")["default"])},"4f5e":function(t,n,i){"use strict";i.d(n,"b",(function(){return a})),i.d(n,"c",(function(){return o})),i.d(n,"a",(function(){return e}));var e={easyLoadimage:function(){return i.e("components/easy-loadimage/easy-loadimage").then(i.bind(null,"94dd"))}},a=function(){var t=this.$createElement,n=(this._self._c,this.bargainList.length),i=!this.bargainList.length&&!this.loading;this.$mp.data=Object.assign({},{$root:{g0:n,g1:i}})},o=[]},"543a":function(t,n,i){"use strict";i.r(n);var e=i("427c"),a=i.n(e);for(var o in e)["default"].indexOf(o)<0&&function(t){i.d(n,t,(function(){return e[t]}))}(o);n["default"]=a.a},"5a3f":function(t,n,i){"use strict";i.r(n);var e=i("4f5e"),a=i("543a");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(n,t,(function(){return a[t]}))}(o);i("a5bb");var s=i("828b"),r=Object(s["a"])(a["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],void 0);n["default"]=r.exports},"90a5":function(t,n,i){"use strict";(function(t,n){var e=i("47a9");i("f076");e(i("3240"));var a=e(i("5a3f"));t.__webpack_require_UNI_MP_PLUGIN__=i,n(a.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},a5bb:function(t,n,i){"use strict";var e=i("fc76"),a=i.n(e);a.a},fc76:function(t,n,i){}},[["90a5","common/runtime","common/vendor"]]]);