Commit 8bd4b2ea authored by 王苓芝's avatar 王苓芝

运营系统最新功能

parent 2cd0b9df
...@@ -64,6 +64,9 @@ const marketingAllocation = r => require.ensure([], () => r(require('../view/tra ...@@ -64,6 +64,9 @@ const marketingAllocation = r => require.ensure([], () => r(require('../view/tra
const homePageLayout = r => require.ensure([], () => r(require('../view/homePageLayout/index.vue')), 'homePageLayout'); const homePageLayout = r => require.ensure([], () => r(require('../view/homePageLayout/index.vue')), 'homePageLayout');
// 微信公众号登录页图片上传
const officialLanding = r => require.ensure([], () => r(require('../view/privateManage/officialLanding.vue')), 'officialLanding');
const routes = [ const routes = [
{ {
path: '/', path: '/',
...@@ -253,6 +256,10 @@ const routes = [ ...@@ -253,6 +256,10 @@ const routes = [
path: 'tabDeploy', path: 'tabDeploy',
component: tabDeploy, component: tabDeploy,
}, },
{
path: 'officialLanding',
component: officialLanding,
},
], ],
}, },
]; ];
......
...@@ -167,6 +167,27 @@ export default { ...@@ -167,6 +167,27 @@ export default {
} }
}); });
}, },
// 导出限额支付的商品数据
exportCashList() {
return http
.get(`${appApi}/api/kdsp/new-user/exclusive/sku-limit/export`, {
responseType: 'arraybuffer',
})
.then(data => {
if (data.byteLength > 0) {
const blob = new Blob([data], { type: 'application/vnd.ms-excel;' });
fileSaver.saveAs(blob, `支付限额的商品数据列表.xlsx`);
}
});
},
// 添加限额支付限制商品
getCashLimitList(params) {
return http.post(`${appApi}/api/kdsp/new-user/exclusive/sku-limit/submit`, params);
},
// 限额支付页停用启用按钮
updateStatus(params) {
return http.get(`${appApi}/api/kdsp/new-user/exclusive/sku-limit/start-stop?enable=${params.enable}`);
},
changeProductLableStatus(params) { changeProductLableStatus(params) {
return http.post(`${appApi}/api/kdsp/activity/activity-goods/label-info/sku-label/update`, params); return http.post(`${appApi}/api/kdsp/activity/activity-goods/label-info/sku-label/update`, params);
}, },
...@@ -206,4 +227,12 @@ export default { ...@@ -206,4 +227,12 @@ export default {
params.append('previewId', previewId); params.append('previewId', previewId);
return http.post(`${appApi}/api/kdsp/activity/activity-goods/special/upload-template`, params); return http.post(`${appApi}/api/kdsp/activity/activity-goods/special/upload-template`, params);
}, },
// 获取现金支付的已有数据
getCashList() {
return http.get(`${appApi}/api/kdsp/new-user/exclusive/sku-limit/get`);
},
// 查看详情
lookDetails(params) {
return http.get(`${appApi}/api/kdsp/new-user/exclusive/sku-limit/page?${qs.stringify(params)}`);
},
}; };
...@@ -63,6 +63,9 @@ export default { ...@@ -63,6 +63,9 @@ export default {
categoryQuery() { categoryQuery() {
return http.get(`${appApi}/api/kdsp/op/rear-category/query/all`); return http.get(`${appApi}/api/kdsp/op/rear-category/query/all`);
}, },
threeCategoryQuery() {
return http.get(`${appApi}/api/kdsp/op/rear-category/sku-limit/query/all`);
},
// 用户领取的优惠券冻结解冻(是否可用) // 用户领取的优惠券冻结解冻(是否可用)
receiverUpdate(params) { receiverUpdate(params) {
return http.post(`${appApi}/api/kdsp/op/coupon/receiver/update`, params); return http.post(`${appApi}/api/kdsp/op/coupon/receiver/update`, params);
......
import config from '../../config';
const { appApi } = config;
export default {
submit(params) {
return http.post(`${appApi}/api/kdsp/pre-login/img-url/save`, params);
},
getImg() {
return http.get(`${appApi}/api/kdsp/pre-login/img-url/get`);
},
update(params) {
return http.put(`${appApi}/api/kdsp/pre-login/img-url/update`, params);
},
};
...@@ -53,19 +53,6 @@ const menus = [ ...@@ -53,19 +53,6 @@ const menus = [
}, },
childNodes: [], childNodes: [],
}, },
{
node: {
id: 'dbeaef7d-acf7-4d27-9432-9421bb5743f1',
name: '新广告位列表',
picture: null,
type: {
name: '菜单',
value: 2,
},
uri: 'newAdList',
},
childNodes: [],
},
], ],
}, },
{ {
...@@ -197,19 +184,6 @@ const menus = [ ...@@ -197,19 +184,6 @@ const menus = [
}, },
childNodes: [], childNodes: [],
}, },
{
node: {
id: 'dde9bb49-97cb-417e-b890-5cdee4bd12e1',
name: '发送微信公众号通知',
picture: null,
type: {
name: '菜单',
value: 2,
},
uri: 'wechatMessage',
},
childNodes: [],
},
], ],
}, },
{ {
...@@ -237,19 +211,6 @@ const menus = [ ...@@ -237,19 +211,6 @@ const menus = [
}, },
childNodes: [], childNodes: [],
}, },
{
node: {
id: '3a1cedbf-f4d6-4fe7-bcfc-8d2f327ca6cd', // 自己设置的id
name: '首页布局',
picture: null,
type: {
name: '菜单',
value: 2,
},
uri: 'homePageLayout',
},
childNodes: [],
},
{ {
node: { node: {
id: '3a1cedbf-f4d6-4fe7-bcfc-8d2f327ca6cc', id: '3a1cedbf-f4d6-4fe7-bcfc-8d2f327ca6cc',
...@@ -361,7 +322,7 @@ const menus = [ ...@@ -361,7 +322,7 @@ const menus = [
{ {
node: { node: {
id: '119d1160-c446-4370-8d50-8fd749ebb39c', id: '119d1160-c446-4370-8d50-8fd749ebb39c',
name: '会员中心', name: '积分',
picture: 'ios-list', picture: 'ios-list',
type: { type: {
name: '资源组', name: '资源组',
...@@ -373,7 +334,7 @@ const menus = [ ...@@ -373,7 +334,7 @@ const menus = [
{ {
node: { node: {
id: '43a9714d-84da-459e-9182-55e06e5e717d', id: '43a9714d-84da-459e-9182-55e06e5e717d',
name: '会员任务', name: '积分列表',
picture: null, picture: null,
type: { type: {
name: '菜单', name: '菜单',
...@@ -386,7 +347,7 @@ const menus = [ ...@@ -386,7 +347,7 @@ const menus = [
{ {
node: { node: {
id: 'c13c3287-5580-4b2e-b979-bd58e5f11554', id: 'c13c3287-5580-4b2e-b979-bd58e5f11554',
name: '成长值明细', name: '积分明细记录',
picture: null, picture: null,
type: { type: {
name: '菜单', name: '菜单',
...@@ -396,32 +357,6 @@ const menus = [ ...@@ -396,32 +357,6 @@ const menus = [
}, },
childNodes: [], childNodes: [],
}, },
{
node: {
id: 'f802681d-cf34-4eff-8838-1839ebe54bc3',
name: '会员等级',
picture: null,
type: {
name: '菜单',
value: 2,
},
uri: 'memberLevel',
},
childNodes: [],
},
{
node: {
id: 'f802681d-cf34-4eff-8838-1839ebe54bc3',
name: '会员权益',
picture: null,
type: {
name: '菜单',
value: 2,
},
uri: 'memberRights',
},
childNodes: [],
},
], ],
}, },
{ {
...@@ -436,19 +371,6 @@ const menus = [ ...@@ -436,19 +371,6 @@ const menus = [
uri: null, uri: null,
}, },
childNodes: [ childNodes: [
{
node: {
id: '7fec0d98-8693-9f90-7d8e-770f958fda4b', // 此处自己设置的
name: '用户管理',
picture: null,
type: {
name: '菜单',
value: 2,
},
uri: 'userManage',
},
childNodes: [],
},
{ {
node: { node: {
id: '7fec0d98-8693-9f90-7d8e-770f958fda4a', id: '7fec0d98-8693-9f90-7d8e-770f958fda4a',
...@@ -481,7 +403,7 @@ const menus = [ ...@@ -481,7 +403,7 @@ const menus = [
node: { node: {
id: '580b8099-2c3b-43a6-8c5d-0edfc757ee38', id: '580b8099-2c3b-43a6-8c5d-0edfc757ee38',
name: '活动管理', name: '活动管理',
picture: 'checkmark-circled', picture: null,
type: { type: {
name: '资源组', name: '资源组',
value: 1, value: 1,
...@@ -521,7 +443,7 @@ const menus = [ ...@@ -521,7 +443,7 @@ const menus = [
node: { node: {
id: '89deb3bc-f794-4dfa-b63f-5d0ce49a06eb', id: '89deb3bc-f794-4dfa-b63f-5d0ce49a06eb',
name: '活动商品管理', name: '活动商品管理',
picture: 'checkmark-circled', picture: null,
type: { type: {
name: '资源组', name: '资源组',
value: 1, value: 1,
...@@ -570,7 +492,7 @@ const menus = [ ...@@ -570,7 +492,7 @@ const menus = [
}, },
{ {
node: { node: {
id: 'e8be713e-aaf1-470a-81d3-67ad15d59c62', // 自己给的id id: 'e8be713e-aaf1-470a-81d3-67ad15d59c61',
name: '支付限额商品列表', name: '支付限额商品列表',
picture: null, picture: null,
type: { type: {
...@@ -613,7 +535,47 @@ const menus = [ ...@@ -613,7 +535,47 @@ const menus = [
{ {
node: { node: {
id: '72f586b1-a65b-45fb-847a-cf11c3b56bc3', id: '72f586b1-a65b-45fb-847a-cf11c3b56bc3',
name: '私域管理', name: '流量工厂',
picture: 'ios-settings',
type: {
name: '资源组',
value: 1,
},
uri: null,
},
childNodes: [
{
node: {
id: 'f802681d-cf34-4eff-8838-1839ebe54bc3',
name: 'KA管理',
picture: null,
type: {
name: '菜单',
value: 2,
},
uri: 'kaManage',
},
childNodes: [],
},
{
node: {
id: 'f802681d-cf34-4eff-8838-1839ebe54bc3',
name: '营销配置',
picture: null,
type: {
name: '菜单',
value: 2,
},
uri: 'marketingAllocation',
},
childNodes: [],
},
],
},
{
node: {
id: '72f586b1-a65b-45fb-847a-cf11c3b56bc3',
name: '会员权益',
picture: 'ios-settings', picture: 'ios-settings',
type: { type: {
name: '资源组', name: '资源组',
...@@ -624,14 +586,27 @@ const menus = [ ...@@ -624,14 +586,27 @@ const menus = [
childNodes: [ childNodes: [
{ {
node: { node: {
id: 'f802681d-cf34-4eff-8838-1839ebe54bc4', // 自己设置的id id: 'f802681d-cf34-4eff-8838-1839ebe54bc3',
name: '公众号登录页', name: '会员等级',
picture: null, picture: null,
type: { type: {
name: '菜单', name: '菜单',
value: 2, value: 2,
}, },
uri: 'officialLanding', uri: 'memberLevel',
},
childNodes: [],
},
{
node: {
id: 'f802681d-cf34-4eff-8838-1839ebe54bc3',
name: '等级权益',
picture: null,
type: {
name: '菜单',
value: 2,
},
uri: 'memberRights',
}, },
childNodes: [], childNodes: [],
}, },
...@@ -649,7 +624,6 @@ export function getMenuData() { ...@@ -649,7 +624,6 @@ export function getMenuData() {
export function normalization(menuData = menus) { export function normalization(menuData = menus) {
const value = []; const value = [];
const data = [...menuData]; const data = [...menuData];
console.log('data-menu', data);
data.forEach(item => { data.forEach(item => {
let obj = {}; let obj = {};
obj = { ...item.node }; obj = { ...item.node };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment