Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
store-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
store-manage-ui
Commits
8bd4b2ea
Commit
8bd4b2ea
authored
Nov 10, 2021
by
王苓芝
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
运营系统最新功能
parent
2cd0b9df
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
116 additions
and
89 deletions
+116
-89
index.js
src/router/index.js
+7
-0
activity.service.js
src/services/apis/activity.service.js
+29
-0
coupon.service.js
src/services/apis/coupon.service.js
+3
-0
offcialLanding.js
src/services/apis/offcialLanding.js
+14
-0
user.service.js
src/services/apis/user.service.js
+63
-89
No files found.
src/router/index.js
View file @
8bd4b2ea
...
...
@@ -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
officialLanding
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'
../view/privateManage/officialLanding.vue
'
)),
'
officialLanding
'
);
const
routes
=
[
{
path
:
'
/
'
,
...
...
@@ -253,6 +256,10 @@ const routes = [
path
:
'
tabDeploy
'
,
component
:
tabDeploy
,
},
{
path
:
'
officialLanding
'
,
component
:
officialLanding
,
},
],
},
];
...
...
src/services/apis/activity.service.js
View file @
8bd4b2ea
...
...
@@ -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
)
{
return
http
.
post
(
`
${
appApi
}
/api/kdsp/activity/activity-goods/label-info/sku-label/update`
,
params
);
},
...
...
@@ -206,4 +227,12 @@ export default {
params
.
append
(
'
previewId
'
,
previewId
);
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
)}
`
);
},
};
src/services/apis/coupon.service.js
View file @
8bd4b2ea
...
...
@@ -63,6 +63,9 @@ export default {
categoryQuery
()
{
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
)
{
return
http
.
post
(
`
${
appApi
}
/api/kdsp/op/coupon/receiver/update`
,
params
);
...
...
src/services/apis/offcialLanding.js
0 → 100644
View file @
8bd4b2ea
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
);
},
};
src/services/apis/user.service.js
View file @
8bd4b2ea
...
...
@@ -53,19 +53,6 @@ const menus = [
},
childNodes
:
[],
},
{
node
:
{
id
:
'
dbeaef7d-acf7-4d27-9432-9421bb5743f1
'
,
name
:
'
新广告位列表
'
,
picture
:
null
,
type
:
{
name
:
'
菜单
'
,
value
:
2
,
},
uri
:
'
newAdList
'
,
},
childNodes
:
[],
},
],
},
{
...
...
@@ -197,19 +184,6 @@ const menus = [
},
childNodes
:
[],
},
{
node
:
{
id
:
'
dde9bb49-97cb-417e-b890-5cdee4bd12e1
'
,
name
:
'
发送微信公众号通知
'
,
picture
:
null
,
type
:
{
name
:
'
菜单
'
,
value
:
2
,
},
uri
:
'
wechatMessage
'
,
},
childNodes
:
[],
},
],
},
{
...
...
@@ -237,19 +211,6 @@ const menus = [
},
childNodes
:
[],
},
{
node
:
{
id
:
'
3a1cedbf-f4d6-4fe7-bcfc-8d2f327ca6cd
'
,
// 自己设置的id
name
:
'
首页布局
'
,
picture
:
null
,
type
:
{
name
:
'
菜单
'
,
value
:
2
,
},
uri
:
'
homePageLayout
'
,
},
childNodes
:
[],
},
{
node
:
{
id
:
'
3a1cedbf-f4d6-4fe7-bcfc-8d2f327ca6cc
'
,
...
...
@@ -361,7 +322,7 @@ const menus = [
{
node
:
{
id
:
'
119d1160-c446-4370-8d50-8fd749ebb39c
'
,
name
:
'
会员中心
'
,
name
:
'
积分
'
,
picture
:
'
ios-list
'
,
type
:
{
name
:
'
资源组
'
,
...
...
@@ -373,7 +334,7 @@ const menus = [
{
node
:
{
id
:
'
43a9714d-84da-459e-9182-55e06e5e717d
'
,
name
:
'
会员任务
'
,
name
:
'
积分列表
'
,
picture
:
null
,
type
:
{
name
:
'
菜单
'
,
...
...
@@ -386,7 +347,7 @@ const menus = [
{
node
:
{
id
:
'
c13c3287-5580-4b2e-b979-bd58e5f11554
'
,
name
:
'
成长值明细
'
,
name
:
'
积分明细记录
'
,
picture
:
null
,
type
:
{
name
:
'
菜单
'
,
...
...
@@ -396,32 +357,6 @@ const menus = [
},
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 = [
uri
:
null
,
},
childNodes
:
[
{
node
:
{
id
:
'
7fec0d98-8693-9f90-7d8e-770f958fda4b
'
,
// 此处自己设置的
name
:
'
用户管理
'
,
picture
:
null
,
type
:
{
name
:
'
菜单
'
,
value
:
2
,
},
uri
:
'
userManage
'
,
},
childNodes
:
[],
},
{
node
:
{
id
:
'
7fec0d98-8693-9f90-7d8e-770f958fda4a
'
,
...
...
@@ -481,7 +403,7 @@ const menus = [
node
:
{
id
:
'
580b8099-2c3b-43a6-8c5d-0edfc757ee38
'
,
name
:
'
活动管理
'
,
picture
:
'
checkmark-circled
'
,
picture
:
null
,
type
:
{
name
:
'
资源组
'
,
value
:
1
,
...
...
@@ -521,7 +443,7 @@ const menus = [
node
:
{
id
:
'
89deb3bc-f794-4dfa-b63f-5d0ce49a06eb
'
,
name
:
'
活动商品管理
'
,
picture
:
'
checkmark-circled
'
,
picture
:
null
,
type
:
{
name
:
'
资源组
'
,
value
:
1
,
...
...
@@ -570,7 +492,7 @@ const menus = [
},
{
node
:
{
id
:
'
e8be713e-aaf1-470a-81d3-67ad15d59c6
2
'
,
// 自己给的id
id
:
'
e8be713e-aaf1-470a-81d3-67ad15d59c6
1
'
,
name
:
'
支付限额商品列表
'
,
picture
:
null
,
type
:
{
...
...
@@ -613,7 +535,47 @@ const menus = [
{
node
:
{
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
'
,
type
:
{
name
:
'
资源组
'
,
...
...
@@ -624,14 +586,27 @@ const menus = [
childNodes
:
[
{
node
:
{
id
:
'
f802681d-cf34-4eff-8838-1839ebe54bc
4
'
,
// 自己设置的id
name
:
'
公众号登录页
'
,
id
:
'
f802681d-cf34-4eff-8838-1839ebe54bc
3
'
,
name
:
'
会员等级
'
,
picture
:
null
,
type
:
{
name
:
'
菜单
'
,
value
:
2
,
},
uri
:
'
officialLanding
'
,
uri
:
'
memberLevel
'
,
},
childNodes
:
[],
},
{
node
:
{
id
:
'
f802681d-cf34-4eff-8838-1839ebe54bc3
'
,
name
:
'
等级权益
'
,
picture
:
null
,
type
:
{
name
:
'
菜单
'
,
value
:
2
,
},
uri
:
'
memberRights
'
,
},
childNodes
:
[],
},
...
...
@@ -649,7 +624,6 @@ export function getMenuData() {
export
function
normalization
(
menuData
=
menus
)
{
const
value
=
[];
const
data
=
[...
menuData
];
console
.
log
(
'
data-menu
'
,
data
);
data
.
forEach
(
item
=>
{
let
obj
=
{};
obj
=
{
...
item
.
node
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment