From e24dd3b2b7aacd89a9491c4829b27925605fac90 Mon Sep 17 00:00:00 2001 From: a <455919189@qq.com> Date: Sat, 7 May 2022 12:46:43 +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/chengjiliebiao'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/chengjiliebiao/chengjiliebiao.js | 83 +++++++++++++ pages/chengjiliebiao/chengjiliebiao.json | 9 ++ pages/chengjiliebiao/chengjiliebiao.wxml | 12 ++ pages/chengjiliebiao/chengjiliebiao.wxss | 143 +++++++++++++++++++++++ 4 files changed, 247 insertions(+) create mode 100644 pages/chengjiliebiao/chengjiliebiao.js create mode 100644 pages/chengjiliebiao/chengjiliebiao.json create mode 100644 pages/chengjiliebiao/chengjiliebiao.wxml create mode 100644 pages/chengjiliebiao/chengjiliebiao.wxss diff --git a/pages/chengjiliebiao/chengjiliebiao.js b/pages/chengjiliebiao/chengjiliebiao.js new file mode 100644 index 0000000..02197f5 --- /dev/null +++ b/pages/chengjiliebiao/chengjiliebiao.js @@ -0,0 +1,83 @@ +// pages/chengjiliebiao.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + forumList:[ + ] + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + wx.getStorage({ + key:"data", + success:(res)=>{ + var uid = res.data.uid + wx.request({ + url: 'http://10.0.100.100:8000/u/'+uid+'/achievement', + method:"GET", + success:(res)=>{ + this.setData({forumList:res.data.data}) + console.log(this.data.forumList) + } + }) + } + }) + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + }, + chance1:function(value){ + console.log(value) + } +}) \ No newline at end of file diff --git a/pages/chengjiliebiao/chengjiliebiao.json b/pages/chengjiliebiao/chengjiliebiao.json new file mode 100644 index 0000000..c0008af --- /dev/null +++ b/pages/chengjiliebiao/chengjiliebiao.json @@ -0,0 +1,9 @@ +{ + "usingComponents": { + "van-tab": "../../../components/vant/dist/tab/index", + "van-tabs": "../../../components/vant/dist/tabs/index", + "van-cell": "../../../components/vant/dist/cell/index", + "van-cell-group": "../../../components/vant/dist/cell-group/index" + }, + "navigationBarTitleText": "成绩" +} \ No newline at end of file diff --git a/pages/chengjiliebiao/chengjiliebiao.wxml b/pages/chengjiliebiao/chengjiliebiao.wxml new file mode 100644 index 0000000..bb1aa2f --- /dev/null +++ b/pages/chengjiliebiao/chengjiliebiao.wxml @@ -0,0 +1,12 @@ + + + + + + + + + + + 到底了哟~~~ + \ No newline at end of file diff --git a/pages/chengjiliebiao/chengjiliebiao.wxss b/pages/chengjiliebiao/chengjiliebiao.wxss new file mode 100644 index 0000000..4913716 --- /dev/null +++ b/pages/chengjiliebiao/chengjiliebiao.wxss @@ -0,0 +1,143 @@ +/* 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; +} \ No newline at end of file