|
@@ -17,7 +17,7 @@ Page({
|
|
data: {
|
|
data: {
|
|
navBarHeight: app.globalData.navBarHeight,
|
|
navBarHeight: app.globalData.navBarHeight,
|
|
background: ['demo-text-1', 'demo-text-2', 'demo-text-3'],
|
|
background: ['demo-text-1', 'demo-text-2', 'demo-text-3'],
|
|
- currentType: '1',
|
|
|
|
|
|
+ currentType: '2',
|
|
// 控制一级分类是否固定
|
|
// 控制一级分类是否固定
|
|
isFixed: false,
|
|
isFixed: false,
|
|
desktopTips: app.globalData.desktopTips,
|
|
desktopTips: app.globalData.desktopTips,
|
|
@@ -70,11 +70,11 @@ Page({
|
|
if (!this.data.userInfo.grade) {
|
|
if (!this.data.userInfo.grade) {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (this.data.currentType == '1') {
|
|
|
|
|
|
+ if (this.data.currentType == '2') {
|
|
this.getData(getHotrecommendList, {
|
|
this.getData(getHotrecommendList, {
|
|
grade: this.data.userInfo.grade
|
|
grade: this.data.userInfo.grade
|
|
})
|
|
})
|
|
- } else if (this.data.currentType == '2') {
|
|
|
|
|
|
+ } else if (this.data.currentType == '1') {
|
|
this.getData(getAuthorityList, {
|
|
this.getData(getAuthorityList, {
|
|
grade: this.data.userInfo.grade
|
|
grade: this.data.userInfo.grade
|
|
})
|
|
})
|