1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-79417b04"],{"056a":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQQAAACUCAYAAAB1GVf9AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABBKADAAQAAAABAAAAlAAAAAD7OG/zAAAH8ElEQVR4Ae3dWXPUOBQGUGcYoKCAByi2///f2LewE5bAzVSXIBPfdu8y9/gFpdVedKT+4pbtcHRycnI6WAgQIPBL4B8KBAgQWAgIhIWEfwkQcIZgDBAg0AScITQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBARCs1AiUF5AIJQfAgAINAGB0CyUCJQXEAjlhwAAAk1AIDQLJQLlBQRC+SEAgEATEAjNQolAeQGBUH4IACDQBP5tRaW5CLx//374+PHjcHJyMnz//n24dOnScOXKleH69evDjRs35tIMx9mhwNGvQXXa4XE5pAsEvn79Orx8+XL48uXLBbX/vXT16tXhzp07w+XLl0ffo4LAmIBAGJPp7PUIgadPnw6np8vz++joaLh///4Q4WAhsIqAOYRVtA703giB58+fTwqDOMRV379Jsz5//jw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MJCYF0BgbCu3I7Xi1PqVa4QxHvj+QOX9HbcMX/55gVChx0cXwHWmXQTBh125swOSSB01mERBL5bd9YphQ7HpGJnnS0MOuuQYocjEIp1uOYSyAQEQqajjkAxAYFQrMM1l0AmIBAyHXUEigkIhGIdrrkEMgGBkOmoI1BMwF9dLtbhmksgE3CGkOmoI1BMQCAU63DNJZAJCIRMRx2BYgICoViHay6BTEAgZDrqCBQTEAjFOlxzCWQCAiHTUUegmIBAKNbhmksgExAImY46AsUEBEKxDtdcApmAQMh01BEoJiAQinW45hLIBARCpqOOQDEBgVCswzWXQCYgEDIddQSKCQiEYh2uuQQyAYGQ6agjUExAIBTrcM0lkAkIhExHHYFiAgKhWIdrLoFMQCBkOuoIFBMQCMU6XHMJZAICIdNRR6CYgEAo1uGaSyATEAiZjjoCxQQEQrEO11wCmYBAyHTUESgmIBCKdbjmEsgEBEKmo45AMQGBUKzDNZdAJiAQMh11BIoJCIRiHa65BDIBgZDpqCNQTEAgFOtwzSWQCQiETEcdgWICAqFYh2sugUxAIGQ66ggUExAIxTpccwlkAgIh01FHoJiAQCjW4ZpLIBMQCJmOOgLFBARCsQ7XXAKZgEDIdNQRKCYgEIp1uOYSyAQEQqajjkAxAYFQrMM1l0AmIBAyHXUEigkIhGIdrrkEMgGBkOmoI1BMQCAU63DNJZAJCIRMRx2BYgICoViHay6BTEAgZDrqCBQTEAjFOlxzCWQCPwEYef7DpS5s4AAAAABJRU5ErkJggg=="},3568:function(t,e,n){},b562:function(t,e,n){"use strict";n.d(e,"l",(function(){return a})),n.d(e,"n",(function(){return i})),n.d(e,"D",(function(){return s})),n.d(e,"h",(function(){return o})),n.d(e,"j",(function(){return c})),n.d(e,"m",(function(){return u})),n.d(e,"y",(function(){return l})),n.d(e,"a",(function(){return d})),n.d(e,"x",(function(){return p})),n.d(e,"s",(function(){return A})),n.d(e,"t",(function(){return m})),n.d(e,"C",(function(){return h})),n.d(e,"g",(function(){return g})),n.d(e,"i",(function(){return f})),n.d(e,"k",(function(){return b})),n.d(e,"d",(function(){return w})),n.d(e,"e",(function(){return C})),n.d(e,"f",(function(){return v})),n.d(e,"z",(function(){return Q})),n.d(e,"B",(function(){return E})),n.d(e,"A",(function(){return B})),n.d(e,"H",(function(){return j})),n.d(e,"o",(function(){return O})),n.d(e,"c",(function(){return I})),n.d(e,"G",(function(){return y})),n.d(e,"E",(function(){return x})),n.d(e,"F",(function(){return P})),n.d(e,"w",(function(){return F})),n.d(e,"u",(function(){return k})),n.d(e,"v",(function(){return G})),n.d(e,"p",(function(){return D})),n.d(e,"b",(function(){return T})),n.d(e,"r",(function(){return H})),n.d(e,"q",(function(){return M}));var r=n("b6bd");function a(t){return Object(r.a)({url:"app/routine",method:"get",params:t})}function i(){return Object(r.a)({url:"app/routine/syncSubscribe",method:"GET"})}function s(){return Object(r.a)({url:"app/wechat/syncSubscribe",method:"GET"})}function o(){return Object(r.a)({url:"app/routine/create",method:"get"})}function c(t){return Object(r.a)({url:"app/routine/".concat(t,"/edit"),method:"get"})}function u(t){return Object(r.a)({url:"app/routine/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function l(t){return Object(r.a)({url:"app/wechat/menu",method:"get"})}function d(t){return Object(r.a)({url:"app/wechat/menu",method:"post",data:t})}function p(t){return Object(r.a)({url:"app/wechat/template",method:"get",params:t})}function A(){return Object(r.a)({url:"app/wechat/template/create",method:"get"})}function m(t){return Object(r.a)({url:"app/wechat/template/".concat(t,"/edit"),method:"get"})}function h(t){return Object(r.a)({url:"app/wechat/template/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function g(t){return Object(r.a)({url:t.url,method:"post",data:t.key})}function f(t){return Object(r.a)({url:"app/routine/download",method:"post",data:t})}function b(){return Object(r.a)({url:"app/routine/info",method:"get"})}function w(t){return Object(r.a)({url:"app/wechat/keyword",method:"get",params:t})}function C(t){return Object(r.a)({url:"app/wechat/keyword/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function v(t,e){return Object(r.a)({url:t,method:"get",params:e.key})}function Q(t){return Object(r.a)({url:"/app/wechat/news",method:"POST",data:t})}function E(t){return Object(r.a)({url:"app/wechat/news",method:"GET",params:t})}function B(t){return Object(r.a)({url:"app/wechat/news/".concat(t),method:"GET"})}function j(t){return Object(r.a)({url:"app/wechat/user",method:"GET",params:t})}function O(){return Object(r.a)({url:"app/wechat/user/tag_group",method:"GET"})}function I(t){return Object(r.a)({url:t,method:"GET"})}function y(){return Object(r.a)({url:"app/wechat/tag",method:"GET"})}function x(){return Object(r.a)({url:"app/wechat/tag/create",method:"GET"})}function P(t){return Object(r.a)({url:"app/wechat/tag/".concat(t,"/edit"),method:"GET"})}function F(){return Object(r.a)({url:"app/wechat/group",method:"GET"})}function k(){return Object(r.a)({url:"app/wechat/group/create",method:"GET"})}function G(t){return Object(r.a)({url:"app/wechat/group/".concat(t,"/edit"),method:"GET"})}function D(t){return Object(r.a)({url:"app/wechat/action",method:"GET",params:t})}function T(t){return Object(r.a)({url:"app/wechat/code_reply/".concat(t),method:"GET"})}function H(){return Object(r.a)({url:"/app/wechat/card",method:"GET"})}function M(t){return Object(r.a)({url:"/app/wechat/card",method:"post",data:t})}},d9fa:function(t,e,n){"use strict";n.r(e);var r=n("a34a"),a=n.n(r),i=n("2f62"),s=n("a069"),o=n("b0e7"),c=n("b562"),u=n("d708");function l(t,e,n,r,a,i,s){try{var o=t[i](s),c=o.value}catch(t){return void n(t)}o.done?e(c):Promise.resolve(c).then(r,a)}function d(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var i=t.apply(e,n);function s(t){l(i,r,a,s,o,"next",t)}function o(t){l(i,r,a,s,o,"throw",t)}s(void 0)}))}}function p(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 A(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(n,!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h={name:"newsCategorySave",components:{uploadPictures:o.a,WangEditor:s.a},watch:{$route:function(t,e){"0"!==this.$route.params.id?this.info():(this.list=[{title:"",author:"",synopsis:"",image_input:"",content:"",id:0}],this.saveForm=this.list[this.current])}},data:function(){var t=this;return{roterPre:u.a.roterPre,val:"",ruleValidate:{title:[{required:!0,message:"请输入标题",trigger:"blur"}],author:[{required:!0,message:"请输入作者",trigger:"blur"}],image_input:[{required:!0,validator:function(e,n,r){t.saveForm.image_input?r():r(new Error("请上传图文封面"))},trigger:"change"}],content:[{required:!0,message:"请输入正文",trigger:"change"}],synopsis:[{required:!0,message:"请输入文章摘要",trigger:"blur"}]},isChoice:"单选",dragging:null,isDel:!1,msg:"",count:[],baseImg:n("056a"),saveForm:{title:"",author:"",synopsis:"",image_input:"",content:"",id:0},current:0,list:[{title:"",author:"",synopsis:"",image_input:"",content:"",id:0}],uploadList:[],modalPic:!1,gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8}}},computed:A({},Object(i.e)("admin/layout",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:120},labelPosition:function(){return this.isMobile?"top":"right"}}),mounted:function(){"0"!==this.$route.params.id?this.info():this.saveForm=this.list[this.current]},methods:A({},Object(i.b)("admin/page",["close"]),{getEditorContent:function(t){this.saveForm.content=t},addCustomDialog:function(t){window.UE.registerUI("test-dialog",(function(t,e){var n=new window.UE.ui.Dialog({iframeUrl:"/admin/widget.images/index.html?fodder=dialog",editor:t,name:e,title:"上传图片",cssRules:"width:1200px;height:500px;padding:20px;"});return this.dialog=n,new window.UE.ui.Button({name:"dialog-button",title:"上传图片",cssRules:"background-image: url(../../../assets/images/icons.png);background-position: -726px -77px;",onclick:function(){n.render(),n.open()}})}),37)},modalPicTap:function(){this.modalPic=!0},getPic:function(t){this.saveForm.image_input=t.att_dir,this.modalPic=!1},handleAdd:function(){if(!this.check())return!1;this.list.push({title:"",author:"",synopsis:"",image_input:"",content:"",id:0})},onSubSave:function(t){var e=this;this.current=t,this.list.map((function(t,n){if(n===e.current)return e.saveForm=e.list[e.current]}))},del:function(t){0===t?this.$Message.warning("不能再删除了"):(this.list.splice(t,1),this.saveForm={})},info:function(){var t=this;Object(c.A)(this.$route.params.id).then(function(){var e=d(a.a.mark((function e(n){var r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=n.data.info,t.list=r.new,t.val=t.list[t.current].content,t.saveForm=t.list[t.current];case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},subFrom:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;var n={id:e.$route.params.id||0,list:e.list};Object(c.z)(n).then(function(){var t=d(a.a.mark((function t(n){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$Message.success(n.msg),setTimeout((function(){e.$router.push({path:"".concat(e.roterPre,"/app/wechat/news_category/index")})}),500);case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))}))},check:function(){for(var t in this.list)return this.list[t].title?this.list[t].author?this.list[t].synopsis?this.list[t].image_input?!!this.list[t].content||(this.$Message.warning("请输入文章的内容"),!1):(this.$Message.warning("请输入文章的图文封面"),!1):(this.$Message.warning("请输入文章的摘要"),!1):(this.$Message.warning("请输入文章的作者"),!1):(this.$Message.warning("请输入文章的标题"),!1)}})},g=(n("dfc1"),n("2877")),f=Object(g.a)(h,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"newsBox"},[n("div",{staticClass:"i-layout-page-header"},[n("PageHeader",{staticClass:"product_tabs",attrs:{"hidden-breadcrumb":""}},[n("div",{attrs:{slot:"title"},slot:"title"},[n("router-link",{attrs:{to:{path:t.roterPre+"/app/wechat/news_category/index"}}},[n("div",{staticClass:"font-sm after-line"},[n("span",{staticClass:"iconfont iconfanhui"}),n("span",{staticClass:"pl10"},[t._v("返回")])])]),n("span",{staticClass:"mr20",domProps:{textContent:t._s(t.$route.meta.title)}})],1)])],1),n("Card",{staticClass:"save_from ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[n("Row",{attrs:{type:"flex",gutter:24}},[n("Col",{attrs:{xl:6,lg:6,md:12,sm:24,xs:24}},[t._l(t.list,(function(e,r){return n("div",{key:r},[0===r?n("div",{class:{checkClass:r===t.current},on:{click:function(e){return t.onSubSave(r)},mouseenter:function(e){t.isDel=!0},mouseleave:function(e){t.isDel=!1}}},[n("div",{staticClass:"news_pic",style:{backgroundImage:"url("+(e.image_input?e.image_input:t.baseImg)+")",backgroundSize:"100% 100%"}},[n("Button",{directives:[{name:"show",rawName:"v-show",value:t.isDel,expression:"isDel"}],attrs:{type:"error",shape:"circle",icon:"md-trash"},on:{click:function(e){return t.del(r)}}})],1),n("span",{staticClass:"news_sp"},[t._v(t._s(e.title))])]):n("div",{staticClass:"news_cent",class:{checkClass:r===t.current},on:{click:function(e){return t.onSubSave(r)}}},[n("span",{staticClass:"news_sp1"},[t._v(t._s(e.title))]),n("div",{staticClass:"news_cent_img ivu-mr-8"},[n("img",{attrs:{src:e.image_input?e.image_input:t.baseImg}})]),n("Button",{attrs:{type:"error",shape:"circle",icon:"md-trash"},on:{click:function(e){return t.del(r)}}})],1)])})),n("div",{staticClass:"acea-row row-center-wrapper"},[n("Button",{staticClass:"mt20",attrs:{icon:"ios-download-outline",type:"primary"},on:{click:t.handleAdd}},[t._v("添加图文")])],1)],2),n("Col",{attrs:{xl:18,lg:18,md:12,sm:24,xs:24}},[n("Form",{ref:"saveForm",staticClass:"saveForm",attrs:{model:t.saveForm,"label-width":t.labelWidth,rules:t.ruleValidate,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[n("Row",{attrs:{gutter:24,type:"flex"}},[n("Col",{staticClass:"ml40",attrs:{span:"24"}},[n("FormItem",{attrs:{label:"标题:",prop:"title"}},[n("Input",{staticStyle:{width:"60%"},attrs:{type:"text",placeholder:"请输入文章标题"},model:{value:t.saveForm.title,callback:function(e){t.$set(t.saveForm,"title",e)},expression:"saveForm.title"}})],1)],1),n("Col",{staticClass:"ml40",attrs:{span:"24"}},[n("FormItem",{attrs:{label:"作者:",prop:"author"}},[n("Input",{staticStyle:{width:"60%"},attrs:{type:"text",placeholder:"请输入作者名称"},model:{value:t.saveForm.author,callback:function(e){t.$set(t.saveForm,"author",e)},expression:"saveForm.author"}})],1)],1),n("Col",{staticClass:"ml40",attrs:{span:"24"}},[n("FormItem",{attrs:{label:"摘要:",prop:"synopsis"}},[n("Input",{staticStyle:{width:"60%"},attrs:{type:"textarea",placeholder:"请输入摘要"},model:{value:t.saveForm.synopsis,callback:function(e){t.$set(t.saveForm,"synopsis",e)},expression:"saveForm.synopsis"}})],1)],1),n("Col",{staticClass:"ml40",attrs:{span:"24"}},[n("FormItem",{attrs:{label:"图文封面:",prop:"image_input"}},[n("div",{staticClass:"picBox",on:{click:function(e){return t.modalPicTap("单选")}}},[t.saveForm.image_input?n("div",{staticClass:"pictrue"},[n("img",{attrs:{src:t.saveForm.image_input}})]):n("div",{staticClass:"upLoad acea-row row-center-wrapper"},[n("Icon",{attrs:{type:"ios-camera-outline",size:"26"}})],1)])]),n("FormItem",{attrs:{label:"正文:",prop:"content"}},[n("WangEditor",{staticStyle:{width:"90%"},attrs:{content:t.val},on:{editorContent:t.getEditorContent}})],1)],1),n("Col",{staticClass:"ml40",attrs:{span:"24"}},[n("FormItem",[n("Button",{staticClass:"submission",attrs:{type:"primary"},on:{click:function(e){return t.subFrom("saveForm")}}},[t._v("提交")])],1)],1),n("Modal",{attrs:{width:"960px",scrollable:"","footer-hide":"",closable:"",title:"上传文章图","mask-closable":!1,"z-index":1},model:{value:t.modalPic,callback:function(e){t.modalPic=e},expression:"modalPic"}},[t.modalPic?n("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic}}):t._e()],1)],1)],1)],1)],1)],1)],1)}),[],!1,null,"11d1407d",null);e.default=f.exports},dfc1:function(t,e,n){"use strict";var r=n("3568");n.n(r).a}}]);
|