pages-set-bjq~pages-set-userinfo.c0d55808.js 13 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-set-bjq~pages-set-userinfo"],{3935: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},4210:function(t,e,n){"use strict";n("7a82");var i=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("c7eb")),a=i(n("b85c")),s=i(n("1da1"));n("ac1f");var r=i(n("a3a9")),c={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:r.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,s.default)((0,o.default)().mark((function e(n){var i,s,r,c;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=n.tempFilePaths,uni.showLoading({title:"正在上传中..."}),s=(0,a.default)(i),e.prev=3,s.s();case 5:if((r=s.n()).done){e.next=12;break}return c=r.value,console.log(88,c),e.next=10,uni.uploadFile({url:t.uploadFileUrl,filePath:c,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),s.e(e.t0);case 17:return e.prev=17,s.f(),e.finish(17);case 20:case"end":return e.stop()}}),e,null,[[3,14,17,20]])})));return function(t){return e.apply(this,arguments)}}()})},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,s.default)((0,o.default)().mark((function t(){return(0,o.default)().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=c},"42f0":function(t,e,n){"use strict";n.r(e);var i=n("ef52"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},"729c":function(t,e,n){"use strict";var i=n("83fc"),o=n.n(i);o.a},"83fc":function(t,e,n){var i=n("3935");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("192ba321",i,!0,{sourceMap:!1,shadowMode:!1})},8879:function(t,e,n){"use strict";var i=n("d0bb"),o=n.n(i);o.a},"9cba":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=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:"&#xe6e7;","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:"&#xe6fe;","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:"&#xe6f8;","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:"&#xe6e3;","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:"&#xe6f1;","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:"&#xe6ed;","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:"&#xe639;"}}),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:"&#xe655;"}}),n("v-uni-view",[t._v("暂时保存")])],1)],1):t._e(),n("v-uni-view",{staticClass:"tool"},[n("jinIcon",{staticClass:"single",attrs:{type:"&#xe6f3;","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:"&#xe6f9;","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:"&#xe6eb;","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:"&#xe6e8;","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:"&#xe705;","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:"&#xeb8a;","font-size":"44rpx",title:"设置"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.release(!0)}}})],1)],1)],1)},o=[]},a3a9:function(t,e,n){"use strict";n.r(e);var i=n("d06a"),o=n("42f0");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("729c");var s=n("f0c5"),r=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"b947ed7a",null,!1,i["a"],void 0);e["default"]=r.exports},b4e9:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,".container[data-v-37d104f0]{box-sizing:border-box;display:flex;flex-direction:column;height:100%;box-sizing:border-box\n\t/* padding-top: 30rpx; */}.ql-container[data-v-37d104f0]{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-37d104f0]{width:100vw;background:#eee\n\t/* margin-top: 20px; */}.tool[data-v-37d104f0]{height:%?100?%;display:flex;align-items:center;justify-content:space-around;width:100%}.font-more[data-v-37d104f0]{display:flex;align-items:center;justify-content:space-around;width:100%;background:#ebebeb;overflow:hidden;transition:all .15s}.setting-layer[data-v-37d104f0]{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-37d104f0]{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-37d104f0]{margin-right:%?20?%}.setting-layer-mask[data-v-37d104f0]{position:fixed;left:0;top:0;width:100vw;height:100vh;background:transparent}",""]),t.exports=e},b85c:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){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=n.call(t)},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}}}},n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("d9e2"),n("d401");var i=function(t){return t&&t.__esModule?t:{default:t}}(n("06c5"))},d06a:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=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)},o=[]},d0bb:function(t,e,n){var i=n("b4e9");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=n("4f06").default;o("ff912452",i,!0,{sourceMap:!1,shadowMode:!1})},e94e:function(t,e,n){"use strict";n.r(e);var i=n("4210"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=o.a},ef52:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={props:{type:{type:String,default:"&#xe644;"},color:{type:String,default:"#666666"},fontSize:{type:String,default:"34rpx"}},methods:{toclick:function(){this.$emit("click")}}};e.default=i},f5be:function(t,e,n){"use strict";n.r(e);var i=n("9cba"),o=n("e94e");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("8879");var s=n("f0c5"),r=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,"37d104f0",null,!1,i["a"],void 0);e["default"]=r.exports}}]);