diff --git a/common/js/request.js b/common/js/request.js
index 46e4193..4a28a3e 100644
--- a/common/js/request.js
+++ b/common/js/request.js
@@ -11,9 +11,9 @@ export default {
title: '加载中'
})
// request 触发前拼接 url
- args.url = 'https://www.opsoul.com:8881' + args.url;
+ // args.url = 'https://www.opsoul.com:8881' + args.url;
// args.url = 'http://192.168.2.60:80' + args.url;
- // args.url = 'http://127.0.0.1:80' + args.url;
+ args.url = 'http://127.0.0.1:80' + args.url;
if (args.data && Object.prototype && Object.prototype.toString.call(args.data) === '[object Object]') {
args.data.deptId = globalData.deptId;
args.data.from = globalData.from;
diff --git a/pages/index/home.vue b/pages/index/home.vue
index 8e98828..d4a1050 100644
--- a/pages/index/home.vue
+++ b/pages/index/home.vue
@@ -51,15 +51,23 @@
-
-
+
-
-
-
- {{item.goodsCategoryName}}
+
+ -->
+
+ {{item.simpleGoodsCategoryName}}
+
+
+
+ {{item.simpleGoodsCategoryName}}
@@ -78,7 +86,7 @@
-
+
@@ -113,7 +121,8 @@
tabCur: 0,
categories: [],
subCategories: [],
- hotCategory: [],
+ hotServCategory: [],
+ hotFittingsCategory: [],
discountGoods: {},
InputBottom: 0,
searchInfo: {},
@@ -140,11 +149,16 @@
// 加载区域信息
await this.loadRegionList();
await this.getCurAreaArr();
- // 加载热门类目
- let hotCategoryRes = await this.$request.getHotCategory({
+ // 加载服务商城热门类目
+ let hotServCategoryRes = await this.$request.getHotCategory({
type: 1
- });
- this.hotCategory = hotCategoryRes.data;
+ });
+ this.hotServCategory = hotServCategoryRes.data;
+ // 加载配件商城热门类目
+ let hotFittingsCategoryRes = await this.$request.getHotCategory({
+ type: 2
+ });
+ this.hotFittingsCategory = hotFittingsCategoryRes.data;
// 加载品类
this.loadCategoryList();
// 加载当前定位城市的服务列表