Commit 36e7fb20 authored by Mac's avatar Mac

修改

parent e74166bc
...@@ -26,7 +26,9 @@ export default { ...@@ -26,7 +26,9 @@ export default {
}, },
methods: { methods: {
clickHandler(item) { clickHandler(item) {
let IsEducation = uni.getStorageSync('basedata') ? uni.getStorageSync('basedata').mall.setting.mallStyle.IsEducation :0; let IsEducation = uni.getStorageSync('basedata')
? (uni.getStorageSync('basedata').mall.setting.mallStyle.IsEducation?uni.getStorageSync('basedata').mall.setting.mallStyle.IsEducation:0)
:0;
if(IsEducation==1){ if(IsEducation==1){
uni.navigateTo({ url: '/pages/school/courseList?CategoryIds='+item.Id }); uni.navigateTo({ url: '/pages/school/courseList?CategoryIds='+item.Id });
}else{ }else{
......
...@@ -85,7 +85,9 @@ export default { ...@@ -85,7 +85,9 @@ 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; let IsEducation = uni.getStorageSync('basedata')
? (uni.getStorageSync('basedata').mall.setting.mallStyle.IsEducation?uni.getStorageSync('basedata').mall.setting.mallStyle.IsEducation:0)
:0;
if(IsEducation==1){ if(IsEducation==1){
uni.navigateTo({ url: '/pages/school/courseList?CategoryIds='+CategoryIds }); uni.navigateTo({ url: '/pages/school/courseList?CategoryIds='+CategoryIds });
}else{ }else{
......
...@@ -17,7 +17,9 @@ export default { ...@@ -17,7 +17,9 @@ 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; let IsEducation = uni.getStorageSync('basedata')
? (uni.getStorageSync('basedata').mall.setting.mallStyle.IsEducation?uni.getStorageSync('basedata').mall.setting.mallStyle.IsEducation:0)
:0;
if(IsEducation==1){ if(IsEducation==1){
uni.navigateTo({ url: '/pages/school/courseList?CategoryIds='+item.Id }); uni.navigateTo({ url: '/pages/school/courseList?CategoryIds='+item.Id });
}else{ }else{
......
...@@ -75,7 +75,9 @@ export default { ...@@ -75,7 +75,9 @@ 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; let IsEducation = uni.getStorageSync('basedata')
? (uni.getStorageSync('basedata').mall.setting.mallStyle.IsEducation?uni.getStorageSync('basedata').mall.setting.mallStyle.IsEducation:0)
:0;
if(IsEducation==1){ if(IsEducation==1){
uni.navigateTo({ url: '/pages/school/courseList?CategoryIds='+CategoryIds }); uni.navigateTo({ url: '/pages/school/courseList?CategoryIds='+CategoryIds });
}else{ }else{
......
...@@ -75,7 +75,9 @@ export default { ...@@ -75,7 +75,9 @@ 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; let IsEducation = uni.getStorageSync('basedata')
? (uni.getStorageSync('basedata').mall.setting.mallStyle.IsEducation?uni.getStorageSync('basedata').mall.setting.mallStyle.IsEducation:0)
:0;
if(IsEducation==1){ if(IsEducation==1){
uni.navigateTo({ url: '/pages/school/courseList?CategoryIds='+CategoryIds }); uni.navigateTo({ url: '/pages/school/courseList?CategoryIds='+CategoryIds });
}else{ }else{
......
...@@ -88,7 +88,9 @@ export default { ...@@ -88,7 +88,9 @@ export default {
// 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; let IsEducation = uni.getStorageSync('basedata')
? (uni.getStorageSync('basedata').mall.setting.mallStyle.IsEducation?uni.getStorageSync('basedata').mall.setting.mallStyle.IsEducation:0)
:0;
if(IsEducation==1){ if(IsEducation==1){
uni.navigateTo({ url: '/pages/school/courseList?CategoryIds='+CategoryIds }); uni.navigateTo({ url: '/pages/school/courseList?CategoryIds='+CategoryIds });
}else{ }else{
......
...@@ -206,7 +206,9 @@ export default { ...@@ -206,7 +206,9 @@ export default {
this.secondary = this.$uiConfig.secondary; this.secondary = this.$uiConfig.secondary;
this.pricecolor = this.$uiConfig.pricecolor; this.pricecolor = this.$uiConfig.pricecolor;
this.cstyle = uni.getStorageSync('basedata') ? uni.getStorageSync('basedata').cat_style : []; this.cstyle = uni.getStorageSync('basedata') ? uni.getStorageSync('basedata').cat_style : [];
this.IsEducation = uni.getStorageSync('basedata') ? uni.getStorageSync('basedata').mall.setting.mallStyle.IsEducation :0; this.IsEducation = uni.getStorageSync('basedata')
? (uni.getStorageSync('basedata').mall.setting.mallStyle.IsEducation?uni.getStorageSync('basedata').mall.setting.mallStyle.IsEducation:0)
:0;
let windowWidth = this.$utils.SystemInfo().windowWidth; let windowWidth = this.$utils.SystemInfo().windowWidth;
this.item_r = (windowWidth - 5-40-116-15-10)+'px' this.item_r = (windowWidth - 5-40-116-15-10)+'px'
if (this.cstyle.cat_style == '4') { if (this.cstyle.cat_style == '4') {
......
...@@ -244,7 +244,9 @@ export default { ...@@ -244,7 +244,9 @@ export default {
created() { created() {
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
this.secondary = this.$uiConfig.secondary; this.secondary = this.$uiConfig.secondary;
this.IsEducation = uni.getStorageSync('basedata') ? uni.getStorageSync('basedata').mall.setting.mallStyle.IsEducation :0; this.IsEducation = uni.getStorageSync('basedata')
? (uni.getStorageSync('basedata').mall.setting.mallStyle.IsEducation?uni.getStorageSync('basedata').mall.setting.mallStyle.IsEducation:0)
:0;
this.userinfo(); this.userinfo();
}, },
onLoad() { onLoad() {
......
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