master
yjh 10 months ago
parent 8dcb67544f
commit eccb2b3a3e

@ -28,6 +28,7 @@ App({
end: "", end: "",
part: 1, part: 1,
front: 0, front: 0,
rcount: 1 rcount: 1,
currentindex: 0
} }
}) })

@ -16,5 +16,6 @@
"navigationBarTextStyle": "black" "navigationBarTextStyle": "black"
}, },
"style": "v2", "style": "v2",
"sitemapLocation": "sitemap.json" "sitemapLocation": "sitemap.json",
"lazyCodeLoading": "requiredComponents"
} }

@ -14,6 +14,9 @@ Page({
// console.log(this.data.vertIndex, this.data.horiIndex); // console.log(this.data.vertIndex, this.data.horiIndex);
}, },
vertPageChange: function (e) { vertPageChange: function (e) {
wx.vibrateShort({
type: 'type',
})
if('touch' == e.detail.source) { if('touch' == e.detail.source) {
if(e.detail.current == 0) { if(e.detail.current == 0) {
file.revoke(); file.revoke();
@ -40,6 +43,9 @@ Page({
} }
}, },
horiPageChange: function (e) { horiPageChange: function (e) {
wx.vibrateShort({
type: 'type',
})
if('touch' == e.detail.source) { if('touch' == e.detail.source) {
if(e.detail.current == 0) { if(e.detail.current == 0) {
file.updatestate("cut"); file.updatestate("cut");

@ -93,17 +93,16 @@
.student-info1 { .student-info1 {
position: fixed; position: fixed;
left: 22%; top: 40%;
top: 25%; left: 50%; /* 水平方向居中 */
transform: translate(-50%, -50%); /* 将元素的中心点移动到父容器的中心 */
font-size: 40px; font-size: 40px;
} }
.student-info2 { .student-info2 {
position: fixed; display: flex;
left: 22%;
top: 35%;
font-size: 55px; font-size: 55px;
letter-spacing: 23px;
font-weight: bold; font-weight: bold;
justify-content: center;
} }
.picture22 { .picture22 {

@ -18,9 +18,13 @@ Page({
}, },
vertPageChange: function (e) { vertPageChange: function (e) {
wx.vibrateShort({
type: 'type',
})
if ('touch' == e.detail.source) { if ('touch' == e.detail.source) {
if (e.detail.current == 0) { if (e.detail.current == 0) {
file.updatescore(-2); file.updatescore(-2);
app.globalData.currentindex = 1;
wx.redirectTo({ wx.redirectTo({
url: '/pages/rollcall/rollcall', url: '/pages/rollcall/rollcall',
}) })
@ -38,6 +42,9 @@ Page({
}, },
horiPageChange: function (e) { horiPageChange: function (e) {
wx.vibrateShort({
type: 'type',
})
if ('touch' == e.detail.source) { if ('touch' == e.detail.source) {
if (e.detail.current == 0) { if (e.detail.current == 0) {
file.updatescore(1.5); file.updatescore(1.5);
@ -46,6 +53,7 @@ Page({
this.setData({ this.setData({
horiIndex: 1, horiIndex: 1,
}); });
app.globalData.currentindex = 1;
wx.redirectTo({ wx.redirectTo({
url: '/pages/rollcall/rollcall', url: '/pages/rollcall/rollcall',
}) })

@ -33,8 +33,9 @@
.picture16 { .picture16 {
position: fixed; position: fixed;
width: 35%; width: 35%;
left: 31%; left: 50%;
top: -5%; transform: translate(-50%,-50%);
top: 10%;
} }
.top-bar { .top-bar {
display: flex; display: flex;
@ -97,25 +98,30 @@
/* border: 2px solid black; */ /* border: 2px solid black; */
} }
.student-info1 { .student-info1 {
position: fixed; /* position: fixed;
left: 22%; left: 22%;
top: 25%; top: 25%;
font-size: 40px; */
position: fixed;
top: 25%;
left: 50%; /* 水平方向居中 */
transform: translate(-50%, -50%); /* 将元素的中心点移动到父容器的中心 */
font-size: 40px; font-size: 40px;
} }
.student-info2 { .student-info2 {
position: fixed; display: flex;
left: 22%; padding-top: 50%;
top: 35%;
font-size: 55px; font-size: 55px;
letter-spacing: 23px;
font-weight: bold; font-weight: bold;
justify-content: center;
} }
.picker { .picker {
width: 60%; width: 60%;
height: 5%; height: 5%;
position: fixed; position: fixed;
top: 55%; top: 55%;
left: 17%; left: 50%;
transform: translate(-50%,-50%);
border: 10px solid white; border: 10px solid white;
border-radius: 10px; border-radius: 10px;
font-size: 28px; font-size: 28px;
@ -131,8 +137,9 @@
position: fixed; position: fixed;
width: 65%; width: 65%;
height: 7%; height: 7%;
top: 54%; top: 55%;
left: 15%; left: 50%;
transform: translate(-50%,-50%);
background-color: #4D95DF ; background-color: #4D95DF ;
border: 10px solid #4D95DF; border: 10px solid #4D95DF;
border-radius: 15px; border-radius: 15px;
@ -143,8 +150,9 @@
position: fixed; position: fixed;
width: 45%; width: 45%;
height: 4.5%; height: 4.5%;
left: 24%; left: 50%;
bottom: 24.7%; transform: translate(-50%,-50%);
bottom: 23.7%;
border: 2px solid #F8E39F; /* 边框颜色 */ border: 2px solid #F8E39F; /* 边框颜色 */
background-color: #F8E39F; /* 按钮背景颜色 */ background-color: #F8E39F; /* 按钮背景颜色 */
color: #F8E39F; /* 字体颜色 */ color: #F8E39F; /* 字体颜色 */
@ -160,7 +168,8 @@
/* width: 10%; */ /* width: 10%; */
height: 5%; height: 5%;
bottom: 25.5%; bottom: 25.5%;
left: 26%; left: 50%;
transform: translate(-50%,-50%);
background-color: white; /* 内部背景颜色 */ background-color: white; /* 内部背景颜色 */
color: black; color: black;
/* padding: 12px; */ /* padding: 12px; */

@ -47,6 +47,7 @@ Page({
}, },
// 返回上一级 // 返回上一级
returnlast: function (e) { returnlast: function (e) {
app.globalData.currentindex = 0;
wx.redirectTo({ wx.redirectTo({
url: '/pages/rollcall/rollcall', url: '/pages/rollcall/rollcall',
}) })

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

@ -2,7 +2,7 @@
<!-- Tab布局 --> <!-- Tab布局 -->
<view class="header"> <view class="header">
<text class="title">逍 摇 人</text> <text class="title">逍 摇 人</text>
<image class="logo" src="./images/7.png" mode="aspectFit"></image> <image class="logo" src="cloud://yz-7g23c92hf3223f1d.797a-yz-7g23c92hf3223f1d-1330140432/pictures/7.png" mode="aspectFit"></image>
</view> </view>
<view class='navBox'> <view class='navBox'>
<view class='titleBox' bindtap='titleClick' data-idx='0'> <view class='titleBox' bindtap='titleClick' data-idx='0'>
@ -23,7 +23,7 @@
<view class="label-title">课程名称</view> <view class="label-title">课程名称</view>
<view class="input-container" > <view class="input-container" >
<input class="input-box" placeholder="请输入要点名的课程名称" bindinput="getCourse" /> <input class="input-box" placeholder="请输入要点名的课程名称" bindinput="getCourse" />
<image class="fimage" src="./images/6.png" mode="aspectFit"></image> <image class="fimage" src="cloud://yz-7g23c92hf3223f1d.797a-yz-7g23c92hf3223f1d-1330140432/pictures/6.png" mode="aspectFit"></image>
</view> </view>
</view> </view>
<!-- 任课老师 --> <!-- 任课老师 -->
@ -31,7 +31,7 @@
<view class="label-title">任课老师</view> <view class="label-title">任课老师</view>
<view class="input-container" > <view class="input-container" >
<input class="input-box" placeholder="请输入该课程的任课老师" bindinput="getTeacher" /> <input class="input-box" placeholder="请输入该课程的任课老师" bindinput="getTeacher" />
<image class="oimage" src="./images/2.png" mode="aspectFit"></image> <image class="oimage" src="cloud://yz-7g23c92hf3223f1d.797a-yz-7g23c92hf3223f1d-1330140432/pictures/2.png" mode="aspectFit"></image>
</view> </view>
</view> </view>
<!-- 日期 --> <!-- 日期 -->
@ -39,7 +39,7 @@
<view class="label-title">上课日期</view> <view class="label-title">上课日期</view>
<view class="input-container" > <view class="input-container" >
<text class="text-box">{{date}}</text> <text class="text-box">{{date}}</text>
<image class="timage" src="./images/5.png" mode="aspectFit"></image> <image class="timage" src="cloud://yz-7g23c92hf3223f1d.797a-yz-7g23c92hf3223f1d-1330140432/pictures/5.png" mode="aspectFit"></image>
</view> </view>
</view> </view>
<!-- 节数 --> <!-- 节数 -->
@ -49,7 +49,7 @@
<picker class="input-box" mode="multiSelector" bindchange="bindMultiPickerChange" bindcolumnchange="getStartEnd" value="{{multiIndex}}" range="{{multiArray}}"> <picker class="input-box" mode="multiSelector" bindchange="bindMultiPickerChange" bindcolumnchange="getStartEnd" value="{{multiIndex}}" range="{{multiArray}}">
{{multiArray[0][multiIndex[0]]}} 到 {{multiArray[1][multiIndex[1]]}} {{multiArray[0][multiIndex[0]]}} 到 {{multiArray[1][multiIndex[1]]}}
</picker> </picker>
<image class="thimage" src="./images/8.png" mode="aspectFit"></image> <image class="thimage" src="cloud://yz-7g23c92hf3223f1d.797a-yz-7g23c92hf3223f1d-1330140432/pictures/8.png" mode="aspectFit"></image>
</view> </view>
</view> </view>
</swiper-item> </swiper-item>
@ -65,8 +65,10 @@
</view> </view>
</view> --> </view> -->
<view class="last"> <view class="last">
<image class="fiimage" src="./images/35.png" mode="aspectFit"></image> <view class ="container1">
<image class="fiimage" src="cloud://yz-7g23c92hf3223f1d.797a-yz-7g23c92hf3223f1d-1330140432/pictures/35.png" mode="aspectFit"></image>
<view class="form-title">学生名单</view> <view class="form-title">学生名单</view>
</view>
</view> </view>
<view class="preview-form"> <view class="preview-form">
<scroll-view scroll-y="{{true}}" style="height: 40vh;" > <scroll-view scroll-y="{{true}}" style="height: 40vh;" >

@ -21,18 +21,28 @@
height: 18%; height: 18%;
flex-direction: column; flex-direction: column;
} }
.container1 {
display: flex;
flex-wrap: nowrap;
justify-content: center;
align-items: center;
position: relative;
top: -80px; /* 使用负的 top 值让它往上移动 */
}
.fiimage{ .fiimage{
position: absolute; /* position: absolute;
left: 100px; left: 100px;
height: 80px; height: 80px; */
width:80px; width:80px;
} }
.form-title { .form-title {
position: absolute; /* position: absolute; */
font-family:"YouSheBiaoTiHei" ; font-family:"YouSheBiaoTiHei" ;
right: 90px; /* right: 90px;
top: 20px; top: 20px; */
font-size: 30px; font-size: 30px;
} }
@ -113,6 +123,7 @@
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: flex-end; justify-content: flex-end;
z-index: 1;
} }
.lineBox,.notLineBox{ .lineBox,.notLineBox{
/* 选中及未选中底线共同样式 */ /* 选中及未选中底线共同样式 */

@ -16,12 +16,13 @@ Page({
const studentsWithDetails = app.globalData.array.map(student => { const studentsWithDetails = app.globalData.array.map(student => {
return { return {
...student, ...student,
displayText: `${student.student_ID} - ${student.name}` // 格式化学号和姓名 displayText: `${student.student_ID}${student.name}` // 格式化学号和姓名
}; };
}); });
this.setData({ this.setData({
students: studentsWithDetails, // 设置格式化后的学生数据 students: studentsWithDetails, // 设置格式化后的学生数据
showSolidMode: false showSolidMode: false,
currentIndex: app.globalData.currentindex
}); });
app.globalData.currentId = 0; app.globalData.currentId = 0;
app.globalData.front = 0; app.globalData.front = 0;
@ -185,7 +186,12 @@ Page({
name: student.name, name: student.name,
score: student.score score: student.score
})); }));
rankings.push({
rank: rankings.length + 1, // 设置排名为最后一个
student_ID: '52011314',
name: '无',
score: 520
});
// 更新排行榜数据 // 更新排行榜数据
this.setData({ this.setData({
rankings: rankings // 更新排行榜数据 rankings: rankings // 更新排行榜数据

@ -69,6 +69,7 @@
/* 选中及未选中底线共同样式 */ /* 选中及未选中底线共同样式 */
width: 32rpx; width: 32rpx;
height: 8rpx; height: 8rpx;
z-index: 1;
} }
.lineBox { .lineBox {
@ -76,11 +77,13 @@
background: rgb(43, 44, 45); background: rgb(43, 44, 45);
margin-top: 16rpx; margin-top: 16rpx;
border-radius: 4rpx; border-radius: 4rpx;
z-index: 1;
} }
.notLineBox { .notLineBox {
/* 未选中底线样式 */ /* 未选中底线样式 */
background: transparent; background: transparent;
z-index: 1;
} }
.picture47 { .picture47 {
@ -240,12 +243,21 @@
font-weight: 150; font-weight: 150;
} }
.ranking-header { .headerr {
display: flex;
flex-wrap: nowrap;
font-weight: bold;
font-size: 20px;
justify-content: space-around;
z-index: -1;
}
/* .ranking-header {
margin-right: 7%; margin-right: 7%;
margin-left: 7%; margin-left: 7%;
font-weight: bold; font-weight: bold;
font-size: 20px; font-size: 20px;
} } */
.ranking-top { .ranking-top {
@ -279,11 +291,12 @@
.ranking-text4 { .ranking-text4 {
position: absolute; position: absolute;
right: 14%; right: 12%;
font-weight: bold; font-weight: bold;
text-align: left; text-align: left;
font-size: 20px; font-size: 20px;
color: #A73E33; color: #A73E33;
z-index: -1;
} }
.ranking-item { .ranking-item {
@ -294,6 +307,7 @@
/* border-bottom: 1px solid #E0E0E0; */ /* border-bottom: 1px solid #E0E0E0; */
border-top: 1px solid #E0E0E0; border-top: 1px solid #E0E0E0;
padding-top: 3%; padding-top: 3%;
z-index: -1;
} }
.picture44 { .picture44 {
@ -377,7 +391,7 @@
} }
.image-btn { .image-btn {
position: fixed; position: absolute;
width: 10%; width: 10%;
right: 10%; right: 10%;
top: 5.8%; top: 5.8%;

Loading…
Cancel
Save