From 31e5ed309c5456580d53cf2fccca02a3b99133b2 Mon Sep 17 00:00:00 2001 From: Zxuyoubin Date: Mon, 18 Mar 2024 17:29:36 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat=EF=BC=9A=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E4=B8=AD=E5=BF=83=E7=A0=94=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project.config.json | 83 +++++++++++++++--------- project.private.config.json | 24 +++++-- src/pages/msgCenter/assets/rang.png | Bin 0 -> 1013 bytes src/pages/msgCenter/assets/warn.png | Bin 0 -> 728 bytes src/pages/msgCenter/index.tsx | 96 +++++++++++++++++++++++++++- 5 files changed, 166 insertions(+), 37 deletions(-) create mode 100644 src/pages/msgCenter/assets/rang.png create mode 100644 src/pages/msgCenter/assets/warn.png diff --git a/project.config.json b/project.config.json index 3d09de5..26de120 100644 --- a/project.config.json +++ b/project.config.json @@ -1,31 +1,56 @@ { - "miniprogramRoot": "dist/", - "projectname": "taro-react-tailwind-vscode-template", - "description": "", - "appid": "touristappid", - "setting": { - "urlCheck": true, - "es6": false, - "enhance": false, - "compileHotReLoad": false, - "postcss": false, - "minified": false, - "babelSetting": { - "ignore": [], - "disablePlugins": [], - "outputPath": "" - } - }, - "compileType": "miniprogram", - "libVersion": "2.30.3", - "srcMiniprogramRoot": "dist/", - "packOptions": { - "ignore": [], - "include": [] - }, - "condition": {}, - "editorSetting": { - "tabIndent": "insertSpaces", - "tabSize": 2 - } + "miniprogramRoot": "dist/", + "projectname": "taro-react-tailwind-vscode-template", + "description": "", + "appid": "wxc422ab9e3d9174d8", + "setting": { + "urlCheck": true, + "es6": false, + "enhance": false, + "postcss": false, + "preloadBackgroundData": false, + "minified": false, + "newFeature": false, + "coverView": true, + "nodeModules": false, + "autoAudits": false, + "showShadowRootInWxmlPanel": true, + "scopeDataCheck": false, + "uglifyFileName": false, + "checkInvalidKey": true, + "checkSiteMap": true, + "uploadWithSourceMap": true, + "compileHotReLoad": false, + "lazyloadPlaceholderEnable": false, + "useMultiFrameRuntime": true, + "useApiHook": true, + "useApiHostProcess": true, + "babelSetting": { + "ignore": [], + "disablePlugins": [], + "outputPath": "" + }, + "useIsolateContext": true, + "userConfirmedBundleSwitch": false, + "packNpmManually": false, + "packNpmRelationList": [], + "minifyWXSS": true, + "disableUseStrict": false, + "minifyWXML": true, + "showES6CompileOption": false, + "useCompilerPlugins": false, + "ignoreUploadUnusedFiles": true + }, + "compileType": "miniprogram", + "libVersion": "2.30.3", + "srcMiniprogramRoot": "dist/", + "packOptions": { + "ignore": [], + "include": [] + }, + "editorSetting": { + "tabIndent": "insertSpaces", + "tabSize": 2 + }, + "condition": {} } \ No newline at end of file diff --git a/project.private.config.json b/project.private.config.json index 5000437..359a352 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -1,7 +1,21 @@ { - "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", - "projectname": "taro-react-tailwind-vscode-template", - "setting": { - "compileHotReLoad": false - } + "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", + "projectname": "taro-react-tailwind-vscode-template", + "setting": { + "compileHotReLoad": false + }, + "condition": { + "plugin": { + "list": [] + }, + "game": { + "list": [] + }, + "gamePlugin": { + "list": [] + }, + "miniprogram": { + "list": [] + } + } } \ No newline at end of file diff --git a/src/pages/msgCenter/assets/rang.png b/src/pages/msgCenter/assets/rang.png new file mode 100644 index 0000000000000000000000000000000000000000..f5428c2941949db05b644c6546a50d44c9de0fec GIT binary patch literal 1013 zcmVPx#1am@3R0s$N2z&@+hyVZspGibPR9J=G**%C{RTKyC-SlLwbt8ckD+mz- z78as~Xkj6!ELub?#7Yz_gw(OnfLQo}*a#LP=`1YNN(GA)V(bJ7!WKdb(dbGxv(cH& z&a=4pWj^-3nfKn#%(DLB!p!}6=l{+*_q=n@P3!?F4IGZ`5axuwMx4@(Z3o-vpp%5Y zT1aY;Od`Q~9I5e)6m4t? z#Ib}^Zo{IUUrq~MY$jYEHK~wr^wkBy1!jpBt`+%qF5yUaQP^1ffh|GXyGR$AdBOgX z6=g5v4eTNueRkGvkcXp@%K!!l$7rxPGfLyJ7&+a)?&*MwHT~Q9fpA&i-&XSiZ z_zqX_hM?^X*YO#C9-9BEpyBgX*+y=MiLBG$cem7d&}qDb=kWcAd2{$dc!?Kl$bo+o zHjbMbj!;L(y~;ZTwWe`}7N+QYJ7zEvTt<>ee# zgxvOc&e&OeBD~~g1-Wpe|NK=JnXkR3I6-<-@dx5eTvwGWH0lr*1+Ep0T@d`c$ZE@Y ztcFY?;W{`a|1-WLnEdWB>mRNuS3|uc_i91^M_3o!;c{$w;p$ionb56EI1iWcZv1^7 z55<-jf6K)EJan6a8LLEzBK)Z5*B6D4%#-T-YaVu*LTz9Y$M6HMU z5kg@R{?00#1E-9XI~0ew2XN0s=nbNcuM}&zo$y!oXP9skcba~svMjpzv%d^GKr9Z_ zN&BXS&EcByE=|VzY-?teiqXoe6&IQQnixj*30slFF8n_V+Wj~%R|fq!P?s|OI55{< j{Wwq;i#d{Kes%jF-b2(eU4?#X00000NkvXXu0mjfGK1v) literal 0 HcmV?d00001 diff --git a/src/pages/msgCenter/assets/warn.png b/src/pages/msgCenter/assets/warn.png new file mode 100644 index 0000000000000000000000000000000000000000..4583b3bfc9d83f8a1b368c7cb62388e7d9ddf5a6 GIT binary patch literal 728 zcmV;}0w?{6P)Px#1am@3R0s$N2z&@+hyVZrf=NU{R7i>KmAz|IQ5c7xb8@Rmxz-4!Wato~gM&kd zcC&C&5g1mz7Dy! zrb%r+2;$IZI=t`ioZtC=;hg`4(t^2Gd1r<@?Wemjt1M2=SX!^CK3(XvuhofI9Aj0g z`WeCl08!Yd>GldH-5225Q|?Yy8Mlb=6d;Da7iqhC7LBNk z>m{t}ghE^eNi026O9XQO0;Z>ip{Wn@I5e0BNLYNO7D$U@tezSIBy#Rb*i0QyLQw?p zJcfI2D2|CY2T#6)o*Et;)y_)6dffz)0P#56JvH2QjICp_SpX5<0C+xQ;RH5oXWZdm zdKR`H`vfwIV%xWZCjf%JL(S2RbjK^yDp&`+ZVeR@SFq_ { + 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 ( - MsgCenter + + + { + topMenus.map(item => { + return ( + setSelectedMenuId(item.id)} + >{ item.title } + ) + }) + } + + + { + contList.map((item,index)=>{ + return ( + + + + + {item.title} + {item.time} + + {item.message} + + + ) + }) + } + + ) } From bed5d8e7d6f8cb95e91f670b16b1c58214aa200f Mon Sep 17 00:00:00 2001 From: Zxuyoubin Date: Mon, 18 Mar 2024 17:34:27 +0800 Subject: [PATCH 2/3] =?UTF-8?q?feat=EF=BC=9ABug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/msgCenter/assets/rang.png | Bin 1013 -> 0 bytes src/pages/msgCenter/assets/warn.png | Bin 728 -> 0 bytes src/pages/msgCenter/index.tsx | 99 ---------------------------- 3 files changed, 99 deletions(-) delete mode 100644 src/pages/msgCenter/assets/rang.png delete mode 100644 src/pages/msgCenter/assets/warn.png delete mode 100644 src/pages/msgCenter/index.tsx diff --git a/src/pages/msgCenter/assets/rang.png b/src/pages/msgCenter/assets/rang.png deleted file mode 100644 index f5428c2941949db05b644c6546a50d44c9de0fec..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1013 zcmVPx#1am@3R0s$N2z&@+hyVZspGibPR9J=G**%C{RTKyC-SlLwbt8ckD+mz- z78as~Xkj6!ELub?#7Yz_gw(OnfLQo}*a#LP=`1YNN(GA)V(bJ7!WKdb(dbGxv(cH& z&a=4pWj^-3nfKn#%(DLB!p!}6=l{+*_q=n@P3!?F4IGZ`5axuwMx4@(Z3o-vpp%5Y zT1aY;Od`Q~9I5e)6m4t? z#Ib}^Zo{IUUrq~MY$jYEHK~wr^wkBy1!jpBt`+%qF5yUaQP^1ffh|GXyGR$AdBOgX z6=g5v4eTNueRkGvkcXp@%K!!l$7rxPGfLyJ7&+a)?&*MwHT~Q9fpA&i-&XSiZ z_zqX_hM?^X*YO#C9-9BEpyBgX*+y=MiLBG$cem7d&}qDb=kWcAd2{$dc!?Kl$bo+o zHjbMbj!;L(y~;ZTwWe`}7N+QYJ7zEvTt<>ee# zgxvOc&e&OeBD~~g1-Wpe|NK=JnXkR3I6-<-@dx5eTvwGWH0lr*1+Ep0T@d`c$ZE@Y ztcFY?;W{`a|1-WLnEdWB>mRNuS3|uc_i91^M_3o!;c{$w;p$ionb56EI1iWcZv1^7 z55<-jf6K)EJan6a8LLEzBK)Z5*B6D4%#-T-YaVu*LTz9Y$M6HMU z5kg@R{?00#1E-9XI~0ew2XN0s=nbNcuM}&zo$y!oXP9skcba~svMjpzv%d^GKr9Z_ zN&BXS&EcByE=|VzY-?teiqXoe6&IQQnixj*30slFF8n_V+Wj~%R|fq!P?s|OI55{< j{Wwq;i#d{Kes%jF-b2(eU4?#X00000NkvXXu0mjfGK1v) diff --git a/src/pages/msgCenter/assets/warn.png b/src/pages/msgCenter/assets/warn.png deleted file mode 100644 index 4583b3bfc9d83f8a1b368c7cb62388e7d9ddf5a6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 728 zcmV;}0w?{6P)Px#1am@3R0s$N2z&@+hyVZrf=NU{R7i>KmAz|IQ5c7xb8@Rmxz-4!Wato~gM&kd zcC&C&5g1mz7Dy! zrb%r+2;$IZI=t`ioZtC=;hg`4(t^2Gd1r<@?Wemjt1M2=SX!^CK3(XvuhofI9Aj0g z`WeCl08!Yd>GldH-5225Q|?Yy8Mlb=6d;Da7iqhC7LBNk z>m{t}ghE^eNi026O9XQO0;Z>ip{Wn@I5e0BNLYNO7D$U@tezSIBy#Rb*i0QyLQw?p zJcfI2D2|CY2T#6)o*Et;)y_)6dffz)0P#56JvH2QjICp_SpX5<0C+xQ;RH5oXWZdm zdKR`H`vfwIV%xWZCjf%JL(S2RbjK^yDp&`+ZVeR@SFq_ { - 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 From b332dfe4f3c4dc0a56482b056fd73819b13bd76c Mon Sep 17 00:00:00 2001 From: Zxuyoubin Date: Mon, 18 Mar 2024 17:35:47 +0800 Subject: [PATCH 3/3] =?UTF-8?q?feat=EF=BC=9ABug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/msgCenter/assets/rang.png | Bin 0 -> 1013 bytes src/pages/msgCenter/assets/warn.png | Bin 0 -> 728 bytes src/pages/msgCenter/index.scss | 49 ++++++++++++++ src/pages/msgCenter/index.tsx | 99 ++++++++++++++++++++++++++++ 4 files changed, 148 insertions(+) create mode 100644 src/pages/msgCenter/assets/rang.png create mode 100644 src/pages/msgCenter/assets/warn.png create mode 100644 src/pages/msgCenter/index.scss create mode 100644 src/pages/msgCenter/index.tsx diff --git a/src/pages/msgCenter/assets/rang.png b/src/pages/msgCenter/assets/rang.png new file mode 100644 index 0000000000000000000000000000000000000000..f5428c2941949db05b644c6546a50d44c9de0fec GIT binary patch literal 1013 zcmVPx#1am@3R0s$N2z&@+hyVZspGibPR9J=G**%C{RTKyC-SlLwbt8ckD+mz- z78as~Xkj6!ELub?#7Yz_gw(OnfLQo}*a#LP=`1YNN(GA)V(bJ7!WKdb(dbGxv(cH& z&a=4pWj^-3nfKn#%(DLB!p!}6=l{+*_q=n@P3!?F4IGZ`5axuwMx4@(Z3o-vpp%5Y zT1aY;Od`Q~9I5e)6m4t? z#Ib}^Zo{IUUrq~MY$jYEHK~wr^wkBy1!jpBt`+%qF5yUaQP^1ffh|GXyGR$AdBOgX z6=g5v4eTNueRkGvkcXp@%K!!l$7rxPGfLyJ7&+a)?&*MwHT~Q9fpA&i-&XSiZ z_zqX_hM?^X*YO#C9-9BEpyBgX*+y=MiLBG$cem7d&}qDb=kWcAd2{$dc!?Kl$bo+o zHjbMbj!;L(y~;ZTwWe`}7N+QYJ7zEvTt<>ee# zgxvOc&e&OeBD~~g1-Wpe|NK=JnXkR3I6-<-@dx5eTvwGWH0lr*1+Ep0T@d`c$ZE@Y ztcFY?;W{`a|1-WLnEdWB>mRNuS3|uc_i91^M_3o!;c{$w;p$ionb56EI1iWcZv1^7 z55<-jf6K)EJan6a8LLEzBK)Z5*B6D4%#-T-YaVu*LTz9Y$M6HMU z5kg@R{?00#1E-9XI~0ew2XN0s=nbNcuM}&zo$y!oXP9skcba~svMjpzv%d^GKr9Z_ zN&BXS&EcByE=|VzY-?teiqXoe6&IQQnixj*30slFF8n_V+Wj~%R|fq!P?s|OI55{< j{Wwq;i#d{Kes%jF-b2(eU4?#X00000NkvXXu0mjfGK1v) literal 0 HcmV?d00001 diff --git a/src/pages/msgCenter/assets/warn.png b/src/pages/msgCenter/assets/warn.png new file mode 100644 index 0000000000000000000000000000000000000000..4583b3bfc9d83f8a1b368c7cb62388e7d9ddf5a6 GIT binary patch literal 728 zcmV;}0w?{6P)Px#1am@3R0s$N2z&@+hyVZrf=NU{R7i>KmAz|IQ5c7xb8@Rmxz-4!Wato~gM&kd zcC&C&5g1mz7Dy! zrb%r+2;$IZI=t`ioZtC=;hg`4(t^2Gd1r<@?Wemjt1M2=SX!^CK3(XvuhofI9Aj0g z`WeCl08!Yd>GldH-5225Q|?Yy8Mlb=6d;Da7iqhC7LBNk z>m{t}ghE^eNi026O9XQO0;Z>ip{Wn@I5e0BNLYNO7D$U@tezSIBy#Rb*i0QyLQw?p zJcfI2D2|CY2T#6)o*Et;)y_)6dffz)0P#56JvH2QjICp_SpX5<0C+xQ;RH5oXWZdm zdKR`H`vfwIV%xWZCjf%JL(S2RbjK^yDp&`+ZVeR@SFq_ { + 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