diff --git a/src/api/maku/t_book.ts b/src/api/maku/t_book.ts index 530d647..f856da0 100644 --- a/src/api/maku/t_book.ts +++ b/src/api/maku/t_book.ts @@ -10,4 +10,4 @@ export const useT_bookSubmitApi = (dataForm: any) => { } else { return service.post('/maku/t_book', dataForm) } -} \ No newline at end of file +} diff --git a/src/api/maku/t_book_collection.ts b/src/api/maku/t_book_collection.ts index 14291b5..8780307 100644 --- a/src/api/maku/t_book_collection.ts +++ b/src/api/maku/t_book_collection.ts @@ -10,4 +10,4 @@ export const useT_book_collectionSubmitApi = (dataForm: any) => { } else { return service.post('/maku/t_book_collection', dataForm) } -} \ No newline at end of file +} diff --git a/src/api/maku/t_book_comment.ts b/src/api/maku/t_book_comment.ts index 84423ca..514e9c7 100644 --- a/src/api/maku/t_book_comment.ts +++ b/src/api/maku/t_book_comment.ts @@ -10,4 +10,4 @@ export const useT_book_commentSubmitApi = (dataForm: any) => { } else { return service.post('/maku/t_book_comment', dataForm) } -} \ No newline at end of file +} diff --git a/src/api/maku/t_purchase.ts b/src/api/maku/t_purchase.ts index 517026f..8b7537a 100644 --- a/src/api/maku/t_purchase.ts +++ b/src/api/maku/t_purchase.ts @@ -10,4 +10,4 @@ export const useT_purchaseSubmitApi = (dataForm: any) => { } else { return service.post('/maku/t_purchase', dataForm) } -} \ No newline at end of file +} diff --git a/src/api/maku/t_purchase_details.ts b/src/api/maku/t_purchase_details.ts index 0dcc45f..3bed019 100644 --- a/src/api/maku/t_purchase_details.ts +++ b/src/api/maku/t_purchase_details.ts @@ -10,4 +10,4 @@ export const useT_purchase_detailsSubmitApi = (dataForm: any) => { } else { return service.post('/maku/t_purchase_details', dataForm) } -} \ No newline at end of file +} diff --git a/src/api/maku/t_shopping_trolley.ts b/src/api/maku/t_shopping_trolley.ts index e875d78..3480587 100644 --- a/src/api/maku/t_shopping_trolley.ts +++ b/src/api/maku/t_shopping_trolley.ts @@ -10,4 +10,4 @@ export const useT_shopping_trolleySubmitApi = (dataForm: any) => { } else { return service.post('/maku/t_shopping_trolley', dataForm) } -} \ No newline at end of file +} diff --git a/src/api/maku/t_user.ts b/src/api/maku/t_user.ts index 5eac353..e79a710 100644 --- a/src/api/maku/t_user.ts +++ b/src/api/maku/t_user.ts @@ -10,4 +10,4 @@ export const useT_userSubmitApi = (dataForm: any) => { } else { return service.post('/maku/t_user', dataForm) } -} \ No newline at end of file +} diff --git a/src/icons/iconfont/iconfont.js b/src/icons/iconfont/iconfont.js index b1a2547..f729f69 100644 --- a/src/icons/iconfont/iconfont.js +++ b/src/icons/iconfont/iconfont.js @@ -1 +1,66 @@ -window._iconfont_svg_string_3192136='',function(l){var c=(c=document.getElementsByTagName("script"))[c.length-1],h=c.getAttribute("data-injectcss"),c=c.getAttribute("data-disable-injectsvg");if(!c){var v,o,a,i,t,z=function(c,h){h.parentNode.insertBefore(c,h)};if(h&&!l.__iconfont__svg__cssinject__){l.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(c){console&&console.log(c)}}v=function(){var c,h=document.createElement("div");h.innerHTML=l._iconfont_svg_string_3192136,(h=h.getElementsByTagName("svg")[0])&&(h.setAttribute("aria-hidden","true"),h.style.position="absolute",h.style.width=0,h.style.height=0,h.style.overflow="hidden",h=h,(c=document.body).firstChild?z(h,c.firstChild):c.appendChild(h))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(v,0):(o=function(){document.removeEventListener("DOMContentLoaded",o,!1),v()},document.addEventListener("DOMContentLoaded",o,!1)):document.attachEvent&&(a=v,i=l.document,t=!1,p(),i.onreadystatechange=function(){"complete"==i.readyState&&(i.onreadystatechange=null,s())})}function s(){t||(t=!0,a())}function p(){try{i.documentElement.doScroll("left")}catch(c){return void setTimeout(p,50)}s()}}(window); \ No newline at end of file +;(window._iconfont_svg_string_3192136 = + ''), + (function (l) { + var c = (c = document.getElementsByTagName('script'))[c.length - 1], + h = c.getAttribute('data-injectcss'), + c = c.getAttribute('data-disable-injectsvg') + if (!c) { + var v, + o, + a, + i, + t, + z = function (c, h) { + h.parentNode.insertBefore(c, h) + } + if (h && !l.__iconfont__svg__cssinject__) { + l.__iconfont__svg__cssinject__ = !0 + try { + document.write( + '' + ) + } catch (c) { + console && console.log(c) + } + } + ;(v = function () { + var c, + h = document.createElement('div') + ;(h.innerHTML = l._iconfont_svg_string_3192136), + (h = h.getElementsByTagName('svg')[0]) && + (h.setAttribute('aria-hidden', 'true'), + (h.style.position = 'absolute'), + (h.style.width = 0), + (h.style.height = 0), + (h.style.overflow = 'hidden'), + (h = h), + (c = document.body).firstChild ? z(h, c.firstChild) : c.appendChild(h)) + }), + document.addEventListener + ? ~['complete', 'loaded', 'interactive'].indexOf(document.readyState) + ? setTimeout(v, 0) + : ((o = function () { + document.removeEventListener('DOMContentLoaded', o, !1), v() + }), + document.addEventListener('DOMContentLoaded', o, !1)) + : document.attachEvent && + ((a = v), + (i = l.document), + (t = !1), + p(), + (i.onreadystatechange = function () { + 'complete' == i.readyState && ((i.onreadystatechange = null), s()) + })) + } + function s() { + t || ((t = !0), a()) + } + function p() { + try { + i.documentElement.doScroll('left') + } catch (c) { + return void setTimeout(p, 50) + } + s() + } + })(window) diff --git a/src/router/index.ts b/src/router/index.ts index 4c755b7..93306f2 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -56,12 +56,20 @@ const constantRoutes: RouteRecordRaw[] = [ { path: '/book/my', component: () => import('../views/book/component/my.vue') + }, + { + path: '/book/details', + component: () => import('../views/book/component/details.vue') } ] }, { path: '/book/login', component: () => import('../views/book/login.vue') + }, + { + path: '/book/personal', + component: () => import('../views/user/index.vue') } ] @@ -197,7 +205,17 @@ export const router = createRouter({ }) // 白名单列表 -const whiteList = ['/login', '/book/index', '/book/login', '/book/home', '/book/collection', '/book/trolley', '/book/my'] +const whiteList = [ + '/login', + '/book/index', + '/book/login', + '/book/home', + '/book/collection', + '/book/trolley', + '/book/my', + '/book/personal', + '/book/details' +] // 路由跳转前 router.beforeEach(async (to, from, next) => { diff --git a/src/views/book/component/details.vue b/src/views/book/component/details.vue new file mode 100644 index 0000000..20597cc --- /dev/null +++ b/src/views/book/component/details.vue @@ -0,0 +1,184 @@ + + + + + diff --git a/src/views/book/component/my.vue b/src/views/book/component/my.vue index c05ed82..a23b702 100644 --- a/src/views/book/component/my.vue +++ b/src/views/book/component/my.vue @@ -1,5 +1,91 @@ - + + + + + diff --git a/src/views/book/component/trolley.vue b/src/views/book/component/trolley.vue index c05ed82..f1095f4 100644 --- a/src/views/book/component/trolley.vue +++ b/src/views/book/component/trolley.vue @@ -1,5 +1,128 @@ - + + + + + diff --git a/src/views/book/index.vue b/src/views/book/index.vue index 88ba5c2..f33f263 100644 --- a/src/views/book/index.vue +++ b/src/views/book/index.vue @@ -44,6 +44,7 @@ const changeRouters = () => { +
@@ -54,6 +55,7 @@ const changeRouters = () => { border-bottom: 1px solid #eee; width: 100%; height: 35px; + position: fixed; top: 0; left: 0; z-index: 10000; diff --git a/src/views/maku/t_book/add-or-update.vue b/src/views/maku/t_book/add-or-update.vue index 660777f..74d30bc 100644 --- a/src/views/maku/t_book/add-or-update.vue +++ b/src/views/maku/t_book/add-or-update.vue @@ -1,33 +1,36 @@