Pārlūkot izejas kodu

商城改版修改

sunlupeng 1 gadu atpakaļ
vecāks
revīzija
74c1b6ece4

+ 1 - 1
src/permission.js

@@ -4,7 +4,7 @@ import { getToken, setToken } from '@/utils/auth' // getToken from cookie
 import { lockStatus,unlock } from "@/api/allApi";
 //路由跳转之前
 router.beforeEach((to, _from, next) => {
-  setToken('443e058a3b707b46d08dd5aa716ba1c1');
+  setToken('444a49a3b1d19fc2ba71d3fdee84d055');
   const path = to.path;
   const Authorization = to.query.Authorization
   if (path.indexOf('auth') != -1 && Authorization) { 

+ 8 - 4
src/router/index.js

@@ -58,10 +58,10 @@ const routes = [
         path: '/home/pointsMall/redeem',
         component: () => import('@/views/HomeView/RedeemView.vue')
       },
-      {
-        path: '/home/myCenter/goodsDetail',
-        component: () => import('@/views/HomeView/GoodsDetail.vue')
-      },
+      // {
+      //   path: '/home/myCenter/goodsDetail',
+      //   component: () => import('@/views/HomeView/GoodsDetail.vue')
+      // },
       {
         path: '/home/pointsMall/goodDetail',
         component: () => import('@/views/HomeView/GoodDetail.vue')
@@ -131,6 +131,10 @@ const routes = [
       index: 3
     }
   },
+  {
+    path: '/myCenter/goodsDetail',
+    component: () => import('@/views/HomeView/GoodsDetail.vue')
+  },
   {
     path: '/ipay',
     component: () => import('../views/Ipay.vue'),

+ 1 - 1
src/utils/request.js

@@ -6,7 +6,7 @@ let prodBaseURL = 'https://xiaoyou.dgtis.com/admin';//正式地址
 
 // let prodBaseURL = 'https://malltest.dgtis.com/admin';//阿里云地址
 
-let devBaseURL = 'https://malltest.dgtis.com/admin';//测试地址
+let devBaseURL = 'https://xiaoyou.dgtis.com/admin';//测试地址
 
 // create an axios instance
 const service = axios.create({

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 135 - 19
src/views/HomeView/GoodsDetail.vue


+ 1 - 1
src/views/HomeView/MyCenter.vue

@@ -468,7 +468,7 @@ export default {
         },
         handleClickGoods(orderId) {
             this.$router.push({
-                path: '/home/myCenter/goodsDetail',
+                path: '/myCenter/goodsDetail',
                 query: {
                     orderId: orderId,
                 }