(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-cd10d176","chunk-16fb4b99"],{"11b1":function(t,e,r){"use strict";r.r(e);var n=r("f478"),o=r("2f62");function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s={name:"goodClass",data:function(){return{list1:[{image:r("30f6"),val:"1-2"},{image:r("8ce3"),val:"2-2"},{image:r("6430"),val:"3-2"},{image:r("8cb4"),val:"2-2-1"},{image:r("616a"),val:"3-2-1"},{image:r("d18a"),val:"4-2"}],list2:[{image:r("cc5c"),val:"1-3"},{image:r("ca2d"),val:"2-3"},{image:r("97f4"),val:"3-3"},{image:r("d18a"),val:"4-3"}],level:2,activeIndex:0,activeStyle:"-1"}},computed:function(t){for(var e=1;e=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:$(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function p(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function v(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=f(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==f(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var y={name:"devise_list",computed:function(t){for(var e=1;e是否把该模板设为首页

",onOk:function(){Object(o.x)(e.id,{type:1}).then((function(t){var e=r;t.data.status?(r.$Message.success(t.data.msg),r.$Modal.remove(),r.getList()):setTimeout((function(t){e.$Modal.confirm({title:"提示",content:"

尚未安装模板,请安装后再试!

",loading:!1})}),500)})).catch((function(t){r.$Modal.remove(),r.$Message.error(t.msg)}))}});case 1:case"end":return t.stop()}}),t,this)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){p(i,n,o,a,c,"next",t)}function c(t){p(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}(),recovery:function(t){var e=this;Object(o.t)(t.id).then((function(t){e.$Message.success(t.msg),e.getList()}))}}},m=(r("c6ba"),r("2877")),g=Object(m.a)(y,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"i-layout-page-header"},[e("PageHeader",{staticClass:"product_tabs",style:"padding-right:"+(t.menuCollapse?105:20)+"px",attrs:{title:t.$route.meta.title,"hidden-breadcrumb":""}},[e("div",{attrs:{slot:"title"},slot:"title"},[e("div",{staticClass:"float-l"},[e("span",{staticClass:"mr20",domProps:{textContent:t._s(t.$route.meta.title)}})])])])],1),e("Row",{staticClass:"ivu-mt box-wrapper acea-row"},[e("Col",{staticClass:"right-wrapper"},[0==t.cardShow?e("Card",{attrs:{bordered:!1,"dis-hover":""}},[0==t.cardShow?e("Row",[t.isDiy?e("Col",{staticStyle:{width:"310px",height:"550px","margin-right":"30px",position:"relative"}},[e("iframe",{ref:"iframe",staticClass:"iframe-box",attrs:{src:t.imgUrl,frameborder:"0"}}),e("div",{staticClass:"mask"})]):t._e(),e("Col",{class:t.isDiy?"tableDiv":"table"},[e("div",{staticClass:"acea-row row-between-wrapper"},[e("Row",{attrs:{type:"flex"}},[e("Col",t._b({},"Col",t.grid,!1),[e("div",{staticClass:"button acea-row row-middle"},[e("Button",{attrs:{type:"primary"},on:{click:t.add}},[t._v("添加主题")])],1)])],1)],1),e("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns1,data:t.list,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"region",fn:function(r){var n=r.row;return r.index,[e("div",{staticClass:"font-blue"},[t._v("\n "+t._s(1==n.type?"默认模板":2==n.type?"行业模板":"活动模板")+"\n ")])]}},{key:"action",fn:function(r){var n=r.row,o=r.index;return[n.status||n.is_diy?e("a",{on:{click:function(e){return t.edit(n)}}},[t._v("编辑")]):t._e(),1!=n.id&&n.is_diy?e("div",{staticStyle:{display:"inline-block"}},[n.status||n.is_diy?e("Divider",{attrs:{type:"vertical"}}):t._e(),e("a",{on:{click:function(e){return t.del(n,o)}}},[t._v("删除")])],1):t._e(),1!=n.status?e("div",{staticStyle:{display:"inline-block"}},[n.status||n.is_diy?e("Divider",{attrs:{type:"vertical"}}):t._e(),e("a",{on:{click:function(e){return t.setStatus(n,o)}}},[t._v("设为首页")])],1):t._e(),n.status||n.is_diy?e("div",{staticStyle:{display:"inline-block"}},[e("Divider",{attrs:{type:"vertical"}}),e("a",{staticClass:"copy-data",on:{click:function(e){return t.preview(n)}}},[t._v("预览")])],1):t._e(),n.is_diy?t._e():e("div",{staticStyle:{display:"inline-block"}},[e("Divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.recovery(n,o)}}},[t._v("恢复初始设置")]),e("Divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.del(n,o)}}},[t._v("删除")])],1)]}}],null,!1,1025537223)}),e("div",{staticClass:"acea-row row-right page"},[e("Page",{attrs:{total:t.total,current:t.diyFrom.page,"show-elevator":"","show-total":"","page-size":t.diyFrom.limit},on:{"on-change":t.pageChange}})],1)],1)],1):t._e()],1):t._e(),1==t.cardShow?e("goodClass",{ref:"category",on:{parentFun:t.getChildData}}):t._e(),2===t.cardShow?e("newGoods",{ref:"newGoods",on:{parentFun:t.getChildData}}):t._e(),3==t.cardShow?e("users",{ref:"users",on:{parentFun:t.getChildData}}):t._e()],1)],1),e("Card",{directives:[{name:"show",rawName:"v-show",value:1==t.cardShow||2==t.cardShow||3==t.cardShow,expression:"cardShow == 1 || cardShow == 2 || cardShow == 3"}],staticClass:"fixed-card",style:{left:"".concat(t.menuCollapse?t.isMobile?"0":"80px":"200px")},attrs:{bordered:!1,"dis-hover":""}},[e("div",{staticClass:"acea-row row-center-wrapper"},[e("Button",{staticClass:"bnt",attrs:{type:"primary",loading:t.loadingExist},on:{click:t.submit}},[t._v("保存")]),1==t.cardShow?e("Button",{staticClass:"bnt ml20",on:{click:t.reast}},[t._v("重置")]):t._e()],1)]),e("Modal",{attrs:{title:"预览","footer-hide":""},model:{value:t.modal,callback:function(e){t.modal=e},expression:"modal"}},[e("div",[e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"acea-row row-around code"},[e("div",{staticClass:"acea-row row-column-around row-between-wrapper"},[e("div",{ref:"qrCodeUrl",staticClass:"QRpic"}),e("span",{staticClass:"mt10"},[t._v("公众号二维码")])]),e("div",{staticClass:"acea-row row-column-around row-between-wrapper"},[e("div",{staticClass:"QRpic"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.qrcodeImg,expression:"qrcodeImg"}]})]),e("span",{staticClass:"mt10"},[t._v("小程序二维码")])])])])])],1)}),[],!1,null,"3d602474",null);e.default=g.exports},b311:function(t,e,r){ /*! * clipboard.js v2.0.11 * https://clipboardjs.com/ * * Licensed MIT © Zeno Rocha */ var n;n=function(){return function(){var t={686:function(t,e,r){"use strict";r.d(e,{default:function(){return x}});var n=r(279),o=r.n(n),i=r(370),a=r.n(i),c=r(817),s=r.n(c);function u(t){try{return document.execCommand(t)}catch(t){return!1}}var l=function(t){var e=s()(t);return u("cut"),e},f=function(t,e){var r=function(t){var e="rtl"===document.documentElement.getAttribute("dir"),r=document.createElement("textarea");r.style.fontSize="12pt",r.style.border="0",r.style.padding="0",r.style.margin="0",r.style.position="absolute",r.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;return r.style.top="".concat(n,"px"),r.setAttribute("readonly",""),r.value=t,r}(t);e.container.appendChild(r);var n=s()(r);return u("copy"),r.remove(),n},d=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},r="";return"string"==typeof t?r=f(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null===t||void 0===t?void 0:t.type)?r=f(t.value,e):(r=s()(t),u("copy")),r};function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var h=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.action,r=void 0===e?"copy":e,n=t.container,o=t.target,i=t.text;if("copy"!==r&&"cut"!==r)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==o){if(!o||"object"!==p(o)||1!==o.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===r&&o.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===r&&(o.hasAttribute("readonly")||o.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return i?d(i,{container:n}):o?"cut"===r?l(o):d(o,{container:n}):void 0};function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(t,e){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return d(t,e)}},{key:"cut",value:function(t){return l(t)}},{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,r=!!document.queryCommandSupported;return e.forEach((function(t){r=r&&!!document.queryCommandSupported(t)})),r}}],(r=[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===v(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=a()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,r=this.action(e)||"copy",n=h({action:r,container:this.container,target:this.target(e),text:this.text(e)});this.emit(n?"success":"error",{action:r,text:n,trigger:e,clearSelection:function(){e&&e.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return w("action",t)}},{key:"defaultTarget",value:function(t){var e=w("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return w("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}])&&y(e.prototype,r),n&&y(e,n),c}()},828:function(t){var e=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var r=Element.prototype;r.matches=r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector}t.exports=function(t,r){for(;t&&t.nodeType!==e;){if("function"==typeof t.matches&&t.matches(r))return t;t=t.parentNode}}},438:function(t,e,r){var n=r(828);function o(t,e,r,o,i){var a=function(t,e,r,o){return function(r){r.delegateTarget=n(r.target,e),r.delegateTarget&&o.call(t,r)}}.apply(this,arguments);return t.addEventListener(r,a,i),{destroy:function(){t.removeEventListener(r,a,i)}}}t.exports=function(t,e,r,n,i){return"function"==typeof t.addEventListener?o.apply(null,arguments):"function"==typeof r?o.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return o(t,e,r,n,i)})))}},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var r=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===r||"[object HTMLCollection]"===r)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,e,r){var n=r(879),o=r(438);t.exports=function(t,e,r){if(!t&&!e&&!r)throw new Error("Missing required arguments");if(!n.string(e))throw new TypeError("Second argument must be a String");if(!n.fn(r))throw new TypeError("Third argument must be a Function");if(n.node(t))return function(t,e,r){return t.addEventListener(e,r),{destroy:function(){t.removeEventListener(e,r)}}}(t,e,r);if(n.nodeList(t))return function(t,e,r){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,r)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,r)}))}}}(t,e,r);if(n.string(t))return function(t,e,r){return o(document.body,t,e,r)}(t,e,r);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(t){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var r=t.hasAttribute("readonly");r||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),r||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var n=window.getSelection(),o=document.createRange();o.selectNodeContents(t),n.removeAllRanges(),n.addRange(o),e=n.toString()}return e}},279:function(t){function e(){}e.prototype={on:function(t,e,r){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:e,ctx:r}),this},once:function(t,e,r){var n=this;function o(){n.off(t,o),e.apply(r,arguments)}return o._=e,this.on(t,o,r)},emit:function(t){for(var e=[].slice.call(arguments,1),r=((this.e||(this.e={}))[t]||[]).slice(),n=0,o=r.length;n