diff --git a/src/api/spring/blessing/music/index.js b/src/api/spring/blessing/music/index.js
new file mode 100644
index 0000000..dea6dea
--- /dev/null
+++ b/src/api/spring/blessing/music/index.js
@@ -0,0 +1,55 @@
+import request from '@/utils/request'
+
+export function getList(data) {
+ return request({
+ url: '/management/api/spring/card-music/list',
+ method: 'get',
+ params: data,
+ })
+}
+
+export function doAdd(data) {
+ return request({
+ url: '/management/api/spring/card-music',
+ method: 'post',
+ data,
+ })
+}
+
+export function doEdit(id, data) {
+ return request({
+ url: `/management/api/spring/card-music/${id}`,
+ method: 'put',
+ data,
+ })
+}
+
+export function doDelete(data) {
+ return request({
+ url: '/management/api/spring/card-music/delete',
+ method: 'put',
+ data,
+ })
+}
+
+export function doMoveUp(id) {
+ return request({
+ url: `/management/api/spring/card-music/moveUp/${id}`,
+ method: 'patch',
+ })
+}
+
+export function doMoveDown(id) {
+ return request({
+ url: `/management/api/spring/card-music/moveDown/${id}`,
+ method: 'patch',
+ })
+}
+
+export function toggleEnable(id, isEnabled) {
+ return request({
+ url: `/management/api/spring/card-music/enable/${id}`,
+ method: 'patch',
+ data: { isEnabled },
+ })
+}
diff --git a/src/router/index.js b/src/router/index.js
index 6666f30..a55b58d 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -149,6 +149,12 @@ export const asyncRoutes = [
component: () => import('@/views/spring/blessing/titleTemplate/index'),
meta: { title: '图片标题模版' },
},
+ {
+ path: 'music',
+ name: 'Music',
+ component: () => import('@/views/spring/blessing/music/index'),
+ meta: { title: '背景音乐' },
+ },
{
path: 'contentTemplate',
name: 'contentTemplate',
@@ -201,18 +207,18 @@ export const asyncRoutes = [
permissions: ['admin'],
},
children: [
- {
- path: 'systemAvatar',
- name: 'SystemAvatar',
- component: () => import('@/views/spring/avatar/systemAvatar/index'),
- meta: { title: '系统头像' },
- },
{
path: 'avatarCategory',
name: 'AvatarCategory',
component: () => import('@/views/spring/avatar/category/index'),
meta: { title: '头像类型' },
},
+ {
+ path: 'systemAvatar',
+ name: 'SystemAvatar',
+ component: () => import('@/views/spring/avatar/systemAvatar/index'),
+ meta: { title: '系统头像' },
+ },
{
path: 'avatarFrame',
name: 'AvatarFrame',
diff --git a/src/views/spring/blessing/music/components/AppManagementEdit.vue b/src/views/spring/blessing/music/components/AppManagementEdit.vue
new file mode 100644
index 0000000..e510e70
--- /dev/null
+++ b/src/views/spring/blessing/music/components/AppManagementEdit.vue
@@ -0,0 +1,183 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 点击上传
+ 只能上传音频文件,且不超过 10MB
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/spring/blessing/music/index.vue b/src/views/spring/blessing/music/index.vue
new file mode 100644
index 0000000..d333b7f
--- /dev/null
+++ b/src/views/spring/blessing/music/index.vue
@@ -0,0 +1,228 @@
+
+
+
+
+ 添加
+ 批量删除
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ getSceneName(row.scene) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+ 上移
+
+
+ 下移
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+