diff --git a/src/views/port/port/employee.vue b/src/views/port/port/employee.vue index 3df8c3c..11ed661 100644 --- a/src/views/port/port/employee.vue +++ b/src/views/port/port/employee.vue @@ -398,7 +398,8 @@ export default { name: connector.connectorName, picture: connector.connectorPicture, describe: connector.connectorDescribe, - price: connector.connectorPrice + price: connector.connectorPrice, + requestMethod: this.buyForm.connectorRequest } }); }, diff --git a/src/views/port/sys/index.vue b/src/views/port/sys/index.vue index 4a981f7..afc2bc0 100644 --- a/src/views/port/sys/index.vue +++ b/src/views/port/sys/index.vue @@ -1,15 +1,77 @@ + @@ -17,15 +79,28 @@ export default { data() { return { + activeTab: 'api-docs' , name: this.$route.query.name || '', describe: this.$route.query.describe || '', price: this.$route.query.price || '', - picture: this.$route.query.picture || '' + picture: this.$route.query.picture || '', + apiEndpoint: this.$route.query.apiEndpoint || 'N/A', + responseFormat: this.$route.query.responseFormat || 'N/A', + requestMethod: this.$route.query.requestMethod || 'N/A', + requestExample: this.$route.query.requestExample || 'N/A', + apiDescription: this.$route.query.apiDescription || 'N/A' }; - } + }, + methods:{ + handleTabClick(tab){ + this.activeTab = tab.name; + } + }, };