(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d43b7"],{"5fc3":function(t,a,e){"use strict";e.r(a);var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-container"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.noData,expression:"noData"}]},[t._v("平台暂未提供SDK")]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.sdkDataList.length>0,expression:"sdkDataList.length > 0"}],staticClass:"base-info"},[e("div",{staticClass:"base-info"},[e("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.onTabClick},model:{value:t.activeName,callback:function(a){t.activeName=a},expression:"activeName"}},t._l(t.sdkDataList,(function(a){return e("el-tab-pane",{key:a.id,attrs:{label:a.name+" （"+a.version+"）",name:""+a.id,content:a}},[e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.downloadFile(a)}}},[t._v("下载SDK")])],1)})),1),t._v(" "),e("h3",[t._v("调用示例")]),t._v(" "),e("mavon-editor",{attrs:{boxShadow:!1,subfield:!1,defaultOpen:"preview",editable:!1,toolbarsFlag:!1},model:{value:t.sdkContent,callback:function(a){t.sdkContent=a},expression:"sdkContent"}})],1)])])},i=[],o=e("b2d8"),s=(e("64e1"),{components:{mavonEditor:o["mavonEditor"]},data:function(){return{noData:!1,sdkDataList:[],sdkConfigs:[],activeName:"",sdkContent:""}},created:function(){this.loadIspSdk()},methods:{loadIspSdk:function(){var t=this;this.get("/portal/isv/listSdk",{},(function(a){if(t.sdkDataList=a.data,t.noData=0===t.sdkDataList.length,t.sdkDataList.length>0){var e=t.sdkDataList[0];t.activeName="".concat(e.id),t.loadSdkFile(e)}}))},downloadFile:function(t){window.open(t.content)},onTabClick:function(t){var a=t.$attrs.content;this.loadSdkFile(a)},loadSdkFile:function(t){this.sdkContent=t.extContent||"未提供示例"}}}),d=s,l=e("2877"),c=Object(l["a"])(d,n,i,!1,null,null,null);a["default"]=c.exports}}]);