Commit 47b1aab1 by 无尘

feat: 增加文档中心接口

parent 9a1a6c39
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>达摩开放平台</title><link href=./static/css/app.348bb9ab7bf80787d9cdc2d3b8ac3cfc.css rel=stylesheet></head><body class=damolish><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.5f526214ab478f999de3.js></script><script type=text/javascript src=./static/js/vendor.2b107cdd6cec563c6dab.js></script><script type=text/javascript src=./static/js/app.1129bfcdd6c254304c01.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>达摩开放平台</title><link href=./static/css/app.a53f3f59967bac8dfe3bf1bcdc26c39f.css rel=stylesheet></head><body class=damolish><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.32d152ed448f1e61fe3c.js></script><script type=text/javascript src=./static/js/vendor.2b107cdd6cec563c6dab.js></script><script type=text/javascript src=./static/js/app.1129bfcdd6c254304c01.js></script></body></html>
\ No newline at end of file \ No newline at end of file
webpackJsonp([5],{"/FCF":function(e,t){},"0cd1":function(e,t){},"9Z3f":function(e,t){},TFh4:function(e,t){},UYHc:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"vue-open-header",props:{currentTab:{type:[String,Number],default:function(){return"2"}}},data:function(){return{openMenuData:[{menuId:"2",menuName:"开发者接入",menuUrl:""},{menuId:"1",menuName:"解决方案",menuUrl:""}],searchValue:""}},methods:{toRedirect:function(e){this.$emit("changeTab",e.menuId)},toHome:function(){this.$router.push("/home")}},watch:{$route:{handler:function(e,t){},deep:!0}},mounted:function(){this.pathName=this.$route.path}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"open-header"},[a("div",{staticClass:"open-header-wrap border-box flex "},[a("div",{staticClass:"open-header-left",on:{click:e.toHome}},[a("img",{attrs:{src:n("QFhU"),alt:""}})]),e._v(" "),a("div",{staticClass:"open-header-right border-box"},[a("div",{staticClass:"open-header-right_wrap flex flex-space-between"},[a("ul",{staticClass:"flex"},e._l(e.openMenuData,function(t,n){return a("li",{key:n+"menu",class:["menu-li border-box",e.currentTab==t.menuId?"active-tab":""],on:{click:function(n){n.stopPropagation(),n.preventDefault(),e.toRedirect(t)}}},[a("span",[e._v(e._s(t.menuName))])])})),e._v(" "),a("div",{staticClass:"search-wrap"},[a("el-input",{attrs:{placeholder:"请输入搜索内容","prefix-icon":"el-icon-search"},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}})],1)])])])])},staticRenderFns:[]};var c=n("VU/8")(a,r,!1,function(e){n("TFh4")},"data-v-47fd4ede",null).exports,i=n("P9l9"),l=n("LlAa"),o={props:{currentTab:{type:[String,Number],default:function(){return"2"}}},data:function(){return{parentId:this.currentTab,activeId:"",menuData:[{level:1,memo:"嗷呜",menuId:"44498258223366144",menuName:"第四个关联了api128",operator:"10",operatorName:"蘑菇",parentId:"1",relationData:"",seq:0,subType:1,updateFlag:1,expanded:!1,children:[{level:2,memo:"嗷呜",menuId:"444982582233661446",menuName:"第四个关联了api128",operator:"10",operatorName:"蘑菇",parentId:"1",relationData:"",seq:0,subType:1,updateFlag:1,expanded:!1,children:[{level:3,memo:"嗷呜",menuId:"4449825822336614646",menuName:"第四个关联了api128",operator:"10",operatorName:"蘑菇",parentId:"1",relationData:"",seq:0,subType:1,updateFlag:1,expanded:!1}]}]},{level:1,memo:"嗷呜",menuId:"111825822336614646",menuName:"第四个关联了api128",operator:"10",operatorName:"蘑菇",parentId:"1",relationData:"",seq:0,subType:1,updateFlag:1,expanded:!1}]}},methods:{changeMenu:function(e){this.activeId=e.menuId,e.children&&e.children.length&&(e.expanded=!e.expanded),this.$emit("changeDoc",this.activeId)},getMenuData:function(e){var t,n=this;(t={parentId:e},Object(i.a)("/open-platform-home-web/tree-menu",t)).then(function(e){var t=e.data;if("0000"==t.code)return t.result&&t.result.length&&t.result.forEach(function(e){e.expanded=!1,e.children=[]}),void(n.menuData=t.result||[]);l.a.errorMsg(t)}).catch(function(e){n.$message.error({duration:1e3,message:e.message})})}},watch:{currentTab:function(e,t){this.parentId=e,this.getMenuData(e)}},mounted:function(){this.parentId=this.currentTab,this.getMenuData(this.parentId)}},s={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"document-left-body border-box"},[n("ul",{staticClass:"document-ul"},[e._l(e.menuData,function(t,a){return[n("li",{key:a+"level1"},[n("div",{class:["li-cell flex flex-space-between",e.activeId==t.menuId?"active-menu":""],on:{click:function(n){e.changeMenu(t)}}},[n("span",{staticClass:"li-cell-name"},[e._v(e._s(t.menuName))]),e._v(" "),t.children&&t.children.length?n("span",{class:["li-cell-icon font_family icon-arrow_right",t.expanded?"rotate-icon":""]}):e._e(),e._v(" "),t.children&&t.children.length?e._e():n("span",{staticClass:"li-cell-icon icon-round"})]),e._v(" "),t.children&&t.children.length&&t.expanded?n("ul",[e._l(t.children,function(t,a){return[n("li",{key:a+"level1"},[n("div",{class:["li-cell flex flex-space-between",e.activeId==t.menuId?"active-menu":""],on:{click:function(n){e.changeMenu(t)}}},[n("span",{staticClass:"li-cell-name"},[e._v(e._s(t.menuName))]),e._v(" "),t.children&&t.children.length?n("span",{class:["li-cell-icon font_family icon-arrow_right",t.expanded?"rotate-icon":""]}):e._e(),e._v(" "),t.children&&t.children.length?e._e():n("span",{staticClass:"li-cell-icon icon-round"})]),e._v(" "),t.children&&t.children.length&&t.expanded?n("ul",[e._l(t.children,function(t,a){return[n("li",{key:a+"level1"},[n("div",{class:["li-cell flex flex-space-between",e.activeId==t.menuId?"active-menu":""],on:{click:function(n){e.changeMenu(t)}}},[n("span",{staticClass:"li-cell-name"},[e._v(e._s(t.menuName))]),e._v(" "),t.children&&t.children.length?n("span",{class:["li-cell-icon font_family icon-arrow_right",t.expanded?"rotate-icon":""]}):e._e(),e._v(" "),t.children&&t.children.length?e._e():n("span",{staticClass:"li-cell-icon icon-round"})]),e._v(" "),t.children&&t.children.length&&t.expanded?n("ul",[e._l(t.children,function(t,a){return[n("li",{key:a+"level1"},[n("div",{class:["li-cell flex flex-space-between",e.activeId==t.menuId?"active-menu":""],on:{click:function(n){e.changeMenu(t)}}},[n("span",{staticClass:"li-cell-name"},[e._v(e._s(t.menuName))]),e._v(" "),n("span",{staticClass:"li-cell-icon icon-round"})])])]})],2):e._e()])]})],2):e._e()])]})],2):e._e()])]})],2)])},staticRenderFns:[]};var u=n("VU/8")(o,s,!1,function(e){n("9Z3f")},"data-v-7a7108b0",null).exports,d={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"home-footer-content"},[t("div",{staticClass:"home-site-footer"},[t("p",[this._v("Copyright © "+this._s((new Date).getFullYear())+" 浙江达摩网络科技有限公司 | 浙ICP备15033117号-1")])])])},staticRenderFns:[]};var h={components:{openDocFooter:n("VU/8")({name:"index",data:function(){return{}}},d,!1,function(e){n("0cd1")},"data-v-7bbea458",null).exports}},p={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"document-right"},[t("div",{staticClass:"document-right-body border-box"}),this._v(" "),t("open-doc-footer")],1)},staticRenderFns:[]};var m={components:{openDocHeader:c,openDocLeft:u,openDocRight:n("VU/8")(h,p,!1,function(e){n("/FCF")},"data-v-10c24b87",null).exports},data:function(){return{currentTab:"2",currentDoc:""}},methods:{changeTab:function(e){this.currentTab=e}},mounted:function(){this.currentTab=this.$route.query.currentTab||"2"}},f={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"document-center"},[t("open-doc-header",{attrs:{currentTab:this.currentTab},on:{changeTab:this.changeTab}}),this._v(" "),t("div",{staticClass:"document-center-body"},[t("div",{staticClass:"document-center-body_wrap flex"},[t("div",{staticClass:"document-center-left border-box"},[t("open-doc-left",{attrs:{currentTab:this.currentTab}})],1),this._v(" "),t("div",{staticClass:"document-center-right"},[t("open-doc-right",{attrs:{currentDoc:this.currentDoc}})],1)])])],1)},staticRenderFns:[]};var v=n("VU/8")(m,f,!1,function(e){n("Yp+w")},"data-v-a4c07eac",null);t.default=v.exports},"Yp+w":function(e,t){}});
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,a,c){for(var f,i,u,d=0,s=[];d<r.length;d++)i=r[d],t[i]&&s.push(t[i][0]),t[i]=0;for(f in a)Object.prototype.hasOwnProperty.call(a,f)&&(e[f]=a[f]);for(n&&n(r,a,c);s.length;)s.shift()();if(c)for(d=0;d<c.length;d++)u=o(o.s=c[d]);return u};var r={},t={13: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 a=document.getElementsByTagName("head")[0],c=document.createElement("script");c.type="text/javascript",c.charset="utf-8",c.async=!0,c.timeout=12e4,o.nc&&c.setAttribute("nonce",o.nc),c.src=o.p+"static/js/"+e+"."+{0:"dc5820857959176b1da4",1:"0ebe3ead93207dc78a78",2:"78f59f0e37cbd9544576",3:"953747746c3caf71cd86",4:"2ff0ba051a42a51dbec4",5:"7f078713325b19d220a1",6:"4a571dddcc1a56031102",7:"3b027583d4af17e36af0",8:"5e787f5eb2f4bd7cfb7b",9:"9caad4c0ba5b8b4813ee",10:"63807a09986add449f8a"}[e]+".js";var f=setTimeout(i,12e4);function i(){c.onerror=c.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return c.onerror=c.onload=i,a.appendChild(c),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}}([]); !function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,a,c){for(var f,i,u,d=0,s=[];d<r.length;d++)i=r[d],t[i]&&s.push(t[i][0]),t[i]=0;for(f in a)Object.prototype.hasOwnProperty.call(a,f)&&(e[f]=a[f]);for(n&&n(r,a,c);s.length;)s.shift()();if(c)for(d=0;d<c.length;d++)u=o(o.s=c[d]);return u};var r={},t={13: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 a=document.getElementsByTagName("head")[0],c=document.createElement("script");c.type="text/javascript",c.charset="utf-8",c.async=!0,c.timeout=12e4,o.nc&&c.setAttribute("nonce",o.nc),c.src=o.p+"static/js/"+e+"."+{0:"dc5820857959176b1da4",1:"0ebe3ead93207dc78a78",2:"78f59f0e37cbd9544576",3:"953747746c3caf71cd86",4:"2ff0ba051a42a51dbec4",5:"4b9430eff5a067ce09d0",6:"4a571dddcc1a56031102",7:"3b027583d4af17e36af0",8:"5e787f5eb2f4bd7cfb7b",9:"9caad4c0ba5b8b4813ee",10:"63807a09986add449f8a"}[e]+".js";var f=setTimeout(i,12e4);function i(){c.onerror=c.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return c.onerror=c.onload=i,a.appendChild(c),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}}([]);
\ No newline at end of file \ No newline at end of file
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<template> <template>
<div class="open-header"> <div class="open-header">
<div class="open-header-wrap border-box flex "> <div class="open-header-wrap border-box flex ">
<div class="open-header-left" @click="toHome"><img src="../assets/logo_01.png" alt="" /></div> <div class="open-header-left" @click="toHome"><img src="../assets/document/logo.png" alt="" /></div>
<div class="open-header-right border-box"> <div class="open-header-right border-box">
<div class="open-header-right_wrap flex flex-space-between"> <div class="open-header-right_wrap flex flex-space-between">
<ul class="flex"> <ul class="flex">
......
...@@ -18,6 +18,7 @@ export default { ...@@ -18,6 +18,7 @@ export default {
.document-right-body { .document-right-body {
width: 900px; width: 900px;
margin: 0 auto; margin: 0 auto;
min-height: calc(100vh - 118px;); min-height: calc(100vh - 118px;);
} }
} }
......
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