diff --git a/src/pages/msgCenter/assets/rang.png b/src/pages/msgCenter/assets/rang.png deleted file mode 100644 index f5428c2..0000000 Binary files a/src/pages/msgCenter/assets/rang.png and /dev/null differ diff --git a/src/pages/msgCenter/assets/warn.png b/src/pages/msgCenter/assets/warn.png deleted file mode 100644 index 4583b3b..0000000 Binary files a/src/pages/msgCenter/assets/warn.png and /dev/null differ diff --git a/src/pages/msgCenter/index.tsx b/src/pages/msgCenter/index.tsx deleted file mode 100644 index 461988e..0000000 --- a/src/pages/msgCenter/index.tsx +++ /dev/null @@ -1,99 +0,0 @@ -import { View,Image } from "@tarojs/components" -import { useState } from "react" -import warn from './assets/warn.png' -import rang from './assets/rang.png' -import './index.scss' -const MsgCenter = () => { - const [selectedMenuId, setSelectedMenuId] = useState('all') - let contList=[ - { - title:'土壤EC值预警', - time:'2024/3/13 16:30', - url:'./assets/rang.png', - message:'1号基地土壤EC值低于0.4阈值报警', - id:'1' - }, - { - title:'棚内温度报警', - url:'./assets/rang.png', - time:'2024/3/1 10:30', - message:'3号棚内温度39度,超过阈值37度,建议打开放风机', - id:'1' - }, - { - title:'系统通知', - url:'./assets/warn.png', - time:'2024/3/13 8:30', - message:'今日设备巡检结果尚未填报', - id:'0' - }, - { - title:'虫情预警', - url:'./assets/rang.png', - time:'2024/3/13 6:30', - message:'1号棚内虫害数量接近阈值预警', - id:'1' - }, - ] - const topMenus = [ - { - id: 'all', - title: '全部' - }, - { - id: '1', - title: '预警' - }, - { - id: '2', - title: '通知' - }, - ] - - const dataList = [ - { - id: '1', - }, - { - id: '2', - }, - ] - - return ( - - - { - topMenus.map(item => { - return ( - setSelectedMenuId(item.id)} - >{ item.title } - ) - }) - } - - - { - contList.map((item,index)=>{ - return ( - - - - - {item.title} - {item.time} - - {item.message} - - - ) - }) - } - - - ) -} - -export default MsgCenter; \ No newline at end of file