CRMEB/crmeb/public/admin/system_static/js/chunk-7bbdd5d4.1546f338.js
2023-04-06 18:14:33 +08:00

1 line
7.2 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-7bbdd5d4"],{"16aa":function(t,e,a){"use strict";var n=a("e96a");a.n(n).a},"2ec3":function(t,e,a){},"31b4":function(t,e,a){"use strict";var n=a("f3f3"),i=a("9860"),o=(i=a.n(i),a("6b6c")),s=a("2f62");i={name:"edit",components:{formCreate:i.a.$form()},computed:Object(n.a)({},Object(s.e)("userLevel",["taskId","levelId"])),props:{FromData:{type:Object,default:null},update:{type:Boolean,default:!0}},data:function(){return{modals:!1,type:0,loading:!1,config:{global:{upload:{props:{onSuccess:function(t,e){200===t.status?e.url=t.data.src:this.Message.error(t.msg)}}}}}}},methods:{couponsType:function(){this.$parent.addType(this.type)},onSubmit:function(t){var e=this;this.loading||(this.loading=!0,Object(o.a)({url:this.FromData.action,method:this.FromData.method,data:t}).then((function(t){e.update&&e.$parent.getList(),e.$Message.success(t.msg),e.modals=!1,setTimeout((function(){e.$emit("submitFail"),e.loading=!1}),1e3)})).catch((function(t){e.loading=!1,e.$Message.error(t.msg)})))},cancel:function(){this.type=0}}},a("9646"),n=a("2877"),s=Object(n.a)(i,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return t.FromData?e("div",[e("Modal",{attrs:{scrollable:"","footer-hide":"",closable:"",title:t.FromData.title,"z-index":1,width:"700"},on:{"on-cancel":t.cancel},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[["/marketing/coupon/save.html"===t.FromData.action?e("div",{staticClass:"radio acea-row row-middle"},[e("div",{staticClass:"name ivu-form-item-content"},[t._v("优惠券类型")]),e("Radio-group",{on:{"on-change":t.couponsType},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[e("Radio",{attrs:{label:0}},[t._v("通用券")]),e("Radio",{attrs:{label:1}},[t._v("品类券")]),e("Radio",{attrs:{label:2}},[t._v("商品券")])],1)],1):t._e()],e("form-create",{ref:"fc",staticClass:"formBox",attrs:{option:t.config,rule:Array.from(t.FromData.rules),handleIcon:"false"},on:{submit:t.onSubmit}})],2)],1):t._e()}),[],!1,null,"5cc97a38",null);e.a=s.exports},"857a":function(t,e,a){var n=a("e330"),i=a("1d80"),o=a("577e"),s=/"/g,r=n("".replace);t.exports=function(t,e,a,n){t=o(i(t));var c="<"+e;return""!==a&&(c+=" "+a+'="'+r(o(n),s,"&quot;")+'"'),c+">"+t+"</"+e+">"}},9646:function(t,e,a){"use strict";var n=a("2ec3");a.n(n).a},9911:function(t,e,a){"use strict";var n=a("23e7"),i=a("857a");n({target:"String",proto:!0,forced:a("af03")("link")},{link:function(t){return i(this,"a","href",t)}})},af03:function(t,e,a){var n=a("d039");t.exports=function(t){return n((function(){var e=""[t]('"');return e!==e.toLowerCase()||3<e.split('"').length}))}},cc2e:function(t,e,a){"use strict";a.r(e);var n=a("c964"),i=a("f3f3"),o=(a("96cf"),a("ac1f"),a("5319"),a("9911"),a("b0c0"),a("a069")),s=a("d708"),r=a("f478"),c=a("2f62"),l=a("31b4"),d=(a("c4c8"),a("8593")),u=a("310e"),m=(u=a.n(u),a("b0e7")),f=a("7af3");a("c276"),l={name:"list",components:{editFrom:l.a,draggable:u.a,uploadPictures:m.a,linkaddress:f.a,WangEditor:o.a},computed:Object(i.a)({bgcolors:function(){return{"--color-theme":this.bgCol}},labelWidth:function(){return this.isMobile?void 0:120},labelPosition:function(){return this.isMobile?"top":"right"}},Object(c.e)("admin/layout",["menuCollapse"])),data:function(){return{formValidate:{content:""},ruleValidate:{},myConfig:{autoHeightEnabled:!1,initialFrameHeight:500,initialFrameWidth:"100%",UEDITOR_HOME_URL:"/UEditor/",serverUrl:""},a:1,guide:0,bgimg:0,columns1:[],bgCol:"",name:"",content:"",grid:{xl:7,lg:7,md:12,sm:24,xs:24},loading:!1,sginList:[],progress:0,url:"",BaseURL:s.a.apiBaseURL.replace(/adminapi/,""),pageId:0,groupAll:[],activeIndex:0,sortName:null,activeIndexs:0,cmsList:[],loadingExist:!1,formItem:{time:"",type:"pic",status:1,value:[],video_link:""},header:{},type:0}},created:function(){this.color(),this.a=1,this.guide=0,this.getAgreement()},mounted:function(){},methods:{linkUrl:function(t){this.tabList.list[this.activeIndexs].link=t},getEditorContent:function(t){this.content=t},color:function(){var t=this;Object(r.h)("color_change").then((function(e){switch(e.data.status){case 1:t.bgCol="#3875EA",t.bgimg=1;break;case 2:t.bgCol="#00C050",t.bgimg=2;break;case 3:t.bgCol="#E93323",t.bgimg=3;break;case 4:t.bgCol="#FF448F",t.bgimg=4;break;case 5:t.bgCol="#FE5C2D",t.bgimg=5}}))},link:function(t){this.activeIndexs=t,this.$refs.linkaddres.modals=!0},getListHeader:function(){var t=this;this.loading=!0,Object(d.G)({config_name:this.name},"setting/sign_data/header").then((function(e){e=e.data.header,t.columns1=e,t.loading=!1})).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},getContent:function(t){this.formValidate.content=t},onsubmit:function(t){var e=this;this.formValidate.content=this.content,Object(d.Y)(this.formValidate).then(function(){var t=Object(n.a)(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$Message.success(a.msg);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},getAgreement:function(){var t=this;Object(d.w)().then(function(){var e=Object(n.a)(regeneratorRuntime.mark((function e(a){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=a.data,t.formValidate={content:n.content},t.content=n.content;case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))}}},a("16aa"),u=a("2877"),m=Object(u.a)(l,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("div",{style:t.bgcolors},[e("div",{staticClass:"i-layout-page-header header-title"},[e("span",{staticClass:"ivu-page-header-title mr20"},[t._v(t._s(t.$route.meta.title))]),e("div",{staticStyle:{float:"right"}},[e("Button",{staticClass:"bnt",attrs:{type:"primary"},on:{click:function(e){return t.onsubmit("formValidate")}}},[t._v("保存")])],1)]),e("div",{staticClass:"box-wrapper"},[e("div",{staticClass:"iframe",attrs:{bordered:!1}},[e("div",{staticClass:"agreement-box"},[e("div",{staticClass:"template"}),e("div",{staticClass:"htmls_box"},[e("div",{staticClass:"htmls_top"},[t._v("服务协议与隐私政策")]),t._m(0),e("div",{staticClass:"htmls",domProps:{innerHTML:t._s(t.content)}})])])]),e("div",{staticStyle:{"margin-left":"40px"}},[e("div",{staticClass:"table_box"},[e("div",{attrs:{type:"flex"}},[e("div",t._b({},"div",t.grid,!1),[e("div",{staticClass:"title"},[t._v("隐私权限页面展示:")])])]),e("div",[e("Form",{ref:"formValidate",staticClass:"form",attrs:{model:t.formValidate,rules:t.ruleValidate,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[e("div",{staticClass:"goodsTitle acea-row"}),e("FormItem",{staticStyle:{margin:"0px"},attrs:{label:""}},[e("WangEditor",{staticStyle:{width:"90%"},attrs:{content:t.formValidate.content},on:{editorContent:t.getEditorContent}})],1)],1)],1)])])]),e("linkaddress",{ref:"linkaddres",on:{linkUrl:t.linkUrl}})],1)}),[function(){var t=this.$createElement;t=this._self._c||t;return t("div",{staticClass:"htmls_font"},[t("div",{staticClass:"ok"},[this._v("我同意")]),t("div",[this._v("不同意")])])}],!1,null,"4da3fff2",null);e.default=m.exports},e96a:function(t,e,a){}}]);