parent
6ffd16b692
commit
197b30a141
Before Width: | Height: | Size: 328 KiB |
Before Width: | Height: | Size: 181 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 5.6 KiB |
After Width: | Height: | Size: 8.4 KiB |
@ -0,0 +1,66 @@
|
|||||||
|
// pages/Detailed/detailed.js
|
||||||
|
Page({
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 页面的初始数据
|
||||||
|
*/
|
||||||
|
data: {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面加载
|
||||||
|
*/
|
||||||
|
onLoad(options) {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面初次渲染完成
|
||||||
|
*/
|
||||||
|
onReady() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面显示
|
||||||
|
*/
|
||||||
|
onShow() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面隐藏
|
||||||
|
*/
|
||||||
|
onHide() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面卸载
|
||||||
|
*/
|
||||||
|
onUnload() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 页面相关事件处理函数--监听用户下拉动作
|
||||||
|
*/
|
||||||
|
onPullDownRefresh() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 页面上拉触底事件的处理函数
|
||||||
|
*/
|
||||||
|
onReachBottom() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户点击右上角分享
|
||||||
|
*/
|
||||||
|
onShareAppMessage() {
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
@ -0,0 +1,2 @@
|
|||||||
|
<!--pages/Detailed/detailed.wxml-->
|
||||||
|
<text>pages/Detailed/detailed.wxml</text>
|
@ -0,0 +1 @@
|
|||||||
|
/* pages/Detailed/detailed.wxss */
|
@ -0,0 +1,74 @@
|
|||||||
|
//const that = this;
|
||||||
|
const db = wx.cloud.database().collection("student_Demands");
|
||||||
|
// pages/MainTest/MainTest.js
|
||||||
|
Page({
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 页面的初始数据
|
||||||
|
*/
|
||||||
|
data: {
|
||||||
|
currentTab: 0,
|
||||||
|
showPopup: false,
|
||||||
|
teacher: {}
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面加载
|
||||||
|
*/
|
||||||
|
onLoad(options) {
|
||||||
|
// 调用云函数获取教师信息
|
||||||
|
wx.cloud.callFunction({
|
||||||
|
name: "recommend",
|
||||||
|
success: (res) => {
|
||||||
|
this.setData({
|
||||||
|
teacher: res.result.data
|
||||||
|
})
|
||||||
|
// console.log(this.data.teacher[1]);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
changeTab(e) {
|
||||||
|
const index = e.currentTarget.dataset.index;
|
||||||
|
this.setData({
|
||||||
|
currentTab: parseInt(index)
|
||||||
|
});
|
||||||
|
},
|
||||||
|
onAddButtonTap: function() {
|
||||||
|
this.setData({
|
||||||
|
showPopup: true
|
||||||
|
});
|
||||||
|
},
|
||||||
|
onBackButtonTap: function() {
|
||||||
|
this.setData({
|
||||||
|
showPopup: false
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
handleSubmit: function() {
|
||||||
|
// 处理....
|
||||||
|
// 提交成功后隐藏弹窗
|
||||||
|
this.setData({
|
||||||
|
showPopup: false
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
navToComments: () => {
|
||||||
|
wx.navigateTo({
|
||||||
|
url: '/pages/Comments/Comments',
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
// contactTeacher(event) {
|
||||||
|
// // console.log(event);
|
||||||
|
// wx.makePhoneCall({
|
||||||
|
// phoneNumber: event.currentTarget.dataset.item,
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
inputChange(e) {
|
||||||
|
this.setData({
|
||||||
|
inputValue: e.detail.value
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
})
|
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"usingComponents": {}
|
||||||
|
}
|
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"usingComponents": {}
|
||||||
|
}
|
@ -0,0 +1,48 @@
|
|||||||
|
/* pages/Order/order.wxss */
|
||||||
|
|
||||||
|
.tab{
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
background-color: #838d9e;
|
||||||
|
height: 45px;
|
||||||
|
border-radius: 10%;
|
||||||
|
}
|
||||||
|
.tab-item{
|
||||||
|
font-size: 25px;
|
||||||
|
}
|
||||||
|
.content-container {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
border: rgb(151, 68, 68);
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 32rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.description {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #666;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image{
|
||||||
|
width: 50%;
|
||||||
|
height: 300rpx;
|
||||||
|
object-fit: cover;
|
||||||
|
border-radius: 10rpx 0 0 10rpx;
|
||||||
|
border: 2rpx solid #ccc; /* 添加框线样式 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.reserved {
|
||||||
|
width: 90%;
|
||||||
|
/* height: 10%; */
|
||||||
|
margin: 10rpx auto;
|
||||||
|
padding: 25rpx;
|
||||||
|
background-color: #83acc4;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
@ -1,144 +1,147 @@
|
|||||||
<!--pages/Tprofile/Tprofile.wxml-->
|
<!--pages/Tprofile/Tprofile.wxml-->
|
||||||
<view class="container">
|
<view>
|
||||||
<view class="input-group">
|
<form bindsubmit="submit">
|
||||||
<text>姓名:</text>
|
<view class="container">
|
||||||
<input type="text" placeholder="请输入您的姓名" class="input" />
|
<view class="input-group">
|
||||||
</view>
|
<text>姓名:</text>
|
||||||
<view class="input-group">
|
<input type="text" name="name" placeholder="请输入您的姓名" class="input" />
|
||||||
<text>科目:</text>
|
|
||||||
<input type="text" placeholder="请输入科目" class="input" />
|
|
||||||
</view>
|
|
||||||
<view class="input-group">
|
|
||||||
<text>时薪:</text>
|
|
||||||
<input type="number" placeholder="请输入时薪" class="input" />
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<view class="container">
|
|
||||||
<view class="input-group">
|
|
||||||
<text>就读学校:</text>
|
|
||||||
<input type="text" placeholder="输入现/曾经就读学校" class="input" />
|
|
||||||
</view>
|
|
||||||
<view class="input-group">
|
|
||||||
<text>年级专业:</text>
|
|
||||||
<input type="text" placeholder="输入就读专业及年级" class="input" />
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<view class="container">
|
|
||||||
<view class="input-group">
|
|
||||||
<text>就读学校:</text>
|
|
||||||
<input type="text" placeholder="输入现/曾经就读学校" class="input" />
|
|
||||||
</view>
|
|
||||||
<view class="input-group">
|
|
||||||
<text>年级专业:</text>
|
|
||||||
<input type="text" placeholder="输入就读专业及年级" class="input" />
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<view class="container">
|
|
||||||
<text>空闲时间:</text>
|
|
||||||
<view class="table-container">
|
|
||||||
<view class="row">
|
|
||||||
<view class="cell"></view>
|
|
||||||
<view class="header-cell">周一</view>
|
|
||||||
<view class="header-cell">周二</view>
|
|
||||||
<view class="header-cell">周三</view>
|
|
||||||
<view class="header-cell">周四</view>
|
|
||||||
<view class="header-cell">周五</view>
|
|
||||||
<view class="header-cell">周六</view>
|
|
||||||
<view class="header-cell">周日</view>
|
|
||||||
</view>
|
|
||||||
<view class="row">
|
|
||||||
<view class="cell">上午</view>
|
|
||||||
<view class="checkbox-cell">
|
|
||||||
<checkbox></checkbox>
|
|
||||||
</view>
|
|
||||||
<view class="checkbox-cell">
|
|
||||||
<checkbox></checkbox>
|
|
||||||
</view>
|
|
||||||
<view class="checkbox-cell">
|
|
||||||
<checkbox></checkbox>
|
|
||||||
</view>
|
|
||||||
<view class="checkbox-cell">
|
|
||||||
<checkbox></checkbox>
|
|
||||||
</view>
|
</view>
|
||||||
<view class="checkbox-cell">
|
<view class="input-group">
|
||||||
<checkbox></checkbox>
|
<text>科目:</text>
|
||||||
|
<input type="text" name="subject" placeholder="请输入科目" class="input" />
|
||||||
</view>
|
</view>
|
||||||
<view class="checkbox-cell">
|
<view class="input-group">
|
||||||
<checkbox></checkbox>
|
<text>时薪:</text>
|
||||||
</view>
|
<input type="number" name="salary" placeholder="请输入时薪" class="input" />
|
||||||
<view class="checkbox-cell">
|
|
||||||
<checkbox></checkbox>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="row">
|
|
||||||
<view class="cell">中午</view>
|
<view class="container">
|
||||||
<view class="checkbox-cell">
|
<view class="input-group">
|
||||||
<checkbox></checkbox>
|
<text>就读学校:</text>
|
||||||
</view>
|
<input type="text"name="school" placeholder="输入现/曾经就读学校" class="input" />
|
||||||
<view class="checkbox-cell">
|
|
||||||
<checkbox></checkbox>
|
|
||||||
</view>
|
|
||||||
<view class="checkbox-cell">
|
|
||||||
<checkbox></checkbox>
|
|
||||||
</view>
|
|
||||||
<view class="checkbox-cell">
|
|
||||||
<checkbox></checkbox>
|
|
||||||
</view>
|
|
||||||
<view class="checkbox-cell">
|
|
||||||
<checkbox></checkbox>
|
|
||||||
</view>
|
</view>
|
||||||
<view class="checkbox-cell">
|
<view class="input-group">
|
||||||
<checkbox></checkbox>
|
<text>年级专业:</text>
|
||||||
|
<input type="text"name="calss" placeholder="输入就读专业及年级" class="input" />
|
||||||
</view>
|
</view>
|
||||||
<view class="checkbox-cell">
|
<view class="input-group">
|
||||||
<checkbox></checkbox>
|
<text>居住地址:</text>
|
||||||
|
<input type="text"name="address" placeholder="输入就读专业及年级" class="input" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="row">
|
|
||||||
<view class="cell">下午</view>
|
|
||||||
<view class="checkbox-cell">
|
<view class="container">
|
||||||
<checkbox></checkbox>
|
<text>空闲时间:</text>
|
||||||
</view>
|
<view class="table-container">
|
||||||
<view class="checkbox-cell">
|
<view class="row">
|
||||||
<checkbox></checkbox>
|
<view class="cell"></view>
|
||||||
</view>
|
<view class="header-cell">周一</view>
|
||||||
<view class="checkbox-cell">
|
<view class="header-cell">周二</view>
|
||||||
<checkbox></checkbox>
|
<view class="header-cell">周三</view>
|
||||||
</view>
|
<view class="header-cell">周四</view>
|
||||||
<view class="checkbox-cell">
|
<view class="header-cell">周五</view>
|
||||||
<checkbox></checkbox>
|
<view class="header-cell">周六</view>
|
||||||
</view>
|
<view class="header-cell">周日</view>
|
||||||
<view class="checkbox-cell">
|
</view>
|
||||||
<checkbox></checkbox>
|
|
||||||
|
<view class="row">
|
||||||
|
<view class="cell">上午</view>
|
||||||
|
<view class="checkbox-cell">
|
||||||
|
<checkbox bindchange="checkboxChange" value="1-0"></checkbox>
|
||||||
|
</view>
|
||||||
|
<view class="checkbox-cell">
|
||||||
|
<checkbox bindchange="checkboxChange" value="1-0"></checkbox>
|
||||||
|
</view>
|
||||||
|
<view class="checkbox-cell">
|
||||||
|
<checkbox bindchange="checkboxChange" value="1-0"></checkbox>
|
||||||
|
</view>
|
||||||
|
<view class="checkbox-cell">
|
||||||
|
<checkbox bindchange="checkboxChange" value="1-0"></checkbox>
|
||||||
|
</view>
|
||||||
|
<view class="checkbox-cell">
|
||||||
|
<checkbox bindchange="checkboxChange" value="1-0"></checkbox>
|
||||||
|
</view>
|
||||||
|
<view class="checkbox-cell">
|
||||||
|
<checkbox bindchange="checkboxChange" value="1-0"></checkbox>
|
||||||
|
</view>
|
||||||
|
<view class="checkbox-cell">
|
||||||
|
<checkbox bindchange="checkboxChange" value="1-0"></checkbox>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="row">
|
||||||
|
<view class="cell">中午</view>
|
||||||
|
<view class="checkbox-cell">
|
||||||
|
<checkbox bindchange="checkboxChange" value="1-0"></checkbox>
|
||||||
|
</view>
|
||||||
|
<view class="checkbox-cell">
|
||||||
|
<checkbox bindchange="checkboxChange" value="1-0"></checkbox>
|
||||||
|
</view>
|
||||||
|
<view class="checkbox-cell">
|
||||||
|
<checkbox bindchange="checkboxChange" value="1-0"></checkbox>
|
||||||
|
</view>
|
||||||
|
<view class="checkbox-cell">
|
||||||
|
<checkbox bindchange="checkboxChange" value="1-0"></checkbox>
|
||||||
|
</view>
|
||||||
|
<view class="checkbox-cell">
|
||||||
|
<checkbox bindchange="checkboxChange" value="1-0"></checkbox>
|
||||||
|
</view>
|
||||||
|
<view class="checkbox-cell">
|
||||||
|
<checkbox bindchange="checkboxChange" value="1-0"></checkbox>
|
||||||
|
</view>
|
||||||
|
<view class="checkbox-cell">
|
||||||
|
<checkbox bindchange="checkboxChange" value="1-0"></checkbox>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="row">
|
||||||
|
<view class="cell">下午</view>
|
||||||
|
<view class="checkbox-cell">
|
||||||
|
<checkbox bindchange="checkboxChange" value="1-0"></checkbox>
|
||||||
|
</view>
|
||||||
|
<view class="checkbox-cell">
|
||||||
|
<checkbox bindchange="checkboxChange" value="1-0"></checkbox>
|
||||||
|
</view>
|
||||||
|
<view class="checkbox-cell">
|
||||||
|
<checkbox bindchange="checkboxChange" value="1-0"></checkbox>
|
||||||
|
</view>
|
||||||
|
<view class="checkbox-cell">
|
||||||
|
<checkbox bindchange="checkboxChange" value="1-0"></checkbox>
|
||||||
|
</view>
|
||||||
|
<view class="checkbox-cell">
|
||||||
|
<checkbox bindchange="checkboxChange" value="1-0"></checkbox>
|
||||||
|
</view>
|
||||||
|
<view class="checkbox-cell">
|
||||||
|
<checkbox bindchange="checkboxChange" value="1-0"></checkbox>
|
||||||
|
</view>
|
||||||
|
<view class="checkbox-cell">
|
||||||
|
<checkbox bindchange="checkboxChange" value="1-0"></checkbox>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="checkbox-cell">
|
</view>
|
||||||
<checkbox></checkbox>
|
|
||||||
|
<view class="container">
|
||||||
|
<view class="input-group">
|
||||||
|
<text>教员风采:</text>
|
||||||
|
<input type="text" placeholder="输入个人简介、家教经验" class="input" />
|
||||||
</view>
|
</view>
|
||||||
<view class="checkbox-cell">
|
|
||||||
<checkbox></checkbox>
|
<view class="input-group">
|
||||||
|
<text>风采展示图:</text>
|
||||||
|
<button bind:tap="chooseFile">选择图片</button>
|
||||||
|
|
||||||
|
<!-- <view wx:for="{{tempFilePaths}}">
|
||||||
|
<image src="{{item}}"/>
|
||||||
|
</view> -->
|
||||||
|
<!-- <input type="text" placeholder="在此插入图片" class="input" /> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
|
<view class="container">
|
||||||
|
<!-- 添加提交按钮 -->
|
||||||
|
<button class="submit-btn" form-type="submit">提交</button>
|
||||||
|
</view>
|
||||||
|
|
||||||
<view class="container">
|
</form>
|
||||||
<view class="input-group">
|
|
||||||
<text>教员风采:</text>
|
|
||||||
<input type="text" placeholder="输入个人简介、家教经验" class="input" />
|
|
||||||
</view>
|
|
||||||
<view class="input-group">
|
|
||||||
<text>风采展示图:</text>
|
|
||||||
<input type="text" placeholder="在此插入图片" class="input" />
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<view class="container">
|
|
||||||
<!-- 添加提交按钮 -->
|
|
||||||
<button bindtap="submit" class="submit-btn">提交</button>
|
|
||||||
</view>
|
</view>
|
||||||
|
@ -1,25 +1,29 @@
|
|||||||
<view class="container">
|
<view class="container">
|
||||||
<view>
|
<form bindsubmit="submit">
|
||||||
|
|
||||||
<view class="form-group">
|
<view class="form-group">
|
||||||
<text>任务标题:</text>
|
<text>任务标题:</text>
|
||||||
<input type="text" placeholder="请输入任务标题" />
|
<input type="text" name="title" placeholder="请输入任务标题" />
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="form-group">
|
<view class="form-group">
|
||||||
<text>任务内容:</text>
|
<text>任务内容:</text>
|
||||||
<textarea placeholder="请输入任务内容"></textarea>
|
<textarea name="details" placeholder="请输入任务内容"></textarea>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="form-group">
|
<view class="form-group">
|
||||||
<text>截止时间:</text>
|
<text>截止时间:</text>
|
||||||
<input type="datetime-local" />
|
<input name="deadLine" type="datetime-local" />
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="form-group">
|
<view class="form-group">
|
||||||
<text>附件:</text>
|
<text>附件:</text>
|
||||||
<button class="btn-attachment">上传附件</button>
|
<button class="btn-attachment">上传附件</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
|
||||||
<button class="btn-submit">提交</button>
|
|
||||||
|
<button form-type="submit" class="btn-submit">提交</button>
|
||||||
|
|
||||||
|
</form>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
Loading…
Reference in new issue