diff --git a/.env.development b/.env.development index 6831d33..cc66d69 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,7 @@ ENV = 'development' # 接口地址 -VUE_APP_BASE_API = 'http://192.168.0.112:8094' +VUE_APP_BASE_API = 'http://192.168.0.111:8094' VUE_APP_WS_API = 'ws://localhost:8088' # 是否启用 babel-plugin-dynamic-import-node插件 diff --git a/src/api/ActiveInterface.js b/src/api/ActiveInterface.js new file mode 100644 index 0000000..2206b55 --- /dev/null +++ b/src/api/ActiveInterface.js @@ -0,0 +1,33 @@ +import request from '@/utils/request' + +export function add(data) { + return request({ + url: 'api/activity' + '?' + 'page=' + data.page + '&' + 'size=' + data.size + '&' + 'sort=' + data.sort + '&' + 'activity_id=' + data.activity_id, + method: 'get', + data + }) +} + +export function adds(data) { + return request({ + url: 'api/activityCate' + '?' + 'page=' + data.page + '&' + 'size=' + data.size + '&' + 'sort=' + data.sort, + method: 'get', + data + }) +} +export function activityFlag(data) { + return request({ + url: 'api/activityFlag' + '?' + 'page=' + data.page + '&' + 'size=' + data.size + '&' + 'sort=' + data.sort, + method: 'get', + data + }) +} +export function posts(data) { + return request({ + url: 'api/activityFlag', + method: 'post', + data + }) +} + +export default { add, adds, activityFlag, posts } diff --git a/src/api/activity.js b/src/api/activity.js new file mode 100644 index 0000000..f3cd555 --- /dev/null +++ b/src/api/activity.js @@ -0,0 +1,27 @@ +import request from '@/utils/request' + +export function add(data) { + return request({ + url: 'api/activity', + method: 'post', + data + }) +} + +export function del(ids) { + return request({ + url: 'api/activity/', + method: 'delete', + data: ids + }) +} + +export function edit(data) { + return request({ + url: 'api/activity', + method: 'put', + data + }) +} + +export default { add, edit, del } diff --git a/src/api/activityCate.js b/src/api/activityCate.js new file mode 100644 index 0000000..642fda7 --- /dev/null +++ b/src/api/activityCate.js @@ -0,0 +1,27 @@ +import request from '@/utils/request' + +export function add(data) { + return request({ + url: 'api/activityCate', + method: 'post', + data + }) +} + +export function del(ids) { + return request({ + url: 'api/activityCate/', + method: 'delete', + data: ids + }) +} + +export function edit(data) { + return request({ + url: 'api/activityCate', + method: 'put', + data + }) +} + +export default { add, edit, del } diff --git a/src/api/activityFlag.js b/src/api/activityFlag.js new file mode 100644 index 0000000..8645f11 --- /dev/null +++ b/src/api/activityFlag.js @@ -0,0 +1,27 @@ +import request from '@/utils/request' + +export function add(data) { + return request({ + url: 'api/activityFlag', + method: 'post', + data + }) +} + +export function del(ids) { + return request({ + url: 'api/activityFlag/', + method: 'delete', + data: ids + }) +} + +export function edit(data) { + return request({ + url: 'api/activityFlag', + method: 'put', + data + }) +} + +export default { add, edit, del } diff --git a/src/api/activityOrder.js b/src/api/activityOrder.js new file mode 100644 index 0000000..99c7902 --- /dev/null +++ b/src/api/activityOrder.js @@ -0,0 +1,27 @@ +import request from '@/utils/request' + +export function add(data) { + return request({ + url: 'api/activityOrder', + method: 'post', + data + }) +} + +export function del(ids) { + return request({ + url: 'api/activityOrder/', + method: 'delete', + data: ids + }) +} + +export function edit(data) { + return request({ + url: 'api/activityOrder', + method: 'put', + data + }) +} + +export default { add, edit, del } diff --git a/src/api/activityPublisher.js b/src/api/activityPublisher.js new file mode 100644 index 0000000..9d861cf --- /dev/null +++ b/src/api/activityPublisher.js @@ -0,0 +1,27 @@ +import request from '@/utils/request' + +export function add(data) { + return request({ + url: 'api/activityPublisher', + method: 'post', + data + }) +} + +export function del(ids) { + return request({ + url: 'api/activityPublisher/', + method: 'delete', + data: ids + }) +} + +export function edit(data) { + return request({ + url: 'api/activityPublisher', + method: 'put', + data + }) +} + +export default { add, edit, del } diff --git a/src/api/articleCatetory.js b/src/api/articleCatetory.js new file mode 100644 index 0000000..15896ee --- /dev/null +++ b/src/api/articleCatetory.js @@ -0,0 +1,27 @@ +import request from '@/utils/request' + +export function add(data) { + return request({ + url: 'api/articleCatetory', + method: 'post', + data + }) +} + +export function del(ids) { + return request({ + url: 'api/articleCatetory/', + method: 'delete', + data: ids + }) +} + +export function edit(data) { + return request({ + url: 'api/articleCatetory', + method: 'put', + data + }) +} + +export default { add, edit, del } diff --git a/src/api/publisher.js b/src/api/publisher.js new file mode 100644 index 0000000..d106bd2 --- /dev/null +++ b/src/api/publisher.js @@ -0,0 +1,19 @@ +import request from '@/utils/request' + +export function gets(data) { + return request({ + url: 'api/yxUser' + '?' + 'page=' + data.page + '&' + 'size=' + data.size + '&' + 'sort=' + data.sort, + method: 'get', + data + }) +} + +export function getses(data) { + return request({ + url: 'api/activityPublisher', + method: 'get', + data + }) +} + +export default { gets, getses } diff --git a/src/api/yxArticle.js b/src/api/yxArticle.js index 2aa2d6c..3d54700 100644 --- a/src/api/yxArticle.js +++ b/src/api/yxArticle.js @@ -36,3 +36,17 @@ export function get(id) { method: 'get' }) } + +export function getAuthor(id) { + return request({ + url: 'api/Enterprise/listEnterprises', + method: 'get' + }) +} + +export function getArticleCatetory(id) { + return request({ + url: 'api/articleCatetory/listArticleCatetory', + method: 'get' + }) +} diff --git a/src/api/yxStoreProduct.js b/src/api/yxStoreProduct.js index 40eed23..411ea63 100644 --- a/src/api/yxStoreProduct.js +++ b/src/api/yxStoreProduct.js @@ -81,3 +81,18 @@ export function getInfo(id) { method: 'get' }) } + +export function getStore(id) { + return request({ + url: 'api/yxSystemStore/all', + method: 'get' + }) +} +//商品审核 +export function audit(data) { + return request({ + url: 'api/audit', + method: 'post', + data + }) +} \ No newline at end of file diff --git a/src/api/yxSystemStore.js b/src/api/yxSystemStore.js index 0f9987f..e2e9d91 100644 --- a/src/api/yxSystemStore.js +++ b/src/api/yxSystemStore.js @@ -46,4 +46,13 @@ export function edit(data) { }) } -export default { getL, add, edit, del, get, getAll } +//店铺审核 +export function audit(data) { + return request({ + url: 'api/yxSystemStore/audit', + method: 'post', + data + }) +} + +export default { getL, add, edit, del, get, getAll, audit } diff --git a/src/assets/images/bg.png b/src/assets/images/bg.png index cbf23ef..6f967f8 100644 Binary files a/src/assets/images/bg.png and b/src/assets/images/bg.png differ diff --git a/src/assets/images/bg1.png b/src/assets/images/bg1.png new file mode 100644 index 0000000..cbf23ef Binary files /dev/null and b/src/assets/images/bg1.png differ diff --git a/src/components/editorMaterial/index.vue b/src/components/editorMaterial/index.vue index 5943878..039c2af 100644 --- a/src/components/editorMaterial/index.vue +++ b/src/components/editorMaterial/index.vue @@ -257,11 +257,12 @@ export default { } }, materialgroupPage() { + console.log('编辑器上传') this.materialgroupLoading = true materialgroupPage({ total: 0, // 总页数 - page: 1, // 当前页数 - size: 100, // 每页显示多少条 + page: 0, // 当前页数 + size: 1000, // 每页显示多少条 ascs: [], // 升序字段 sort: 'create_time,desc'// 降序字段 }).then(response => { @@ -476,6 +477,11 @@ export default { diff --git a/src/components/singlematerial/index.vue b/src/components/singlematerial/index.vue index 2a158ba..50ce178 100644 --- a/src/components/singlematerial/index.vue +++ b/src/components/singlematerial/index.vue @@ -93,6 +93,7 @@ + {{item.name}} { @@ -338,7 +339,8 @@ export default { size: page.pageSize, descs: this.page.descs, ascs: this.page.ascs, - sort: 'create_time,desc' + sort: 'create_time,desc', + type: '1' }, { groupId: this.groupId })).then(response => { @@ -464,6 +466,10 @@ export default { diff --git a/src/components/singlevideo/index.vue b/src/components/singlevideo/index.vue new file mode 100644 index 0000000..89e3a6a --- /dev/null +++ b/src/components/singlevideo/index.vue @@ -0,0 +1,505 @@ + + + + + + diff --git a/src/router/index.js b/src/router/index.js index b2a231b..c9b9395 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -54,7 +54,9 @@ router.beforeEach((to, from, next) => { export const loadMenus = (next, to) => { buildMenus().then(res => { + console.log(res,'asyncRouter--res') const asyncRouter = filterAsyncRouter(res) + console.log(asyncRouter,'asyncRouter') asyncRouter.push({ path: '*', redirect: '/404', hidden: true }) store.dispatch('GenerateRoutes', asyncRouter).then(() => { // 存储路由 router.addRoutes(asyncRouter) // 动态添加可访问路由表 diff --git a/src/router/routers.js b/src/router/routers.js index a13e2c3..23ac524 100644 --- a/src/router/routers.js +++ b/src/router/routers.js @@ -68,7 +68,7 @@ export const constantRouterMap = [ component: (resolve) => require(['@/components/editorMaterial/index'], resolve), hidden: true }, - { path: '*', component: (resolve) => require(['@/views/home'], resolve) } + // { path: '*', component: (resolve) => require(['@/views/home'], resolve) } ] export default new Router({ diff --git a/src/views/activitys/activitys/cate.vue b/src/views/activitys/activitys/cate.vue new file mode 100644 index 0000000..6555275 --- /dev/null +++ b/src/views/activitys/activitys/cate.vue @@ -0,0 +1,114 @@ + + + + + diff --git a/src/views/activitys/activitys/flag.vue b/src/views/activitys/activitys/flag.vue new file mode 100644 index 0000000..010ab1d --- /dev/null +++ b/src/views/activitys/activitys/flag.vue @@ -0,0 +1,101 @@ + + + + + diff --git a/src/views/activitys/activitys/index.vue b/src/views/activitys/activitys/index.vue new file mode 100644 index 0000000..64dde23 --- /dev/null +++ b/src/views/activitys/activitys/index.vue @@ -0,0 +1,690 @@ + + + + + diff --git a/src/views/activitys/activitys/order.vue b/src/views/activitys/activitys/order.vue new file mode 100644 index 0000000..60e83d8 --- /dev/null +++ b/src/views/activitys/activitys/order.vue @@ -0,0 +1,330 @@ + + + + + diff --git a/src/views/activitys/activitys/publisher.vue b/src/views/activitys/activitys/publisher.vue new file mode 100644 index 0000000..5f584cc --- /dev/null +++ b/src/views/activitys/activitys/publisher.vue @@ -0,0 +1,171 @@ + + + + + diff --git a/src/views/information/articleCatetory.vue b/src/views/information/articleCatetory.vue new file mode 100644 index 0000000..c4c0577 --- /dev/null +++ b/src/views/information/articleCatetory.vue @@ -0,0 +1,122 @@ + + + + + diff --git a/src/views/information/form.vue b/src/views/information/form.vue new file mode 100644 index 0000000..d94eb41 --- /dev/null +++ b/src/views/information/form.vue @@ -0,0 +1,315 @@ + + + + + diff --git a/src/views/information/formbak.vue b/src/views/information/formbak.vue new file mode 100644 index 0000000..9a80157 --- /dev/null +++ b/src/views/information/formbak.vue @@ -0,0 +1,183 @@ + + + + + diff --git a/src/views/information/index.vue b/src/views/information/index.vue new file mode 100644 index 0000000..9cd29de --- /dev/null +++ b/src/views/information/index.vue @@ -0,0 +1,190 @@ + + + + + diff --git a/src/views/login.vue b/src/views/login.vue index 6170e1c..79e3269 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -19,20 +19,20 @@ -->