(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["otherpages/fenxiao/follow/follow"],{"0d6e":function(e,t,o){"use strict";(function(e){o("6b76");n(o("66fd"));var t=n(o("7f69"));function n(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,o("543d")["createPage"])},"2f20":function(e,t,o){"use strict";var n=o("3f52"),i=o.n(n);i.a},"3f52":function(e,t,o){},"47b5":function(e,t,o){"use strict";var n={nsEmpty:function(){return o.e("components/ns-empty/ns-empty").then(o.bind(null,"211f"))},nsShowToast:function(){return Promise.all([o.e("common/vendor"),o.e("components/ns-show-toast/ns-show-toast")]).then(o.bind(null,"f505"))}},i=function(){var e=this,t=e.$createElement,o=(e._self._c,e.$util.img("upload/uniapp/fenxiao/fx_adv.png"));e.$mp.data=Object.assign({},{$root:{g0:o}})},a=[];o.d(t,"b",(function(){return i})),o.d(t,"c",(function(){return a})),o.d(t,"a",(function(){return n}))},"784f":function(e,t,o){"use strict";o.r(t);var n=o("c174"),i=o.n(n);for(var a in n)"default"!==a&&function(e){o.d(t,e,(function(){return n[e]}))}(a);t["default"]=i.a},"7f69":function(e,t,o){"use strict";o.r(t);var n=o("47b5"),i=o("784f");for(var a in i)"default"!==a&&function(e){o.d(t,e,(function(){return i[e]}))}(a);o("2f20");var s,c=o("f0c5"),r=Object(c["a"])(i["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],s);t["default"]=r.exports},c174:function(e,t,o){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(o("f688")),i=s(o("4d7e")),a=s(o("4c22"));function s(e){return e&&e.__esModule?e:{default:e}}var c=function(){Promise.all([o.e("common/vendor"),o.e("components/ns-show-toast/ns-show-toast")]).then(function(){return resolve(o("f505"))}.bind(null,o)).catch(o.oe)},r=function(){Promise.all([o.e("common/vendor"),o.e("components/ns-goods-item/ns-goods-item-row")]).then(function(){return resolve(o("7c7c"))}.bind(null,o)).catch(o.oe)},u={data:function(){return{goodsList:[],emptyShow:!1,searchText:"",account:0,memberImg:"",memberName:""}},components:{nsShowToast:c,nsGoodsItemRow:r},onLoad:function(){},mixins:[n.default,i.default,a.default],onShow:function(){this.$langConfig.refresh(),e.setNavigationBarTitle({title:this.fenxiaoWords.concept+"商品"}),e.getStorageSync("token")?this.getMemberInfo():this.$util.redirectTo("/pages/login/login/login",{back:"/otherpages/fenxiao/goods/goods"},"redirectTo")},methods:{getData:function(e){var t=this;this.emptyShow=!1,1==e.num&&(this.withdrawList=[]),this.$api.sendRequest({url:"/fenxiao/api/goodscollect/page",data:{page_size:e.size,page:e.num,keyword:this.searchText.trim()},success:function(o){t.emptyShow=!0;var n=[],i=o.message;0==o.code&&o.data&&o.data.list?n=o.data.list:t.$util.showToast({title:i}),e.endSuccess(n.length),1==e.num&&(t.goodsList=[]),t.goodsList=t.goodsList.concat(n),t.$refs.loadingCover&&t.$refs.loadingCover.hide()},fail:function(o){e.endErr(),t.$refs.loadingCover&&t.$refs.loadingCover.hide()}})},search:function(){this.$refs.mescroll.refresh()},getMemberInfo:function(){var e=this;this.$api.sendRequest({url:"/fenxiao/api/fenxiao/detail",data:{},success:function(t){0==t.code&&t.data&&(e.account=t.data.account,t.data.headimg?e.memberImg=t.data.headimg:e.memberImg=e.$util.getDefaultImage().default_headimg,e.memberName=t.data.fenxiao_name)}})},imageError:function(e){this.goodsList[e].sku_image=this.$util.getDefaultImage().default_goods_img,this.$forceUpdate()},goTixian:function(){this.$util.redirectTo("/otherpages/fenxiao/withdraw_apply/withdraw_apply")},toGoodsDetail:function(e){this.$util.redirectTo("/pages/goods/detail/detail",{sku_id:e.sku_id})},delFollowTip:function(t,o){var n=this;e.showActionSheet({itemList:["取消关注"],success:function(e){0==e.tapIndex&&n.delFollow(t,o)},fail:function(e){}})},delFollow:function(e,t){var o=this;this.$api.sendRequest({url:"/fenxiao/api/goodscollect/delete",data:{collect_id:e},success:function(e){var n="";n=0==e.code?"取消成功":e.message,o.$util.showToast({title:n});var i=o.goodsList;i.splice(t,1),o.goodsList=i}})}}};t.default=u}).call(this,o("543d")["default"])}},[["0d6e","common/runtime","common/vendor"]]]);