diff --git a/src/api/giftGoods.js b/src/api/giftGoods.js index 8f503dc..cfc50dd 100644 --- a/src/api/giftGoods.js +++ b/src/api/giftGoods.js @@ -300,12 +300,44 @@ export function tourismDetails(params) { }) } -// 营销管理-直推排行数据 -export function getMemberDirectPusht(params) { +// 营销管理-直推人数排行数据 +export function getMemberDirectPush(data) { return request({ - url: '/member/manager/member/get-member-direct-push', - method: 'get', - params + url: '/member/manage/member-statistics/topPeople', + method: 'post', + data + }) +} +// 营销管理-直推金额排行数据 +export function getMemberDirectPushAmount(data) { + return request({ + url: '/member/manage/member-statistics/topAmount', + method: 'post', + data + }) +} + +// params type setShowPeople setShowAmount +export function getMemberDirectPushSwitchStatus(type) { + return request({ + url: `member/manage/member-statistics/${type}`, + method: 'get' + }) +} + +// 直推人数排行开关 +export function setMemberDirectPush(flag) { + return request({ + url: `member/manage/member-statistics/setShowPeople/${flag}`, + method: 'get' + }) +} + +// 直推金额排行开关 +export function setMemberDirectPushAmount(flag) { + return request({ + url: `member/manage/member-statistics/setShowAmount/${flag}`, + method: 'get' }) } @@ -354,7 +386,7 @@ export function lotteryRuleConfigSubmit(data) { // 直推赠送 export function directRuleConfigSubmit(data) { return request({ - url: '/sale/manage/recommend/submit', + url: '/sale/manage/recommend/directPushUpgrade', method: 'post', data }) @@ -369,3 +401,11 @@ export function tourismRuleConfigSubmit(data) { }) } +// 直推升级数据 +export function directUpgradeRecordList(params) { + return request({ + url: '/sale/manage/recommend/directPushUpgradeList', + method: 'get', + params + }) +} diff --git a/src/router/index.js b/src/router/index.js index 74e7a8c..e3ad2d0 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1928,6 +1928,7 @@ export const constantRoutes = [ } ] }, + { path: 'lotteryDetails', name: 'LotteryDetails', @@ -1941,33 +1942,6 @@ export const constantRoutes = [ } ] }, - { - path: 'rechargeCard', - name: 'RechargeCard', - component: ParentView, - children: [ - { - path: 'rechargeCardList', - name: 'RechargeCardList', - component: () => import('@/views/marketing/rechargeCard/index'), - meta: { title: '充值提货卡' } - }, - { - path: 'addRechargeCard', - name: 'addRechargeCard', - component: () => import('@/views/marketing/rechargeCard/addRechargeCard'), - meta: { title: '充值提货卡-添加' }, - hidden: true - }, - { - path: 'rechargeQc', - name: 'rechargeQc', - component: () => import('@/views/marketing/rechargeCard/rechargeQc'), - meta: { title: '充值提货卡-添加' }, - hidden: true - } - ] - }, { path: 'lottery', name: 'Lottery', @@ -2002,17 +1976,45 @@ export const constantRoutes = [ } ] }, - { - path: 'directGifts', - name: 'DirectGifts', + path: 'rechargeCard', + name: 'RechargeCard', component: ParentView, children: [ { - path: 'directGiftsList', - name: 'DirectGiftsList', + path: 'rechargeCardList', + name: 'RechargeCardList', + component: () => import('@/views/marketing/rechargeCard/index'), + meta: { title: '充值提货卡' } + }, + { + path: 'addRechargeCard', + name: 'addRechargeCard', + component: () => import('@/views/marketing/rechargeCard/addRechargeCard'), + meta: { title: '充值提货卡-添加' }, + hidden: true + }, + { + path: 'rechargeQc', + name: 'rechargeQc', + component: () => import('@/views/marketing/rechargeCard/rechargeQc'), + meta: { title: '充值提货卡-添加' }, + hidden: true + } + ] + }, + + { + path: 'directUpgrade', + name: 'DirectUpgrade', + component: ParentView, + meta: { title: '直推升级' }, + children: [ + { + path: 'directUpgradeList', + name: 'DirectUpgradeList', component: () => import('@/views/marketing/directGifts/index'), - meta: { title: '直推赠送' } + meta: { title: '直推升级' } }, { path: 'addDirect', @@ -2020,6 +2022,40 @@ export const constantRoutes = [ component: () => import('@/views/marketing/directGifts/addDirect'), meta: { title: '基本信息' }, hidden: true + }, + { + path: 'directUpgradeRecordList', + name: 'DirectUpgradeRecordList', + component: () => import('@/views/marketing/directGifts/record'), + meta: { title: '直推升级数据' } + } + ] + }, + { + path: 'directRanking', + name: 'DirectRanking', + component: ParentView, + meta: { title: '直推排行数据' }, + children: [ + { + path: 'directRankingList', + name: 'DirectRankingList', + component: () => import('@/views/marketing/directRanking/index'), + meta: { title: '直推人数排行数据' } + }, + { + path: 'directAmountRankingList', + name: 'DirectAmountRankingList', + component: () => import('@/views/marketing/directRanking/amount'), + meta: { title: '直推金额排行数据' }, + hidden: true + }, + { + path: 'directConfig', + name: 'DirectConfig', + component: () => import('@/views/marketing/directRanking/config'), + meta: { title: '直推配置' }, + hidden: true } ] }, @@ -2122,19 +2158,6 @@ export const constantRoutes = [ meta: { title: '旅游活动数据' } } ] - }, - { - path: 'directRanking', - name: 'DirectRanking', - component: ParentView, - children: [ - { - path: 'directRankingList', - name: 'DirectRankingList', - component: () => import('@/views/marketing/directRanking/index'), - meta: { title: '直推排行数据' } - } - ] } ] diff --git a/src/views/marketing/directGifts/addDirect.vue b/src/views/marketing/directGifts/addDirect.vue index d1f50cb..6a84cb2 100644 --- a/src/views/marketing/directGifts/addDirect.vue +++ b/src/views/marketing/directGifts/addDirect.vue @@ -68,77 +68,14 @@ - - - -
- {{ '注册等级' }} - - {{ item.gradeName }} - -
-
- {{ '真实奖衔' }} - - {{ item.awardsName }} - -
-
- {{ '权限中心' }} - - {{ item.label }} - -
-
-
-
- - +