1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-set-bjq~pages-set-userinfo"],{"0981":function(t,e,n){var i=n("424e");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("3c6e6050",i,!0,{sourceMap:!1,shadowMode:!1})},"0b5e":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'.content[data-v-b947ed7a]{display:flex;align-items: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-b947ed7a]{font-family:jin!important;font-size:%?34?%}',""]),t.exports=e},"23cc":function(t,e,n){"use strict";n.r(e);var i=n("40f2"),o=n("7f62");for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("816d");var s,r=n("f0c5"),c=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"b947ed7a",null,!1,i["a"],s);e["default"]=c.exports},"3cf0":function(t,e,n){"use strict";n.r(e);var i=n("621b"),o=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},"40f2":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"content"},[n("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=[]},"424e":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,".container[data-v-8374e1d8]{box-sizing:border-box;display:flex;flex-direction:column;height:100%;box-sizing:border-box\n\t/* padding-top: 30rpx; */}.ql-container[data-v-8374e1d8]{line-height:150%;font-size:%?34?%;width:100%;background:#fff;width:calc(100% - %?60?%);margin:0 auto;flex:1;box-sizing:border-box;margin-top:%?30?%\n\t/* padding-bottom: 5rpx; */}.tool-view[data-v-8374e1d8]{width:100vw;background:#eee\n\t/* margin-top: 20px; */}.tool[data-v-8374e1d8]{height:%?100?%;display:flex;align-items:center;justify-content:space-around;width:100%}.font-more[data-v-8374e1d8]{display:flex;align-items:center;justify-content:space-around;width:100%;background:#ebebeb;overflow:hidden;transition:all .15s}.setting-layer[data-v-8374e1d8]{position:absolute;bottom:%?100?%;background:#fff;width:%?250?%;right:%?20?%;box-shadow:0 2px 8px rgba(0,0,0,.15);border-radius:%?8?%}.setting-layer .single[data-v-8374e1d8]{height:%?80?%;font-size:%?32?%;padding:0 %?30?%;display:flex;align-items:center;line-height:%?80?%;flex-direction:row;color:#666}.setting-layer .single .icon[data-v-8374e1d8]{margin-right:%?20?%}.setting-layer-mask[data-v-8374e1d8]{position:fixed;left:0;top:0;width:100vw;height:100vh;background:transparent}",""]),t.exports=e},5822:function(t,e,n){"use strict";var i=n("0981"),o=n.n(i);o.a},"621b":function(t,e,n){"use strict";var i=n("4ea4");n("ac1f"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("b85c"));n("96cf");var a=i(n("1da1")),s=i(n("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(n){var i,a,s,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=n.tempFilePaths,uni.showLoading({title:"正在上传中..."}),a=(0,o.default)(i),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 n;console.log(e,"shangchuan"),console.log(e,"上传完成后处理"),n="string"===typeof e.data?JSON.parse(e.data).data:e.data.data,t.editorCtx.insertImage({src:n.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 n(t){return e.apply(this,arguments)}return n}()})},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,n){e.hasOwnProperty(t)?this[n]=!0:this[n]=!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(n){Object.assign(n,{isPublic:t}),e.$emit("editOk",n)}})}}};e.default=r},"6a84":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"container",style:{height:t.height}},[n("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)}}}),n("v-uni-view",{staticClass:"tool-view"},[n("v-uni-view",{staticClass:"font-more",style:{height:t.showMoreTool?"100rpx":0}},[n("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)}}}),n("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)}}}),n("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)}}}),n("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)}}}),n("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)}}}),n("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?n("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?n("v-uni-view",{staticClass:"setting-layer"},[n("v-uni-view",{staticClass:"single",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.release(!0)}}},[n("jinIcon",{staticClass:"icon",attrs:{type:""}}),n("v-uni-view",[t._v("公开发布")])],1),n("v-uni-view",{staticClass:"single",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.release(!1)}}},[n("jinIcon",{staticClass:"icon",attrs:{type:""}}),n("v-uni-view",[t._v("暂时保存")])],1)],1):t._e(),n("v-uni-view",{staticClass:"tool"},[n("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)}}}),n("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)}}}),n("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)}}}),n("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)}}}),n("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)}}}),n("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=[]},"77ee":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={props:{type:{type:String,default:""},color:{type:String,default:"#666666"},fontSize:{type:String,default:"34rpx"}},methods:{toclick:function(){this.$emit("click")}}};e.default=i},"7f62":function(t,e,n){"use strict";n.r(e);var i=n("77ee"),o=n.n(i);for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},"816d":function(t,e,n){"use strict";var i=n("fb01"),o=n.n(i);o.a},"9f98":function(t,e,n){"use strict";n.r(e);var i=n("6a84"),o=n("3cf0");for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("5822");var s,r=n("f0c5"),c=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"8374e1d8",null,!1,i["a"],s);e["default"]=c.exports},b85c:function(t,e,n){"use strict";n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var i=o(n("06c5"));function o(t){return t&&t.__esModule?t:{default:t}}function a(t,e){var n;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=(0,i.default)(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var o=0,a=function(){};return{s:a,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:a}}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 s,r=!0,c=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return r=t.done,t},e:function(t){c=!0,s=t},f:function(){try{r||null==n["return"]||n["return"]()}finally{if(c)throw s}}}}},fb01:function(t,e,n){var i=n("0b5e");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("130ddbd6",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
|