diff --git a/src/api/marketing.js b/src/api/marketing.js index de47655..54325ed 100644 --- a/src/api/marketing.js +++ b/src/api/marketing.js @@ -584,3 +584,7 @@ export function integralOrderLog(id, data) { export function integralMarkApi(id) { return request.get(`points/order/mark/${id}/form`) } +// 代理中心 - 代理列表 +export function agentList(data) { + return request.get(`marketing/agent/list`, data) +} diff --git a/src/views/product/addProduct/index.vue b/src/views/product/addProduct/index.vue index 5d48c66..8215591 100644 --- a/src/views/product/addProduct/index.vue +++ b/src/views/product/addProduct/index.vue @@ -6,8 +6,8 @@ - - + + @@ -33,7 +33,7 @@ ✓ -
+
虚拟商品
(虚拟发货)
@@ -244,7 +244,7 @@ - + - + - + 为0或者空则使用商户默认设置(实际支付的金额 * 倍数) - @@ -1422,6 +1421,7 @@ import {getToken} from '@/utils/auth' import taoBao from './taoBao' import copyRecord from './copyRecord' import addCarMy from "./addCarMy"; +import {agentList} from "@/api/marketing"; const defaultObj = { image: '', @@ -1758,6 +1758,8 @@ export default { width: 95, }, config: {},// 获取商户基本配置 + // 代理列表获取 + agent_list: {}, } }, computed: { @@ -1822,6 +1824,7 @@ export default { this.getGuaranteeList() this.productGetRule() this.getLabelLst() + // this.getAgentList(2) this.$store.dispatch('settings/setEdit', true) this.formValidate.slider_image = [] if (this.$route.params.id) { @@ -2989,6 +2992,18 @@ export default { }, 38 ); + }, + // 获取代理列表 + getAgentList(agentType){ + let _this = this; + let params = { + page: 1, + limit: 100, + agent_type: agentType, + }; + agentList(params).then((res) => { + _this.agent_list = res.data.list || {}; + }).catch((res) => {}); } } };