From 7c061bbb9b73b4659dd7f6dbd5debe03774f899e Mon Sep 17 00:00:00 2001 From: qianlile Date: Thu, 29 Jul 2021 11:11:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8E=A7=E5=88=B6=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=92=8C=E9=A1=B5=E9=9D=A2=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wechat/miniprogram/app.json | 21 ++- wechat/miniprogram/images/door.png | Bin 0 -> 2124 bytes wechat/miniprogram/images/light.png | Bin 0 -> 4616 bytes wechat/miniprogram/pages/login/index.js | 9 ++ wechat/miniprogram/pages/login/index.json | 3 +- wechat/miniprogram/pages/login/index.wxml | 7 +- wechat/miniprogram/pages/login/index.wxss | 13 +- wechat/miniprogram/pages/my/index.js | 19 +++ wechat/miniprogram/pages/my/index.json | 3 + wechat/miniprogram/pages/my/index.wxml | 16 +++ wechat/miniprogram/pages/my/index.wxss | 54 +++++++ wechat/miniprogram/pages/roomSystem/index.js | 133 ++++++++++++++---- .../miniprogram/pages/roomSystem/index.wxml | 30 ++-- wechat/project.private.config.json | 6 + 14 files changed, 265 insertions(+), 49 deletions(-) create mode 100644 wechat/miniprogram/images/door.png create mode 100644 wechat/miniprogram/images/light.png create mode 100644 wechat/miniprogram/pages/my/index.js create mode 100644 wechat/miniprogram/pages/my/index.json create mode 100644 wechat/miniprogram/pages/my/index.wxml create mode 100644 wechat/miniprogram/pages/my/index.wxss diff --git a/wechat/miniprogram/app.json b/wechat/miniprogram/app.json index cd6cf10d..f323e4f1 100644 --- a/wechat/miniprogram/app.json +++ b/wechat/miniprogram/app.json @@ -1,8 +1,9 @@ { - "pages": [ - "pages/index/index", + "pages": [ "pages/login/index", - "pages/roomSystem/index" + "pages/index/index", + "pages/roomSystem/index", + "pages/my/index" ], "window": { "backgroundColor": "#F6F6F6", @@ -11,6 +12,20 @@ "navigationBarTitleText": "智慧宿舍", "navigationBarTextStyle": "black" }, + "tabBar": { + "list": [{ + "pagePath": "pages/index/index", + "text": "首页", + "iconPath": "icons/home.png", + "selectedIconPath": "icons/home_selected.png" + }, + { + "pagePath": "pages/my/index", + "text": "我的", + "iconPath": "icons/user.png", + "selectedIconPath": "icons/user_selected.png" + }] + }, "sitemapLocation": "sitemap.json", "permission": { "scope.userLocation": { diff --git a/wechat/miniprogram/images/door.png b/wechat/miniprogram/images/door.png new file mode 100644 index 0000000000000000000000000000000000000000..8a8e04e78e1a567f15122db2767793664c2c2b6c GIT binary patch literal 2124 zcmeAS@N?(olHy`uVBq!ia0vp^CqS5k4M?tyST_$yF%}28J29*~C-ahlfrHJ{#WAEJ z?(Lj|xvHTetm~B%S{2yCR2XMEFl~^FaAumosdBJO#$ind!xzycl%>^8*)=VzO!Ud*nLm?Xs>#|} zH~ObPJAYSi<7$QYGiUU7AAD6Cz!ZP(%=(POjUQrJU*2BLeAwova&+D7t*aI8pFJ~s zGXI|I@yZ|mp1JdE-&Oaf9MeAU{XR`PJ^R-yaBq-%lF_8YW8^57V0+>sOQb|flg@#v z35z*58Ju8=Z1}3+E}W7$!JXyiS9=+;b$)-2n3J-XI$;8_D*e5Ajou%db_8;jM;}%L0yz!_oxw5zK zX!d&f_t9%g)A~QO08L=G>t;D9m>-#-v;Jb^VP656kJDH|IxX%D8{zzU_g}sJlYjcp zExj+@kIke~_g_s}oG4Q>bzhSVOZoX^&LaM$d(W$ISj=Z(eCTzNlc~v1KwzE7Tm^*} zqXHu)Jh&HxC+fPCe>uc5@5S!Ntmnl&1ga)oKXd%MxW31P?7Vd)*){ban^-1>J)LFx zZ^aA{S{X14qBdlVek?c8~3?Z>}IxrJP!re(cy^Vu`6?Z-fd3uK0_i);p(^TB4jx&E2=-}tu6yH>tEU#=Wy z{rmp;`}1mFzW?|B^Y^kfHoq@PMQ^T9nVM&RrK`?FL?r)Vy7~l#^!W+z`-MCNsK)&v aK6|gl^W&#pT?RG}7(8A5T-G@yGywpvO*akz literal 0 HcmV?d00001 diff --git a/wechat/miniprogram/images/light.png b/wechat/miniprogram/images/light.png new file mode 100644 index 0000000000000000000000000000000000000000..4903a04a76d5e37f0deebb8576ca023a0a961f97 GIT binary patch literal 4616 zcmbtYX*iVM`#;Z&W$a`BVrVL%?33(eNS5rf4N)RXBw0d*N0ePdg-po4g$T(q)~}rs z6Uj1`vSp``^q;Q(o8ODyyWfk?xu0`i=bYz0*E!dHKA$_<)L55|S&$h3z^1RKZBDaY ze}Q74wWT&?88id=n(JzTvH{E@0GzG*+L{)D4lC(FuR=Tj>Bu}hkK%fkZzdgc?Bc29 zV&<{@fGe~1#%AU^bd2(-HEnw~E zl^Dr4S^6fQmPh=Mj&$Ia^51EGoSU$0B1-DUrgD=k|H%!E=;=G=IokC&0HH z(JuAe013?;a|$_*5N+y^+`-~|7Q9wz6HfTLWAT@r`)+B&b0an;M4Vv#_9>b}L1>V> zU5fCWffm>5Uwm_*k0Rhw7!d6jIu3N`^g`ly*v)mEQfThjIG5vhAEcg;9Kyp-2kmK? z7%u_x2H!s7;o7d$sVLB0UNK1v@%zUTa656(Q`-dn#`(G+iioRYp@DRd7wgh}SrCQh z7uXUiVj`|U<1elxz1x<%gD>8=E)AQ0Ac606)Q)#j(+%ly0z_eG99)eQJZvd}hpg@{f1?w`ke|y1gl>hh}vOl)JMxs&@~BU^wFw3qKQENVa`s= zIY1^-iCjjH*t;UZW6BL!# z{6g$rzHa_<*x4A_P>Oj z&K{okOK599&k&M>&}yt_NOjr!h6b7Gmim7}lMswZWwoNOA9Wm&m0Z=qMr@qryes}2g*a$zQ>^&UE-!#-yLE%7^SSDDz= zFjjgD+(cn6tl!Kld@@xpGDlK0oVlHy4Xt|H7H{Ca9qGg;8qU(p&Pj9NUi0!Mh(n{G z`Ayo?!IV^}dx(fvh{m_KH4{=sjo$UsTBKizuiEFjZUe*rQhHFV%d zeVSy^?Gbsg5g}DZjy^+Up-KN6De#k)P&f*;mh#noWXg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YX0kTm-{XAD@@ zKEnm$)gAiSUIrU<-Ft8xF+;EWEUbuJ^2+pHhf*Lxd#W|IwS2{+{Y|g}E#g8M?AOI% zt(w4rj^pM7vx6i2X>FBW$7vhXWeY1T1?#SPo64|$(|Xec6E#7C#kEISeN*k@wlN5_ zys^PWkCs)w!Gz~b_!2)kzp^<9O+O9%BfEwBA+5&Kkm%Asngd#)ork$G&6jcxh|o08 zulyW#h*6x2iFl3}!J%w);H&C~SGIRya;drM!GzS+#+zfAgx%6ARXYHxfGiI8vPDEZ zIDQJtr`JkTB2qCGKuh2U@V?Hd*V@79@0Npta468!IiEXD+Zk=SbL+Ka8%niAZukX-JOaW0Yqj&-6Gk<_eB55piW)*z0~u zKTqNNlHMtxu`;-CO2_b<9u4L+qWWJoGTq6X3Imz|zo7Gm^Q>lH(leUe?pcue@A7*M zdtKqqq9siOVRqlgEB%fh*F9WpdGzd*mv zHl4hIRel&anN$B4@2sI~$$fcYG_@_?#0e!`acT^IIyjnVO{)Rqe2&VX$?YCm_}BgT z|6@Bg(!X1(*aP3(V|!a)kK*|^3PjH^#UIb5l_+xU6bdD1H4KT256W6J+OJi2Av`7< f{+|al|ACA-4(883WKO4*c7Xl`W9>4ns}KGUvD0lm literal 0 HcmV?d00001 diff --git a/wechat/miniprogram/pages/login/index.js b/wechat/miniprogram/pages/login/index.js index ebb0ac3c..c2cb4fda 100644 --- a/wechat/miniprogram/pages/login/index.js +++ b/wechat/miniprogram/pages/login/index.js @@ -42,7 +42,16 @@ Page({ username: this.data.username }, }) + if (res.data.code !== 200) { + wx.showToast({ + title: '登录失败', + }); + return; + } wx.setStorageSync('token', res.data.token); + wx.switchTab({ + url: '/pages/index/index', + }) }, diff --git a/wechat/miniprogram/pages/login/index.json b/wechat/miniprogram/pages/login/index.json index e52daced..da07a9a9 100644 --- a/wechat/miniprogram/pages/login/index.json +++ b/wechat/miniprogram/pages/login/index.json @@ -1,5 +1,6 @@ { "usingComponents": { - "van-field": "@vant/weapp/field/index" + "van-field": "@vant/weapp/field/index", + "van-button": "@vant/weapp/button/index" } } \ No newline at end of file diff --git a/wechat/miniprogram/pages/login/index.wxml b/wechat/miniprogram/pages/login/index.wxml index c6f89272..bc22b75a 100644 --- a/wechat/miniprogram/pages/login/index.wxml +++ b/wechat/miniprogram/pages/login/index.wxml @@ -1,4 +1,5 @@ +欢迎登录智慧宿舍系统 + + 登录 + - - diff --git a/wechat/miniprogram/pages/login/index.wxss b/wechat/miniprogram/pages/login/index.wxss index 8e86a300..cc3461f2 100644 --- a/wechat/miniprogram/pages/login/index.wxss +++ b/wechat/miniprogram/pages/login/index.wxss @@ -1,6 +1,13 @@ /* miniprogram/pages/index/index.wxss */ +.title{ + display: block; + width: 80vw; + margin: 60rpx auto; + font-size: 40rpx; + margin-top: 35%; +} .form{ - width: 90vw; + width: 80vw; margin: 0 auto; } .input{ @@ -30,4 +37,8 @@ width: 200rpx; display: inline-block; height: 77rpx; +} +.btn{ + margin: 45rpx auto; + width: 40vw; } \ No newline at end of file diff --git a/wechat/miniprogram/pages/my/index.js b/wechat/miniprogram/pages/my/index.js new file mode 100644 index 00000000..1bb51805 --- /dev/null +++ b/wechat/miniprogram/pages/my/index.js @@ -0,0 +1,19 @@ +var app = getApp(); + +Page({ + data: { + userInfo: {}, + mode: ['信息反馈', '联系客服', '关于我们'] + }, + onLoad: function () { + }, + getOut(){ + wx.clearStorage({ + success: (res) => { + wx.reLaunch({ + url: '/pages/login/index', + }) + }, + }) + } +}) \ No newline at end of file diff --git a/wechat/miniprogram/pages/my/index.json b/wechat/miniprogram/pages/my/index.json new file mode 100644 index 00000000..8835af06 --- /dev/null +++ b/wechat/miniprogram/pages/my/index.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/wechat/miniprogram/pages/my/index.wxml b/wechat/miniprogram/pages/my/index.wxml new file mode 100644 index 00000000..a7735dbd --- /dev/null +++ b/wechat/miniprogram/pages/my/index.wxml @@ -0,0 +1,16 @@ + + + + + + + + + + + + {{item}} + + + +退出 \ No newline at end of file diff --git a/wechat/miniprogram/pages/my/index.wxss b/wechat/miniprogram/pages/my/index.wxss new file mode 100644 index 00000000..219e14b9 --- /dev/null +++ b/wechat/miniprogram/pages/my/index.wxss @@ -0,0 +1,54 @@ +.personal_info { + padding: 20px 0; + background-color: #FFF; +} +.photo_wrap { + overflow:hidden; + display: block; + width: 160rpx; + height: 160rpx; + margin: auto; + margin-top: 50rpx; + border-radius: 50%; + border: 2px solid #fff; + box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2); +} +.photo { + width: 90px; + height: 90px; + border-radius: 90px; +} +.nickname { + margin-top: 15px; + text-align: center; + color: #696969; +} +.wode_item_wrap { + background-color: #FFF; + font-size: 14px; + margin-top: 10px; + border-top: 1px solid #E5E5E5; +} +.wode_item { + height: 45px; + border-bottom: 1px solid #E5E5E5; + padding: 0 10px; + line-height: 45px; + position: relative; +} +.arrow_wrap { + position: absolute; + width: 50px; + height: 45px; + right: 0; + top: 0; +} +.wode_out { + height: 45px; + line-height: 45px; + text-align: center; + background-color: #FFF; + margin-top: 10px; + border-bottom: 1px solid #E5E5E5; + border-top: 1px solid #E5E5E5; +} \ No newline at end of file diff --git a/wechat/miniprogram/pages/roomSystem/index.js b/wechat/miniprogram/pages/roomSystem/index.js index 2c219cb8..ea110915 100644 --- a/wechat/miniprogram/pages/roomSystem/index.js +++ b/wechat/miniprogram/pages/roomSystem/index.js @@ -16,9 +16,12 @@ Page({ curtainAutoChecked:true, curtainManvalChecked:false, curtainPowerChecked:false, + fanAutoChecked:true, + fanManvalChecked:false, + fanPowerChecked:false, fanShow:false, tempShow:false, - realMaxTempValue:50, + realMaxTempValue:'', maxTempValue:0, currentValue:0, deviceInfo:{}, @@ -32,11 +35,6 @@ Page({ wx.setNavigationBarTitle({ title: '智能宿舍系统', }) - this.setData({ - currentValue:this.data.realMaxTempValue, - maxTempValue:this.data.realMaxTempValue - }); - this.getLastPageData(); this.query(); }, @@ -46,14 +44,24 @@ Page({ async query(){ const res = await requestApi(`/system/status/newByNum/${this.data.deviceInfo.deviceNum}`,{ method:'GET' }); let light_power; + let relayStatus; if (res.data.data.lightStatus === 0) { light_power = false; }else if (res.data.data.lightStatus === 1) { light_power =true; } + if (res.data.data.relayStatus === 0) { + relayStatus = false; + }else if (res.data.data.relayStatus === 1) { + relayStatus = true; + } this.setData({ nowDeviceData:res.data.data, - light_power + light_power, + curtainPowerChecked:relayStatus, + currentValue:res.data.data.airTemperature, + maxTempValue:res.data.data.airTemperature, + realMaxTempValue: res.data.data.airTemperature }) }, @@ -69,29 +77,11 @@ Page({ initParams(){ - // const params = { - // deviceNum: this.data.deviceInfo.deviceNum, - // relayStatus: this.data.nowDeviceData.relayStatus, - // lightStatus: this.data.nowDeviceData.lightStatus, - // isOnline: this.data.nowDeviceData.isOnline, - // rssi: this.data.nowDeviceData.rssi, - // deviceTemperature: this.data.nowDeviceData.deviceTemperature, - // airTemperature: this.data.nowDeviceData.airTemperature, - // airHumidity: this.data.nowDeviceData.airHumidity, - // triggerSource: this.data.nowDeviceData.triggerSource, - // brightness: this.data.nowDeviceData.brightness, - // lightInterval: this.data.nowDeviceData.lightInterval, - // lightMode: this.data.nowDeviceData.lightMode, - // fadeTime: this.data.nowDeviceData.fadeTime, - // red: this.data.nowDeviceData.red, - // green: this.data.nowDeviceData.green, - // blue: this.data.nowDeviceData.blue, - // other:this.data.nowDeviceData.other - // }; const params = this.data.nowDeviceData; return params; }, + //灯开关 async lightPower(){ let light_power = this.data.light_power; let lightStatus; @@ -137,10 +127,77 @@ Page({ curtainManvalChecked:curtainManvalChecked }) }, - onChangeCurtainPower(){ - let curtainPowerChecked = this.data.curtainPowerChecked; - if (this.data.curtainManvalChecked) { - this.setData({ curtainPowerChecked:!curtainPowerChecked }) + + //窗帘开关 + async onChangeCurtainPower(){ + // let curtainPowerChecked = this.data.curtainPowerChecked; + // let relayStatus; + // if (curtainPowerChecked === false) { + // relayStatus = 1; + // }else if (curtainPowerChecked === true) { + // relayStatus = 0; + // } + // if (this.data.curtainManvalChecked) { + // let params = this.initParams(); + // params.relayStatus = relayStatus; + // const res = await requestApi(`/system/status`,{ + // method:'PUT', + // data:params + // }); + // console.log('窗帘:',res); + // if (res.data.code !== 200) { + // wx.showToast({ + // title: '操作失败', + // icon:'error' + // }) + // return; + // } + // this.setData({ curtainPowerChecked:!curtainPowerChecked }) + // } + }, + + + + onAutoFanMode(){ + let fanAutoChecked = !this.data.fanAutoChecked; + this.setData({ + fanAutoChecked:fanAutoChecked, + fanManvalChecked:!fanAutoChecked + }) + }, + onManvalFanMode(){ + let fanManvalChecked = !this.data.fanManvalChecked; + this.setData({ + fanAutoChecked:!fanManvalChecked, + fanManvalChecked:fanManvalChecked + }) + }, + + //风扇开关 + async onChangeFanPower(){ + let fanPowerChecked = this.data.fanPowerChecked; + let relayStatus; + if (fanPowerChecked === false) { + relayStatus = 1; + }else if (fanPowerChecked === true) { + relayStatus = 0; + } + if (this.data.fanManvalChecked) { + let params = this.initParams(); + params.relayStatus = relayStatus; + const res = await requestApi(`/system/status`,{ + method:'PUT', + data:params + }); + console.log('窗帘:',res); + if (res.data.code !== 200) { + wx.showToast({ + title: '操作失败', + icon:'error' + }) + return; + } + this.setData({ fanPowerChecked:!fanPowerChecked }) } }, @@ -155,6 +212,7 @@ Page({ }) }, onChangeValue(e){ + this.setData({ maxTempValue:e.detail,currentValue:e.detail }) }, onDrag(e){ @@ -167,7 +225,20 @@ Page({ tempShow:false }) }, - onMakeSure(){ + async onMakeSure(){ + const params = this.initParams(); + params.airTemperature = this.data.maxTempValue; + const res = await requestApi('/system/status',{ + method:'PUT', + data:params + }); + if (res.data.code !== 200) { + wx.showToast({ + title: '操作失败', + icon:'error' + }) + return; + } this.setData({ realMaxTempValue:this.data.maxTempValue, tempShow:false diff --git a/wechat/miniprogram/pages/roomSystem/index.wxml b/wechat/miniprogram/pages/roomSystem/index.wxml index 8f4f1475..5227eca4 100644 --- a/wechat/miniprogram/pages/roomSystem/index.wxml +++ b/wechat/miniprogram/pages/roomSystem/index.wxml @@ -2,12 +2,12 @@ - + - + 温度:{{ nowDeviceData.deviceTemperature }} ℃ 湿度:{{ nowDeviceData.airHumidity }}% @@ -16,6 +16,12 @@ + + + + + + - + - - - - - - - - + + + + + + + + + + 设置温度最大值:{{ maxTempValue }}℃ diff --git a/wechat/project.private.config.json b/wechat/project.private.config.json index 0bb67bf6..b9c5e3de 100644 --- a/wechat/project.private.config.json +++ b/wechat/project.private.config.json @@ -29,6 +29,12 @@ "pathName": "pages/login/index", "query": "", "scene": null + }, + { + "name": "pages/my/index", + "pathName": "pages/my/index", + "query": "", + "scene": null } ] }