优化
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import _console from "../TUIKit/utils/console"
|
||||
|
||||
// custom-tab-bar/index.js
|
||||
const app = getApp()
|
||||
Component({
|
||||
@@ -62,17 +60,16 @@ Component({
|
||||
info_inter: 0
|
||||
},
|
||||
ready() {
|
||||
console.log("readyreadyreadyreadyreadyready")
|
||||
const usertype = wx.getStorageSync('usertype')
|
||||
if (usertype == 2) {
|
||||
if (usertype == 3) {
|
||||
this.setData({
|
||||
usertype: usertype,
|
||||
items: this.data.listAll.list2
|
||||
items: this.data.listAll.list1
|
||||
})
|
||||
}else{
|
||||
this.setData({
|
||||
usertype: usertype,
|
||||
items: this.data.listAll.list1
|
||||
items: this.data.listAll.list2
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user