From 84e3d033b6683a468ed0f0f62802877a13f4ea60 Mon Sep 17 00:00:00 2001 From: a <455919189@qq.com> Date: Mon, 9 May 2022 15:39:37 +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/shenpijiaqi'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/shenpijiaqi/shenpijiaqi.js | 101 +++++++++++++++++++ pages/shenpijiaqi/shenpijiaqi.json | 8 ++ pages/shenpijiaqi/shenpijiaqi.wxml | 10 ++ pages/shenpijiaqi/shenpijiaqi.wxss | 149 +++++++++++++++++++++++++++++ 4 files changed, 268 insertions(+) create mode 100644 pages/shenpijiaqi/shenpijiaqi.js create mode 100644 pages/shenpijiaqi/shenpijiaqi.json create mode 100644 pages/shenpijiaqi/shenpijiaqi.wxml create mode 100644 pages/shenpijiaqi/shenpijiaqi.wxss diff --git a/pages/shenpijiaqi/shenpijiaqi.js b/pages/shenpijiaqi/shenpijiaqi.js new file mode 100644 index 0000000..008b0bd --- /dev/null +++ b/pages/shenpijiaqi/shenpijiaqi.js @@ -0,0 +1,101 @@ +// pages/chengjiliebiao.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + st_id:'', + id:[], + classes:[], + s_id:[], + name:[], + dormitory:[], + phone :[], + reason:[], + l_time:[], + b_time:[], + place:[], + p_phone:[], + what:[], + status:[] + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + wx.request({ + url: 'http://127.0.0.1:80/teacher_get_leave_school/', + method:'POST', + header: { + 'content-type': 'application/json' , + 'classes':'2011502', + }, + success:(res)=>{ + this.setData(res.data.data) + } + }) + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + detailed:function(e){ + var id = e.currentTarget.dataset.id + var what =e.currentTarget.dataset.what + if (what == " 离校"){ + wx.redirectTo({ + url: '../shenpijiaqixiangqing/shenpijiaqixiangqing?id='+id, + }) + }else{ + wx.redirectTo({ + url: '../shenpiqingjiaxiangqing/shenpiqingjiaxiangqing?id='+id, + }) + } + }, + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/shenpijiaqi/shenpijiaqi.json b/pages/shenpijiaqi/shenpijiaqi.json new file mode 100644 index 0000000..1162527 --- /dev/null +++ b/pages/shenpijiaqi/shenpijiaqi.json @@ -0,0 +1,8 @@ +{ + "usingComponents": { + "van-field": "../../../components/vant/dist/field/index", + "van-button": "../../../components/vant/dist/button/index", + "van-cell": "../../../components/vant/dist/cell/index", + "van-cell-group": "../../../components/vant/dist/cell-group/index" + } +} \ No newline at end of file diff --git a/pages/shenpijiaqi/shenpijiaqi.wxml b/pages/shenpijiaqi/shenpijiaqi.wxml new file mode 100644 index 0000000..4ff71a5 --- /dev/null +++ b/pages/shenpijiaqi/shenpijiaqi.wxml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/pages/shenpijiaqi/shenpijiaqi.wxss b/pages/shenpijiaqi/shenpijiaqi.wxss new file mode 100644 index 0000000..c400aae --- /dev/null +++ b/pages/shenpijiaqi/shenpijiaqi.wxss @@ -0,0 +1,149 @@ +/* pages/lixiaoshenqing/lixiaoshenqing.wxss *//* pages/qingjiashengqing/qingjiashengqing.wxss *//* pages/mine/policy/policy.wxss */ +page{ + width:100vw; + /* height:100vh; */ + /* overflow-y: auto; */ + background:#f8f8f8; + overflow-x: hidden; +} +::-webkit-scrollbar {display:none!important;} +::scrollbar {display:none!important;} + +/* 搜索 */ +.searchBox{ + width:97vw; + background:#f8f8f8; + padding:4vw 3vw 0vw 2vw; + /* margin-bottom:3vw; */ +} +.search{ + width:96vw; + height: 9vw; + background-color: #ffffff; + box-shadow: 0vw 0vw 1.2vw 0vw + rgba(0, 0, 0, 0.3); + border-radius: 1.33vw; + overflow: hidden; +} +.search>view{ + float:left; +} +.search .input input{ + width:79vw; + height:9vw; + font-size:3.2vw; + border-top-left-radius: 1.33vw; + border-bottom-left-radius: 1.33vw; + padding:0 4vw; +} +.search .img image{ + width:9vw; + height:9vw; +} +/* 列表 */ +.policyList{ + margin-top: 4vw; + padding:0 2.4vw; +} +.policy-item{ + background: #fff; + padding:4vw; + /* border-top:1px solid #eee; */ + margin-bottom:4vw; + box-shadow: 0vw 0vw 1.2vw 0vw + rgba(0, 0, 0, 0.3); + border-radius: 1.33vw; + display: flex; + flex-direction: column; + align-content: space-between; + + +} +.policy-item:last-child{ + border-bottom:1px solid #eee; + margin: 0; +} +.policy-item>view{ + margin-bottom:3vw; +} +.policy-item>view:last-child{ + margin: 0; +} +.item-title{ + width:86vw; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + font-size: 4vw; + color: #333333; +} +.item-time{ + font-size: 3vw; + color: #999999; +} +.noMore{ + height: 10vw; + line-height: 10vw; + text-align: center; + color:#999; + font-size:3.2vw; +} +/* 暂无数据 */ +.popupNone{ + width:100vw; + height:64vh; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; +} +.popupNone .img image{ + width: 31.2vw; + height: 31.87vw; + margin-bottom:3.2vw; +} +.popupNone .noneTxt{ + font-size: 3.73vw; + color: #999999; +} +.pubMessage{ + width: 110rpx; + height: 110rpx; + background: #206fff; + border-radius: 50%; + color: #fff; + position: fixed; + right: 5vw; + bottom: 5vw; + display: flex; + flex-wrap: wrap; +} +.pubMessage>text{ + flex: 1 0 100%; + text-align: center; + font-size: 100rpx; + line-height: 10vw; + height: 12vw; +} +.author{ + display: flex; + justify-content: space-between; + +} +.author>text{ + color:#206fff +} +.author>view{ + display: flex; + align-items: center; +} +.gray_msg{ + width: 40rpx; + height: auto; +} +.juzhong{ + text-align: center; +} +#jiaoshishenpi view .van-cell__value { + color:rgb(33, 142, 231) +} \ No newline at end of file