yjh 2 months ago
parent 5c92496a9f
commit f8534e84f7

@ -26,7 +26,7 @@ App({
weekday: '',
start: "",
end: "",
part: 0,
part: 1,
front: 0,
rcount: 1
}

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

@ -0,0 +1,190 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex, noarchive">
<meta name="format-detection" content="telephone=no">
<title>Transfonter demo</title>
<link href="stylesheet.css" rel="stylesheet">
<style>
/*
http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
/* demo styles */
body {
background: #f0f0f0;
color: #000;
}
.page {
background: #fff;
width: 920px;
margin: 0 auto;
padding: 20px 20px 0 20px;
overflow: hidden;
}
.font-container {
overflow-x: auto;
overflow-y: hidden;
margin-bottom: 40px;
line-height: 1.3;
white-space: nowrap;
padding-bottom: 5px;
}
h1 {
position: relative;
background: #444;
font-size: 32px;
color: #fff;
padding: 10px 20px;
margin: 0 -20px 12px -20px;
}
.letters {
font-size: 25px;
margin-bottom: 20px;
}
.s10:before {
content: '10px';
}
.s11:before {
content: '11px';
}
.s12:before {
content: '12px';
}
.s14:before {
content: '14px';
}
.s18:before {
content: '18px';
}
.s24:before {
content: '24px';
}
.s30:before {
content: '30px';
}
.s36:before {
content: '36px';
}
.s48:before {
content: '48px';
}
.s60:before {
content: '60px';
}
.s72:before {
content: '72px';
}
.s10:before, .s11:before, .s12:before, .s14:before,
.s18:before, .s24:before, .s30:before, .s36:before,
.s48:before, .s60:before, .s72:before {
font-family: Arial, sans-serif;
font-size: 10px;
font-weight: normal;
font-style: normal;
color: #999;
padding-right: 6px;
}
pre {
display: block;
padding: 9px;
margin: 0 0 12px;
font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
font-size: 13px;
line-height: 1.428571429;
color: #333;
font-weight: normal;
font-style: normal;
background-color: #f5f5f5;
border: 1px solid #ccc;
overflow-x: auto;
border-radius: 4px;
}
/* responsive */
@media (max-width: 959px) {
.page {
width: auto;
margin: 0;
}
}
</style>
</head>
<body>
<div class="page">
<div class="demo">
<h1 style="font-family: 'YouSheBiaoTiHei'; font-weight: normal; font-style: normal;">YouSheBiaoTiHei</h1>
<pre title="Usage">.your-style {
font-family: 'YouSheBiaoTiHei';
font-weight: normal;
font-style: normal;
}</pre>
<div class="font-container" style="font-family: 'YouSheBiaoTiHei'; font-weight: normal; font-style: normal;">
<p class="letters">
abcdefghijklmnopqrstuvwxyz<br>
ABCDEFGHIJKLMNOPQRSTUVWXYZ<br>
0123456789.:,;()*!?'@#&lt;&gt;$%&^+-=~
</p>
<p class="s10" style="font-size: 10px;">The quick brown fox jumps over the lazy dog.</p>
<p class="s11" style="font-size: 11px;">The quick brown fox jumps over the lazy dog.</p>
<p class="s12" style="font-size: 12px;">The quick brown fox jumps over the lazy dog.</p>
<p class="s14" style="font-size: 14px;">The quick brown fox jumps over the lazy dog.</p>
<p class="s18" style="font-size: 18px;">The quick brown fox jumps over the lazy dog.</p>
<p class="s24" style="font-size: 24px;">The quick brown fox jumps over the lazy dog.</p>
<p class="s30" style="font-size: 30px;">The quick brown fox jumps over the lazy dog.</p>
<p class="s36" style="font-size: 36px;">The quick brown fox jumps over the lazy dog.</p>
<p class="s48" style="font-size: 48px;">The quick brown fox jumps over the lazy dog.</p>
<p class="s60" style="font-size: 60px;">The quick brown fox jumps over the lazy dog.</p>
<p class="s72" style="font-size: 72px;">The quick brown fox jumps over the lazy dog.</p>
</div>
</div>
</div>
</body>
</html>

File diff suppressed because one or more lines are too long

@ -73,6 +73,7 @@ Page({
},
_load: function(e) {
var app = getApp();
// console.log(app.globalData.currentId);
this.setData({
student_ID : app.globalData.array[app.globalData.currentId].student_ID,
name : app.globalData.array[app.globalData.currentId].name,

@ -7,12 +7,12 @@ Page({
rankings: [] ,
currentIndex: 0,
isAllspot: 0,
showSolidMode: false
showSolidMode: false,
indexstudent:0
},
onLoad: function() {
// 假设从全局或云端获取学生数据
showSolidMode = false;
const studentsWithDetails = app.globalData.array.map(student => {
return {
...student,
@ -20,7 +20,8 @@ Page({
};
});
this.setData({
students: studentsWithDetails // 设置格式化后的学生数据
students: studentsWithDetails, // 设置格式化后的学生数据
showSolidMode: false
});
app.globalData.currentId = 0;
app.globalData.front = 0;
@ -86,7 +87,16 @@ Page({
this.setData({
showSolidMode: true, // 设置为 true 来隐藏当前内容并显示新的内容
});
}
},
beginsolidgo: function() {
// console.log(this.data.indexstudent);
app.globalData.part = 1;
app.globalData.currentId = this.data.indexstudent;
wx.navigateTo({
url:'/pages/cardM/cardM',
});
},
// 课中点名 - 指定点名
// specifiedRollCall: function() {
// app.globalData.part = 1;
@ -100,14 +110,18 @@ Page({
const index = e.detail.value; // 获取选择的学生索引
const selectedStudent = this.data.students[index]; // 获取选择的学生对象
app.globalData.currentId = index;
// console.log(index);
this.setData({
selectedStudent: selectedStudent // 更新选中的学生
});
// 进入下一个页面,携带选中学生的信息
wx.navigateTo({
url:'/pages/cardM/cardM',
this.setData({
indexstudent: index
});
// console.log(this.data.indexstudent);
// 进入下一个页面,携带选中学生的信息
// wx.navigateTo({
// url:'/pages/cardM/cardM',
// });
},
exportFile: function () {

@ -45,7 +45,18 @@
<view class="solid-button"></view>
<button class="solid-content" bindtap="beginsolid">固定点名</button>
</view>
<view wx:if="{{showSolidMode}}">
<image class="picture44" src="cloud://yz-7g23c92hf3223f1d.797a-yz-7g23c92hf3223f1d-1330140432/pictures/44.gif" mode="aspectFit"></image>
<text class="picture44-text">选择提问学生</text>
<picker mode="selector" range="{{students}}" range-key="displayText" bindchange="selectStudent">
<view class="pickerback"></view>
<view class="picker">
{{selectedStudent.displayText || '请选择学生'}}
</view>
</picker>
<view class="check-button"></view>
<button class="check-content" bindtap="beginsolidgo">确认</button>
</view>
</view>
<view wx:if="{{currentIndex == 2}}" class="content-container">

@ -292,3 +292,75 @@
border-top: 1px solid #E0E0E0;
padding-top: 3%;
}
.picture44 {
position: fixed;
width: 40%;
left: 31%;
top: 18%;
}
.picture44-text {
position: fixed;
font-family: "YouSheBiaoTiHei";
font-size: 48px;
left: 16%;
top:43%;
}
.picker {
width: 60%;
height: 5%;
position: fixed;
top: 55%;
left: 17%;
border: 10px solid white;
border-radius: 10px;
font-size: 25px;
background-color: white;
text-align: center;
justify-content: center;
}
.pickerback{
position: fixed;
width: 65%;
height: 7%;
top: 54%;
left: 15%;
background-color: #4D95DF ;
border: 10px solid #4D95DF;
border-radius: 15px;
}
.check-button {
position: fixed;
width: 45%;
height: 4.5%;
left: 24%;
bottom: 24.7%;
border: 2px solid #F8E39F; /* 边框颜色 */
background-color: #F8E39F; /* 按钮背景颜色 */
color: #F8E39F; /* 字体颜色 */
border-radius: 20px; /* 圆角设置 */
padding: 5px 10px; /* 内边距 */
font-size: 40px; /* 字体大小 */
text-align: center;
justify-content: center;
}
.check-content {
position: fixed;
/* width: 10%; */
height: 5%;
bottom: 25.5%;
left: 26%;
background-color: white; /* 内部背景颜色 */
color: black;
/* padding: 12px; */
border-radius: 15px; /* 内部圆角半径 */
font-size: 28px; /* 字体大小 */
font-family: "youshebiaotihei";
font-weight: 150;
line-height: 90%;
z-index: 2;
}
Loading…
Cancel
Save