feat: 登录权限
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
||||
Row,
|
||||
Tabbar,
|
||||
TabbarItem,
|
||||
Toast,
|
||||
} from "@antmjs/vantui";
|
||||
import { OpenData, View } from "@tarojs/components";
|
||||
import react, { useEffect, useState } from "react";
|
||||
@@ -201,12 +202,24 @@ const my = (props: any) => {
|
||||
</View> */}
|
||||
|
||||
<View className="cellArr">
|
||||
<Cell icon="manager" title="打卡记录" isLink onClick={()=>{
|
||||
// 跳转到目的页面,打开新页面
|
||||
Taro.navigateTo({
|
||||
url: "/pages/my/components/CheckinDetail/index",
|
||||
});
|
||||
}}/>
|
||||
<Cell
|
||||
icon="manager"
|
||||
title="打卡记录"
|
||||
isLink
|
||||
onClick={() => {
|
||||
if (isin) {
|
||||
// 跳转到目的页面,打开新页面
|
||||
Taro.navigateTo({
|
||||
url: "/pages/my/components/CheckinDetail/index",
|
||||
});
|
||||
}else{
|
||||
Toast.fail({
|
||||
message: '请先登录',
|
||||
selector: '#vanToast-demo2',
|
||||
})
|
||||
}
|
||||
}}
|
||||
/>
|
||||
{/* <Cell icon="manager" title="个人资料" isLink /> */}
|
||||
|
||||
<Cell
|
||||
@@ -248,6 +261,8 @@ const my = (props: any) => {
|
||||
/> */}
|
||||
</View>
|
||||
|
||||
<Toast id="vanToast-demo2" />
|
||||
|
||||
{/* tabbar */}
|
||||
<TabbarCom active={2} />
|
||||
</View>
|
||||
|
||||
Reference in New Issue
Block a user