Browse Source

热门榜单修复子榜单无法显示全部

home_hotList^2
ld0104 2 years ago
parent
commit
e53f337133
  1. 8
      config/index.js
  2. 20
      pages/shop/HotNewGoods/index.vue

8
config/index.js

@ -1,8 +1,8 @@
// export const VUE_APP_API_URL = 'http://192.168.10.129:48080/bxgApp'
export const VUE_APP_API_URL = 'http://192.168.10.113:48080/bxgApp'
// export const VUE_APP_API_URL = 'https://farm.lotus-wallet.com/bxgApp'
// export const VUE_APP_API_URL = 'http://192.168.10.113:48080/bxgApp'
export const VUE_APP_API_URL = 'https://farm.lotus-wallet.com/bxgApp'
// export const VUE_APP_API_URL = 'https://xiaohui.shop.cyjyyjy.com/xiaohuiapp'
export const VUE_APP_RESOURCES_URL = 'https://h5.yixiang.co/static'
// export const BXG_TENANT_ID = 129
export const BXG_TENANT_ID = 138
export const BXG_TENANT_ID = 129
// export const BXG_TENANT_ID = 138
// export const BXG_TENANT_ID = 128

20
pages/shop/HotNewGoods/index.vue

@ -182,15 +182,25 @@ export default {
getHotListData().then(res => {
this.hotListData = res.data;
this.mouthList = res.data.mouthList;
this.mouthList.map(item=>{
this.hotListData.hotListDTOS=this.hotListData[item].hotListDTOS.forEach(res=>{
res.cateDtos.unshift({
cateId:'',
cateName:'全部',
})
})
return this.hotListData.hotListDTOS
})
this.form.mouth = this.mouthList[0];
this.classifyList = this.hotListData[this.form.mouth].hotListDTOS;
// this.form.hotListId = this.classifyList[this.classifyType].id;
this.form.hotListId = '';
this.subclassList = this.classifyList[this.classifyType].cateDtos;
this.subclassList.unshift({
cateId:'',
cateName:'全部',
})
// this.subclassList.unshift({
// cateId:'',
// cateName:'',
// })
this.subclass = this.subclassList[0];
// this.form.cateId = this.subclass.cateId;
this.form.cateId = ' ';
@ -199,7 +209,7 @@ export default {
},
//
bindPickerChange(e) {
if(e.detail.value!=0 && this.mouthIndex == e.detail.value) return;
if(this.mouthIndex == e.detail.value) return;
this.mouthIndex = e.detail.value;
this.subclassIndex=0
this.form.mouth = this.mouthList[this.mouthIndex];

Loading…
Cancel
Save