Commit 1050492f authored by huanle's avatar huanle

Merge branch 'master' of gitlab.linanquan.com:jiangyipeng/doc_phone

parents 552e0481 c995d8bd
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><script src=https://g.alicdn.com/dingding/dingtalk-jsapi/2.10.3/dingtalk.open.js></script><script src=./static/showdown.min.js></script><script src=./static/marked.min.js></script><script src=./static/mdjs.min.js></script><title>doc</title><link href=./static/css/app.8684109fa89afad8ebf6d62332a26ff5.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.5606033c8b11b6b476c2.js></script><script type=text/javascript src=./static/js/vendor.2df28332b4a58963dfd2.js></script><script type=text/javascript src=./static/js/app.e32716a7f0d67e0e51e5.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><script src=https://g.alicdn.com/dingding/dingtalk-jsapi/2.10.3/dingtalk.open.js></script><title>doc</title><link href=./static/css/app.572df8d04bb4f28b6e6e8924a8f2919c.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.7f2e55e25da4f6632c28.js></script><script type=text/javascript src=./static/js/vendor.2df28332b4a58963dfd2.js></script><script type=text/javascript src=./static/js/app.e8462f95e625558e9d55.js></script></body></html>
\ No newline at end of file
webpackJsonp([0],{"2NXm":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"add_file",props:["show_addFile"],data:function(){return{closeAni:!0}},methods:{closeAdd:function(){var t=this;this.closeAni=!1,setTimeout(function(){t.$emit("update:show_addFile",!1),t.closeAni=!0},300)}}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.show_addFile,expression:"show_addFile"}],staticClass:"add_file"},[a("div",{staticClass:"main"},[a("div",{staticClass:"folder",class:{folder2:!t.closeAni}},[a("van-button",{attrs:{round:"",type:"info",size:"small",block:""}},[t._v("新建文件夹")])],1),t._v(" "),a("div",{staticClass:"divider",class:{divider2:!t.closeAni}},[a("van-divider",{style:{borderColor:"#cccccc",margin:"30px 0"}})],1),t._v(" "),a("div",{staticClass:"file",class:{file2:!t.closeAni}},[a("van-button",{staticStyle:{"margin-bottom":"20px"},attrs:{plain:"",round:"",type:"info",size:"small",block:""}},[t._v("新建富文本")]),t._v(" "),a("van-button",{attrs:{plain:"",round:"",type:"info",size:"small",block:""}},[t._v("新建Markdown")])],1)]),t._v(" "),a("div",{staticClass:"footer"},[a("i",{staticClass:"icon-19",class:{icon19:!t.closeAni},on:{click:t.closeAdd}})])])},staticRenderFns:[]};var n={name:"tabbar",data:function(){return{nav_index:1,show_addFile:!1}},created:function(){"/folder"!==this.$route.path&&this.$router.push({path:"/folder"})},methods:{selectNav:function(t,e){3===t&&dd.biz.util.openLink({url:"http://doc-phone.linanquan.com/html/dist/index.html/?token="+localStorage.getItem("doc_phone_token")+"#/folder",onSuccess:function(t){},onFail:function(t){}}),1===t&&(this.nav_index=t,"/folder"==this.$route.path?this.$router.replace({path:"/folder2"}):this.$router.replace({path:e}))}},components:{addFile:a("VU/8")(s,i,!1,function(t){a("uUID")},"data-v-339b1cfe",null).exports}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tabber"},[a("div",{staticClass:"each_nav",class:{select_nav:0==t.nav_index},on:{click:function(e){return t.selectNav(0,"/test")}}},[a("i",{staticClass:"icon-59"}),t._v(" "),a("div",[t._v("最新")])]),t._v(" "),a("div",{staticClass:"each_nav",class:{select_nav:1==t.nav_index},on:{click:function(e){return t.selectNav(1,"/folder")}}},[a("i",{staticClass:"icon-37"}),t._v(" "),a("div",[t._v("文件夹")])]),t._v(" "),a("div",{staticClass:"each_nav"},[a("i",{staticClass:"icon-100",on:{click:function(e){t.show_addFile=!0}}})]),t._v(" "),a("div",{staticClass:"each_nav",class:{select_nav:2==t.nav_index},on:{click:function(e){return t.selectNav(2,"/test")}}},[a("i",{staticClass:"icon-4"}),t._v(" "),a("div",[t._v("云笔")])]),t._v(" "),a("div",{staticClass:"each_nav",class:{select_nav:3==t.nav_index},on:{click:function(e){return t.selectNav(3,"/wangeditor")}}},[a("i",{staticClass:"icon-53"}),t._v(" "),a("div",[t._v("我的")])]),t._v(" "),a("add-file",{attrs:{show_addFile:t.show_addFile},on:{"update:show_addFile":function(e){t.show_addFile=e},"update:show_add-file":function(e){t.show_addFile=e}}})],1)},staticRenderFns:[]};var o={name:"index",components:{tabbar:a("VU/8")(n,c,!1,function(t){a("eHMs")},"data-v-e8875c44",null).exports}},l={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"index"},[e("div",{staticClass:"main"},[e("router-view")],1),this._v(" "),e("tabbar",{staticClass:"nav"})],1)},staticRenderFns:[]};var d=a("VU/8")(o,l,!1,function(t){a("4EM1")},"data-v-247b97df",null);e.default=d.exports},"4EM1":function(t,e){},eHMs:function(t,e){},uUID:function(t,e){}});
//# sourceMappingURL=0.c92537de197cd514d0c0.js.map
\ No newline at end of file
webpackJsonp([0],{"2NXm":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={name:"add_file",props:["show_addFile"],data:function(){return{closeAni:!0}},methods:{closeAdd:function(){var t=this;this.closeAni=!1,setTimeout(function(){t.$emit("update:show_addFile",!1),t.closeAni=!0},300)}}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.show_addFile,expression:"show_addFile"}],staticClass:"add_file"},[a("div",{staticClass:"main"},[a("div",{staticClass:"folder",class:{folder2:!t.closeAni}},[a("van-button",{attrs:{round:"",type:"info",size:"small",block:""}},[t._v("新建文件夹")])],1),t._v(" "),a("div",{staticClass:"divider",class:{divider2:!t.closeAni}},[a("van-divider",{style:{borderColor:"#cccccc",margin:"30px 0"}})],1),t._v(" "),a("div",{staticClass:"file",class:{file2:!t.closeAni}},[a("van-button",{staticStyle:{"margin-bottom":"20px"},attrs:{plain:"",round:"",type:"info",size:"small",block:""}},[t._v("新建富文本")]),t._v(" "),a("van-button",{attrs:{plain:"",round:"",type:"info",size:"small",block:""}},[t._v("新建Markdown")])],1)]),t._v(" "),a("div",{staticClass:"footer"},[a("i",{staticClass:"icon-19",class:{icon19:!t.closeAni},on:{click:t.closeAdd}})])])},staticRenderFns:[]};var n={name:"tabbar",data:function(){return{nav_index:1,show_addFile:!1}},created:function(){"/folder"!==this.$route.path&&this.$router.push({path:"/folder"})},methods:{selectNav:function(t,e){3===t&&dd.biz.util.openLink({url:"http://doc-phone.linanquan.com/html/dist/index.html?token="+localStorage.getItem("doc_phone_token")+"#/folder",onSuccess:function(t){},onFail:function(t){}}),1===t&&(this.nav_index=t,"/folder"==this.$route.path?this.$router.replace({path:"/folder2"}):this.$router.replace({path:e}))}},components:{addFile:a("VU/8")(i,s,!1,function(t){a("uUID")},"data-v-339b1cfe",null).exports}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tabber"},[a("div",{staticClass:"each_nav",class:{select_nav:0==t.nav_index},on:{click:function(e){return t.selectNav(0,"/test")}}},[a("i",{staticClass:"icon-59"}),t._v(" "),a("div",[t._v("最新")])]),t._v(" "),a("div",{staticClass:"each_nav",class:{select_nav:1==t.nav_index},on:{click:function(e){return t.selectNav(1,"/folder")}}},[a("i",{staticClass:"icon-37"}),t._v(" "),a("div",[t._v("文件夹")])]),t._v(" "),a("div",{staticClass:"each_nav"},[a("i",{staticClass:"icon-100",on:{click:function(e){t.show_addFile=!0}}})]),t._v(" "),a("div",{staticClass:"each_nav",class:{select_nav:2==t.nav_index},on:{click:function(e){return t.selectNav(2,"/test")}}},[a("i",{staticClass:"icon-4"}),t._v(" "),a("div",[t._v("云笔")])]),t._v(" "),a("div",{staticClass:"each_nav",class:{select_nav:3==t.nav_index},on:{click:function(e){return t.selectNav(3,"/wangeditor")}}},[a("i",{staticClass:"icon-53"}),t._v(" "),a("div",[t._v("我的")])]),t._v(" "),a("add-file",{attrs:{show_addFile:t.show_addFile},on:{"update:show_addFile":function(e){t.show_addFile=e},"update:show_add-file":function(e){t.show_addFile=e}}})],1)},staticRenderFns:[]};var o={name:"index",components:{tabbar:a("VU/8")(n,c,!1,function(t){a("S5U4")},"data-v-d360b9da",null).exports}},l={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"index"},[e("div",{staticClass:"main"},[e("router-view")],1),this._v(" "),e("tabbar",{staticClass:"nav"})],1)},staticRenderFns:[]};var d=a("VU/8")(o,l,!1,function(t){a("4EM1")},"data-v-247b97df",null);e.default=d.exports},"4EM1":function(t,e){},S5U4:function(t,e){},uUID:function(t,e){}});
//# sourceMappingURL=0.9d1ece26a8ee5a476ee4.js.map
\ No newline at end of file
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([1],{"7cd1":function(t,e){},"M+ft":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"folder2",components:{folderComponent:i("s//G").a}},s={render:function(){var t=this.$createElement;return(this._self._c||t)("folder-component",{attrs:{path:"/folder"}})},staticRenderFns:[]},n=i("VU/8")(a,s,!1,null,null,null);e.default=n.exports},"s//G":function(t,e,i){"use strict";var a=i("I22p"),s={name:"folder_component",props:["path"],data:function(){return{value:"",list:[],article_list:[],parentid:"",show_loading:!1,page:1}},created:function(){var t=this.$route.query.folderid?this.$route.query.folderid:"";this.folderList(t),t&&this.articleList(t)},methods:{folderList:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.show_loading=!0,a.a.folderList({parentid:e}).then(function(e){0==e.err_code&&(t.list=e.data),t.show_loading=!1})},articleList:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.show_loading=!0;var i={folderid:e,pagenum:20,current:this.page};a.a.articleList(i).then(function(e){0==e.err_code&&(console.log(e,99),t.article_list=e.data),t.show_loading=!1})},clickFolder:function(t){this.$router.push({path:this.path,query:{folderid:t.folderid}})},clickArticle:function(t){1==t.type?this.$router.push({path:"wangeditor",query:{docid:t.docid}}):this.$router.push({path:"markdown",query:{docid:t.docid}})}}},n={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"folder"},[i("div",{staticClass:"input"},[i("van-search",{attrs:{placeholder:"请输入搜索关键词"},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}})],1),t._v(" "),i("div",{staticClass:"main"},[t._l(t.list,function(e,a){return i("div",{staticClass:"each_folder van-hairline--bottom",on:{click:function(i){return t.clickFolder(e)}}},[i("div",[i("span",{staticClass:"icon-107 icon107"}),t._v(" "),i("span",{staticClass:"folder_name"},[t._v(t._s(e.name))])]),t._v(" "),i("div",{staticClass:"updatetime"},[t._v(t._s(e.updatetime.substr(0,10)))])])}),t._v(" "),t._l(t.article_list,function(e,a){return i("div",{staticClass:"each_folder van-hairline--bottom",on:{click:function(i){return t.clickArticle(e)}}},[i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("span",{staticClass:"folder_name",staticStyle:{margin:"0"}},[t._v(t._s(e.title))]),t._v(" "),i("span",{staticStyle:{"font-size":"12px",color:"#3396fb"}},[t._v(t._s(1==e.type?"富文本":"Markdown"))])]),t._v(" "),i("div",{staticClass:"updatetime"},[t._v(t._s(e.updatetime.substr(0,10)))])])}),t._v(" "),i("van-loading",{directives:[{name:"show",rawName:"v-show",value:t.show_loading,expression:"show_loading"}],attrs:{size:"26",vertical:"",color:"#3396fb"}})],2)])},staticRenderFns:[]};var o=i("VU/8")(s,n,!1,function(t){i("7cd1")},"data-v-06aa8c8a",null);e.a=o.exports}});
//# sourceMappingURL=1.7e05128e2126c69a7e68.js.map
\ No newline at end of file
webpackJsonp([2],{"7cd1":function(t,e){},"M+ft":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"folder2",components:{folderComponent:i("s//G").a}},s={render:function(){var t=this.$createElement;return(this._self._c||t)("folder-component",{attrs:{path:"/folder"}})},staticRenderFns:[]},n=i("VU/8")(a,s,!1,null,null,null);e.default=n.exports},"s//G":function(t,e,i){"use strict";var a=i("I22p"),s={name:"folder_component",props:["path"],data:function(){return{value:"",list:[],article_list:[],parentid:"",show_loading:!1,page:1}},created:function(){var t=this.$route.query.folderid?this.$route.query.folderid:"";this.folderList(t),t&&this.articleList(t)},methods:{folderList:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.show_loading=!0,a.a.folderList({parentid:e}).then(function(e){0==e.err_code&&(t.list=e.data),t.show_loading=!1})},articleList:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.show_loading=!0;var i={folderid:e,pagenum:20,current:this.page};a.a.articleList(i).then(function(e){0==e.err_code&&(console.log(e,99),t.article_list=e.data),t.show_loading=!1})},clickFolder:function(t){this.$router.push({path:this.path,query:{folderid:t.folderid}})},clickArticle:function(t){1==t.type?this.$router.push({path:"wangeditor",query:{docid:t.docid}}):this.$router.push({path:"markdown",query:{docid:t.docid}})}}},n={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"folder"},[i("div",{staticClass:"input"},[i("van-search",{attrs:{placeholder:"请输入搜索关键词"},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}})],1),t._v(" "),i("div",{staticClass:"main"},[t._l(t.list,function(e,a){return i("div",{staticClass:"each_folder van-hairline--bottom",on:{click:function(i){return t.clickFolder(e)}}},[i("div",[i("span",{staticClass:"icon-107 icon107"}),t._v(" "),i("span",{staticClass:"folder_name"},[t._v(t._s(e.name))])]),t._v(" "),i("div",{staticClass:"updatetime"},[t._v(t._s(e.updatetime.substr(0,10)))])])}),t._v(" "),t._l(t.article_list,function(e,a){return i("div",{staticClass:"each_folder van-hairline--bottom",on:{click:function(i){return t.clickArticle(e)}}},[i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("span",{staticClass:"folder_name",staticStyle:{margin:"0"}},[t._v(t._s(e.title))]),t._v(" "),i("span",{staticStyle:{"font-size":"12px",color:"#3396fb"}},[t._v(t._s(1==e.type?"富文本":"Markdown"))])]),t._v(" "),i("div",{staticClass:"updatetime"},[t._v(t._s(e.updatetime.substr(0,10)))])])}),t._v(" "),i("van-loading",{directives:[{name:"show",rawName:"v-show",value:t.show_loading,expression:"show_loading"}],attrs:{size:"26",vertical:"",color:"#3396fb"}})],2)])},staticRenderFns:[]};var o=i("VU/8")(s,n,!1,function(t){i("7cd1")},"data-v-06aa8c8a",null);e.a=o.exports}});
//# sourceMappingURL=2.d1e78d8dc3862c4bebf4.js.map
\ No newline at end of file
webpackJsonp([3],{SaS0:function(t,e){},tZVe:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("I22p"),c={name:"markdown",data:function(){return{title:"",content:"",converter:null,html:"",mdjs:null}},created:function(){this.docid=this.$route.query.docid,this.articleDetail(this.docid)},mounted:function(){this.mdjs=new Mdjs},methods:{articleDetail:function(t){var e=this;i.a.articleDetail({docid:t}).then(function(t){console.log(t,999),0==t.err_code&&(e.content=t.data.doc,e.title=t.data.title,e.convertText())})},convertText:function(){this.html=this.mdjs.md2html(this.content)},cancel:function(){},sure:function(){}}},a={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"markdown"},[n("van-field",{staticClass:"doc_name",attrs:{"input-align":"center"},model:{value:t.title,callback:function(e){t.title=e},expression:"title"}}),t._v(" "),n("div",{staticClass:"main",domProps:{innerHTML:t._s(t.html)}}),t._v(" "),n("div",{staticClass:"bottom"},[n("van-button",{attrs:{plain:"",type:"info",color:"#cccccc"},on:{click:t.cancel}},[t._v("取消")]),t._v(" "),n("van-button",{attrs:{type:"info"},on:{click:t.sure}},[t._v("确定")])],1)],1)},staticRenderFns:[]};var o=n("VU/8")(c,a,!1,function(t){n("SaS0")},"data-v-fd976ee4",null);e.default=o.exports}});
//# sourceMappingURL=3.1d5f70c5ef57426d51dd.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///src/pages/markdown.vue","webpack:///./src/pages/markdown.vue?84b2","webpack:///./src/pages/markdown.vue"],"names":["markdown","name","data","title","content","converter","html","mdjs","created","this","docid","$route","query","articleDetail","mounted","Mdjs","methods","_this","then","console","log","err_code","doc","convertText","md2html","cancel","sure","pages_markdown","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","input-align","model","value","callback","$$v","expression","_v","domProps","innerHTML","_s","plain","type","color","on","click","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"0IAeAA,GACAC,KAAA,WACAC,KAFA,WAGA,OACAC,MAAA,GACAC,QAAA,GACAC,UAAA,KACAC,KAAA,GACAC,KAAA,OAGAC,QAXA,WAYAC,KAAAC,MAAAD,KAAAE,OAAAC,MAAAF,MACAD,KAAAI,cAAAJ,KAAAC,QAEAI,QAfA,WAoBAL,KAAAF,KAAA,IAAAQ,MAEAC,SAEAH,cAFA,SAEAH,GAAA,IAAAO,EAAAR,KACYO,EAAA,EAAZH,eAAAH,UAAAQ,KAAA,SAAAhB,GACAiB,QAAAC,IAAAlB,EAAA,KACA,GAAAA,EAAAmB,WACAJ,EAAAb,QAAAF,OAAAoB,IACAL,EAAAd,MAAAD,OAAAC,MACAc,EAAAM,kBAKAA,YAbA,WAgBAd,KAAAH,KAAAG,KAAAF,KAAAiB,QAAAf,KAAAL,UAEAqB,OAlBA,aAmBAC,KAnBA,eClCeC,GADEC,OAFjB,WAA0B,IAAAC,EAAApB,KAAaqB,EAAAD,EAAAE,eAA0BC,EAAAH,EAAAI,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,aAAuBF,EAAA,aAAkBE,YAAA,WAAAC,OAA8BC,cAAA,UAAuBC,OAAQC,MAAAT,EAAA,MAAAU,SAAA,SAAAC,GAA2CX,EAAA1B,MAAAqC,GAAcC,WAAA,WAAqBZ,EAAAa,GAAA,KAAAV,EAAA,OAAwBE,YAAA,OAAAS,UAA6BC,UAAAf,EAAAgB,GAAAhB,EAAAvB,SAA8BuB,EAAAa,GAAA,KAAAV,EAAA,OAAwBE,YAAA,WAAqBF,EAAA,cAAmBG,OAAOW,MAAA,GAAAC,KAAA,OAAAC,MAAA,WAA2CC,IAAKC,MAAArB,EAAAJ,UAAoBI,EAAAa,GAAA,QAAAb,EAAAa,GAAA,KAAAV,EAAA,cAA8CG,OAAOY,KAAA,QAAcE,IAAKC,MAAArB,EAAAH,QAAkBG,EAAAa,GAAA,iBAErkBS,oBCCjB,IAcAC,EAdyBC,EAAQ,OAcjCC,CACEtD,EACA2B,GATF,EAVA,SAAA4B,GACEF,EAAQ,SAaV,kBAEA,MAUeG,EAAA,QAAAJ,EAAiB","file":"static/js/3.1d5f70c5ef57426d51dd.js","sourcesContent":["<template>\r\n <div class=\"markdown\">\r\n <van-field v-model=\"title\" input-align=\"center\" class=\"doc_name\"/>\r\n <!--<van-field v-model=\"content\" input-align=\"center\" class=\"doc_name\"-->\r\n <!--@input=\"convertText\"/>-->\r\n <div v-html=\"html\" class=\"main\"></div>\r\n <div class=\"bottom\">\r\n <van-button plain type=\"info\" color=\"#cccccc\" @click=\"cancel\">取消</van-button>\r\n <van-button type=\"info\" @click=\"sure\">确定</van-button>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n import api from '../api/methods';\r\n export default {\r\n name: \"markdown\",\r\n data(){\r\n return {\r\n title:'',\r\n content:'', //内容\r\n converter:null, //转化器\r\n html:'', //格式化后内容\r\n mdjs:null,\r\n }\r\n },\r\n created(){\r\n this.docid = this.$route.query.docid;\r\n this.articleDetail(this.docid);\r\n },\r\n mounted() {\r\n // console.log(marked,99)\r\n //创建实例\r\n // this.converter = new showdown.Converter();\r\n // console.log(this.converter,99)\r\n this.mdjs = new Mdjs();\r\n },\r\n methods: {\r\n //获取文件详情\r\n articleDetail(docid){\r\n api.articleDetail({docid:docid}).then((data)=>{\r\n console.log(data,999)\r\n if(data.err_code == 0){\r\n this.content = data.data.doc;\r\n this.title = data.data.title;\r\n this.convertText();\r\n }\r\n })\r\n },\r\n //格式转化\r\n convertText() {\r\n // this.html = this.converter.makeHtml(this.content);\r\n // this.html = marked(this.content);\r\n this.html = this.mdjs.md2html(this.content);\r\n },\r\n cancel(){},\r\n sure(){},\r\n },\r\n }\r\n</script>\r\n\r\n<style scoped lang=\"less\">\r\n @import \"../assets/sspai.css\";\r\n @basefont:50;\r\n .markdown{\r\n height:100vh;\r\n width:100%;\r\n .doc_name{\r\n height:80rem /@basefont;\r\n color:#333333;\r\n font-size:36rem /@basefont;\r\n }\r\n .main{\r\n height:calc(100% - (200rem /@basefont));\r\n width:100%;\r\n word-break:break-word;\r\n overflow:auto;\r\n padding:20rem /@basefont;\r\n font-size:28rem /@basefont;\r\n box-sizing:border-box;\r\n }\r\n .bottom{\r\n height:120rem /@basefont;\r\n width:100%;\r\n position:fixed;\r\n bottom:0;\r\n background-color:white;\r\n display:flex;\r\n z-index:11;\r\n align-items:center;\r\n justify-content:space-around;\r\n padding:20rem /@basefont 0;\r\n box-sizing:border-box;\r\n box-shadow:0 -2px 5px #eeeeee;\r\n .van-button{\r\n width:40%;\r\n }\r\n }\r\n }\r\n</style>\n\n\n// WEBPACK FOOTER //\n// src/pages/markdown.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"markdown\"},[_c('van-field',{staticClass:\"doc_name\",attrs:{\"input-align\":\"center\"},model:{value:(_vm.title),callback:function ($$v) {_vm.title=$$v},expression:\"title\"}}),_vm._v(\" \"),_c('div',{staticClass:\"main\",domProps:{\"innerHTML\":_vm._s(_vm.html)}}),_vm._v(\" \"),_c('div',{staticClass:\"bottom\"},[_c('van-button',{attrs:{\"plain\":\"\",\"type\":\"info\",\"color\":\"#cccccc\"},on:{\"click\":_vm.cancel}},[_vm._v(\"取消\")]),_vm._v(\" \"),_c('van-button',{attrs:{\"type\":\"info\"},on:{\"click\":_vm.sure}},[_vm._v(\"确定\")])],1)],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-fd976ee4\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/pages/markdown.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-fd976ee4\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./markdown.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./markdown.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./markdown.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-fd976ee4\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./markdown.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-fd976ee4\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/pages/markdown.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
\ No newline at end of file
webpackJsonp([2],{"7cd1":function(t,e){},C0Ug:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"folder",components:{folderComponent:i("s//G").a}},s={render:function(){var t=this.$createElement;return(this._self._c||t)("folder-component",{attrs:{path:"/folder2"}})},staticRenderFns:[]},n=i("VU/8")(a,s,!1,null,null,null);e.default=n.exports},"s//G":function(t,e,i){"use strict";var a=i("I22p"),s={name:"folder_component",props:["path"],data:function(){return{value:"",list:[],article_list:[],parentid:"",show_loading:!1,page:1}},created:function(){var t=this.$route.query.folderid?this.$route.query.folderid:"";this.folderList(t),t&&this.articleList(t)},methods:{folderList:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.show_loading=!0,a.a.folderList({parentid:e}).then(function(e){0==e.err_code&&(t.list=e.data),t.show_loading=!1})},articleList:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.show_loading=!0;var i={folderid:e,pagenum:20,current:this.page};a.a.articleList(i).then(function(e){0==e.err_code&&(console.log(e,99),t.article_list=e.data),t.show_loading=!1})},clickFolder:function(t){this.$router.push({path:this.path,query:{folderid:t.folderid}})},clickArticle:function(t){1==t.type?this.$router.push({path:"wangeditor",query:{docid:t.docid}}):this.$router.push({path:"markdown",query:{docid:t.docid}})}}},n={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"folder"},[i("div",{staticClass:"input"},[i("van-search",{attrs:{placeholder:"请输入搜索关键词"},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}})],1),t._v(" "),i("div",{staticClass:"main"},[t._l(t.list,function(e,a){return i("div",{staticClass:"each_folder van-hairline--bottom",on:{click:function(i){return t.clickFolder(e)}}},[i("div",[i("span",{staticClass:"icon-107 icon107"}),t._v(" "),i("span",{staticClass:"folder_name"},[t._v(t._s(e.name))])]),t._v(" "),i("div",{staticClass:"updatetime"},[t._v(t._s(e.updatetime.substr(0,10)))])])}),t._v(" "),t._l(t.article_list,function(e,a){return i("div",{staticClass:"each_folder van-hairline--bottom",on:{click:function(i){return t.clickArticle(e)}}},[i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("span",{staticClass:"folder_name",staticStyle:{margin:"0"}},[t._v(t._s(e.title))]),t._v(" "),i("span",{staticStyle:{"font-size":"12px",color:"#3396fb"}},[t._v(t._s(1==e.type?"富文本":"Markdown"))])]),t._v(" "),i("div",{staticClass:"updatetime"},[t._v(t._s(e.updatetime.substr(0,10)))])])}),t._v(" "),i("van-loading",{directives:[{name:"show",rawName:"v-show",value:t.show_loading,expression:"show_loading"}],attrs:{size:"26",vertical:"",color:"#3396fb"}})],2)])},staticRenderFns:[]};var o=i("VU/8")(s,n,!1,function(t){i("7cd1")},"data-v-06aa8c8a",null);e.a=o.exports}});
//# sourceMappingURL=2.886e1aadccebe3fa542c.js.map
\ No newline at end of file
webpackJsonp([3],{"7cd1":function(t,e){},C0Ug:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"folder",components:{folderComponent:i("s//G").a}},s={render:function(){var t=this.$createElement;return(this._self._c||t)("folder-component",{attrs:{path:"/folder2"}})},staticRenderFns:[]},n=i("VU/8")(a,s,!1,null,null,null);e.default=n.exports},"s//G":function(t,e,i){"use strict";var a=i("I22p"),s={name:"folder_component",props:["path"],data:function(){return{value:"",list:[],article_list:[],parentid:"",show_loading:!1,page:1}},created:function(){var t=this.$route.query.folderid?this.$route.query.folderid:"";this.folderList(t),t&&this.articleList(t)},methods:{folderList:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.show_loading=!0,a.a.folderList({parentid:e}).then(function(e){0==e.err_code&&(t.list=e.data),t.show_loading=!1})},articleList:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.show_loading=!0;var i={folderid:e,pagenum:20,current:this.page};a.a.articleList(i).then(function(e){0==e.err_code&&(console.log(e,99),t.article_list=e.data),t.show_loading=!1})},clickFolder:function(t){this.$router.push({path:this.path,query:{folderid:t.folderid}})},clickArticle:function(t){1==t.type?this.$router.push({path:"wangeditor",query:{docid:t.docid}}):this.$router.push({path:"markdown",query:{docid:t.docid}})}}},n={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"folder"},[i("div",{staticClass:"input"},[i("van-search",{attrs:{placeholder:"请输入搜索关键词"},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}})],1),t._v(" "),i("div",{staticClass:"main"},[t._l(t.list,function(e,a){return i("div",{staticClass:"each_folder van-hairline--bottom",on:{click:function(i){return t.clickFolder(e)}}},[i("div",[i("span",{staticClass:"icon-107 icon107"}),t._v(" "),i("span",{staticClass:"folder_name"},[t._v(t._s(e.name))])]),t._v(" "),i("div",{staticClass:"updatetime"},[t._v(t._s(e.updatetime.substr(0,10)))])])}),t._v(" "),t._l(t.article_list,function(e,a){return i("div",{staticClass:"each_folder van-hairline--bottom",on:{click:function(i){return t.clickArticle(e)}}},[i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("span",{staticClass:"folder_name",staticStyle:{margin:"0"}},[t._v(t._s(e.title))]),t._v(" "),i("span",{staticStyle:{"font-size":"12px",color:"#3396fb"}},[t._v(t._s(1==e.type?"富文本":"Markdown"))])]),t._v(" "),i("div",{staticClass:"updatetime"},[t._v(t._s(e.updatetime.substr(0,10)))])])}),t._v(" "),i("van-loading",{directives:[{name:"show",rawName:"v-show",value:t.show_loading,expression:"show_loading"}],attrs:{size:"26",vertical:"",color:"#3396fb"}})],2)])},staticRenderFns:[]};var o=i("VU/8")(s,n,!1,function(t){i("7cd1")},"data-v-06aa8c8a",null);e.a=o.exports}});
//# sourceMappingURL=3.939d6f88b23858af186e.js.map
\ No newline at end of file
webpackJsonp([7],{"+cgv":function(n,e){},"02pT":function(n,e){},"1H7Z":function(n,e){},"3IMD":function(n,e){},"3f40":function(n,e){},"4qOc":function(n,e){},FhoU:function(n,e){},I22p:function(n,e,t){"use strict";var o=t("//Fk"),r=t.n(o),i=t("mtWM"),a=t.n(i),c=t("mw3O"),u=t.n(c),d={config:"index.php/login/index/config",getSsoToken:"index.php/login/index/getSsoToken",folderList:"index.php/api/index/folderList",articleList:"index.php/api/index/articleList",articleDetail:"index.php/api/index/articleDetail",articleEdit:"index.php/api/index/articleEdit"},f=t("7+uW"),s=t("RjhT"),l=new f.a;a.a.interceptors.request.use(function(n){return n},function(n){return r.a.reject(n)}),a.a.interceptors.response.use(function(n){return 0!==n.data.err_code?l.$notify({type:"danger",duration:2e3,message:n.data.err_msg}):10003===n.data.err_code&&(alert("10003"),s.a.getCode()),n.data},function(n){return r.a.reject(n)});var p=function(n,e){var t=d[n];return a()({method:"post",baseURL:"http://doc-phone.linanquan.com/",url:t,data:u.a.stringify(e)})};function h(n){var e=n||{};return e.token=localStorage.getItem("doc_phone_token"),e}e.a={config:function(n){return p("config",n)},getSsoToken:function(n){return p("getSsoToken",n)},folderList:function(n){return p("folderList",h(n))},articleList:function(n){return p("articleList",h(n))},articleDetail:function(n){return p("articleDetail",h(n))},articleEdit:function(n){return p("articleEdit",h(n))}}},Lorf:function(n,e){},NHnr:function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});t("cOrn");var o=t("77gS"),r=(t("MY4N"),t("0zAV")),i=(t("nOaS"),t("pIDD")),a=(t("Ny/I"),t("7Tnr")),c=(t("3Lne"),t("SSsa")),u=(t("4yKu"),t("wolx")),d=t("7+uW"),f={render:function(){var n=this.$createElement,e=this._self._c||n;return e("div",{attrs:{id:"app"}},[e("router-view")],1)},staticRenderFns:[]};var s=t("VU/8")({name:"App"},f,!1,function(n){t("Lorf")},null,null).exports,l=t("/ocq"),p=t("RjhT"),h=t("NYxO");d.a.use(h.a);new h.a.Store({state:{user_info:null},mutations:{userInfo:function(n,e){n.user_info=e}}});d.a.use(l.a);var g=new l.a({routes:[{path:"/",name:"index",component:function(){return t.e(0).then(t.bind(null,"2NXm"))},children:[{path:"folder",name:"folder",component:function(){return t.e(2).then(t.bind(null,"C0Ug"))}},{path:"folder2",name:"folder2",component:function(){return t.e(1).then(t.bind(null,"M+ft"))}},{path:"wangeditor",name:"wangeditor",component:function(){return t.e(5).then(t.bind(null,"5DMK"))}},{path:"markdown",name:"markdown",component:function(){return t.e(3).then(t.bind(null,"tZVe"))}},{path:"test",name:"test",component:function(){return t.e(4).then(t.bind(null,"Y7I0"))}}]}]});g.beforeEach(function(n,e,t){localStorage.getItem("doc_phone_token")?t():p.a.getCode(function(){return t()})});var m=g,k=t("G0J2"),v=t.n(k);t("3f40"),t("4qOc"),t("+cgv");d.a.use(v.a,{placeholder:"请输入内容",modules:{toolbar:[[{color:[]}],["bold","italic","underline","strike"],[{header:1},{header:2}],[{header:[1,2,3,4,5,6,!1]}]]}}),d.a.use(u.a),d.a.use(c.a),d.a.use(a.a),d.a.use(i.a),d.a.use(r.a),d.a.use(o.a),d.a.config.productionTip=!1,new d.a({el:"#app",router:m,components:{App:s},template:"<App/>"})},RjhT:function(n,e,t){"use strict";var o=t("mvHQ"),r=t.n(o),i=t("I22p");e.a={config:function(n){i.a.config().then(function(e){alert("getConfig"),0==e.err_code&&n(e.data)})},getSsoToken:function(n,e){i.a.getSsoToken({code:n}).then(function(n){0==n.err_code&&(alert("重新登录"),localStorage.setItem("doc_phone_token",n.data.token),e())})},getCode:function(n){var e=this;this.config(function(t){dd.ready(function(){alert("getCode"),dd.runtime.permission.requestAuthCode({corpId:t.corpId,onSuccess:function(t){e.getSsoToken(t.code,function(){return n()})},onFail:function(n){alert(r()(n)),e.getSsoToken(n.code)}})})})}}},T2s0:function(n,e){},WRFY:function(n,e){},WpgC:function(n,e){},hW8u:function(n,e){},"n/tq":function(n,e){},nsZj:function(n,e){},px3J:function(n,e){},qpP9:function(n,e){}},["NHnr"]);
//# sourceMappingURL=app.e32716a7f0d67e0e51e5.js.map
\ No newline at end of file
webpackJsonp([7],{"+cgv":function(n,e){},"02pT":function(n,e){},"1H7Z":function(n,e){},"3IMD":function(n,e){},"3f40":function(n,e){},"4qOc":function(n,e){},FhoU:function(n,e){},I22p:function(n,e,t){"use strict";var o=t("//Fk"),i=t.n(o),r=t("mtWM"),a=t.n(r),c=t("mw3O"),u=t.n(c),d={config:"index.php/login/index/config",getSsoToken:"index.php/login/index/getSsoToken",folderList:"index.php/api/index/folderList",articleList:"index.php/api/index/articleList",articleDetail:"index.php/api/index/articleDetail",articleEdit:"index.php/api/index/articleEdit"},f=t("7+uW"),s=t("RjhT"),l=new f.a;a.a.interceptors.request.use(function(n){return n},function(n){return i.a.reject(n)}),a.a.interceptors.response.use(function(n){return 10003===n.data.err_code?(l.$notify({type:"primary",duration:1500,message:"重新登录"}),s.a.getCode()):0!==n.data.err_code&&l.$notify({type:"danger",duration:2e3,message:n.data.err_msg}),n.data},function(n){return i.a.reject(n)});var p=function(n,e){var t=d[n];return a()({method:"post",baseURL:"http://doc-phone.linanquan.com/",url:t,data:u.a.stringify(e)})};function h(n){var e=n||{};return e.token=localStorage.getItem("doc_phone_token"),e}e.a={config:function(n){return p("config",n)},getSsoToken:function(n){return p("getSsoToken",n)},folderList:function(n){return p("folderList",h(n))},articleList:function(n){return p("articleList",h(n))},articleDetail:function(n){return p("articleDetail",h(n))},articleEdit:function(n){return p("articleEdit",h(n))}}},Lorf:function(n,e){},NHnr:function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});t("cOrn");var o=t("77gS"),i=(t("MY4N"),t("0zAV")),r=(t("nOaS"),t("pIDD")),a=(t("Ny/I"),t("7Tnr")),c=(t("3Lne"),t("SSsa")),u=(t("4yKu"),t("wolx")),d=t("7+uW"),f={render:function(){var n=this.$createElement,e=this._self._c||n;return e("div",{attrs:{id:"app"}},[e("router-view")],1)},staticRenderFns:[]};var s=t("VU/8")({name:"App"},f,!1,function(n){t("Lorf")},null,null).exports,l=t("/ocq"),p=t("RjhT"),h=t("NYxO");d.a.use(h.a);new h.a.Store({state:{user_info:null},mutations:{userInfo:function(n,e){n.user_info=e}}});d.a.use(l.a);var g=new l.a({routes:[{path:"/",name:"index",component:function(){return t.e(0).then(t.bind(null,"2NXm"))},children:[{path:"folder",name:"folder",component:function(){return t.e(3).then(t.bind(null,"C0Ug"))}},{path:"folder2",name:"folder2",component:function(){return t.e(2).then(t.bind(null,"M+ft"))}},{path:"wangeditor",name:"wangeditor",component:function(){return t.e(5).then(t.bind(null,"5DMK"))}},{path:"markdown",name:"markdown",component:function(){return t.e(1).then(t.bind(null,"tZVe"))}},{path:"test",name:"test",component:function(){return t.e(4).then(t.bind(null,"Y7I0"))}}]}]});g.beforeEach(function(n,e,t){localStorage.getItem("doc_phone_token")?t():p.a.getCode(function(){return t()})});var m=g,k=t("G0J2"),v=t.n(k);t("3f40"),t("4qOc"),t("+cgv");d.a.use(v.a,{placeholder:"请输入内容",modules:{toolbar:[[{color:[]}],["bold","italic","underline","strike"],[{header:1},{header:2}],[{header:[1,2,3,4,5,6,!1]}]]}}),d.a.use(u.a),d.a.use(c.a),d.a.use(a.a),d.a.use(r.a),d.a.use(i.a),d.a.use(o.a),d.a.config.productionTip=!1,new d.a({el:"#app",router:m,components:{App:s},template:"<App/>"})},RjhT:function(n,e,t){"use strict";var o=t("mvHQ"),i=t.n(o),r=t("I22p");e.a={config:function(n){r.a.config().then(function(e){0==e.err_code&&n(e.data)})},getSsoToken:function(n,e){r.a.getSsoToken({code:n}).then(function(n){0==n.err_code&&(localStorage.setItem("doc_phone_token",n.data.token),alert("保存新token"),e())})},getCode:function(n){var e=this;this.config(function(t){dd.ready(function(){dd.runtime.permission.requestAuthCode({corpId:t.corpId,onSuccess:function(t){e.getSsoToken(t.code,function(){return n()})},onFail:function(n){alert(i()(n)),e.getSsoToken(n.code)}})})})}}},T2s0:function(n,e){},WRFY:function(n,e){},WpgC:function(n,e){},hW8u:function(n,e){},"n/tq":function(n,e){},nsZj:function(n,e){},px3J:function(n,e){},qpP9:function(n,e){}},["NHnr"]);
//# sourceMappingURL=app.e8462f95e625558e9d55.js.map
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var i,u,f,d=0,s=[];d<r.length;d++)u=r[d],t[u]&&s.push(t[u][0]),t[u]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(n&&n(r,c,a);s.length;)s.shift()();if(a)for(d=0;d<a.length;d++)f=o(o.s=a[d]);return f};var r={},t={8:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute("nonce",o.nc),a.src=o.p+"static/js/"+e+"."+{0:"c92537de197cd514d0c0",1:"7e05128e2126c69a7e68",2:"886e1aadccebe3fa542c",3:"1d5f70c5ef57426d51dd",4:"d10ba5b27b34dea08bd1",5:"9cd0f2020c75b7a9dbf1"}[e]+".js";var i=setTimeout(u,12e4);function u(){a.onerror=a.onload=null,clearTimeout(i);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=u,c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="./",o.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.5606033c8b11b6b476c2.js.map
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var i,u,f,d=0,s=[];d<r.length;d++)u=r[d],t[u]&&s.push(t[u][0]),t[u]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(n&&n(r,c,a);s.length;)s.shift()();if(a)for(d=0;d<a.length;d++)f=o(o.s=a[d]);return f};var r={},t={8:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute("nonce",o.nc),a.src=o.p+"static/js/"+e+"."+{0:"9d1ece26a8ee5a476ee4",1:"487948a1ffd61c414074",2:"d1e78d8dc3862c4bebf4",3:"939d6f88b23858af186e",4:"d10ba5b27b34dea08bd1",5:"9cd0f2020c75b7a9dbf1"}[e]+".js";var i=setTimeout(u,12e4);function u(){a.onerror=a.onload=null,clearTimeout(i);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=u,c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="./",o.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.7f2e55e25da4f6632c28.js.map
\ No newline at end of file
This diff is collapsed.
(function(){function a(a,b){!String.prototype[a]&&(String.prototype[a]=b);}a('trim',function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,'');}),a('startsWith',function(a,b){return b=b||0,this.substr(b,a.length)===a;}),a('endsWith',function(a,b){var c=this.toString();(typeof b!=='number'||!isFinite(b)||Math.floor(b)!==b||b>c.length)&&(b=c.length),b-=a.length;var d=c.lastIndexOf(a,b);return d!==-1&&d===b;});})();
(function(){function a(a){return a<0?'':a<1024?t.slice(0,a):s(a);}function b(a){var b=r.exec(a);if(!b)return a;var c='',d='',e=0,f=0,g=a.length;for(e=b.index;e<g;e++){switch(a.charCodeAt(e)){case 34:d='&quot;';break;case 38:d='&amp;';break;case 39:d='&#39;';break;case 60:d='&lt;';break;case 62:d='&gt;';break;default:continue;}f!==e&&(c+=a.substring(f,e)),f=e+1,c+=d;}return f===e?c:c+a.substring(f,e);}function c(a){var b={},c=[];this.set=function(d,e,f){f&&(e.id=c.push(e),e.url=a.func.footNoteName(e.id)),b[d.toLowerCase()]=e;},this.get=function(a){return b[a.toLowerCase()];},this.getFootNotes=function(){return c;};}function d(){var a=[],b=[],c=0;this.topLevel=function(){return c?a[c-1]:-1;},this.topType=function(){return c?b[c-1]:-1;},this.push=function(d,e){a.push(d),b.push(e),c++;},this.pop=function(){a.pop(),b.pop(),c=a.length;};}function e(){this.tag={hr:'<hr />',br:'<br />',p:['<p>','</p>'],quote:['<blockquote>','</blockquote>'],del:['<del>','</del>'],strong:['<strong>','</strong>'],em:['<em>','</em>'],inlineCode:['<code>','</code>'],codeBlock:['<pre><code data-lang="$language">','</code></pre>'],list:['<ul>','</ul>'],orderList:['<ol>','</ol>'],listItem:['<li>','</li>'],toc:['<div class="md_toc">','</div>'],tocList:['<ol>','</ol>'],tocItem:['<a href="#$uri"><li>','</li></a>'],footNote:['<div class="md_foot"><ol>','</ol></div>']},this.func={heading:function(a,b,c){return"<h"+a+" id=\""+b+"\" name=\""+b+"\">"+c+"</h"+a+">";},link:function(a,c,d){return"<a title=\""+b(c)+"\" href=\""+encodeURI(a)+"\">"+d+"</a>";},email:function(a){return"<a href=\"mailto:"+a+"\">"+a+"</a>";},image:function(a,c,d){return"<img alt=\""+b(d)+"\" title=\""+b(c)+"\" src=\""+encodeURI(a)+"\" />";},table:function(a,b){return"<table class=\"md_table\"><thead>"+a+"</thead><tbody>"+b+"</tbody></table>";},tableRow:function(a,b,c){for(var d='<tr>',e=a?'<th style="text-align: {0}">':'<td style="text-align: {0}">',f=a?'</th>':'</td>',g=['left','center','right'],h=0;h<b.length;h++)d+=e.replace('{0}',g[c[h]])+b[h]+f;return d+'</tr>';},footNoteLink:function(a,c,d){return"<sup><a title=\""+b(c)+"\" href=\"#"+encodeURI(a)+"\">"+d+"</a></sup>";},footNote:function(a,b){return"<li name=\""+a+"\" id=\""+a+"\">"+b+"</li>";},footNoteName:function(a){return"markdown_foot_"+a;}};var a=[];this.addRefLinkProvider=function(b){return a.push(b);},this._resolveRefLink=function(b){for(var c,d=0;d<a.length;d++)if(c=a[d](b))return c.url?c:{url:c};};}function f(f){function g(a){a=a.trim();var b={url:a,title:''},c=a.match(/(.+?)\s+(.+)/);if(!c)return b;b.url=c[1];var d=c[2],e=d[0],f=d[d.length-1];return d.length>=2&&((e=='\''||e=='"')&&e==f||e=='('&&f==')')&&(d=d.slice(1,-1)),b.title=d,b;}function h(a){var b=a.charCodeAt(0);if(b!=61&&b!=45&&b!=42&&b!=95)return!1;var c=0,d=0;for(var e=0;e<a.length;e++,c++)if(d=a.charCodeAt(e),d!=32&&d!=9&&d!=b)return!1;return c>=3;}function r(a){for(var b=0,c=0;c<a.length;c++)if(a[c]==' ')b++;else if(a[c]=='\t')b+=4;else break;return b;}function s(a){var b=0;for(b=0;b<a.length&&!(a[b]!='#');b++);return b;}function t(a){return a.endsWith(' ');}function u(a){return a.replace(m,'_').replace(/^_/,'').replace(/_$/,'');}function v(c,d,e){for(var f='',g=c.length,m=0,n='',o='',p=0,D=-1,E=[],H=[],I=[],J=!0,K=!1,L='',M={},N=0,O=0;O<g;O++){if(n=c[O],o=n.trim(),m){if(o=='```'){m=0,f+=F.codeBlock[1];continue;}f+=(m++>1?'\n':'')+b(n);continue;}p=r(n);var i=x(o);if(i!=0){f+=y(p,i,o);continue;}if(f+=z(),o.length==0){!J&&(f+=(K?F.br:'')+F.p[1],J=!0);continue;}if(p<4){if(o.startsWith('```')){var P=o.slice(3).trim();f+=F.codeBlock[0].replace(q,P),m=1;continue;}if(N=s(o),N>0){for(var Q=o.length-1;Q>N&&o[Q]=='#';Q--);var R=o.slice(N,Q+1),S=R=C(R,0);I.push(N),E.push(S=S.trim().replace(l,'')),H.push(S=u(S)),f+=G.heading(N,S,R);continue;}if(o[0]=='>'&&o.length>1){for(var T=[],U=O;U<g&&(L=c[U].trim(),L.length!=0);U++){if(L[0]=='>')L=L.slice(1)+(t(c[U])?' ':'');else if(d)break;else L=c[U];T.push(L);}f+=F.quote[0]+v(T,!0,e)+F.quote[1],O=U-1;continue;}if(h(o)){f+=F.hr;continue;}if(o=='[TOC]'){D=f.length;continue;}var _=B(o);if(_!==!1&&O<g-1){var aa=A(c[O+1].trim(),_.length);if(aa!==!1){for(var k=G.tableRow(!0,_,aa),V='',W=O+2;W<g&&(_=B(c[W].trim()))!=!1;W++)V+=G.tableRow(!1,_,aa);O=W-1,f+=G.table(k,V);continue;}}}else if(O==0||c[O-1].trim().length==0){f+=F.codeBlock[0].replace(q,'');for(var j,X='',Y=O,W=O;W<g;W++){if(c[W].trim().length==0){X+='\n';continue;}if((j=r(c[W]))<4)break;f+=X+(W==O?'':'\n')+a(j-2)+b(c[W].trim()),X='',Y=W;}f+=F.codeBlock[1],O=Y;continue;}if(O+1<g){var Z=c[O+1].trim();if(h(Z)){var $=3;Z[0]=='='?$=1:Z[0]=='-'&&($=2);var S=R=C(o,0);I.push($),E.push(S=S.trim().replace(l,'')),H.push(S=u(S)),f+=G.heading($,S,R),O++;continue;}}M={},L=C(n,0,M),J&&M.onlyOneImg?f+=L:(J&&(L=F.p[0]+L,K=!1),(e.alwaysNewline&&!J||K)&&(f+=F.br),K=t(n),f+=L,J=!1);}return!J&&(f+=(K?F.br:'')+F.p[1],J=!0),D!=-1&&(f=f.slice(0,D)+w(E,H,I)+f.slice(D)),f;}function w(a,b,c){for(var d,e,f=F.toc[0],g=[],h=0;h<a.length;h++)e=F.tocItem[0].replace('$uri',b[h])+a[h]+F.tocItem[1],g.length==0||c[h]>d?(f+=F.tocList[0]+e,g.push(d=c[h])):c[h]==d?f+=e:(f+=F.tocList[1],g.pop(),d=g[g.length-1],h--);for(;g.length;)f+=F.tocList[1],g.pop();return f+F.toc[1];}function x(a){return h(a)?0:a.search(j)==-1?a.search(i)==-1?0:2:1;}function y(a,b,c){var d=I.topLevel(),e=F.listItem[0]+C(c,c.indexOf(' '))+F.listItem[1],f='';if(a>d)return I.push(a,b),(b==1?F.orderList:F.list)[0]+e;if(a==d)return e;for(;a<d;)f+=I.topType()==1?F.orderList[1]:F.list[1],I.pop(),d=I.topLevel();return d==-1?(I.push(a,b),f+(b==1?F.orderList:F.list)[0]+e):f+e;}function z(){for(var a='';I.topLevel()!=-1;)a+=I.topType()==1?F.orderList[1]:F.list[1],I.pop();return a;}function A(a,b){var c=B(a,!0),d=[],e=0,f=0;if(c===!1)return!1;for(var g=c.length;e<g;e++,f=0){if(c[e].length<=1){d[e]=0;continue;}c[e][c[e].length-1]==':'&&(f=c[e][0]==':'?1:2),d[e]=f;}for(;e<b;e++)d[e]=0;return d;}function B(a,b){for(var c=[],d=a.length,e='',f=a[0]=='|'?1:0;f<d;f++){switch(a[f]){case'\\':if(b)return!1;e+='\\',a[f+1]=='|'&&(e+='|',f++);continue;case'|':if(e=e.trim(),b&&e.length==0)return!1;c.push(e),e='';continue;}if(!b||a[f]==':'||a[f]=='-'||a[f]==' '||a[f]=='\t')e+=a[f];else return!1;}return(c.length!=0||a[0]=='|')&&(e=e.trim(),e.length!=0&&c.push(e),c);}function C(a,c,d){for(var e,f,h,l,m,p,q,s,t=a.length,u=[],v='',r=-1,w=-1,x=-1,y=-1,z=-1,A='*',B='*',D=0,I=!1,J=c||0;J<t;J++)switch(a[J]){case'\\':k.indexOf(a[J+1])>=0&&(r=u.length,w=++J),v+=a[J];break;case'`':p=a[J+1]=='`'?'``':'`',q=p.length,(e=a.indexOf(p,J+q))==-1?v+=p:(v+=F.inlineCode[0]+b(a.slice(J+q,e))+F.inlineCode[1],J=e),J+=q-1;break;case'~':a[J+1]=='~'?(z>=0?v==''?u[z]+='~~':(u[z]+=F.del[0],v+=F.del[1],z=-1):(z=u.push(v)-1,v=''),J++):v+='~';break;case'*':case'_':if((a[J+1]==' '||a[J+1]=='\t')&&(a[J-1]==' '||a[J-1]=='\t')){v+=a[J];break;}if(a[J+1]==a[J]){if(x>=0){if(A!=a[J]){v+=a[J++]+a[J];break;}u[x]+=F.strong[0],v+=F.strong[1],x=-1;}else a[J+2]==a[J]&&a[J+3]==a[J]&&(v+=a[J++]+a[J++]),x=u.push(v)-1,v='',A=a[J];J++;}else if(y>=0){if(B!=a[J]){v+=a[J];break;}u[y]+=F.em[0],v+=F.em[1],y=-1;}else y=u.push(v)-1,v='',B=a[J];break;case'>':v+=J>=2&&a.slice(J-2,J)=='--'?'-->':'>';break;case'<':if(a.slice(J+1,J+4)=='!--'){v+='<!--';break;}for(I=!0,e=J+1;e<t&&a[e]!='>';e++)(a[e]==' '||a[e]=='\t')&&(I=!1);if(e>=t){v+='&lt;';break;}if(p=a.slice(J+1,e),I){if(p.match(n)){v+=G.link(p,'',p),J=e;break;}if(p.match(o)){v+=G.email(p),J=e;break;}}v+='<';break;case'!':a[J+1]!='['&&(v+='!');break;case'[':f=a[J-1]=='!'&&(r!=u.length||w!=J-1)?'i':a[J+1]=='^'?'s':'';for(var i=0,K=J+1,j=0;K<t;K++)switch(a[K]){case'!':if(a[K+1]!='[')break;f==''?(i=1,K++):K=t;break;case'`':p=a[K+1]=='`'?'``':'`',q=p.length,(e=a.indexOf(p,K+q))==-1?K+=q-1:K=e+q-1;break;case'[':K=t;break;case']':if(h=a.slice(J+1,K),f=='s'){s=H.get(h),s&&(v+=G.footNoteLink(s.url,s.title,s.id),j=1,J=K,K=t);break;}p=a[K+1];var L;if(p=='(')L=')';else if(p=='['||p==' '&&a[K+2]=='[')L=']';else{K=t;break;}if(q=p==' '?K+3:K+2,(e=a.indexOf(L,q))!=-1){if(i){i=0;break;}var M=a.slice(q,e).trim();if(L!=']')s=g(M);else if(M.length==0&&(M=h),s=H.get(M),!s&&!(s=E._resolveRefLink(M))){K=t;break;}l=s.url,m=s.title||'',f=='i'?(u.push(v),u.push(G.image(l,m,h)),v='',D++):v+=G.link(l,m,C(h,0)),j=1,J=e;}K=t;}!j&&K>=t&&(f==='s'?(v+='[^',J++):f==='i'?v+='![':v+='[');break;default:v+=a[J];}if(u.push(v),z!=-1&&(u[z]+='~~'),x!=-1&&(u[x]+=A+A),y!=-1&&(u[y]+=B),D==1){var N=0;for(var O in u)N+=u[O].trim()?1:0;N==1&&d&&(d.onlyOneImg=!0);}return u.join('');}function D(){var a=H.getFootNotes();if(a.length==0)return'';var b=F.footNote[0];return a.forEach(function(a){return b+=G.footNote(a.url,C(a.content,0));}),b+F.footNote[1];}var E=new e();f&&(E=f);var F=E.tag,G=E.func,H=new c(E),I=new d();this.render=E,this.md2html=function(a,b){b=b||{},a=typeof a=='string'?a:String(a),H=new c(E),I=new d();for(var e=a.split(/\r?\n/),f=e.length,h=[],j='',l=0;l<f;l++){j=e[l];var i=j.trim().match(p);if(!i){h.push(j);continue;}var m,n=!1,o='';if(n=i[1]=='^'){o=i[3];for(var q=l+1;q<f&&(j=e[q].trim(),!!j)&&!j.match(p);q++,l++)o+='\n'+e[q];m={title:i[2],content:o};}else m=g(i[3].trim());H.set(i[1]+i[2],m,n);}return v(h,!1,b)+D();};}var g="Mdjs",h=function(a,b){return typeof a.prototype[b]==='function';},k="#`*[]()-_{}+.!|\\",i=/^[\*\-\+] +\S*/g,j=/^\d+\. +\S*/g,l=/<\/?[^<>]+>/g,m=/\W+/g,n=/^\w+:\/{2,3}\S+$/g,o=/^\S+@\S+\.\S+$/g,p=/^\[([\^]?)(.+)\]\:\s+(.+)$/,q=/\$language/g,r=/[<>"'&]/,s=h(String,'repeat')?function(a){return' '.repeat(a);}:function(a){return new Array(a).join(' ');},t=s(1024),u=new f();f.md2html=function(a,b){return u.md2html(a,b);},f.escapedHTML=b,f.MdjsRenderer=e,f.Mdjs=f,typeof module=='object'&&typeof global=='object'&&(module.exports=global[g]=f),typeof window!='undefined'&&(window[g]=f);})();
\ No newline at end of file
This diff is collapsed.
......@@ -4,9 +4,6 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,user-scalable=no" />
<script src="https://g.alicdn.com/dingding/dingtalk-jsapi/2.10.3/dingtalk.open.js"></script>
<script src="./static/showdown.min.js"></script>
<script src="./static/marked.min.js"></script>
<script src="./static/mdjs.min.js"></script>
<title>doc</title>
</head>
<body>
......
This diff is collapsed.
......@@ -14,6 +14,7 @@
"axios": "^0.19.2",
"less": "^3.11.1",
"less-loader": "^5.0.0",
"showdown": "^1.9.1",
"vant": "^2.8.2",
"vue": "^2.5.2",
"vue-quill-editor": "^3.0.6",
......
......@@ -18,12 +18,12 @@ axios.interceptors.request.use(function (config) {
// 添加响应拦截器
axios.interceptors.response.use(function (response) {
// 对响应数据做点什么
if(response.data.err_code !== 0){
vm.$notify({ type:'danger',duration: 2000,message:response.data.err_msg});
}else if(response.data.err_code === 10003){
if(response.data.err_code === 10003){
//token过期去获取
alert('10003')
vm.$notify({ type:'primary',duration: 1500,message:'重新登录'});
ddLogin.getCode();
}else if(response.data.err_code !== 0){
vm.$notify({ type:'danger',duration: 2000,message:response.data.err_msg});
}
return response.data;
}, function (error) {
......
......@@ -3,7 +3,6 @@ export default {
//获取钉钉配置信息
config(callback){
api.config().then((data)=>{
alert('getConfig')
if(data.err_code == 0){
callback(data.data);
}
......@@ -13,8 +12,8 @@ export default {
getSsoToken(code,callback){
api.getSsoToken({code:code }).then((data)=>{
if(data.err_code == 0){
alert('重新登录')
localStorage.setItem('doc_phone_token',data.data.token);
alert('保存新token')
callback();
}
})
......@@ -24,7 +23,6 @@ export default {
let _this = this;
this.config((data)=>{
dd.ready(function() {
alert('getCode')
dd.runtime.permission.requestAuthCode({
corpId: data.corpId, // 企业id
onSuccess: function (info) {
......
/* Sspai Web Theme A theme to [sspai](ssp.ai) default theme. Developed by Codegass(wchweichenhao@gmial.com) & Yves(yves@sspai.com) Download Cuto on the App Store and Google Play! */
body {
font-size: 15px;
color: #333;
background: #fff;
font-family: Helvetica, Arial, "PingFang SC", "Microsoft YaHei", "WenQuanYi Micro Hei", "tohoma,sans-serif";
margin: 0;
padding: 10%;
}
h1 {
font-size: 2.2em;
font-weight: 700;
line-height: 1.1;
padding-top: 16px;
margin-bottom: 4px;
}
h2, h3, h4, h5, h6 {
line-height: 1.5em;
margin-top: 2.2em;
margin-bottom: 4px;
}
h2 {
font-size: 1.4em;
margin: 40px 10px 20px 0;
padding-left: 9px;
border-left: 6px solid #ff7e79;
font-weight: 700;
line-height: 1.4;
}
h3 {
font-weight: 700;
font-size: 1.2em;
line-height: 1.4;
margin: 10px 0 5px;
padding-top: 10px;
}
h4 {
font-weight: 700;
text-transform: uppercase;
font-size: 1.1em;
line-height: 1.4;
margin: 10px 0 5px;
padding-top: 10px
}
h5, h6 {
font-size: .9em;
}
h5 {
font-weight: bold;
text-transform: uppercase;
}
h6 {
font-weight: normal;
color: #AAA;
}
img {
width: 100%;
border-radius: 5px;
display: block;
margin-bottom: 15px;
height: auto;
}
dl, ol, ul {
margin-top: 12px;
margin-bottom: 20px;
padding-left: 5%;
line-height: 1.8;
}
p {
margin: 0 0 20px;
padding: 0;
line-height: 1.8;
}
a {
color: #f22f27;
text-decoration: none;
}
a:hover {
color: #f55852;
text-decoration: underline;
}
a:focus {
outline-offset: -2px;
}
blockquote {
font-size: 1em;
font-style: normal;
padding: 30px 38px;
margin: 0 0 15px;
position: relative;
line-height: 1.8;
text-indent: 0;
border: none;
color: #888;
}
blockquote:before {
content: "“";
left: 12px;
top: 0;
color: #E0E0E0;
font-size: 4em;
font-family: Arial, serif;
line-height: 1em;
font-weight: 700;
position: absolute;
}
blockquote:after {
content: "”";
right: 12px;
bottom: -26px;
color: #E0E0E0;
font-size: 4em;
font-family: Arial, serif;
line-height: 1em;
font-weight: 700;
position: absolute;
bottom: -31px;
}
strong, dfn {
font-weight: 700;
}
em, dfn {
font-style: italic;
font-weight: 400;
}
del {
text-decoration: line-through;
}
/*code {font-size:90%;}*/
/*pre {text-align:left; overflow-x: scroll; color: #257fa0; background: #f6f6f6; padding: 10pt 15pt; border-radius: 3px; border: solid 1px #e2e2e2;}*/
pre {
margin: 0 0 10px;
font-size: 13px;
line-height: 1.42857;
word-break: break-all;
word-wrap: break-word;
border-radius: 4px;
white-space: pre-wrap;
display: block;
background: #f8f8f8;
padding: 10px 20px;
border: none;
margin-bottom: 25px;
color: #666;
font-family: Courier, sans-serif;
}
code {
color: #c7254e;
background-color: #f9f2f4;
border-radius: 4px;
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
padding: 2px 4px;
font-size: 90%;
}
p>code {
color: #c7264e;
background-color: #f9f2f4;
font-size: .95em;
border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
}
figure {
margin: 1em 0;
}
figcaption {
font-size: 0.75em;
padding: 0.5em 2em;
margin-bottom: 2em;
}
figure img {
margin-bottom: 0px;
}
hr {
margin-top: 20px;
margin-bottom: 20px;
border: 0;
border-top: 1px solid #eee;
}
ol p, ul p {
margin-bottom: 0px;
}
li {
margin-bottom: 0.75em;
margin-top: 0.75em;
}
ol#footnotes {
font-size: 0.95em;
padding-top: 1em;
margin-top: 1em;
margin-left: 0;
border-top: 1px solid #eaeaea;
counter-reset: footer-counter;
list-style: none;
color: #555;
padding-left: 5%;
margin: 20px 0;
}
ol#footnotes li {
margin-bottom: 10px;
margin-left: 16px;
font-weight: 400;
line-height: 2;
list-style-type: none;
}
ol#footnotes li:before {
content: counter(footer-counter) ". ";
counter-increment: footer-counter;
font-weight: 800;
font-size: .95em;
}
@keyframes highfade {
0% {
background-color: none;
}
20% {
background-color: yellow;
}
100% {
background-color: none;
}
}
@-webkit-keyframes highfade {
0% {
background-color: none;
}
20% {
background-color: yellow;
}
100% {
background-color: none;
}
}
a:target, ol#footnotes li:target, sup a:target {
animation-name: highfade;
animation-duration: 2s;
animation-iteration-count: 1;
animation-timing-function: ease-in-out;
-webkit-animation-name: highfade;
-webkit-animation-duration: 2s;
-webkit-animation-iteration-count: 1;
-webkit-animation-timing-function: ease-in-out;
}
a:target {
border: 0;
outline: 0;
}
/*animation-iteration-count: 1;*/
/*-webkit-animation-timing-function: ease-in-out;*/
/*}*/
/*a:target {*/
/*border: 0;*/
/*outline: 0;*/
/*}*/
/*tion-iteration-count: 1;*/
/*-webkit-animation-timing-function: ease-in-out;*/
/*}*/
a:target {
border: 0;
outline: 0;
}
\ No newline at end of file
......@@ -42,7 +42,7 @@
selectNav(index,path){
if(index === 3){
dd.biz.util.openLink({
url:"http://doc-phone.linanquan.com/html/dist/index.html/?token="+localStorage.getItem('doc_phone_token')+ '#/folder',//要打开链接的地址
url:"http://doc-phone.linanquan.com/html/dist/index.html?token="+localStorage.getItem('doc_phone_token')+ '#/folder',//要打开链接的地址
onSuccess : function(result) {
/**/
},
......
......@@ -13,6 +13,7 @@
<script>
import api from '../api/methods';
import showdown from 'showdown';
export default {
name: "markdown",
data(){
......@@ -29,11 +30,8 @@
this.articleDetail(this.docid);
},
mounted() {
// console.log(marked,99)
//创建实例
// this.converter = new showdown.Converter();
// console.log(this.converter,99)
this.mdjs = new Mdjs();
this.converter = new showdown.Converter({tables: true});
},
methods: {
//获取文件详情
......@@ -49,9 +47,7 @@
},
//格式转化
convertText() {
// this.html = this.converter.makeHtml(this.content);
// this.html = marked(this.content);
this.html = this.mdjs.md2html(this.content);
this.html = this.converter.makeHtml(this.content);
},
cancel(){},
sure(){},
......@@ -60,7 +56,6 @@
</script>
<style scoped lang="less">
@import "../assets/sspai.css";
@basefont:50;
.markdown{
height:100vh;
......@@ -74,7 +69,8 @@
height:calc(100% - (200rem /@basefont));
width:100%;
word-break:break-word;
overflow:auto;
overflow-y:auto;
overflow-x:hidden;
padding:20rem /@basefont;
font-size:28rem /@basefont;
box-sizing:border-box;
......
......@@ -154,6 +154,19 @@ sup {
img {
border-style: none;
/*width:100%;*/
}
pre{
width:100%;
overflow:auto;
background-color:#f6f8fa;
border: 1px solid #e1e1e8;
padding:10px 0;
margin:10px 0;
}
td{
border: 1px solid #e1e1e8;
}
/* Forms
......
This diff is collapsed.
(function(){function a(a,b){!String.prototype[a]&&(String.prototype[a]=b);}a('trim',function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,'');}),a('startsWith',function(a,b){return b=b||0,this.substr(b,a.length)===a;}),a('endsWith',function(a,b){var c=this.toString();(typeof b!=='number'||!isFinite(b)||Math.floor(b)!==b||b>c.length)&&(b=c.length),b-=a.length;var d=c.lastIndexOf(a,b);return d!==-1&&d===b;});})();
(function(){function a(a){return a<0?'':a<1024?t.slice(0,a):s(a);}function b(a){var b=r.exec(a);if(!b)return a;var c='',d='',e=0,f=0,g=a.length;for(e=b.index;e<g;e++){switch(a.charCodeAt(e)){case 34:d='&quot;';break;case 38:d='&amp;';break;case 39:d='&#39;';break;case 60:d='&lt;';break;case 62:d='&gt;';break;default:continue;}f!==e&&(c+=a.substring(f,e)),f=e+1,c+=d;}return f===e?c:c+a.substring(f,e);}function c(a){var b={},c=[];this.set=function(d,e,f){f&&(e.id=c.push(e),e.url=a.func.footNoteName(e.id)),b[d.toLowerCase()]=e;},this.get=function(a){return b[a.toLowerCase()];},this.getFootNotes=function(){return c;};}function d(){var a=[],b=[],c=0;this.topLevel=function(){return c?a[c-1]:-1;},this.topType=function(){return c?b[c-1]:-1;},this.push=function(d,e){a.push(d),b.push(e),c++;},this.pop=function(){a.pop(),b.pop(),c=a.length;};}function e(){this.tag={hr:'<hr />',br:'<br />',p:['<p>','</p>'],quote:['<blockquote>','</blockquote>'],del:['<del>','</del>'],strong:['<strong>','</strong>'],em:['<em>','</em>'],inlineCode:['<code>','</code>'],codeBlock:['<pre><code data-lang="$language">','</code></pre>'],list:['<ul>','</ul>'],orderList:['<ol>','</ol>'],listItem:['<li>','</li>'],toc:['<div class="md_toc">','</div>'],tocList:['<ol>','</ol>'],tocItem:['<a href="#$uri"><li>','</li></a>'],footNote:['<div class="md_foot"><ol>','</ol></div>']},this.func={heading:function(a,b,c){return"<h"+a+" id=\""+b+"\" name=\""+b+"\">"+c+"</h"+a+">";},link:function(a,c,d){return"<a title=\""+b(c)+"\" href=\""+encodeURI(a)+"\">"+d+"</a>";},email:function(a){return"<a href=\"mailto:"+a+"\">"+a+"</a>";},image:function(a,c,d){return"<img alt=\""+b(d)+"\" title=\""+b(c)+"\" src=\""+encodeURI(a)+"\" />";},table:function(a,b){return"<table class=\"md_table\"><thead>"+a+"</thead><tbody>"+b+"</tbody></table>";},tableRow:function(a,b,c){for(var d='<tr>',e=a?'<th style="text-align: {0}">':'<td style="text-align: {0}">',f=a?'</th>':'</td>',g=['left','center','right'],h=0;h<b.length;h++)d+=e.replace('{0}',g[c[h]])+b[h]+f;return d+'</tr>';},footNoteLink:function(a,c,d){return"<sup><a title=\""+b(c)+"\" href=\"#"+encodeURI(a)+"\">"+d+"</a></sup>";},footNote:function(a,b){return"<li name=\""+a+"\" id=\""+a+"\">"+b+"</li>";},footNoteName:function(a){return"markdown_foot_"+a;}};var a=[];this.addRefLinkProvider=function(b){return a.push(b);},this._resolveRefLink=function(b){for(var c,d=0;d<a.length;d++)if(c=a[d](b))return c.url?c:{url:c};};}function f(f){function g(a){a=a.trim();var b={url:a,title:''},c=a.match(/(.+?)\s+(.+)/);if(!c)return b;b.url=c[1];var d=c[2],e=d[0],f=d[d.length-1];return d.length>=2&&((e=='\''||e=='"')&&e==f||e=='('&&f==')')&&(d=d.slice(1,-1)),b.title=d,b;}function h(a){var b=a.charCodeAt(0);if(b!=61&&b!=45&&b!=42&&b!=95)return!1;var c=0,d=0;for(var e=0;e<a.length;e++,c++)if(d=a.charCodeAt(e),d!=32&&d!=9&&d!=b)return!1;return c>=3;}function r(a){for(var b=0,c=0;c<a.length;c++)if(a[c]==' ')b++;else if(a[c]=='\t')b+=4;else break;return b;}function s(a){var b=0;for(b=0;b<a.length&&!(a[b]!='#');b++);return b;}function t(a){return a.endsWith(' ');}function u(a){return a.replace(m,'_').replace(/^_/,'').replace(/_$/,'');}function v(c,d,e){for(var f='',g=c.length,m=0,n='',o='',p=0,D=-1,E=[],H=[],I=[],J=!0,K=!1,L='',M={},N=0,O=0;O<g;O++){if(n=c[O],o=n.trim(),m){if(o=='```'){m=0,f+=F.codeBlock[1];continue;}f+=(m++>1?'\n':'')+b(n);continue;}p=r(n);var i=x(o);if(i!=0){f+=y(p,i,o);continue;}if(f+=z(),o.length==0){!J&&(f+=(K?F.br:'')+F.p[1],J=!0);continue;}if(p<4){if(o.startsWith('```')){var P=o.slice(3).trim();f+=F.codeBlock[0].replace(q,P),m=1;continue;}if(N=s(o),N>0){for(var Q=o.length-1;Q>N&&o[Q]=='#';Q--);var R=o.slice(N,Q+1),S=R=C(R,0);I.push(N),E.push(S=S.trim().replace(l,'')),H.push(S=u(S)),f+=G.heading(N,S,R);continue;}if(o[0]=='>'&&o.length>1){for(var T=[],U=O;U<g&&(L=c[U].trim(),L.length!=0);U++){if(L[0]=='>')L=L.slice(1)+(t(c[U])?' ':'');else if(d)break;else L=c[U];T.push(L);}f+=F.quote[0]+v(T,!0,e)+F.quote[1],O=U-1;continue;}if(h(o)){f+=F.hr;continue;}if(o=='[TOC]'){D=f.length;continue;}var _=B(o);if(_!==!1&&O<g-1){var aa=A(c[O+1].trim(),_.length);if(aa!==!1){for(var k=G.tableRow(!0,_,aa),V='',W=O+2;W<g&&(_=B(c[W].trim()))!=!1;W++)V+=G.tableRow(!1,_,aa);O=W-1,f+=G.table(k,V);continue;}}}else if(O==0||c[O-1].trim().length==0){f+=F.codeBlock[0].replace(q,'');for(var j,X='',Y=O,W=O;W<g;W++){if(c[W].trim().length==0){X+='\n';continue;}if((j=r(c[W]))<4)break;f+=X+(W==O?'':'\n')+a(j-2)+b(c[W].trim()),X='',Y=W;}f+=F.codeBlock[1],O=Y;continue;}if(O+1<g){var Z=c[O+1].trim();if(h(Z)){var $=3;Z[0]=='='?$=1:Z[0]=='-'&&($=2);var S=R=C(o,0);I.push($),E.push(S=S.trim().replace(l,'')),H.push(S=u(S)),f+=G.heading($,S,R),O++;continue;}}M={},L=C(n,0,M),J&&M.onlyOneImg?f+=L:(J&&(L=F.p[0]+L,K=!1),(e.alwaysNewline&&!J||K)&&(f+=F.br),K=t(n),f+=L,J=!1);}return!J&&(f+=(K?F.br:'')+F.p[1],J=!0),D!=-1&&(f=f.slice(0,D)+w(E,H,I)+f.slice(D)),f;}function w(a,b,c){for(var d,e,f=F.toc[0],g=[],h=0;h<a.length;h++)e=F.tocItem[0].replace('$uri',b[h])+a[h]+F.tocItem[1],g.length==0||c[h]>d?(f+=F.tocList[0]+e,g.push(d=c[h])):c[h]==d?f+=e:(f+=F.tocList[1],g.pop(),d=g[g.length-1],h--);for(;g.length;)f+=F.tocList[1],g.pop();return f+F.toc[1];}function x(a){return h(a)?0:a.search(j)==-1?a.search(i)==-1?0:2:1;}function y(a,b,c){var d=I.topLevel(),e=F.listItem[0]+C(c,c.indexOf(' '))+F.listItem[1],f='';if(a>d)return I.push(a,b),(b==1?F.orderList:F.list)[0]+e;if(a==d)return e;for(;a<d;)f+=I.topType()==1?F.orderList[1]:F.list[1],I.pop(),d=I.topLevel();return d==-1?(I.push(a,b),f+(b==1?F.orderList:F.list)[0]+e):f+e;}function z(){for(var a='';I.topLevel()!=-1;)a+=I.topType()==1?F.orderList[1]:F.list[1],I.pop();return a;}function A(a,b){var c=B(a,!0),d=[],e=0,f=0;if(c===!1)return!1;for(var g=c.length;e<g;e++,f=0){if(c[e].length<=1){d[e]=0;continue;}c[e][c[e].length-1]==':'&&(f=c[e][0]==':'?1:2),d[e]=f;}for(;e<b;e++)d[e]=0;return d;}function B(a,b){for(var c=[],d=a.length,e='',f=a[0]=='|'?1:0;f<d;f++){switch(a[f]){case'\\':if(b)return!1;e+='\\',a[f+1]=='|'&&(e+='|',f++);continue;case'|':if(e=e.trim(),b&&e.length==0)return!1;c.push(e),e='';continue;}if(!b||a[f]==':'||a[f]=='-'||a[f]==' '||a[f]=='\t')e+=a[f];else return!1;}return(c.length!=0||a[0]=='|')&&(e=e.trim(),e.length!=0&&c.push(e),c);}function C(a,c,d){for(var e,f,h,l,m,p,q,s,t=a.length,u=[],v='',r=-1,w=-1,x=-1,y=-1,z=-1,A='*',B='*',D=0,I=!1,J=c||0;J<t;J++)switch(a[J]){case'\\':k.indexOf(a[J+1])>=0&&(r=u.length,w=++J),v+=a[J];break;case'`':p=a[J+1]=='`'?'``':'`',q=p.length,(e=a.indexOf(p,J+q))==-1?v+=p:(v+=F.inlineCode[0]+b(a.slice(J+q,e))+F.inlineCode[1],J=e),J+=q-1;break;case'~':a[J+1]=='~'?(z>=0?v==''?u[z]+='~~':(u[z]+=F.del[0],v+=F.del[1],z=-1):(z=u.push(v)-1,v=''),J++):v+='~';break;case'*':case'_':if((a[J+1]==' '||a[J+1]=='\t')&&(a[J-1]==' '||a[J-1]=='\t')){v+=a[J];break;}if(a[J+1]==a[J]){if(x>=0){if(A!=a[J]){v+=a[J++]+a[J];break;}u[x]+=F.strong[0],v+=F.strong[1],x=-1;}else a[J+2]==a[J]&&a[J+3]==a[J]&&(v+=a[J++]+a[J++]),x=u.push(v)-1,v='',A=a[J];J++;}else if(y>=0){if(B!=a[J]){v+=a[J];break;}u[y]+=F.em[0],v+=F.em[1],y=-1;}else y=u.push(v)-1,v='',B=a[J];break;case'>':v+=J>=2&&a.slice(J-2,J)=='--'?'-->':'>';break;case'<':if(a.slice(J+1,J+4)=='!--'){v+='<!--';break;}for(I=!0,e=J+1;e<t&&a[e]!='>';e++)(a[e]==' '||a[e]=='\t')&&(I=!1);if(e>=t){v+='&lt;';break;}if(p=a.slice(J+1,e),I){if(p.match(n)){v+=G.link(p,'',p),J=e;break;}if(p.match(o)){v+=G.email(p),J=e;break;}}v+='<';break;case'!':a[J+1]!='['&&(v+='!');break;case'[':f=a[J-1]=='!'&&(r!=u.length||w!=J-1)?'i':a[J+1]=='^'?'s':'';for(var i=0,K=J+1,j=0;K<t;K++)switch(a[K]){case'!':if(a[K+1]!='[')break;f==''?(i=1,K++):K=t;break;case'`':p=a[K+1]=='`'?'``':'`',q=p.length,(e=a.indexOf(p,K+q))==-1?K+=q-1:K=e+q-1;break;case'[':K=t;break;case']':if(h=a.slice(J+1,K),f=='s'){s=H.get(h),s&&(v+=G.footNoteLink(s.url,s.title,s.id),j=1,J=K,K=t);break;}p=a[K+1];var L;if(p=='(')L=')';else if(p=='['||p==' '&&a[K+2]=='[')L=']';else{K=t;break;}if(q=p==' '?K+3:K+2,(e=a.indexOf(L,q))!=-1){if(i){i=0;break;}var M=a.slice(q,e).trim();if(L!=']')s=g(M);else if(M.length==0&&(M=h),s=H.get(M),!s&&!(s=E._resolveRefLink(M))){K=t;break;}l=s.url,m=s.title||'',f=='i'?(u.push(v),u.push(G.image(l,m,h)),v='',D++):v+=G.link(l,m,C(h,0)),j=1,J=e;}K=t;}!j&&K>=t&&(f==='s'?(v+='[^',J++):f==='i'?v+='![':v+='[');break;default:v+=a[J];}if(u.push(v),z!=-1&&(u[z]+='~~'),x!=-1&&(u[x]+=A+A),y!=-1&&(u[y]+=B),D==1){var N=0;for(var O in u)N+=u[O].trim()?1:0;N==1&&d&&(d.onlyOneImg=!0);}return u.join('');}function D(){var a=H.getFootNotes();if(a.length==0)return'';var b=F.footNote[0];return a.forEach(function(a){return b+=G.footNote(a.url,C(a.content,0));}),b+F.footNote[1];}var E=new e();f&&(E=f);var F=E.tag,G=E.func,H=new c(E),I=new d();this.render=E,this.md2html=function(a,b){b=b||{},a=typeof a=='string'?a:String(a),H=new c(E),I=new d();for(var e=a.split(/\r?\n/),f=e.length,h=[],j='',l=0;l<f;l++){j=e[l];var i=j.trim().match(p);if(!i){h.push(j);continue;}var m,n=!1,o='';if(n=i[1]=='^'){o=i[3];for(var q=l+1;q<f&&(j=e[q].trim(),!!j)&&!j.match(p);q++,l++)o+='\n'+e[q];m={title:i[2],content:o};}else m=g(i[3].trim());H.set(i[1]+i[2],m,n);}return v(h,!1,b)+D();};}var g="Mdjs",h=function(a,b){return typeof a.prototype[b]==='function';},k="#`*[]()-_{}+.!|\\",i=/^[\*\-\+] +\S*/g,j=/^\d+\. +\S*/g,l=/<\/?[^<>]+>/g,m=/\W+/g,n=/^\w+:\/{2,3}\S+$/g,o=/^\S+@\S+\.\S+$/g,p=/^\[([\^]?)(.+)\]\:\s+(.+)$/,q=/\$language/g,r=/[<>"'&]/,s=h(String,'repeat')?function(a){return' '.repeat(a);}:function(a){return new Array(a).join(' ');},t=s(1024),u=new f();f.md2html=function(a,b){return u.md2html(a,b);},f.escapedHTML=b,f.MdjsRenderer=e,f.Mdjs=f,typeof module=='object'&&typeof global=='object'&&(module.exports=global[g]=f),typeof window!='undefined'&&(window[g]=f);})();
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment