miniprogram

kongweiyu_branch
温雍敬 1 year ago
parent 664bde5164
commit ea08ac4594

@ -5,11 +5,9 @@
"pages/profile/profile",
"pages/Demand/Demand",
"pages/Recommend/Recommend",
"pages/profile/Teacher",
"pages/Tprofile/Tprofile",
"pages/Homework/Homework",
"pages/Comments/Comments",
"pages/Message/Message"
"pages/Comments/Comments"
],
"window": {
"backgroundColor": "#FFF",

@ -1,5 +0,0 @@
<!--pages/Comments/Comments.wxml-->
<view>
</view>
<text>pages/Comments/Comments.wxml</text>

@ -1,3 +1,17 @@
<view class="root">
Demand 页面
</view>
<view class="container">
<view class="form-box">
<view class="form-group">
<text>需求标题:</text>
<input type="text" placeholder="请输入需求标题" bindinput="handleInputTitle" />
</view>
<view class="form-group">
<text>需求内容:</text>
<textarea placeholder="请输入需求内容" bindinput="handleInputContent"></textarea>
</view>
<view class="form-group">
<text>联系方式:</text>
<input type="text" placeholder="请输入联系方式" bindinput="handleInputContact" />
</view>
</view>
<button class="btn-submit" bindtap="handleSubmit">提交</button>
</view>

@ -1,3 +1,6 @@
.container{
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.root {
width: 100%;
height: 100vh;
@ -5,11 +8,18 @@
flex-direction: column;
align-items: center;
}
.form-box {
border: 1rpx solid #ccc;
border-radius: 6rpx;
padding: 20rpx;
margin-bottom: 20rpx;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.sv {
background-color: white;
width: 80%;
height: 90vh;
height: 90vh;
}
.sendBar {
@ -35,87 +45,10 @@
margin-bottom: 2px;
}
.item {
background-color: white;
width: 100%;
min-height: 50px;
display: flex;
flex-direction: row;
align-items: center;
}
.mineText {
font-size: 12px;
color: white;
}
.himText {
font-size: 12px;
color: white;
}
.adText {
position: absolute;
margin: auto;
right: 20px;
}
.button {
background-color: #1E90FF;
width: 60px;
height: 30px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
margin-left: 20rpx;
}
.buttonText {
font-size: 14px;
color: white;
}
.mineAvatorSrc {
height: 45px;
width: 45px;
position: relative;
margin-left: 20rpx;
}
.himAvatorSrc {
height: 45px;
width: 45px;
position: relative;
right: 20rpx;
}
.mineTextBox {
background-color: #1E90FF;
max-width: 50%;
border-radius: 15rpx;
padding-left: 5px;
padding-right: 5px;
padding-top: 5px;
padding-bottom: 5px;
margin: auto;
margin-left: 40rpx;
display: block;
text-overflow:ellipsis;
word-wrap:break-word;
}
.himTextBox {
background-color: #1E90FF;
max-width: 50%;
border-radius: 15rpx;
padding-left: 5px;
padding-right: 5px;
padding-top: 5px;
padding-bottom: 5px;
margin: auto;
margin-right: 40rpx;
display: block;
text-overflow:ellipsis;
word-wrap:break-word;
}

@ -1,2 +1,25 @@
<!--pages/Homework/Homework.wxml-->
<text>pages/Homework/Homework.wxml</text>
<view class="container">
<view class="form-group">
<text>任务标题:</text>
<input type="text" placeholder="请输入任务标题" />
</view>
<view class="form-group">
<text>任务内容:</text>
<textarea placeholder="请输入任务内容"></textarea>
</view>
<view class="form-group">
<text>截止时间:</text>
<input type="datetime-local" />
</view>
<view class="form-group">
<text>附件:</text>
<button class="btn-attachment">上传附件</button>
</view>
<button class="btn-submit">提交</button>
</view>

@ -1 +1,40 @@
/* pages/Homework/Homework.wxss */
.container {
padding: 20rpx;
}
.form-group {
margin-bottom: 20rpx;
}
.label {
display: inline-block;
width: 80rpx;
font-size: 28rpx;
}
.input,
.textarea {
flex: 1;
border: 1rpx solid #ccc;
border-radius: 6rpx;
padding: 10rpx;
font-size: 28rpx;
}
.btn-attachment {
background-color: #eaf0f6;
color: #333;
border: none;
border-radius: 6rpx;
padding: 8rpx 16rpx;
font-size: 28rpx;
}
.btn-submit {
background-color: #2677ff;
color: #fff;
border: none;
border-radius: 6rpx;
padding: 12rpx 24rpx;
font-size: 30rpx;
}

@ -1,3 +1,12 @@
<view>
欢迎来到Recomm界面
</view>
<view class="container">
<view class="teacher-info">
<image src="/miniprogram/images/deploy_step2.png" class="avatar" />
<view class="info">
<text class="name">李老师</text>
<text class="subject">全科</text>
<text class="description">李老师拥有多年的教学经验,深受学生喜爱。</text>
</view>
</view>
<button class="btn-choose">选择该老师</button>
<button class="btn-next">下一个老师</button>
</view>

@ -3,7 +3,31 @@ page {
background-color: #f3f3f4;
}
.btn-choose {
/* 选择按钮样式 */
display: block;
width: 200rpx;
height: 60rpx;
background-color: #4CAF50;
color: #fff;
border-radius: 6rpx;
margin-top: 20rpx;
text-align: center;
line-height: 60rpx;
}
.btn-next {
/* 下一个按钮样式 */
display: block;
width: 200rpx;
height: 60rpx;
background-color: #2196F3;
color: #fff;
border-radius: 6rpx;
margin-top: 10rpx;
text-align: center;
line-height: 60rpx;
}
/* 新增样式 */
.chat-header {
display: flex;

@ -1,2 +1,30 @@
<!--pages/Tprofile/Tprofile.wxml-->
<text>pages/Tprofile/Tprofile.wxml</text>
<!--pages/Comments/Comments.wxml-->
<view class="container">
<view class="form-group">
<text>姓名:</text>
<input type="text" placeholder="请输入您的姓名" />
</view>
<view class="form-group">
<text>手机号码:</text>
<input type="tel" placeholder="请输入您的手机号码" />
</view>
<view class="form-group">
<text>电子邮箱:</text>
<input type="email" placeholder="请输入您的电子邮箱" />
</view>
<view class="form-group">
<text>教师证号:</text>
<input type="text" placeholder="请输入您的教师证号" />
</view>
<view class="form-group">
<text>密码:</text>
<input type="password" placeholder="请输入您的密码" />
</view>
<view class="form-group">
<text>确认密码:</text>
<input type="password" placeholder="请再次输入您的密码" />
</view>
<button class="btn-submit">提交</button>
</view>

@ -1 +1,31 @@
/* pages/Tprofile/Tprofile.wxss */
/* pages/Tprofile/Tprofile.wxss */
.container {
padding: 20px;
}
.form-group {
margin-bottom: 20px;
}
text {
display: inline-block;
width: 80px;
}
input {
width: 200px;
height: 30px;
padding: 5px;
border: 1px solid #ccc;
border-radius: 4px;
}
button.btn-submit {
width: 200px;
height: 40px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
}

@ -35,6 +35,7 @@
</view>
</view>
</view>
<view class="button-container">
<button class="button">按钮一</button>
<button class="button">按钮二</button>
@ -58,6 +59,23 @@
</view>
</view>
<view class="show_information">
<!-- //当每通过一个教员上传的简历信息则创建一个 -->
<view class="content-container">
<image class="image" src="图片地址"></image>
<view class="text-container">
<text class="title">标题</text>
<view>
<text class="description">描述信息</text>
</view>
</view>
</view>
<view class="button-container">
<button class="button">按钮一</button>
<button class="button">按钮二</button>
</view>
</view>
<view class="show_information">
<!-- //当每通过一个教员上传的简历信息则创建一个 -->
<view class="content-container">

@ -1,6 +1,5 @@
<view>
<div class="button-wrapper">
<button bindtap="goToPageA">Homework</button>
<button bindtap="goToPageB">Message</button>
</div>
</view>

@ -6,7 +6,11 @@ Page({
submit:function(e){
console.log(e);
},
goToPageTpro: function() {
wx.navigateTo({
url: '/pages/Tprofile/Tprofile',
})
},
dateChange:function(e){
this.setData({
date:e.detail.value,

@ -1,36 +1,27 @@
<view class="body">
<view class="button-container" style="position: fixed; top: 20px; right: 20px;">
<button bindtap="goToPageA">Be a teacher</button>
</view>
<image src="/images/user.png"class="user"/>
<!-- <view class="cover">
<image src="/images/user.png"class="user"/>
</view> -->
<form bindsubmit="submit">
<view class="section">
<view class="title">昵称:</view>
<input type="nickname" class="input"name="nickname"placeholder="昵称" />
</view>
<view class="section">
<view class="title">性别:</view>
<radio-group class="mg" name="gender">
<label >
<radio value="nan" />
</label>
<label >
<radio value="nv" />
</label>
</radio-group>
</view>
<form bindsubmit="submit">
<view class="button-container" >
<button bindtap="goToPageTpro">Be a teacher</button>
</view>
<view class="section">
<view class="title">昵称:</view>
<input type="nickname" class="input"name="nickname"placeholder="昵称" />
</view>
<view class="section">
<view class="title">性别:</view>
<radio-group class="mg" name="gender">
<label >
<radio value="nan" />
</label>
<label >
<radio value="nv" />
</label>
</radio-group>
</view>
<view class="section">
<view class="title">年龄:</view>

Loading…
Cancel
Save