You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
21 KiB
1 line
21 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-77268227"],{"8c37":function(t,e,i){"use strict";i("c186")},"915e4":function(t,e,i){"use strict";i.d(e,"f",(function(){return a})),i.d(e,"e",(function(){return o})),i.d(e,"a",(function(){return r})),i.d(e,"l",(function(){return s})),i.d(e,"i",(function(){return l})),i.d(e,"j",(function(){return c})),i.d(e,"b",(function(){return u})),i.d(e,"k",(function(){return d})),i.d(e,"c",(function(){return m})),i.d(e,"g",(function(){return f})),i.d(e,"h",(function(){return p})),i.d(e,"n",(function(){return h})),i.d(e,"m",(function(){return b})),i.d(e,"d",(function(){return g}));var n=i("b775");function a(t){return Object(n["a"])({url:"/api/back/attractions/list/type/"+t,method:"get"})}function o(t){return Object(n["a"])({url:"/api/back/attractions/"+t,method:"get"})}function r(t){return Object(n["a"])({url:"/api/back/attractions/delete/"+t,method:"delete",Id:t})}function s(t){return Object(n["a"])({url:"/api/back/attractions/update",method:"put",data:t})}function l(t){return Object(n["a"])({url:"/api/back/attractions/insert",method:"post",data:t})}function c(t){return Object(n["a"])({url:"/api/back/attractionsPicture/insert",method:"post",data:t})}function u(t){return Object(n["a"])({url:"/api/back/attractionsPicture/delete/"+t,method:"delete",Id:t})}function d(t){return Object(n["a"])({url:"/api/back/attractionsTime/insert",method:"post",data:t})}function m(t){return Object(n["a"])({url:"/api/back/attractionsTime/delete/"+t,method:"delete",Id:t})}function f(t){return Object(n["a"])({url:"/api/back/attractionsTime/list/attraction/"+t,method:"get"})}function p(t,e,i){return Object(n["a"])({url:"/api/back/userSubscribe/list?isDeal="+t+"&page="+e+"&size="+i,method:"get"})}function h(t,e){return Object(n["a"])({url:"/api/back/userSubscribe/list/search?key="+t+"&isDeal="+e,method:"get"})}function b(t){return Object(n["a"])({url:"/api/back/userSubscribe/update",method:"put",data:t})}function g(t){return Object(n["a"])({url:"/api/back/userSubscribe/delete/"+t,method:"delete"})}},"953d":function(t,e,i){!function(e,n){t.exports=n(i("9339"))}(0,(function(t){return function(t){function e(n){if(i[n])return i[n].exports;var a=i[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,e),a.l=!0,a.exports}var i={};return e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=2)}([function(e,i){e.exports=t},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(4),a=i.n(n),o=i(6),r=i(5),s=r(a.a,o.a,!1,null,null,null);e.default=s.exports},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.install=e.quillEditor=e.Quill=void 0;var a=i(0),o=n(a),r=i(1),s=n(r),l=window.Quill||o.default,c=function(t,e){e&&(s.default.props.globalOptions.default=function(){return e}),t.component(s.default.name,s.default)},u={Quill:l,quillEditor:s.default,install:c};e.default=u,e.Quill=l,e.quillEditor=s.default,e.install=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={theme:"snow",boundary:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"Insert text here ...",readOnly:!1}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var a=i(0),o=n(a),r=i(3),s=n(r),l=window.Quill||o.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(t),n=1;n<arguments.length;n++){var a=arguments[n];if(null!=a)for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(i[o]=a[o])}return i},writable:!0,configurable:!0}),e.default={name:"quill-editor",data:function(){return{_options:{},_content:"",defaultOptions:s.default}},props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:function(){return{}}},globalOptions:{type:Object,required:!1,default:function(){return{}}}},mounted:function(){this.initialize()},beforeDestroy:function(){this.quill=null,delete this.quill},methods:{initialize:function(){var t=this;this.$el&&(this._options=Object.assign({},this.defaultOptions,this.globalOptions,this.options),this.quill=new l(this.$refs.editor,this._options),this.quill.enable(!1),(this.value||this.content)&&this.quill.pasteHTML(this.value||this.content),this.disabled||this.quill.enable(!0),this.quill.on("selection-change",(function(e){e?t.$emit("focus",t.quill):t.$emit("blur",t.quill)})),this.quill.on("text-change",(function(e,i,n){var a=t.$refs.editor.children[0].innerHTML,o=t.quill,r=t.quill.getText();"<p><br></p>"===a&&(a=""),t._content=a,t.$emit("input",t._content),t.$emit("change",{html:a,text:r,quill:o})})),this.$emit("ready",this.quill))}},watch:{content:function(t,e){this.quill&&(t&&t!==this._content?(this._content=t,this.quill.pasteHTML(t)):t||this.quill.setText(""))},value:function(t,e){this.quill&&(t&&t!==this._content?(this._content=t,this.quill.pasteHTML(t)):t||this.quill.setText(""))},disabled:function(t,e){this.quill&&this.quill.enable(!t)}}}},function(t,e){t.exports=function(t,e,i,n,a,o){var r,s=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(r=t,s=t.default);var c,u="function"==typeof s?s.options:s;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId=a),o?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=c):n&&(c=n),c){var d=u.functional,m=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(t,e){return c.call(e),m(t,e)}):u.beforeCreate=m?[].concat(m,c):[c]}return{esModule:r,exports:s,options:u}}},function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"quill-editor"},[t._t("toolbar"),t._v(" "),i("div",{ref:"editor"})],2)},a=[],o={render:n,staticRenderFns:a};e.a=o}])}))},a222:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"container"},[i("el-form",{ref:"form",staticClass:"form",attrs:{model:t.form,"label-width":"100px",size:"small"}},[i("el-form-item",{attrs:{label:"板块"}},[i("el-radio",{attrs:{label:0},model:{value:t.form.type,callback:function(e){t.$set(t.form,"type",e)},expression:"form.type"}},[t._v("景点")]),i("el-radio",{attrs:{label:1},model:{value:t.form.type,callback:function(e){t.$set(t.form,"type",e)},expression:"form.type"}},[t._v("活动")])],1),i("el-form-item",{attrs:{label:"名字",prop:"attractionName"}},[i("el-input",{model:{value:t.form.attractionName,callback:function(e){t.$set(t.form,"attractionName",e)},expression:"form.attractionName"}})],1),i("el-form-item",{attrs:{label:"简介",prop:"remarks"}},[i("edit",{ref:"edithtml"})],1),i("el-form-item",{attrs:{label:"开始日期"}},[i("el-col",{attrs:{span:11}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期","value-format":"timestamp"},model:{value:t.form.startDate,callback:function(e){t.$set(t.form,"startDate",e)},expression:"form.startDate"}})],1)],1),i("el-form-item",{attrs:{label:"结束日期"}},[i("el-col",{attrs:{span:11}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期","value-format":"timestamp"},model:{value:t.form.endDate,callback:function(e){t.$set(t.form,"endDate",e)},expression:"form.endDate"}})],1)],1),i("el-form-item",{attrs:{label:"封面图片"}},[i("el-upload",{staticClass:"avatar-uploader",attrs:{data:t.upToken,action:t.action,"show-file-list":!1,"on-success":t.handleAvatarSuccess}},[t.form.attractionLogo?i("img",{staticClass:"avatar",attrs:{src:t.form.attractionLogo}}):i("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1),i("el-form-item",{attrs:{label:"预约须知",prop:"attractionContent"}},[i("edittwo",{ref:"edithtmltwo"})],1),i("el-form-item",{attrs:{label:"轮播图"}},[i("el-upload",{staticClass:"ava",attrs:{data:t.upToken,action:t.action,"show-file-list":!1,"on-success":t.handleAvatarSuccess2}},[i("div",{staticStyle:{"text-align":"left"}},[t.picturesList.length<7?i("el-button",[t._v("点击上传")]):t._e()],1),i("div",{staticClass:"imgbox"},t._l(t.picturesList,(function(e,n){return i("div",{key:n,staticClass:"picbox"},[i("span",{on:{click:function(i){return i.stopPropagation(),t.yichuimg(e,n)}}},[t._v("移除")]),i("img",{directives:[{name:"show",rawName:"v-show",value:t.picturesList.length>0,expression:"picturesList.length>0"}],staticClass:"avatar",attrs:{src:e.picUrl}})])})),0)])],1),i("el-form-item",{attrs:{label:"时间段"}},[i("el-button",{on:{click:t.opentime}},[t._v("新增活动时间段")]),i("div",{staticStyle:{"margin-top":"10px"}},[i("el-table",{attrs:{data:t.attractionsTimeList,size:"medium","empty-text":"暂无数据",border:""}},[i("el-table-column",{attrs:{align:"center",prop:"timeName",label:"名字"}}),i("el-table-column",{attrs:{align:"center",prop:"start",label:"开始时间点"}}),i("el-table-column",{attrs:{align:"center",prop:"end",label:"结束时间点"}}),i("el-table-column",{attrs:{align:"center",prop:"maxCount",label:"最大预约人数"}}),i("el-table-column",{attrs:{align:"center",label:"操作",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{size:"small",type:"text"},on:{click:function(i){return t.deletetime(e.$index,e.row)}}},[t._v("删除")])]}}])})],1)],1)],1),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitForm()}}},[t._v("保存")])],1)],1),i("el-dialog",{attrs:{title:"新增活动时间段",visible:t.dialogFormVisible,width:"490px"},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[i("el-form",{attrs:{"label-width":"100px",model:t.attractionsTime,size:"small"}},[i("el-form-item",{attrs:{label:"时间段名字"}},[i("el-input",{model:{value:t.attractionsTime.timeName,callback:function(e){t.$set(t.attractionsTime,"timeName",e)},expression:"attractionsTime.timeName"}})],1),i("el-form-item",{attrs:{label:"时间点"}},[i("el-time-picker",{attrs:{"is-range":"","arrow-control":"","value-format":"timestamp","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",placeholder:"选择时间范围"},on:{change:t.changetime},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}})],1),i("el-form-item",{attrs:{label:"最大预约人数"}},[i("el-input",{attrs:{type:"number"},model:{value:t.attractionsTime.maxCount,callback:function(e){t.$set(t.attractionsTime,"maxCount",e)},expression:"attractionsTime.maxCount"}})],1)],1),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"small"},on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("取 消")]),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(e){return t.determine()}}},[t._v("确 定")])],1)],1)],1)},a=[],o=(i("a434"),i("aa2a")),r=i("915e4"),s=i("c651"),l=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},c=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{attrs:{id:"editor"}})])}],u=i("9339"),d=i.n(u),m=(i("a753"),i("8096"),i("14e1"),{name:"edit",data:function(){return{quill:null}},mounted:function(){var t=[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"]];this.quill=new d.a("#editor",{modules:{toolbar:t},theme:"snow"})},methods:{btnClick:function(){console.log(this.quill.getContents()),console.log(this.quill.root.innerHTML)}}}),f=m,p=i("2877"),h=Object(p["a"])(f,l,c,!1,null,"9ec78ede",null),b=h.exports,g={name:"addpointment",components:{edit:b,edittwo:s["a"]},data:function(){return{value:[new Date(2016,9,10,8,40),new Date(2016,9,10,23,59)],dialogFormVisible:!1,attractionsTimeList:[],attractionsTime:{attractionsId:0,end:0,isValid:1,maxCount:0,start:0,timeName:"名字"},upToken:{},domain:"",action:"http://upload-z2.qiniup.com",form:{attractionContent:"",attractionLogo:"",attractionName:"",endDate:(new Date).getTime(),remarks:"",startDate:(new Date).getTime(),isValid:1,type:0},picturesList:[],appointType:1}},methods:{submitForm:function(){var t=this;this.form.remarks=this.$refs.edithtml.quill.root.innerHTML,this.form.attractionContent=this.$refs.edithtmltwo.content,console.log(this.form),1==this.appointType?Object(r["i"])(this.form).then((function(e){200==e.code?(t.commitpic(e.data.attractionId),t.committimeList(e.data.attractionId),t.$message.success("保存成功!"),t.$router.go(0)):t.$message.error("保存失败!")})):2==this.appointType&&Object(r["l"])(this.form).then((function(e){if(200==e.code){for(var i=0;i<t.picturesList.length;i++)if(!t.picturesList[i].picId){var n={attractionId:e.data.attractionId,picUrl:t.picturesList[i].picUrl};Object(r["j"])(n).then((function(t){console.log("图片上传成功",t)}))}for(var a=0;a<t.attractionsTimeList.length;a++)if(!t.attractionsTimeList[a].timeId){var o={attractionsId:e.data.attractionId,end:t.attractionsTimeList[a].end,start:t.attractionsTimeList[a].start,timeName:t.attractionsTimeList[a].timeName,maxCount:t.attractionsTimeList[a].maxCount,isValid:1};Object(r["k"])(o).then((function(t){console.log("时间上传成功",t)}))}t.$message.success("编辑成功!"),t.$router.go(-1)}else t.$message.error("编辑失败!")}))},opentime:function(){this.dialogFormVisible=!0,this.attractionsTime.start=this.getTimes((new Date).getTime()),this.attractionsTime.end=this.getTimes((new Date).getTime())},changetime:function(){console.log(this.value),this.attractionsTime.start=this.getTimes(this.value[0]),this.attractionsTime.end=this.getTimes(this.value[1])},commitpic:function(t){for(var e=0;e<this.picturesList.length;e++){var i={attractionId:t,picUrl:this.picturesList[e].picUrl};Object(r["j"])(i).then((function(t){console.log("图片上传成功",t)}))}},yichuimg:function(t,e){var i=this;1==this.appointType?this.picturesList.splice(e,1):2==this.appointType&&(console.log(this.picturesList),t.picId?Object(r["b"])(t.picId).then((function(t){200==t&&(console.log("移除成功",i.formData),i.$message.success("移除成功!"))})):this.picturesList.splice(e,1))},committimeList:function(t){for(var e=0;e<this.attractionsTimeList.length;e++){var i={attractionsId:t,end:this.attractionsTimeList[e].end,start:this.attractionsTimeList[e].start,timeName:this.attractionsTimeList[e].timeName,maxCount:this.attractionsTimeList[e].maxCount,isValid:1};Object(r["k"])(i).then((function(t){console.log("时间上传成功",t)}))}},handleAvatarSuccess:function(t){console.log(t),this.form.attractionLogo=this.domain+t.key,console.log("上传成功")},handleAvatarSuccess2:function(t){console.log(t),this.picturesList.push({picUrl:this.domain+t.key}),console.log(this.picturesList)},determine:function(){this.attractionsTimeList.push({timeName:this.attractionsTime.timeName,start:this.attractionsTime.start,end:this.attractionsTime.end,maxCount:this.attractionsTime.maxCount}),this.dialogFormVisible=!1},deletetime:function(t,e){var i=this;console.log(this.appointType),console.log(e),1==this.appointType?this.attractionsTimeList.splice(t,1):2==this.appointType&&(console.log(e),this.attractionsTimeList.splice(t,1),e.timeId&&Object(r["c"])(e.timeId).then((function(t){200==t.data&&(console.log("移除成功",e),i.$message.success("移除成功!"))})))},getTimes:function(t){var e=new Date(t),i=(e.getFullYear(),e.getMonth()+1);i=i<10?"0"+i:i;e.getDate();var n=e.getHours();n=n<10?"0"+n:n;var a=e.getMinutes();a=a<10?"0"+a:a;var o=e.getSeconds();return o=o<10?"0"+o:o,n+":"+a}},created:function(){var t=this;Object(o["g"])().then((function(e){t.domain=e.data.domain+"/",t.upToken.token=e.data.upToken})),this.form.type=this.$route.params.type;var e=this.$route.query.id;e&&(this.appointType=2,Object(r["g"])(e).then((function(e){console.log("预约时间点",e),t.attractionsTimeList=e.data})),Object(r["e"])(e).then((function(e){console.log("预约景点详情",e),t.form=e.data,t.picturesList=e.data.picturesList,t.$refs.edithtml.quill.pasteHTML(t.form.remarks),t.$refs.edithtmltwo.content=t.form.attractionContent})))}},v=g,k=(i("8c37"),Object(p["a"])(v,n,a,!1,null,"58675d0d",null));e["default"]=k.exports},a434:function(t,e,i){"use strict";var n=i("23e7"),a=i("23cb"),o=i("a691"),r=i("50c4"),s=i("7b0b"),l=i("65f0"),c=i("8418"),u=i("1dde"),d=i("ae40"),m=u("splice"),f=d("splice",{ACCESSORS:!0,0:0,1:2}),p=Math.max,h=Math.min,b=9007199254740991,g="Maximum allowed length exceeded";n({target:"Array",proto:!0,forced:!m||!f},{splice:function(t,e){var i,n,u,d,m,f,v=s(this),k=r(v.length),T=a(t,k),y=arguments.length;if(0===y?i=n=0:1===y?(i=0,n=k-T):(i=y-2,n=h(p(o(e),0),k-T)),k+i-n>b)throw TypeError(g);for(u=l(v,n),d=0;d<n;d++)m=T+d,m in v&&c(u,d,v[m]);if(u.length=n,i<n){for(d=T;d<k-n;d++)m=d+n,f=d+i,m in v?v[f]=v[m]:delete v[f];for(d=k;d>k-n+i;d--)delete v[d-1]}else if(i>n)for(d=k-n;d>T;d--)m=d+n-1,f=d+i-1,m in v?v[f]=v[m]:delete v[f];for(d=0;d<i;d++)v[d+T]=arguments[d+2];return v.length=k-n+i,u}})},aa2a:function(t,e,i){"use strict";i.d(e,"h",(function(){return a})),i.d(e,"a",(function(){return o})),i.d(e,"b",(function(){return r})),i.d(e,"f",(function(){return s})),i.d(e,"g",(function(){return l})),i.d(e,"e",(function(){return c})),i.d(e,"i",(function(){return u})),i.d(e,"j",(function(){return d})),i.d(e,"c",(function(){return m})),i.d(e,"k",(function(){return f})),i.d(e,"d",(function(){return p}));var n=i("b775");function a(){return Object(n["a"])({url:"/api/back/section/list/all",method:"get"})}function o(t){return Object(n["a"])({url:"/api/back/section/insert",method:"post",data:t})}function r(t){return Object(n["a"])({url:"/api/back/section/delete/"+t,method:"delete"})}function s(t,e,i){return Object(n["a"])({url:"/api/back/news/list/section?sectionId="+t+"&page="+e+"&size="+i,method:"get"})}function l(){return Object(n["a"])({url:"/api/back/common/upToken",method:"get"})}function c(t){return Object(n["a"])({url:"/api/back/news/"+t,method:"get"})}function u(t){return Object(n["a"])({url:"/api/back/news/insert",method:"post",data:t})}function d(t){return Object(n["a"])({url:"/api/back/newsPictures/insert",method:"post",data:t})}function m(t){return Object(n["a"])({url:"/api/back/news/delete/"+t,method:"delete",Id:t})}function f(t){return Object(n["a"])({url:"/api/back/news/update",method:"put",data:t})}function p(t){return Object(n["a"])({url:"/api/back/newsPictures/delete/"+t,method:"delete",Id:t})}},c186:function(t,e,i){},c651:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-upload",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"avatar-uploader quill-img",attrs:{action:"http://upload-z2.qiniup.com",data:t.upToken,"show-file-list":!1,"on-success":t.uploadSuccess}}),i("quill-editor",{ref:"myQuillEditor",staticClass:"editor",attrs:{options:t.editorOption},on:{change:function(e){return t.onEditorChange(e)}},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}})],1)},a=[],o=i("aa2a"),r=i("953d"),s=(i("a753"),i("8096"),i("14e1"),{name:"edittwo",components:{quillEditor:r["quillEditor"]},data:function(){return{upToken:{},domain:"",content:null,editorOption:{placeholder:"请输入",theme:"snow",modules:{toolbar:{container:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image"]],handlers:{image:function(t){t?document.querySelector(".quill-img input").click():this.quill.format("image",!1)}}}}}}},created:function(){var t=this;Object(o["g"])().then((function(e){t.domain=e.data.domain+"/",t.upToken.token=e.data.upToken}))},methods:{onEditorChange:function(t){var e=t.html;console.log(e),this.content=e},uploadSuccess:function(t){console.log(t);var e=this.$refs.myQuillEditor.quill;e.focus(),e.insertEmbed(e.getSelection().index,"image",this.domain+t.key)}}}),l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,"4fb5e431",null);e["a"]=u.exports}}]); |