chunk-18e42960.fb65cbd9.js 7.3 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-18e42960","chunk-2d0da983","chunk-2d0da983"],{"2ee7":function(t,e,n){},"6bef":function(t,e,n){"use strict";n.r(e);n("28a5"),n("a481");(function(){if(window.frameElement&&window.frameElement.id){var t=window.parent,e=t.$EDITORUI[window.frameElement.id.replace(/_iframe$/,"")],n=e.editor,r=t.UE,o=r.dom.domUtils,a=r.utils,i=(r.browser,r.ajax,function(t){return document.getElementById(t)});window.nowEditor={editor:n,dialog:e},a.loadFile(document,{href:n.options.themePath+n.options.theme+"/dialogbase.css?cache="+Math.random(),tag:"link",type:"text/css",rel:"stylesheet"});var c=n.getLang(e.className.split("-")[2]);c&&o.on(window,"load",(function(){var t=n.options.langPath+n.options.lang+"/images/";for(var e in c["static"]){var r=i(e);if(r){var u=r.tagName,s=c["static"][e];switch(s.src&&(s=a.extend({},s,!1),s.src=t+s.src),s.style&&(s=a.extend({},s,!1),s.style=s.style.replace(/url\s*\(/g,"url("+t)),u.toLowerCase()){case"var":r.parentNode.replaceChild(document.createTextNode(s),r);break;case"select":for(var d,f=r.options,l=0;d=f[l];)d.innerHTML=s.options[l++];for(var g in s)"options"!=g&&r.setAttribute(g,s[g]);break;default:o.setAttributes(r,s)}}}}))}})()},"784f":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("el-card",{staticClass:"box-card"},[n("el-row",{directives:[{name:"loading",rawName:"v-loading",value:t.fullscreenLoading,expression:"fullscreenLoading"}],staticClass:"formValidate mt20"},[n("el-col",{attrs:{span:24}},[n("el-row",[n("h3",{staticClass:"title mb20"},[t._v("分销等级规则")]),t._v(" "),n("WangEditor",{staticStyle:{width:"100%"},attrs:{content:t.formValidate.agree},on:{editorContent:t.getEditorContent}})],1)],1),t._v(" "),n("el-col",{staticStyle:{"margin-top":"30px","text-align":"center"},attrs:{span:24}},[n("el-button",{staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:t.previewProtol}},[t._v("预览")]),t._v(" "),n("el-button",{staticClass:"submission",attrs:{type:"primary",size:"small"},on:{click:function(e){return t.handleSubmit("formValidate")}}},[t._v("提交")])],1)],1)],1),t._v(" "),n("div",{staticClass:"Box"},[t.modals?n("el-dialog",{staticClass:"addDia",attrs:{visible:t.modals,title:"",height:"30%","custom-class":"dialog-scustom"},on:{"update:visible":function(e){t.modals=e}}},[n("div",{staticClass:"agreement"},[n("h3",[t._v("佣金说明")]),t._v(" "),n("div",{staticClass:"content"},[n("div",{domProps:{innerHTML:t._s(t.formValidate.agree)}})])])]):t._e()],1)],1)},o=[],a=n("c80c"),i=(n("96cf"),n("3b8d")),c=n("a069"),u=n("e519"),s={name:"Eextension",components:{WangEditor:c["a"]},data:function(){return{modals:!1,props:{emitPath:!1},formValidate:{agree:""},content:"",fullscreenLoading:!1}},mounted:function(){this.getInfo()},methods:{getInfo:function(){var t=this;this.fullscreenLoading=!0,Object(u["m"])("sys_brokerage").then((function(e){var n=e.data;t.formValidate={agree:n.sys_brokerage},t.fullscreenLoading=!1})).catch((function(e){t.$message.error(e.message),t.fullscreenLoading=!1}))},getEditorContent:function(t){this.formValidate.agree=t},handleSubmit:function(t){var e=this;""!==this.formValidate.agree&&this.formValidate.agree?Object(u["I"])("sys_brokerage",this.formValidate).then(function(){var t=Object(i["a"])(Object(a["a"])().mark((function t(n){return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.fullscreenLoading=!1,e.$message.success(n.message);case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.fullscreenLoading=!1,e.$message.error(t.message)})):this.$message.warning("请输入协议信息!")},previewProtol:function(){this.modals=!0}}},d=s,f=(n("f7de"),n("2877")),l=Object(f["a"])(d,r,o,!1,null,"c4e728b2",null);e["default"]=l.exports},d8ad:function(t,e,n){"use strict";var r=n("2b0e");e["a"]=new r["default"]},e519:function(t,e,n){"use strict";n.d(e,"d",(function(){return o})),n.d(e,"e",(function(){return a})),n.d(e,"v",(function(){return i})),n.d(e,"A",(function(){return c})),n.d(e,"D",(function(){return u})),n.d(e,"G",(function(){return s})),n.d(e,"C",(function(){return d})),n.d(e,"x",(function(){return f})),n.d(e,"a",(function(){return l})),n.d(e,"w",(function(){return g})),n.d(e,"q",(function(){return m})),n.d(e,"b",(function(){return p})),n.d(e,"s",(function(){return h})),n.d(e,"y",(function(){return b})),n.d(e,"z",(function(){return v})),n.d(e,"p",(function(){return w})),n.d(e,"J",(function(){return k})),n.d(e,"m",(function(){return y})),n.d(e,"I",(function(){return _})),n.d(e,"r",(function(){return x})),n.d(e,"h",(function(){return C})),n.d(e,"g",(function(){return E})),n.d(e,"k",(function(){return L})),n.d(e,"f",(function(){return V})),n.d(e,"o",(function(){return j})),n.d(e,"j",(function(){return I})),n.d(e,"i",(function(){return O})),n.d(e,"H",(function(){return $})),n.d(e,"B",(function(){return P})),n.d(e,"E",(function(){return N})),n.d(e,"F",(function(){return B})),n.d(e,"t",(function(){return S})),n.d(e,"u",(function(){return T})),n.d(e,"n",(function(){return z})),n.d(e,"c",(function(){return A}));var r=n("0c6d");function o(){return r["a"].get("config/others/lst")}function a(t){return r["a"].post("config/others/update",t)}function i(){return r["a"].post("store/product/check")}function c(t){return r["a"].get("user/promoter/lst",t)}function u(t,e){return r["a"].get("user/spread/lst/".concat(t),e)}function s(t,e){return r["a"].get("user/spread/order/".concat(t),e)}function d(t){return r["a"].post("user/spread/clear/".concat(t))}function f(t){return r["a"].get("store/bag/lst",t)}function l(){return r["a"].get("store/category/list")}function g(t){return r["a"].get("store/bag/detail/".concat(t))}function m(){return r["a"].get("store/bag/lst_filter")}function p(t,e){return r["a"].post("store/bag/change/".concat(t),{status:e})}function h(){return r["a"].get("store/product/mer_select")}function b(t){return r["a"].post("store/bag/status",t)}function v(t,e){return r["a"].post("store/bag/update/".concat(t),e)}function w(t){return r["a"].get("agreement/".concat(t))}function k(t,e){return r["a"].post("agreement/".concat(t),e)}function y(t){return r["a"].get("agreement/".concat(t))}function _(t,e){return r["a"].post("agreement/".concat(t),e)}function x(t){return r["a"].post("user/brokerage/create",t)}function C(t){return r["a"].get("user/brokerage/lst",t)}function E(t){return r["a"].get("user/brokerage/detail/".concat(t))}function L(t,e){return r["a"].post("user/brokerage/update/".concat(t),e)}function V(t){return r["a"].delete("user/brokerage/delete/".concat(t))}function j(){return r["a"].get("user/brokerage/options")}function I(t){return r["a"].get("user/promoter/count",t)}function O(t){return r["a"].get("user/spread/".concat(t,"/form"))}function $(t){return r["a"].get("spread/order/lst",t)}function P(){return r["a"].get("spread/order/chart")}function N(t){return r["a"].get("spread/order/detail/".concat(t))}function B(t){return r["a"].get("spread/order/express/".concat(t))}function S(t){return r["a"].get("spread/store/order/delivery/".concat(t,"/form"))}function T(t,e){return r["a"].get("spread/order/status/".concat(t),e)}function z(t){return r["a"].get("spread/order/children/".concat(t))}function A(t){return r["a"].get("bill/brokerage",t)}},f7de:function(t,e,n){"use strict";n("2ee7")}}]);