diff --git a/.env.development b/.env.development index c203c6e..da32a70 100644 --- a/.env.development +++ b/.env.development @@ -2,7 +2,7 @@ ENV = 'development' # base api -#VUE_APP_BASE_API = 'https://gb-test.ali251.langye.net' +VUE_APP_BASE_API = 'https://gb-test.ali251.langye.net' -VUE_APP_BASE_API = 'https://gbyuyue.szgmbwg.org.cn' +#VUE_APP_BASE_API = 'https://gbyuyue.szgmbwg.org.cn' diff --git a/.env.production b/.env.production index 3605b1d..b6888c1 100644 --- a/.env.production +++ b/.env.production @@ -3,5 +3,5 @@ ENV = 'production' # base api -#VUE_APP_BASE_API = 'https://gb-test.ali251.langye.net' -VUE_APP_BASE_API = 'https://gbyuyue.szgmbwg.org.cn' +VUE_APP_BASE_API = 'https://gb-test.ali251.langye.net' +#VUE_APP_BASE_API = 'https://gbyuyue.szgmbwg.org.cn' diff --git a/src/api/book/index.js b/src/api/book/index.js new file mode 100644 index 0000000..6921611 --- /dev/null +++ b/src/api/book/index.js @@ -0,0 +1,34 @@ +import request from '@/utils/request' + +export function index(params) { + return request({ + url: '/api/admin/book/index', + method: 'get', + params: params + }) +} + +export function save(data) { + return request({ + url: '/api/admin/book/save', + method: 'post', + data + }) +} + +export function show(params) { + return request({ + url: '/api/admin/book/show', + method: 'get', + params + }) +} + +export function destroy(params) { + return request({ + url: '/api/admin/book/destroy', + method: 'get', + params + }) +} + diff --git a/src/views/book/component/addBook.vue b/src/views/book/component/addBook.vue new file mode 100644 index 0000000..3ebee89 --- /dev/null +++ b/src/views/book/component/addBook.vue @@ -0,0 +1,294 @@ + + + + + diff --git a/src/views/book/index.vue b/src/views/book/index.vue new file mode 100644 index 0000000..9c21e6b --- /dev/null +++ b/src/views/book/index.vue @@ -0,0 +1,123 @@ + + + + + diff --git a/src/views/relic/component/addRelic.vue b/src/views/relic/component/addRelic.vue index f7a3fe6..d76c9ff 100644 --- a/src/views/relic/component/addRelic.vue +++ b/src/views/relic/component/addRelic.vue @@ -11,30 +11,57 @@ - - - -