From f9eada03ab11ab337b372526d27019aeaef96afb Mon Sep 17 00:00:00 2001 From: a <455919189@qq.com> Date: Mon, 9 May 2022 15:41:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20'pages/teacher'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/teacher/teacher.js | 94 ++++++++++++++++++++++++++++++++++++++ pages/teacher/teacher.json | 4 ++ pages/teacher/teacher.wxml | 26 +++++++++++ pages/teacher/teacher.wxss | 88 +++++++++++++++++++++++++++++++++++ 4 files changed, 212 insertions(+) create mode 100644 pages/teacher/teacher.js create mode 100644 pages/teacher/teacher.json create mode 100644 pages/teacher/teacher.wxml create mode 100644 pages/teacher/teacher.wxss diff --git a/pages/teacher/teacher.js b/pages/teacher/teacher.js new file mode 100644 index 0000000..5358529 --- /dev/null +++ b/pages/teacher/teacher.js @@ -0,0 +1,94 @@ +// pages/mine/mine.js +Page({ + /** + * 页面的初始数据 + */ + data: { + userInfor:"", + show:false + }, + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + var that =this; + // 判断是否授权 + var userInfor = wx.getStorageSync('userInfor') + // console.log(userInfor) + if (userInfor==''){ + + }else{ + // this.setData({ + // userInfor:userInfor, + // show:true + // }) + //判断登录是否过期 + this.checksession(); + } + }, + house: function (e) { + var type = e.currentTarget.dataset.type + if(type==0){ + wx.navigateTo({ + url: `../calender/calender`, + }) + }else if(type==1){ + wx.navigateTo({ + url: `../shenpijiaqi/shenpijiaqi`, + }) + } + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + return{ + title:"a", + imageUrl:'' + } + } +}) \ No newline at end of file diff --git a/pages/teacher/teacher.json b/pages/teacher/teacher.json new file mode 100644 index 0000000..7f39eb5 --- /dev/null +++ b/pages/teacher/teacher.json @@ -0,0 +1,4 @@ +{ + "usingComponents": {}, + "navigationBarTitleText": "我的" +} \ No newline at end of file diff --git a/pages/teacher/teacher.wxml b/pages/teacher/teacher.wxml new file mode 100644 index 0000000..e99f978 --- /dev/null +++ b/pages/teacher/teacher.wxml @@ -0,0 +1,26 @@ + + + + + + + + 马老师 + + + + + + + 课程查询 + + + + 请假审批 + + + + \ No newline at end of file diff --git a/pages/teacher/teacher.wxss b/pages/teacher/teacher.wxss new file mode 100644 index 0000000..f3c205d --- /dev/null +++ b/pages/teacher/teacher.wxss @@ -0,0 +1,88 @@ +/* pages/mine/mine.wxss */ +page{ + /* overflow-y: hidden; */ +} +/* 顶部标签 */ +.top{ + width: 100vw; + height: 63vw; + position: relative; +} +.top .bg>image{ + width: 100vw; + height: 63vw; + +} +/* 设置 */ +.setting{ + width: 8vw; + height: 8vw; + position: absolute; + top:3vw; + right:3vw; + z-index: 100; +} +.setting>image{ + width:100%; + height: 100%; +} +.info{ + width: 100%; + height: 100%; + position: absolute; + left:0; + top:0; + display: flex; + flex-direction:column; + align-items: center; + justify-content: center; +} +.avatar{ + width: 21.47vw; + height: 21.47vw; + border-radius: 50%; + box-shadow: 0vw 0.53vw 1.6vw 0vw rgba(0, 0, 0, 0.15); + border: 0.4vw solid #ffffff; + margin-bottom:2.33vw; + margin-top:-6vw; +} +.name{ + color:#ffffff; + font-size: 5.87vw; + /* font-weight: bold; */ +} +.phone{ + color:#ffffff; + font-size: 3.73vw; + margin-top: 1vw; +} +/* 标签 */ +.bottom{ + width: 92vw; + padding:0 4vw; + transform: translate(0,-8%); +} +.bottom>view{ + width:88.13vw; + height: 14.67vw; + background: #ffffff; + box-shadow: 0.6vw 1.04vw 2.27vw 0vw rgba(0, 0, 0, 0.19); + border-radius: 2.67vw; + border: solid 0.16vw #eeeeee; + padding-left: 3.87vw; + display: flex; + align-items: center; + font-size: 4.27vw; + /* font-weight: bold; */ + color: #333333; + margin-bottom:4vw; +} +/* .bottom>view:last-child{ + margin-top: 4.13vw; +} */ +.bottom>view>image{ + width: 7.87vw; + height: 7.87vw; + border-radius: 1.6vw; + margin-right: 2.53vw; +} \ No newline at end of file