(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/page-component/app-good-shop-recommendation/app-good-shop-recommendation"],{"2a6d":function(e,t,r){"use strict";r.r(t);var n=r("f130"),o=r("af1e");for(var i in o)"default"!==i&&function(e){r.d(t,e,(function(){return o[e]}))}(i);r("2d46");var a,u=r("f0c5"),c=Object(u["a"])(o["default"],n["b"],n["c"],!1,null,"58f9e498",null,!1,n["a"],a);t["default"]=c.exports},"2d46":function(e,t,r){"use strict";var n=r("45e4"),o=r.n(n);o.a},"45e4":function(e,t,r){},"5b8d":function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("2f62");function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u={name:"app-good-shop-recommendation",props:{showGoods:{type:Boolean,default:function(){return!1},required:!1},cardStyle:{type:String,default:function(){return"1"},required:!1},type:{type:String,default:function(){return"mch"},required:!1},backgroundColor:{type:String,default:function(){return"#fff"},required:!1},theme:{type:[String,Object],required:!1},page_id:{type:Number,required:!1},index:{type:Number,required:!1},is_required:{type:Boolean,required:!1},mch_list:{type:Array,required:!1},coupon_req:{type:Boolean,required:!1}},computed:i(i({},(0,n.mapGetters)("mallConfig",{getVideo:"getVideo"})),(0,n.mapState)({platform:function(e){return e.gConfig.systemInfo.platform}})),methods:{jump:function(e){this.$jump({url:"/plugins/mch/shop/shop?mch_id=".concat(e),open_type:"navigate"})},router_jump:function(t,r){t.goodsWarehouse.video_url&&1==this.getVideo?e.navigateTo({url:"/pages/goods/video?goods_id=".concat(t.id,"&sign=mch")}):e.navigateTo({url:"/plugins/mch/goods/goods?id=".concat(t.id,"&mch_id=").concat(r)})},loadData:function(){var e=this;this.$request({url:this.$api.index.extra,data:{type:0===this.page_id?"mall":"diy",key:"mch",page_id:this.page_id,index:this.index,longitude:0,latitude:0}}).then((function(t){if(e.list=t.data,0===e.page_id){var r=e.$storage.getStorageSync("INDEX_MALL");r.home_pages[e.index].list=e.list,e.$storage.setStorageSync("INDEX_MALL",r)}}))}},data:function(){return{list:[]}},watch:{mch_list:{handler:function(e){this.coupon_req&&(this.list=e)},deep:!0}},mounted:function(){if(this.coupon_req)this.list=this.mch_list;else if(this.is_required)this.loadData();else{var e=this.$storage.getStorageSync("INDEX_MALL");this.list=e.home_pages[this.index].list}}};t.default=u}).call(this,r("543d")["default"])},af1e:function(e,t,r){"use strict";r.r(t);var n=r("5b8d"),o=r.n(n);for(var i in n)"default"!==i&&function(e){r.d(t,e,(function(){return n[e]}))}(i);t["default"]=o.a},f130:function(e,t,r){"use strict";var n;r.d(t,"b",(function(){return o})),r.d(t,"c",(function(){return i})),r.d(t,"a",(function(){return n}));var o=function(){var e=this,t=e.$createElement;e._self._c},i=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/page-component/app-good-shop-recommendation/app-good-shop-recommendation-create-component',
    {
        'components/page-component/app-good-shop-recommendation/app-good-shop-recommendation-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('543d')['createComponent'](__webpack_require__("2a6d"))
        })
    },
    [['components/page-component/app-good-shop-recommendation/app-good-shop-recommendation-create-component']]
]);
