Commit cc30d5bc authored by Mac's avatar Mac

分类的第一批修改

parent 9ea600ad
......@@ -26,7 +26,12 @@ export default {
},
methods: {
clickHandler(item) {
uni.navigateTo({ url: '/pages/goods/list?CategoryIds='+item.Id });
let IsEducation = uni.getStorageSync('basedata') ? uni.getStorageSync('basedata').mall.setting.mallStyle.IsEducation :0;
if(IsEducation==1){
uni.navigateTo({ url: '/pages/school/courseList?CategoryIds='+item.Id });
}else{
uni.navigateTo({ url: '/pages/goods/list?CategoryIds='+item.Id });
}
},
},
};
......
......@@ -85,7 +85,12 @@ export default {
let Id2=item.Id;
// let CategoryIds=Id1+','+Id2;
let CategoryIds=Id2;
uni.navigateTo({ url: '/pages/goods/list?CategoryIds='+CategoryIds });
let IsEducation = uni.getStorageSync('basedata') ? uni.getStorageSync('basedata').mall.setting.mallStyle.IsEducation :0;
if(IsEducation==1){
uni.navigateTo({ url: '/pages/school/courseList?CategoryIds='+CategoryIds });
}else{
uni.navigateTo({ url: '/pages/goods/list?CategoryIds='+CategoryIds });
}
}
},
};
......
......@@ -17,7 +17,12 @@ export default {
uni.navigateTo({url:e.mp.currentTarget.dataset.url})
},
clickHandler(item) {
uni.navigateTo({ url: '/pages/goods/list?CategoryIds='+item.Id });
let IsEducation = uni.getStorageSync('basedata') ? uni.getStorageSync('basedata').mall.setting.mallStyle.IsEducation :0;
if(IsEducation==1){
uni.navigateTo({ url: '/pages/school/courseList?CategoryIds='+item.Id });
}else{
uni.navigateTo({ url: '/pages/goods/list?CategoryIds='+item.Id });
}
},
},
};
......
......@@ -75,7 +75,13 @@ export default {
let Id2=item.Id;
// let CategoryIds=Id1+','+Id2;
let CategoryIds=Id2;
uni.navigateTo({ url: '/pages/goods/list?CategoryIds='+CategoryIds });
let IsEducation = uni.getStorageSync('basedata') ? uni.getStorageSync('basedata').mall.setting.mallStyle.IsEducation :0;
if(IsEducation==1){
uni.navigateTo({ url: '/pages/school/courseList?CategoryIds='+CategoryIds });
}else{
uni.navigateTo({ url: '/pages/goods/list?CategoryIds='+CategoryIds });
}
},
},
};
......
......@@ -75,7 +75,12 @@ export default {
let Id2=item.Id;
// let CategoryIds=Id1+','+Id2;
let CategoryIds=Id2;
uni.navigateTo({ url: '/pages/goods/list?CategoryIds='+CategoryIds });
let IsEducation = uni.getStorageSync('basedata') ? uni.getStorageSync('basedata').mall.setting.mallStyle.IsEducation :0;
if(IsEducation==1){
uni.navigateTo({ url: '/pages/school/courseList?CategoryIds='+CategoryIds });
}else{
uni.navigateTo({ url: '/pages/goods/list?CategoryIds='+CategoryIds });
}
},
},
};
......
......@@ -87,7 +87,13 @@ export default {
let Id2=item.Id;
// let CategoryIds=Id1+','+Id2;
let CategoryIds=Id2;
uni.navigateTo({ url: '/pages/goods/list?CategoryIds='+CategoryIds });
let IsEducation = uni.getStorageSync('basedata') ? uni.getStorageSync('basedata').mall.setting.mallStyle.IsEducation :0;
if(IsEducation==1){
uni.navigateTo({ url: '/pages/school/courseList?CategoryIds='+CategoryIds });
}else{
uni.navigateTo({ url: '/pages/goods/list?CategoryIds='+CategoryIds });
}
},
},
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment