1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-set-bjq~pages-set-userinfo"],{"0dcd":function(t,e,i){"use strict";var n,o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"container",style:{height:t.height}},[i("v-uni-editor",{ref:"editot",staticClass:"ql-container",attrs:{placeholder:t.placeholder,"show-img-size":!0,"show-img-toolbar":!0,"show-img-resize":!0,id:"editor"},on:{ready:function(e){arguments[0]=e=t.$handleEvent(e),t.onEditorReady.apply(void 0,arguments)},statuschange:function(e){arguments[0]=e=t.$handleEvent(e),t.statuschange.apply(void 0,arguments)},focus:function(e){arguments[0]=e=t.$handleEvent(e),t.editFocus.apply(void 0,arguments)},blur:function(e){arguments[0]=e=t.$handleEvent(e),t.editBlur.apply(void 0,arguments)}}}),i("v-uni-view",{staticClass:"tool-view"},[i("v-uni-view",{staticClass:"font-more",style:{height:t.showMoreTool?"100rpx":0}},[i("jinIcon",{staticClass:"single",attrs:{type:"","font-size":"44rpx",title:"加粗",color:t.showBold?t.activeColor:"#666666"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setBold.apply(void 0,arguments)}}}),i("jinIcon",{staticClass:"single",attrs:{type:"","font-size":"44rpx",title:"斜体",color:t.showItalic?t.activeColor:"#666666"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setItalic.apply(void 0,arguments)}}}),i("jinIcon",{staticClass:"single",attrs:{type:"","font-size":"44rpx",title:"分割线",color:t.showIns?t.activeColor:"#666666"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setIns.apply(void 0,arguments)}}}),i("jinIcon",{staticClass:"single",attrs:{type:"","font-size":"44rpx",title:"标题",color:t.showHeader?t.activeColor:"#666666"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setHeader.apply(void 0,arguments)}}}),i("jinIcon",{staticClass:"single",attrs:{type:"","font-size":"44rpx",title:"居中",color:t.showCenter?t.activeColor:"#666666"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setCenter.apply(void 0,arguments)}}}),i("jinIcon",{staticClass:"single",attrs:{type:"","font-size":"44rpx",title:"居右",color:t.showRight?t.activeColor:"#666666"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setRight.apply(void 0,arguments)}}})],1),t.showSettingLayer?i("v-uni-view",{staticClass:"setting-layer-mask",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showSetting.apply(void 0,arguments)}}}):t._e(),t.showSettingLayer?i("v-uni-view",{staticClass:"setting-layer"},[i("v-uni-view",{staticClass:"single",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.release(!0)}}},[i("jinIcon",{staticClass:"icon",attrs:{type:""}}),i("v-uni-view",[t._v("公开发布")])],1),i("v-uni-view",{staticClass:"single",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.release(!1)}}},[i("jinIcon",{staticClass:"icon",attrs:{type:""}}),i("v-uni-view",[t._v("暂时保存")])],1)],1):t._e(),i("v-uni-view",{staticClass:"tool"},[i("jinIcon",{staticClass:"single",attrs:{type:"","font-size":"44rpx",title:"插入图片"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.insertImage.apply(void 0,arguments)}}}),i("jinIcon",{staticClass:"single",attrs:{type:"","font-size":"44rpx",title:"修改文字样式",color:t.showMoreTool?t.activeColor:"#666666"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showMore.apply(void 0,arguments)}}}),i("jinIcon",{staticClass:"single",attrs:{type:"","font-size":"44rpx",title:"分割线"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.insertDivider.apply(void 0,arguments)}}}),i("jinIcon",{staticClass:"single",attrs:{type:"","font-size":"44rpx",title:"撤销"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.undo.apply(void 0,arguments)}}}),i("jinIcon",{staticClass:"single",attrs:{type:"","font-size":"44rpx",title:"重做"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.redo.apply(void 0,arguments)}}}),i("jinIcon",{staticClass:"single",attrs:{type:"","font-size":"44rpx",title:"设置"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.release(!0)}}})],1)],1)],1)},a=[];i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}))},"20d2":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,".container[data-v-06f6d646]{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;height:100%;box-sizing:border-box\n\t/* padding-top: 30rpx; */}.ql-container[data-v-06f6d646]{line-height:150%;font-size:%?34?%;width:100%;background:#fff;width:calc(100% - %?60?%);margin:0 auto;-webkit-box-flex:1;-webkit-flex:1;flex:1;-webkit-box-sizing:border-box;box-sizing:border-box;margin-top:%?30?%\n\t/* padding-bottom: 5rpx; */}.tool-view[data-v-06f6d646]{width:100vw;background:#eee\n\t/* margin-top: 20px; */}.tool[data-v-06f6d646]{height:%?100?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-justify-content:space-around;justify-content:space-around;width:100%}.font-more[data-v-06f6d646]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-justify-content:space-around;justify-content:space-around;width:100%;background:#ebebeb;overflow:hidden;-webkit-transition:all .15s;transition:all .15s}.setting-layer[data-v-06f6d646]{position:absolute;bottom:%?100?%;background:#fff;width:%?250?%;right:%?20?%;-webkit-box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.15);-webkit-border-radius:%?8?%;border-radius:%?8?%}.setting-layer .single[data-v-06f6d646]{height:%?80?%;font-size:%?32?%;padding:0 %?30?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;line-height:%?80?%;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;color:#666}.setting-layer .single .icon[data-v-06f6d646]{margin-right:%?20?%}.setting-layer-mask[data-v-06f6d646]{position:fixed;left:0;top:0;width:100vw;height:100vh;background:transparent}",""]),t.exports=e},"23cc":function(t,e,i){"use strict";i.r(e);var n=i("b3ac"),o=i("7f62");for(var a in o)"default"!==a&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("a30a");var s,r=i("f0c5"),c=Object(r["a"])(o["default"],n["b"],n["c"],!1,null,"9250ba4c",null,!1,n["a"],s);e["default"]=c.exports},"3cf0":function(t,e,i){"use strict";i.r(e);var n=i("621b"),o=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},"3e36":function(t,e,i){var n=i("cc38");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("4f06").default;o("8e823ca6",n,!0,{sourceMap:!1,shadowMode:!1})},"54f8":function(t,e,i){"use strict";i.r(e);i("a4d3"),i("e01a"),i("d28b"),i("e260"),i("d3b7"),i("3ca3"),i("ddb0"),i("a630"),i("fb6a"),i("25f0");function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function o(t,e){if(t){if("string"===typeof t)return n(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(i):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(t,e):void 0}}function a(t){if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=o(t))){var e=0,i=function(){};return{s:i,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,a,s=!0,r=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){r=!0,a=t},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(r)throw a}}}}i.d(e,"default",(function(){return a}))},"621b":function(t,e,i){"use strict";var n=i("ee27");i("ac1f"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(i("54f8"));i("96cf");var a=n(i("c964")),s=n(i("23cc")),r={props:{showImgSize:{type:Boolean,default:!1},showImgToolbar:{type:Boolean,default:!1},showImgResize:{type:Boolean,default:!1},placeholder:{type:String,default:"开始输入..."},uploadFileUrl:{type:String,default:"#"},fileKeyName:{type:String,default:"file"},header:{type:Object},html:{type:String},height:{type:String,default:"100vh"}},computed:{},data:function(){return{showMoreTool:!1,showBold:!1,showItalic:!1,showIns:!1,showHeader:!1,showCenter:!1,showRight:!1,showSettingLayer:!1,activeColor:"#F56C6C"}},components:{jinIcon:s.default},mounted:function(){},methods:{onEditorReady:function(t){var e=this;uni.createSelectorQuery().in(this).select(".ql-container").fields({size:!0,context:!0},(function(t){e.editorCtx=t.context,e.editorCtx.setContents({html:e.html})})).exec()},undo:function(){this.editorCtx.undo()},insertImage:function(){var t=this;uni.chooseImage({count:9,sizeType:["original","compressed"],sourceType:["album","camera"],success:function(){var e=(0,a.default)(regeneratorRuntime.mark((function e(i){var n,a,s,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=i.tempFilePaths,uni.showLoading({title:"正在上传中..."}),a=(0,o.default)(n),e.prev=3,a.s();case 5:if((s=a.n()).done){e.next=12;break}return r=s.value,console.log(88,r),e.next=10,uni.uploadFile({url:t.uploadFileUrl,filePath:r,name:t.fileKeyName,header:t.header,success:function(e){var i;console.log(e,"shangchuan"),console.log(e,"上传完成后处理"),i="string"===typeof e.data?JSON.parse(e.data).data:e.data.data,t.editorCtx.insertImage({src:i.url,alt:"图片",success:function(t){}}),uni.hideLoading()}});case 10:e.next=5;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e["catch"](3),a.e(e.t0);case 17:return e.prev=17,a.f(),e.finish(17);case 20:case"end":return e.stop()}}),e,null,[[3,14,17,20]])})));function i(t){return e.apply(this,arguments)}return i}()})},insertDivider:function(){this.editorCtx.insertDivider()},redo:function(){this.editorCtx.redo()},showMore:function(){this.showMoreTool=!this.showMoreTool,this.editorCtx.setContents()},setBold:function(){this.showBold=!this.showBold,this.editorCtx.format("bold")},setItalic:function(){this.showItalic=!this.showItalic,this.editorCtx.format("italic")},checkStatus:function(t,e,i){e.hasOwnProperty(t)?this[i]=!0:this[i]=!1},statuschange:function(t){var e=t.detail;this.checkStatus("bold",e,"showBold"),this.checkStatus("italic",e,"showItalic"),this.checkStatus("ins",e,"showIns"),this.checkStatus("header",e,"showHeader"),e.hasOwnProperty("align")?"center"==e.align?(this.showCenter=!0,this.showRight=!1):"right"==e.align?(this.showCenter=!1,this.showRight=!0):(this.showCenter=!1,this.showRight=!1):(this.showCenter=!1,this.showRight=!1)},setIns:function(){this.showIns=!this.showIns,this.editorCtx.format("ins")},setHeader:function(){this.showHeader=!this.showHeader,this.editorCtx.format("header",!!this.showHeader&&"H2")},setCenter:function(){this.showCenter=!this.showCenter,this.editorCtx.format("align",!!this.showCenter&&"center")},setRight:function(){this.showRight=!this.showRight,this.editorCtx.format("align",!!this.showRight&&"right")},showSetting:function(){this.showSettingLayer=!this.showSettingLayer},editFocus:function(t){return(0,a.default)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))()},editBlur:function(t){},release:function(t){var e=this;this.editorCtx.getContents({success:function(i){Object.assign(i,{isPublic:t}),e.$emit("editOk",i)}})}}};e.default=r},"77ee":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={props:{type:{type:String,default:""},color:{type:String,default:"#666666"},fontSize:{type:String,default:"34rpx"}},methods:{toclick:function(){this.$emit("click")}}};e.default=n},"7f62":function(t,e,i){"use strict";i.r(e);var n=i("77ee"),o=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},"8f7b":function(t,e,i){var n=i("20d2");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("4f06").default;o("6c236601",n,!0,{sourceMap:!1,shadowMode:!1})},"9f98":function(t,e,i){"use strict";i.r(e);var n=i("0dcd"),o=i("3cf0");for(var a in o)"default"!==a&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("b770");var s,r=i("f0c5"),c=Object(r["a"])(o["default"],n["b"],n["c"],!1,null,"06f6d646",null,!1,n["a"],s);e["default"]=c.exports},a30a:function(t,e,i){"use strict";var n=i("3e36"),o=i.n(n);o.a},b3ac:function(t,e,i){"use strict";var n,o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"content"},[i("v-uni-view",{staticClass:"icon",style:{color:t.color,fontSize:t.fontSize},domProps:{innerHTML:t._s(t.type)},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toclick.apply(void 0,arguments)}}})],1)},a=[];i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}))},b770:function(t,e,i){"use strict";var n=i("8f7b"),o=i.n(n);o.a},cc38:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'.content[data-v-9250ba4c]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}@font-face{font-family:jin;\n\t/** 阿里巴巴矢量图标库的字体库地址,可以替换自己的字体库地址 **/src:url(https://at.alicdn.com/t/font_1491431_6m7ltjo8wi.ttf) format("truetype")}.icon[data-v-9250ba4c]{font-family:jin!important;font-size:%?34?%}',""]),t.exports=e}}]);
|