Commit cc30d5bc authored by Mac's avatar Mac

分类的第一批修改

parent 9ea600ad
...@@ -26,7 +26,12 @@ export default { ...@@ -26,7 +26,12 @@ export default {
}, },
methods: { methods: {
clickHandler(item) { clickHandler(item) {
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 }); uni.navigateTo({ url: '/pages/goods/list?CategoryIds='+item.Id });
}
}, },
}, },
}; };
......
...@@ -85,8 +85,13 @@ export default { ...@@ -85,8 +85,13 @@ export default {
let Id2=item.Id; let Id2=item.Id;
// let CategoryIds=Id1+','+Id2; // let CategoryIds=Id1+','+Id2;
let CategoryIds=Id2; let CategoryIds=Id2;
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 }); uni.navigateTo({ url: '/pages/goods/list?CategoryIds='+CategoryIds });
} }
}
}, },
}; };
</script> </script>
......
...@@ -17,7 +17,12 @@ export default { ...@@ -17,7 +17,12 @@ export default {
uni.navigateTo({url:e.mp.currentTarget.dataset.url}) uni.navigateTo({url:e.mp.currentTarget.dataset.url})
}, },
clickHandler(item) { clickHandler(item) {
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 }); uni.navigateTo({ url: '/pages/goods/list?CategoryIds='+item.Id });
}
}, },
}, },
}; };
......
...@@ -75,7 +75,13 @@ export default { ...@@ -75,7 +75,13 @@ export default {
let Id2=item.Id; let Id2=item.Id;
// let CategoryIds=Id1+','+Id2; // let CategoryIds=Id1+','+Id2;
let CategoryIds=Id2; let CategoryIds=Id2;
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 }); uni.navigateTo({ url: '/pages/goods/list?CategoryIds='+CategoryIds });
}
}, },
}, },
}; };
......
...@@ -75,7 +75,12 @@ export default { ...@@ -75,7 +75,12 @@ export default {
let Id2=item.Id; let Id2=item.Id;
// let CategoryIds=Id1+','+Id2; // let CategoryIds=Id1+','+Id2;
let CategoryIds=Id2; let CategoryIds=Id2;
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 }); uni.navigateTo({ url: '/pages/goods/list?CategoryIds='+CategoryIds });
}
}, },
}, },
}; };
......
...@@ -87,7 +87,13 @@ export default { ...@@ -87,7 +87,13 @@ export default {
let Id2=item.Id; let Id2=item.Id;
// let CategoryIds=Id1+','+Id2; // let CategoryIds=Id1+','+Id2;
let CategoryIds=Id2; let CategoryIds=Id2;
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 }); 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