(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/page-component/u-index-plugins/u-advance"],{"0ade":function(t,e,n){"use strict";n.r(e);var i=n("6546"),o=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=o.a},"3d07":function(t,e,n){"use strict";var i=n("92c2"),o=n.n(i);o.a},"5f33":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var o=function(){var t=this,e=t.$createElement,n=(t._self._c,"1"===t.style?t.__map(t.goodsList,(function(e,n){var i=t.__get_orig(e),o=t.isShowStock(e),s=t.isShowMemPrice(e),r=t.isShowVip(e);return{$orig:i,m0:o,m1:s,m2:r}})):null);t.$mp.data=Object.assign({},{$root:{l0:n}})},s=[]},6546:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("2f62");function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=function(){n.e("components/page-component/u-index-plugins/u-index-plugins").then(function(){return resolve(n("41a5"))}.bind(null,n)).catch(n.oe)},u=function(){n.e("components/page-component/u-goods-list/u-ordinary-list").then(function(){return resolve(n("1f2b"))}.bind(null,n)).catch(n.oe)},c={name:"u-advance",props:{index:Number,page_id:Number,is_required:Boolean,theme:{type:Object},appImg:{type:Object,default:function(){return{plugins_out:""}}},appSetting:{type:Object,default:function(){return{is_show_stock:1,sell_out_pic:"",is_use_stock:1}}}},data:function(){return{newData:{},tempList:[],goodsList:[],time:0,style:"1",goods_num:20}},computed:s({},(0,i.mapGetters)("mallConfig",{getTheme:"getTheme"})),components:{uIndexPlugins:a,uOrdinaryList:u},methods:{router:function(t){this.$emit("router",t)},isShowMemPrice:function(t){return 1===t.is_level&&1!==t.is_negotiable?1:0},isShowVip:function(t){return t.vip_card_appoint&&t.vip_card_appoint.discount>0&&1!==t.is_negotiable?1:0},isShowStock:function(t){return 1===this.appSetting.is_show_stock&&0===t.goods_stock?1:0},loadData:function(){var t=this,e={type:0===this.page_id?"mall":"diy",key:"advance",page_id:this.page_id,index:this.index};this.goods_num&&(e.goods_num=this.goods_num),this.$request({url:this.$api.index.extra,data:e}).then((function(e){if(0===e.code&&e.data&&(t.newData=e.data.list,0===t.page_id)){var n=t.$storage.getStorageSync("INDEX_MALL");n.home_pages[t.index].list=t.newData,t.$storage.setStorageSync("INDEX_MALL",n)}}))},cloneData:function(t){return JSON.parse(JSON.stringify(t))},splitData:function(){var t=this;if(this.tempList.length){var e=this.tempList[0];this.goodsList.push(e),this.tempList.splice(0,1),this.tempList.length&&(this.time=setTimeout((function(){t.splitData()}),200))}}},mounted:function(){var t=this.$storage.getStorageSync("INDEX_MALL");this.style=t.home_pages[this.index].style,this.goods_num=t.home_pages[this.index].goods_num,this.is_required?this.loadData():this.newData=t.home_pages[this.index].list},watch:{newData:{handler:function(t){this.$validation.empty(t)||(this.tempList=this.cloneData(t),this.splitData())},immediate:!0}},destroyed:function(){clearTimeout(this.time)}};e.default=c},"92c2":function(t,e,n){},b132:function(t,e,n){"use strict";n.r(e);var i=n("5f33"),o=n("0ade");for(var s in o)"default"!==s&&function(t){n.d(e,t,(function(){return o[t]}))}(s);n("3d07");var r,a=n("f0c5"),u=Object(a["a"])(o["default"],i["b"],i["c"],!1,null,"777da824",null,!1,i["a"],r);e["default"]=u.exports}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/page-component/u-index-plugins/u-advance-create-component',
    {
        'components/page-component/u-index-plugins/u-advance-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('543d')['createComponent'](__webpack_require__("b132"))
        })
    },
    [['components/page-component/u-index-plugins/u-advance-create-component']]
]);
