-
+
扫小程序下单
diff --git a/src/pages/index/list/index copy.vue b/src/pages/shop/list/index.vue
similarity index 99%
rename from src/pages/index/list/index copy.vue
rename to src/pages/shop/list/index.vue
index 84902a7..b72f394 100644
--- a/src/pages/index/list/index copy.vue
+++ b/src/pages/shop/list/index.vue
@@ -363,6 +363,7 @@ export default {
}
}).catch(err => { })
},
+
// 获取列表
getData () {
this.loadIns = Loading.service()
@@ -505,7 +506,7 @@ export default {
},
// 跳转详情
toDetail (id) {
- this.$router.push(`/index/show?id=${id}`);
+ this.$router.push(`/shop/show?id=${id}`);
}
}
};
diff --git a/src/pages/index/show/index copy.vue b/src/pages/shop/show/index.vue
similarity index 100%
rename from src/pages/index/show/index copy.vue
rename to src/pages/shop/show/index.vue
diff --git a/src/router/modules/index.js b/src/router/modules/index.js
index b557562..c9d0066 100644
--- a/src/router/modules/index.js
+++ b/src/router/modules/index.js
@@ -2,8 +2,6 @@ import BasicLayout from "@/layouts/home";
const meta = {};
-const pre = "index-";
-
export default {
path: "/index",
name: "index",
diff --git a/src/router/modules/shop.js b/src/router/modules/shop.js
new file mode 100644
index 0000000..6c7f746
--- /dev/null
+++ b/src/router/modules/shop.js
@@ -0,0 +1,26 @@
+import BasicLayout from "@/layouts/home";
+
+const meta = {};
+
+export default {
+ path: "/shop",
+ name: "shop",
+ redirect: {
+ name: `shop`
+ },
+ meta,
+ component: BasicLayout,
+ children: [
+ {
+ name: 'shop',
+ path: `/shop`,
+ component: () => import("@/pages/shop/list"),
+ meta: { title: "职站商城" }
+ },
+ {
+ path: `show`,
+ component: () => import("@/pages/shop/show"),
+ meta: { title: "产品详情" }
+ },
+ ]
+};
\ No newline at end of file
diff --git a/src/setting.js b/src/setting.js
index 38c8386..0fd9005 100644
--- a/src/setting.js
+++ b/src/setting.js
@@ -7,7 +7,7 @@ const isGta = url.includes('139.159.254.212'); // 国泰安
let host = `${location.origin}/`
if (isDev) {
host = 'http://192.168.31.217:10000/'
- host = 'https://huorantech.com'
+ // host = 'https://huorantech.com'
// host = 'http://139.159.254.212/'
}
@@ -18,7 +18,7 @@ const Setting = {
titleSuffix: '深圳或然科技官网', // 网页标题的后缀
routerMode: "hash", // 路由模式,可选值为 history 或 hash
apiBaseURL: host, // 接口请求地址
- huoranApi: `http://121.37.12.51`,
+ huoranApi: `https://occupationlab.com`,
autoLogoutTime: 3600000, // 长时间未操作,自动退出登录时间
modalDuration: 3, // 接口请求返回错误时,弹窗的持续时间,单位:秒
errorModalType: "Message", // 接口请求返回错误时,弹窗的类型,可选值为 Message 或 Notice