sj 2 years ago
parent
commit
fc2144b708
  1. 2
      yudao-server/src/main/resources/application-local.yaml
  2. 8
      zsw-bxg/src/main/java/co/yixiang/app/modules/product/rest/AppStoreProductController.java
  3. 8
      zsw-bxg/src/main/java/co/yixiang/app/modules/shop/rest/BxgIndexController.java

2
yudao-server/src/main/resources/application-local.yaml

@ -244,7 +244,7 @@ dubbo:
bxg:
shop:
# API_URL: http://192.168.10.113:48080/bxgApp
API_URL: https://63eb-27-19-79-42.jp.ngrok.io
API_URL: https://98f4-27-19-79-42.jp.ngrok.io
SITE_URL: http://192.168.10.113:48080/bxgApp
UNI_SITE_URL: http://192.168.10.113:48080/bxgApp
ADMIN_API_URL: http://192.168.10.113:48080/bxg

8
zsw-bxg/src/main/java/co/yixiang/app/modules/product/rest/AppStoreProductController.java

@ -92,16 +92,16 @@ public class AppStoreProductController {
Map<String,Object> map = new LinkedHashMap<>();
// 精品推荐
if(ProductEnum.TYPE_1.getValue().equals(type)){
map.put("list",storeProductService.getList(1,20,ProductEnum.TYPE_1.getValue()));
map.put("list",storeProductService.getList(1,30,ProductEnum.TYPE_1.getValue()));
// 热门榜单
}else if(type.equals(ProductEnum.TYPE_2.getValue())){
map.put("list",storeProductService.getList(1,20,ProductEnum.TYPE_2.getValue()));
map.put("list",storeProductService.getList(1,30,ProductEnum.TYPE_2.getValue()));
// 首发新品
}else if(type.equals(ProductEnum.TYPE_3.getValue())){
map.put("list",storeProductService.getList(1,20,ProductEnum.TYPE_3.getValue()));
map.put("list",storeProductService.getList(1,30,ProductEnum.TYPE_3.getValue()));
// 促销单品
}else if(type.equals(ProductEnum.TYPE_4.getValue())){
map.put("list",storeProductService.getList(1,20,ProductEnum.TYPE_4.getValue()));
map.put("list",storeProductService.getList(1,30,ProductEnum.TYPE_4.getValue()));
}
return ApiResult.ok(map);

8
zsw-bxg/src/main/java/co/yixiang/app/modules/shop/rest/BxgIndexController.java

@ -119,12 +119,12 @@ public class BxgIndexController {
.bargainList(yxStoreBargainService.getList(1,10))//砍价活动列表
.seckillConfigVo(yxStoreSeckillService.getStoreSeckil())//秒杀配置
.yxStoreSeckillQueryVoList(yxStoreSeckillService.getIndexList())//秒杀商品
.bastList(storeProductService.getList(1,6, ProductEnum.TYPE_1.getValue()))
.bastList(storeProductService.getList(1,10, ProductEnum.TYPE_1.getValue())) //精品推荐
.evaluationList(evaluationService.getList(1,5))
.benefit(storeProductService.getList(1,100,ProductEnum.TYPE_4.getValue()))
.benefit(storeProductService.getList(1,100,ProductEnum.TYPE_4.getValue())) //猜你喜欢
.combinationList(storeCombinationService.getList(1,8).getStoreCombinationQueryVos())
.firstList(storeProductService.getList(1,6,ProductEnum.TYPE_3.getValue()))
.likeInfo(storeProductService.getList(1,80,ProductEnum.TYPE_2.getValue()))
.firstList(storeProductService.getList(1,6,ProductEnum.TYPE_3.getValue())) //首发新品
.likeInfo(storeProductService.getList(1,80,ProductEnum.TYPE_2.getValue())) //热门榜单
.mapKey(systemConfigService.getData(ShopKeyUtils.getTengXunMapKey()))
//菜单
.menus(systemGroupDataService.getDatas(ShopConstants.ZSW_HOME_MENUS))

Loading…
Cancel
Save