test
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 lines
18 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-subPages-createCommodity-index~pages-subPages-merchant-set-set~pages-subPages2-coursegoods-est~306d8eb4"],{"0ee8":function(t,e,n){"use strict";var o=n("5321"),i=n.n(o);i.a},1391:function(t,e,n){var o=n("24fb");e=o(!1),e.push([t.i,'.content[data-v-690f2980]{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-690f2980]{font-family:jin!important;font-size:%?34?%}',""]),t.exports=e},1819:function(t,e,n){"use strict";var o=n("4ea4");n("ac1f"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("96cf");var i=o(n("1da1")),r=o(n("ec93")),a=o(n("2c7c")),s=o(n("f1ea")),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}},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},created: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;return(0,i.default)(regeneratorRuntime.mark((function e(){var n,o,i,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t,2!=a.default.getClientType()){e.next=9;break}return e.next=4,a.default.browser_upload(1);case 4:return o=e.sent,uni.showLoading(),i=o.tempFilePaths[0],s=a.default._upLoad(i),s.then((function(t){console.log(t,"options");var e=t.data.img;n.editorCtx.insertImage({src:e,alt:"图片",success:function(t){}}),uni.hideLoading()})),e.abrupt("return");case 9:r.default.choseImage((function(t){r.default.uoloadIg(t.localIds[0],(function(t){if("uploadImage:ok"===t.errMsg){uni.showLoading({});var e={upload_type:2,id:t.serverId};a.default._post_form("&do=uploadFiles",e,(function(t){n.editorCtx.insertImage({src:t.data.img,alt:"图片",success:function(t){}})}),!1,(function(){uni.hideLoading()}))}else a.default.showError("上传失败")}))}));case 10:case"end":return e.stop()}}),e)})))()},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(){return(0,i.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(){},release:function(t){var e=this;this.showSettingLayer=!1,this.editorCtx.getContents({success:function(n){Object.assign(n,{isPublic:t}),e.$emit("editOk",n)}})}}};e.default=c},"1da1":function(t,e,n){"use strict";function o(t,e,n,o,i,r,a){try{var s=t[r](a),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(o,i)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function s(t){o(a,i,r,s,c,"next",t)}function c(t){o(a,i,r,s,c,"throw",t)}s(void 0)}))}}n("d3b7"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=i},2990:function(t,e,n){"use strict";n.r(e);var o=n("7fd9"),i=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=i.a},"2aee":function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"container",style:{paddingBottom:t.showMoreTool?"220rpx":"120rpx"}},[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:"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),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()],1)],1)},r=[]},3433:function(t,e,n){var o=n("24fb");e=o(!1),e.push([t.i,".container[data-v-ec5cd0b2]{padding:%?30?% 0;box-sizing:border-box;padding-bottom:%?120?%}.ql-container[data-v-ec5cd0b2]{line-height:160%;font-size:%?34?%;width:calc(100% - %?60?%);height:auto;margin:0 auto}.tool-view[data-v-ec5cd0b2]{width:80vw;position:fixed;bottom:0;left:0}.tool[data-v-ec5cd0b2]{height:%?100?%;display:flex;align-items:center;justify-content:space-around;width:100%;background:#eee}.font-more[data-v-ec5cd0b2]{position:absolute;left:0;bottom:%?100?%;display:flex;align-items:center;justify-content:space-around;width:100%;background:#ebebeb;overflow:hidden;transition:all .15s}.setting-layer[data-v-ec5cd0b2]{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-ec5cd0b2]{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-ec5cd0b2]{margin-right:%?20?%}.setting-layer-mask[data-v-ec5cd0b2]{position:fixed;left:0;top:0;width:100vw;height:100vh;background:transparent}",""]),t.exports=e},5321:function(t,e,n){var o=n("3433");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n("4f06").default;i("15130d1f",o,!0,{sourceMap:!1,shadowMode:!1})},"65c8":function(t,e,n){"use strict";var o=n("8462"),i=n.n(o);i.a},7679:function(t,e,n){"use strict";n.r(e);var o=n("1819"),i=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=i.a},"7fd9":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={props:{type:{type:String,default:"&#xe644;"},color:{type:String,default:"#666666"},fontSize:{type:String,default:"34rpx"}},methods:{toclick:function(){this.$emit("click")}}};e.default=o},8462:function(t,e,n){var o=n("1391");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n("4f06").default;i("e5e5a6de",o,!0,{sourceMap:!1,shadowMode:!1})},"8a52":function(t,e,n){"use strict";n.r(e);var o=n("2aee"),i=n("7679");for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("0ee8");var a,s=n("f0c5"),c=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,"ec5cd0b2",null,!1,o["a"],a);e["default"]=c.exports},"8fc4":function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o}));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)},r=[]},"96cf":function(t,e){!function(e){"use strict";var n,o=Object.prototype,i=o.hasOwnProperty,r="function"===typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag",l="object"===typeof t,u=e.regeneratorRuntime;if(u)l&&(t.exports=u);else{u=e.regeneratorRuntime=l?t.exports:{},u.wrap=x;var h="suspendedStart",f="suspendedYield",d="executing",p="completed",v={},g={};g[a]=function(){return this};var y=Object.getPrototypeOf,w=y&&y(y(O([])));w&&w!==o&&i.call(w,a)&&(g=w);var m=k.prototype=C.prototype=Object.create(g);E.prototype=m.constructor=k,k.constructor=E,k[c]=E.displayName="GeneratorFunction",u.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===E||"GeneratorFunction"===(e.displayName||e.name))},u.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,k):(t.__proto__=k,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(m),t},u.awrap=function(t){return{__await:t}},I(j.prototype),j.prototype[s]=function(){return this},u.AsyncIterator=j,u.async=function(t,e,n,o){var i=new j(x(t,e,n,o));return u.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},I(m),m[c]="Generator",m[a]=function(){return this},m.toString=function(){return"[object Generator]"},u.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var o=e.pop();if(o in t)return n.value=o,n.done=!1,n}return n.done=!0,n}},u.values=O,$.prototype={constructor:$,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(z),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(o,i){return s.type="throw",s.arg=t,e.next=o,i&&(e.method="next",e.arg=n),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=t,a.arg=e,r?(this.method="next",this.next=r.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),z(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var i=o.arg;z(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,o){return this.delegate={iterator:O(t),resultName:e,nextLoc:o},"next"===this.method&&(this.arg=n),v}}}function x(t,e,n,o){var i=e&&e.prototype instanceof C?e:C,r=Object.create(i.prototype),a=new $(o||[]);return r._invoke=L(t,n,a),r}function b(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(o){return{type:"throw",arg:o}}}function C(){}function E(){}function k(){}function I(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function j(t){function e(n,o,r,a){var s=b(t[n],t,o);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"===typeof l&&i.call(l,"__await")?Promise.resolve(l.__await).then((function(t){e("next",t,r,a)}),(function(t){e("throw",t,r,a)})):Promise.resolve(l).then((function(t){c.value=t,r(c)}),(function(t){return e("throw",t,r,a)}))}a(s.arg)}var n;function o(t,o){function i(){return new Promise((function(n,i){e(t,o,n,i)}))}return n=n?n.then(i,i):i()}this._invoke=o}function L(t,e,n){var o=h;return function(i,r){if(o===d)throw new Error("Generator is already running");if(o===p){if("throw"===i)throw r;return P()}n.method=i,n.arg=r;while(1){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var c=b(t,e,n);if("normal"===c.type){if(o=n.done?p:f,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=p,n.method="throw",n.arg=c.arg)}}}function _(t,e){var o=t.iterator[e.method];if(o===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,_(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=b(o,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,v;var r=i.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,v):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function z(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function $(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function O(t){if(t){var e=t[a];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var o=-1,r=function e(){while(++o<t.length)if(i.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=n,e.done=!0,e};return r.next=r}}return{next:P}}function P(){return{value:n,done:!0}}}(function(){return this||"object"===typeof self&&self}()||Function("return this")())},f1ea:function(t,e,n){"use strict";n.r(e);var o=n("8fc4"),i=n("2990");for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("65c8");var a,s=n("f0c5"),c=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,"690f2980",null,!1,o["a"],a);e["default"]=c.exports}}]);