From 7946c1055ed0cbefaef517c1f6d25cf31319ae4d Mon Sep 17 00:00:00 2001 From: huangzhen <1511700369@qq.com> Date: Fri, 30 Aug 2024 09:54:51 +0800 Subject: [PATCH] =?UTF-8?q?update=20@=E5=85=B3=E9=97=AD=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=A0=A1=E9=AA=8C=E3=80=81=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E8=BD=AE=E6=92=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.ts | 7 ++- src/views/pages/comProduct/index.vue | 3 -- src/views/templates/cmsList/index.scss | 39 +++++++++++++-- src/views/templates/cmsList/index.vue | 66 ++++++++++++++------------ 4 files changed, 77 insertions(+), 38 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 5aea280..926aecc 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -28,17 +28,19 @@ const routeTemplate = [ component: () => import('@/views/templates/cmsList/index.vue') }, { - // 商品详情模版 + // 商品详情模版-直充 path: '/cmsDetail', name: 'cmsDetail', component: () => import('@/views/templates/cmsDetail/index.vue') }, { + // 商品详情模版-红包 path: '/cmsCash', name: 'cmsCash', component: () => import('@/views/templates/cmsCash/index.vue') }, { + // 商品详情模版-立减金 path: '/cmsVoucher', name: 'cmsVoucher', component: () => import('@/views/templates/cmsVoucher/index.vue') @@ -67,7 +69,8 @@ router.beforeEach(async (to, from, next) => { // console.log('---proTransfer-router.beforeEach---', to, from); try { const key = to.query.key || 'rPBVzOCs0FN4P7jNMqHo5IVfb0oaAyigbfNBmCKnavs='; - const res = await LOGIN({ key: key }); // 请求 token + // const res = await LOGIN({ key: key }); // 请求 token + const res = { data: { Token: '' }, code: 200, message: '' }; // 请求 token if (res && res.code === 200) { res.data.Token = "admingL_q2QjDlD_MdeU11q5ILoeLFEqhbGBtcEptfs-OHzI53vbrgX9GFCh-SB4fSJBGwgSTl.uDPUoyiPjJ2O6e7zUBzExUUXhsdnPxtyLwncYc8.vy9ikZRp-wUba2POZJlTERJxnLbK6DzpQFQTxuYfcNM_yl3Avo7hgCjkS-ot5QgzNiO5TE"; diff --git a/src/views/pages/comProduct/index.vue b/src/views/pages/comProduct/index.vue index e008819..2269955 100644 --- a/src/views/pages/comProduct/index.vue +++ b/src/views/pages/comProduct/index.vue @@ -189,9 +189,6 @@ export default {