zhaojs
2023-06-25 afb7bcf6e31979be352bfcf14812d52339478cef
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// // #ifdef APP-PLUS
 
 
const nativeView = new plus.nativeObj.View("mineTab", { //创建底部图标菜单
    tag: "rect",
    bottom: "0px",
    left: "80%",
    height: "50px",
    width: "20%",
});
 
nativeView.addEventListener("click", function(e) {
    var info = uni.getStorageSync('userInfo')
    console.log(info);
    if (info.id) {
        uni.switchTab({
            url: '/pages/mine/mine',
            complete: (res) => {
                console.log(res);
            }
        })
    } else {
        uni.redirectTo({
            url: '/pages/login/wxlogin'
        })
    }
})
 
export default {
    nativeView
}
 
// // #endif