diff --git a/src/api/port/port/index.js b/src/api/port/port/index.js index bc4931b..d16530e 100644 --- a/src/api/port/port/index.js +++ b/src/api/port/port/index.js @@ -94,3 +94,10 @@ export function findConnectorUserList(data) { data:data }) } +//API页面类型分类 +export function findConnectSort() { + return request({ + url: '/mart/connector/findConnectSort', + method: 'get' + }) +} diff --git a/src/views/money/buy/index.vue b/src/views/money/buy/index.vue index b246023..ef02926 100644 --- a/src/views/money/buy/index.vue +++ b/src/views/money/buy/index.vue @@ -73,17 +73,31 @@ :total="total" @pagination="getList" /> + + + + + + + + + + diff --git a/src/views/port/port/employee.vue b/src/views/port/port/employee.vue index 2dba47e..1572507 100644 --- a/src/views/port/port/employee.vue +++ b/src/views/port/port/employee.vue @@ -1,104 +1,114 @@ - - - - - 查询 - 全部类型: - 电子商务 - 应用开发 - 生活服务 - - - - - - - {{connector.connectorName}} - 购买 - - 产品图片: - - 产品介绍: - {{connector.connectorDescribe}} - 价格: - {{connector.connectorPrice}}/次 + + + + + 全部类型: + + > + + + + - 测试API - 测试API - 测试API - 测试API - 测试API - 测试API - - - - - - - - - - + + + + + + 查询 + + + + + + + + {{connector.connectorName}} + 购买 + + 产品图片: + + 产品介绍: + {{connector.connectorDescribe}} + 价格: + {{connector.connectorPrice}}/次 + + 测试API + 测试API + 测试API + 测试API + 测试API + 测试API + + + + + + + + + + 省份:{{this.formInline.province}} 城市:{{this.formInline.city}} 区号:{{this.formInline.areacode}} 邮编:{{this.formInline.zip}} 运营商:{{this.formInline.company}} - - - + + + - - - - - - - + + + + + + + 国家:{{this.formIp.country}} 省份:{{this.formIp.province}} 城市:{{this.formIp.city}} 运营商:{{this.formIp.isp}} - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - + + + + + + - - - + + + - - - + + + - - - - + + + + years: {{this.formBirthday.years}} months: {{this.formBirthday.months}} days: {{this.formBirthday.days}} @@ -119,87 +129,91 @@ eightall: {{this.formBirthday.eightall}} fiveall: {{this.formBirthday.fiveall}} - - - + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - {{data.provinceName}}{{data.cityName}}--{{data.cityCode}} - - - - - - - - - - + + + + + + {{data.provinceName}}{{data.cityName}}--{{data.cityCode}} + + + + + + + + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - - 余额:{{ userBalanceData.userBalance || '加载中...' }} - 共计:{{buyForm.connectorPrice*buyForm.connectorFrequency}}元 + + + + 余额:{{ userBalanceData.userBalance || '加载中...' }} + 共计:{{buyForm.connectorPrice*buyForm.connectorFrequency}}元 - - - + + + + + + + @@ -217,6 +231,7 @@ import {getPostcode} from "@/api/port/port"; import {getWeather} from "@/api/port/port"; import {doBuyInterface} from "@/api/port/port"; import {userBalance} from "@/api/system/user"; +import {findConnectSort} from "@/api/port/port"; export default { //import引入的组件需要注入到对象中才能使用" components: {}, @@ -234,6 +249,7 @@ export default { children:"citys", label:'provinceName', }, + connectSort:[], connectorList:[], gridData:[], gridData2:[], @@ -463,12 +479,19 @@ export default { this.connectorList=res.data; console.log(res.data); }) + }, + findConnectSort(){ + findConnectSort().then((res)=>{ + this.connectSort=res.data; + console.log(this.connectSort); + }) } }, //生命周期 - 创建完成(可以访问当前this实例)", created() { this.fetchUserBalance(); this.findApiList(); + this.findConnectSort() }, //生命周期 - 挂载完成(可以访问DOM元素)", mounted() {
余额:{{ userBalanceData.userBalance || '加载中...' }}