(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/page-component/app-good-shop-recommendation/app-good-shop-recommendation"],{"2b01":function(t,e,n){"use strict";var o=n("9487"),r=n.n(o);r.a},"2b74":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("2f62");function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c={name:"app-good-shop-recommendation",props:{showGoods:{type:Boolean,default:function(){return!1}},cardStyle:{type:String,default:function(){return"1"}},type:{type:String,default:function(){return"mch"}},backgroundColor:{type:String,default:function(){return"#fff"}},theme:Object,page_id:Number,index:{type:Number},is_required:Boolean,mch_list:Array,coupon_req:Boolean},computed:i({},(0,o.mapGetters)("mallConfig",{getVideo:"getVideo"})),methods:{jump:function(t){this.$jump({url:"/plugins/mch/shop/shop?mch_id=".concat(t),open_type:"navigate"})},router_jump:function(e,n){e.goodsWarehouse.video_url&&1==this.getVideo?t.navigateTo({url:"/pages/goods/video?goods_id=".concat(e.id,"&sign=mch")}):t.navigateTo({url:"/plugins/mch/goods/goods?id=".concat(e.id,"&mch_id=").concat(n)})},loadData:function(){var t=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(e){if(t.list=e.data,0===t.page_id){var n=t.$storage.getStorageSync("INDEX_MALL");n.home_pages[t.index].list=t.list,t.$storage.setStorageSync("INDEX_MALL",n)}}))}},data:function(){return{list:[]}},watch:{mch_list:{handler:function(t){this.coupon_req&&(this.list=t)},deep:!0}},mounted:function(){if(this.coupon_req)this.list=this.mch_list;else if(this.is_required)this.loadData();else{var t=this.$storage.getStorageSync("INDEX_MALL");this.list=t.home_pages[this.index].list}}};e.default=c}).call(this,n("543d")["default"])},9487:function(t,e,n){},a33a:function(t,e,n){"use strict";n.r(e);var o=n("2b74"),r=n.n(o);for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=r.a},a387:function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}));var r=function(){var t=this,e=t.$createElement;t._self._c},i=[]},e818:function(t,e,n){"use strict";n.r(e);var o=n("a387"),r=n("a33a");for(var i in r)"default"!==i&&function(t){n.d(e,t,(function(){return r[t]}))}(i);n("2b01");var a,c=n("f0c5"),u=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,"7fbaba8a",null,!1,o["a"],a);e["default"]=u.exports}}]);
;(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__("e818"))
        })
    },
    [['components/page-component/app-good-shop-recommendation/app-good-shop-recommendation-create-component']]
]);
