feat: 登录权限

This commit is contained in:
eric
2022-11-22 22:44:53 +08:00
parent c49a736cfa
commit 6b3d439bdd
3 changed files with 24 additions and 7 deletions

View File

@@ -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>