Commit 36e7fb20 authored by Mac's avatar Mac

修改

parent e74166bc
......@@ -26,7 +26,9 @@ export default {
},
methods: {
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){
uni.navigateTo({ url: '/pages/school/courseList?CategoryIds='+item.Id });
}else{
......
......@@ -85,7 +85,9 @@ export default {
let Id2=item.Id;
// let CategoryIds=Id1+','+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){
uni.navigateTo({ url: '/pages/school/courseList?CategoryIds='+CategoryIds });
}else{
......
......@@ -17,7 +17,9 @@ export default {
uni.navigateTo({url:e.mp.currentTarget.dataset.url})
},
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){
uni.navigateTo({ url: '/pages/school/courseList?CategoryIds='+item.Id });
}else{
......
......@@ -75,7 +75,9 @@ export default {
let Id2=item.Id;
// let CategoryIds=Id1+','+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){
uni.navigateTo({ url: '/pages/school/courseList?CategoryIds='+CategoryIds });
}else{
......
......@@ -75,7 +75,9 @@ export default {
let Id2=item.Id;
// let CategoryIds=Id1+','+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){
uni.navigateTo({ url: '/pages/school/courseList?CategoryIds='+CategoryIds });
}else{
......
......@@ -88,7 +88,9 @@ export default {
// let CategoryIds=Id1+','+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){
uni.navigateTo({ url: '/pages/school/courseList?CategoryIds='+CategoryIds });
}else{
......
......@@ -206,7 +206,9 @@ export default {
this.secondary = this.$uiConfig.secondary;
this.pricecolor = this.$uiConfig.pricecolor;
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;
this.item_r = (windowWidth - 5-40-116-15-10)+'px'
if (this.cstyle.cat_style == '4') {
......
......@@ -244,7 +244,9 @@ export default {
created() {
this.mainColor = this.$uiConfig.mainColor;
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();
},
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