(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/basic-component/app-close/app-close"],{"104e":function(t,e,n){"use strict";n.r(e);var r=n("dd3b"),a=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=a.a},1193:function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var a=function(){var t=this,e=t.$createElement;t._self._c},o=[]},1653:function(t,e,n){"use strict";n.r(e);var r=n("1193"),a=n("104e");for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("46e3");var i,u=n("f0c5"),l=Object(u["a"])(a["default"],r["b"],r["c"],!1,null,"15705f05",null,!1,r["a"],i);e["default"]=l.exports},1684:function(t,e,n){},"46e3":function(t,e,n){"use strict";var r=n("1684"),a=n.n(r);a.a},dd3b:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("2f62");function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e){var n;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=l(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return i=t.done,t},e:function(t){u=!0,o=t},f:function(){try{i||null==n.return||n.return()}finally{if(u)throw o}}}}function l(t,e){if(t){if("string"===typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var s=function(){n.e("components/basic-component/u-mask/u-mask").then(function(){return resolve(n("555e"))}.bind(null,n)).catch(n.oe)},f={name:"app-close",components:{uMask:s},props:{modal:{type:Boolean,default:function(){return!0}},toBack:{type:Boolean,default:function(){return!1}},mch_id:{type:[Number,String],default:function(){return 0}},mch_list:{type:String,default:function(){return""}}},data:function(){return{mallStatus:{is_open:0,auto_open_text:""},isMall:!0,list:""}},created:function(){var t=this,e={},n="";this.mch_list&&(n=this.mch_list,n.length>0&&(e.mch_id_list=n,-1==n.indexOf(0)&&(this.isMall=!1))),this.mch_id>0&&(e.mch_id_list=JSON.stringify([this.mch_id]),this.isMall=!1),this.$request({url:this.$api.index.status,data:e}).then((function(r){console.log(e);r.data;if(t.isMall||r.data.shift(),t.mallStatus=r.data[0],t.mch_id>0){var a,o=u(r.data);try{for(o.s();!(a=o.n()).done;){var i=a.value;i.mch_id==t.mch_id&&(t.mallStatus=i)}}catch(f){o.e(f)}finally{o.f()}}if(n.length>0){t.list="";var l,c=u(r.data);try{for(c.s();!(l=c.n()).done;){var s=l.value;2==s.is_open&&(t.mallStatus.auto_open_text||(t.mallStatus.auto_open_text=s.auto_open_text),t.mallStatus.is_open=s.is_open,t.list.length>0&&(t.list+="、"),t.list+=s.name)}}catch(f){c.e(f)}finally{c.f()}t.$emit("update",t.mallStatus)}else t.$emit("update",t.mallStatus)}))},computed:o(o({},(0,r.mapGetters)("mallConfig",{getTheme:"getTheme"})),(0,r.mapState)({mall:function(t){return t.mallConfig.mall},userInfo:function(t){return t.user.info}})),methods:{toIndex:function(){this.toBack?t.navigateBack():t.redirectTo({url:"/pages/index/index"})}}};e.default=f}).call(this,n("543d")["default"])}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/basic-component/app-close/app-close-create-component',
    {
        'components/basic-component/app-close/app-close-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('543d')['createComponent'](__webpack_require__("1653"))
        })
    },
    [['components/basic-component/app-close/app-close-create-component']]
]);
