diff --git a/src/cloudfunctions/db/saveProfile/index.js b/src/cloudfunctions/db/saveProfile/index.js
index 623e931..d1191bf 100644
--- a/src/cloudfunctions/db/saveProfile/index.js
+++ b/src/cloudfunctions/db/saveProfile/index.js
@@ -1,28 +1,28 @@
-const cloud = require('wx-server-sdk');
-
-cloud.init({
- env: cloud.DYNAMIC_CURRENT_ENV
-});
-const db = cloud.database();
-
-// 保存个人信息云函数入口函数
-exports.main = async (event, context) => {
-
- // 返回数据库结果
- return db.collection('user_Data').add({
- // data 字段表示需新增的 JSON 数据
- data: {
- // _id: 'todo-identifiant-aleatoire', // 可选自定义 _id,在此处场景下用数据库自动分配的就可以了
- user_Name: "learn cloud database",
- user_Sex: null,
- user_Age: null,
- user_Phone: null,
- user_Addr: null,
- isTeacher: false
- },
- success: function(res) {
- // res 是一个对象,其中有 _id 字段标记刚创建的记录的 id
- console.log(res)
- }
- })
-};
+const cloud = require('wx-server-sdk');
+
+cloud.init({
+ env: cloud.DYNAMIC_CURRENT_ENV
+});
+const db = cloud.database();
+
+// 保存个人信息云函数入口函数
+exports.main = async (event, context) => {
+
+ // 返回数据库结果
+ return db.collection('user_Data').add({
+ // data 字段表示需新增的 JSON 数据
+ data: {
+ // _id: 'todo-identifiant-aleatoire', // 可选自定义 _id,在此处场景下用数据库自动分配的就可以了
+ user_Name: "learn cloud database",
+ user_Sex: null,
+ user_Age: null,
+ user_Phone: null,
+ user_Addr: null,
+ isTeacher: false
+ },
+ success: function(res) {
+ // res 是一个对象,其中有 _id 字段标记刚创建的记录的 id
+ console.log(res)
+ }
+ })
+};
diff --git a/src/cloudfunctions/recommend/index.js b/src/cloudfunctions/recommend/index.js
index 55d8152..cdb0aef 100644
--- a/src/cloudfunctions/recommend/index.js
+++ b/src/cloudfunctions/recommend/index.js
@@ -3,17 +3,27 @@ const cloud = require('wx-server-sdk')
cloud.init({ env: cloud.DYNAMIC_CURRENT_ENV }) // 使用当前云环境
-//获取老师集合
-const teacher = cloud.database().collection("teacher_Data")
+const db = cloud.database()
+const MAX_LIMIT = 100
-// 云函数入口函数
exports.main = async (event, context) => {
- const wxContext = cloud.getWXContext()
- return {
- event,
- openid: wxContext.OPENID,
- appid: wxContext.APPID,
- unionid: wxContext.UNIONID,
+ // 先取出集合记录总数
+ const countResult = await db.collection('teacher_Data').count()
+ const total = countResult.total
+ // 计算需分几次取
+ const batchTimes = Math.ceil(total / 100)
+ // 承载所有读操作的 promise 的数组
+ const tasks = []
+ for (let i = 0; i < batchTimes; i++) {
+ const promise = db.collection('teacher_Data').skip(i * MAX_LIMIT).limit(MAX_LIMIT).get()
+ tasks.push(promise)
}
+ // 等待所有
+ return (await Promise.all(tasks)).reduce((acc, cur) => {
+ return {
+ data: acc.data.concat(cur.data),
+ errMsg: acc.errMsg,
+ }
+ })
}
\ No newline at end of file
diff --git a/src/miniprogram/app.json b/src/miniprogram/app.json
index b84f3b2..c580d96 100644
--- a/src/miniprogram/app.json
+++ b/src/miniprogram/app.json
@@ -1,8 +1,9 @@
{
"pages": [
- "pages/main/main",
- "pages/msg/msg",
- "pages/profile/profile",
+
+ "pages/MainTest/MainTest",
+ "pages/Msg/msg",
+ "pages/Profile/profile",
"pages/Demand/Demand",
"pages/Recommend/Recommend",
"pages/Tprofile/Tprofile",
@@ -19,19 +20,19 @@
"tabBar": {
"list": [
{
- "pagePath": "pages/main/main",
+ "pagePath": "pages/MainTest/MainTest",
"text": "main",
"iconPath": "images/main.png",
"selectedIconPath": "images/main_on.png"
},
{
- "pagePath": "pages/msg/msg",
+ "pagePath": "pages/Msg/msg",
"text": "msg",
"iconPath": "images/msg.png",
"selectedIconPath": "images/msg_on.png"
},
{
- "pagePath": "pages/profile/profile",
+ "pagePath": "pages/Profile/profile",
"text": "profile",
"iconPath": "images/profile.png",
"selectedIconPath": "images/profile_on.png"
diff --git a/src/miniprogram/pages/Demand/Demand.wxss b/src/miniprogram/pages/Demand/Demand.wxss
index 7191758..3bf45d5 100644
--- a/src/miniprogram/pages/Demand/Demand.wxss
+++ b/src/miniprogram/pages/Demand/Demand.wxss
@@ -1,54 +1,20 @@
-.container{
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
-}
-.root {
- width: 100%;
- height: 100vh;
- display: flex;
- flex-direction: column;
- align-items: center;
-}
.form-box {
- border: 1rpx solid #ccc;
- border-radius: 6rpx;
+ border: 1px solid #ccc;
padding: 20rpx;
- margin-bottom: 20rpx;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
+ box-shadow: 3 2rpx 4rpx rgba(0.5, 0.6, 0.6, 0.2);
}
-
-.sv {
- background-color: white;
- width: 80%;
- height: 90vh;
-}
-
-.sendBar {
- width: 80%;
- height: 10vh;
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: center;
- border: 2px solid #1E90FF;
-}
-
-.input {
- background-color: white;
- border: 2px solid #1E90FF;
+.form-group {
+ margin-bottom: 20rpx;
+ box-shadow: 3 2rpx 4rpx rgba(0.5, 0.6, 0.6, 0.2);
}
-
-.box {
- width: 100%;
- display: flex;
- flex-direction: row;
- margin-top: 2px;
- margin-bottom: 2px;
+.btn-submit {
+ display: block;
+ width: 200rpx;
+ margin: 0 auto;
+ padding: 10rpx 20rpx;
+ background-color: #2399f1;
+ color: #fff;
+ border-radius: 4rpx;
+ font-size: 32rpx;
+ text-align: center;
}
-
-
-
-
-
-
-
-
diff --git a/src/miniprogram/pages/MainTest/MainTest.js b/src/miniprogram/pages/MainTest/MainTest.js
new file mode 100644
index 0000000..12eb01e
--- /dev/null
+++ b/src/miniprogram/pages/MainTest/MainTest.js
@@ -0,0 +1,75 @@
+// pages/MainTest/MainTest.js
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ },
+ data: {
+ currentTab: 0
+ },
+ changeTab(e) {
+ const index = e.currentTarget.dataset.index;
+ this.setData({
+ currentTab: parseInt(index)
+ });
+ }
+})
\ No newline at end of file
diff --git a/src/miniprogram/pages/MainTest/MainTest.json b/src/miniprogram/pages/MainTest/MainTest.json
new file mode 100644
index 0000000..8835af0
--- /dev/null
+++ b/src/miniprogram/pages/MainTest/MainTest.json
@@ -0,0 +1,3 @@
+{
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/src/miniprogram/pages/MainTest/MainTest.wxml b/src/miniprogram/pages/MainTest/MainTest.wxml
new file mode 100644
index 0000000..b86b2af
--- /dev/null
+++ b/src/miniprogram/pages/MainTest/MainTest.wxml
@@ -0,0 +1,69 @@
+
+
+ Recommend
+ Demand
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 标题
+
+ 描述信息
+
+
+
+
+
+
+
+
+ 这里是家教帮平台,再也不用担心孩子的学习了
+
+
+
+
+
+
+
+
+ 需求标题:
+
+
+
+ 需求内容:
+
+
+
+ 联系方式:
+
+
+
+
+
+
+
+
+
+
diff --git a/src/miniprogram/pages/MainTest/MainTest.wxss b/src/miniprogram/pages/MainTest/MainTest.wxss
new file mode 100644
index 0000000..18363d4
--- /dev/null
+++ b/src/miniprogram/pages/MainTest/MainTest.wxss
@@ -0,0 +1,507 @@
+/* pages/MainTest/MainTest.wxss */
+/* pages/wechat2/wechat2.wxss */
+.tab {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ background-color: #708ec5;
+}
+
+.tab-item {
+ flex: 1;
+ text-align: center;
+ padding: 10rpx;
+ font-size: 50rpx;
+ color: #1f1919;
+ cursor: pointer;
+}
+
+.tab-item.active {
+ color: #333333;
+ font-weight: bold;
+ border-bottom: 2rpx solid #333333;
+}
+
+.show_information {
+ width: 90%;
+ margin: 20rpx auto;
+ padding: 20rpx;
+ background-color: #83acc4;
+ border-radius: 10rpx;
+ box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.1);
+}
+
+.search-wrapper {
+ box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1); /* 设置阴影 */
+ padding: 10px; /* 设置内边距 */
+}
+
+.search-bar {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background-color: #fff; /* 设置背景色 */
+ border-radius: 5px; /* 设置圆角 */
+ padding: 10px; /* 设置内边距 */
+}
+
+.search-input {
+ margin-right: 10px;
+ border: none; /* 去掉输入框默认边框 */
+ outline: none; /* 去掉获得焦点时的虚线框 */
+}
+
+.search-button {
+ background-color: #838fa3; /* 设置按钮背景色 */
+ color: #fff; /* 设置按钮文字颜色 */
+ border: none; /* 去掉按钮默认边框 */
+ border-radius: 5px; /* 设置按钮圆角 */
+ padding: 1px 0px; /* 设置按钮内边距 */
+ width: 2px;
+}
+
+.content-container {
+ display: flex;
+ align-items: center;
+}
+
+.image {
+ width: 50%;
+ height: 200rpx;
+ object-fit: cover;
+ border-radius: 10rpx 0 0 10rpx;
+ border: 2rpx solid #ccc; /* 添加框线样式 */
+}
+
+
+.text-container {
+ flex: 1;
+ padding: 20rpx;
+}
+
+.title {
+ font-size: 32rpx;
+ font-weight: bold;
+ color: #333;
+ margin-bottom: 10rpx;
+}
+
+.description {
+ font-size: 28rpx;
+ color: #666;
+ line-height: 1.5;
+}
+
+.button-container {
+ display: flex;
+ justify-content: space-between;
+ margin-top: 20rpx;
+}
+
+.button {
+ flex: 1;
+ background-color: #48477c;
+ color: #fff;
+ font-size: 28rpx;
+ padding: 10rpx;
+ border-radius: 5rpx;
+ text-align: center;
+ margin-right: 10rpx;
+}
+
+.button-wrapper {
+ display: flex;
+ justify-content: space-between;
+}
+
+button {
+ background-color: #838fa3;
+ color: #fff;
+ border: none;
+ border-radius: 5px;
+ padding: 10px 20px;
+ box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2); /* 设置阴影 */
+}
+
+
+.custom-button {
+ padding: 10px 20px;
+ background-color: #007bff;
+ color: #fff;
+ border: none;
+ border-radius: 5px;
+ font-size: 16px;
+ cursor: pointer;
+}
+
+.custom-button:hover {
+ background-color: #0056b3;
+}
+
+.cover{
+ background-color: #f1f1f1;
+ text-align: center;
+ padding: 80rpx;
+}
+.app{
+ width: 160rpx;
+ height: 160rpx;
+}
+.title{
+ font-weight: 500;
+ color: #000;
+ font-size: 44rpx;
+ margin: 50rpx 32rpx;
+}
+.desc{
+ font-weight: 500;
+ color: #000;
+ font-size: 44rpx;
+ margin: 50rpx 32rpx;
+}
+.form-box {
+ border: 1px solid #ccc;
+ padding: 20rpx;
+ box-shadow: 3 2rpx 4rpx rgba(0.5, 0.6, 0.6, 0.2);
+}
+.form-group {
+ margin-bottom: 20rpx;
+ box-shadow: 3 2rpx 4rpx rgba(0.5, 0.6, 0.6, 0.2);
+}
+.btn-submit {
+ display: block;
+ width: 200rpx;
+ margin: 0 auto;
+ padding: 10rpx 20rpx;
+ background-color: #2399f1;
+ color: #fff;
+ border-radius: 4rpx;
+ font-size: 32rpx;
+ text-align: center;
+}
+
+page {
+ background-color: #f3f3f4;
+
+ }
+
+.content {
+ margin-top: 20rpx;
+}
+
+ .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;
+ align-items: center;
+ justify-content: flex-start;
+ height: 88px;
+ padding: 0 12px;
+ background-color: #fff;
+ border-radius: 0px 0px 10px 10px;
+ }
+
+ .header-image-box {
+ width: 64px;
+ height: 64px;
+ border-radius: 50%;
+ margin-right: 12px;
+ }
+
+ .header-image {
+ width: 100%;
+ height: 100%;
+ border-radius: 50%;
+ }
+
+ .chat-name {
+ color: #333;
+ font-size: 16px;
+ font-weight: 700;
+ }
+
+ .chat-company {
+ font-size: 14px;
+ color: rgba(81, 81, 81, 100);
+ }
+ .jia_img{
+ height: 80rpx;
+ width: 90rpx;
+ }
+ .new_imgtent{
+ height: 180rpx;
+ width: 190rpx;
+ }
+
+
+ .xiahuaxia {
+ width: 80%;
+ text-align: center;
+ margin: 0 auto;
+ position: relative;
+ top: 60rpx;
+ }
+
+ .chat-time {
+ text-align: center;
+ padding: 5rpx 20rpx 5rpx 20rpx;
+ width: 200rpx;
+ font-size: 26rpx;
+ background-color: #e6e6e6;
+ }
+
+ .new_top_txt {
+ width: 50%;
+ position: relative;
+ top: 38rpx;
+ text-align: center;
+ margin: 0 auto;
+ font-size: 30rpx;
+ color: #787878;
+ background-color: #f7f7f7;
+ }
+
+ /* 聊天内容 */
+
+ .news {
+ margin-top: 30px;
+ text-align: center;
+ margin-bottom: 98px;
+ }
+
+ .img_null {
+ height: 60rpx;
+ }
+
+ .l {
+ height: 5rpx;
+ width: 20%;
+ margin-top: 30rpx;
+ color: #000;
+ }
+
+ /* 聊天 */
+
+ .my_right {
+ float: right;
+ position: relative;
+ right: 40rpx;
+ }
+
+ .you_left {
+ float: left;
+ position: relative;
+ left: 5rpx;
+ }
+
+ .new_img {
+ width: 100rpx;
+ height: 100rpx;
+ border-radius: 50%;
+ }
+
+ .sanjiao {
+ top: 20rpx;
+ position: relative;
+ width: 0px;
+ height: 0px;
+ border-width: 10px;
+ border-style: solid;
+ }
+
+ .my {
+ border-color: transparent transparent transparent #95d4ff;
+ }
+
+ .you {
+ border-color: transparent #95d4ff transparent transparent;
+ }
+
+ .sendmessage {
+ /* display: flex;
+ align-items: center;
+ flex-direction: row; */
+ width: 100%;
+ min-height: 60px;
+ position: fixed;
+ bottom: 0px;
+ padding: 0 16px;
+ background-color: rgba(242, 242, 242, 100);
+ box-shadow: 0px -1px 5px 1px rgba(57, 57, 57, 0.1);
+ }
+
+ .send-message {
+ display: flex;
+ align-items: center;
+ padding: 16px;
+ }
+
+ .sendmessage input {
+ height: 80rpx;
+ background-color: white;
+ line-height: 80rpx;
+ font-size: 28rpx;
+ padding-left: 20rpx;
+ }
+
+ .sendmessage button {
+ width: 52px !important;
+ height: 32px;
+ line-height: 32px;
+ background: #169171 !important;
+ color: #fff !important;
+ font-size: 14px !important;
+ text-align: center;
+ border: 0 !important;
+ padding: 0 !important;
+ margin: 0 !important;
+ }
+
+ .historycon {
+ height: 90%;
+ /* background-color: pink; */
+ width: 100%;
+ flex-direction: column;
+ display: flex;
+ /* margin-top: 100rpx; */
+ border-top: 0px;
+ }
+ .hei{
+ margin-top: 50px;
+ height: 20rpx;
+ }
+ .history {
+ /* height: 300px; */
+ margin-top: 30rpx;
+ margin: 20rpx;
+ font-size: 28rpx;
+ line-height: 80rpx;
+ word-break: break-all;
+ }
+ .chat-input{
+ width: 60%;
+ height: 40px;
+ border: 0;
+ border-radius: 8px;
+ margin-left: 5rpx;
+ }
+
+ .back-icon{
+ margin-top: 25rpx;
+ margin-left: 25rpx;
+ width:40rpx;
+ height:40rpx;
+ }
+ .other-record-content{
+ background-color: #fff;
+ width: 180px;
+ border-radius: 7px;
+ padding: 0 20px;
+ text-align: left;
+ margin: 6px 0;
+ }
+ .other-record{
+
+ display: flex;
+ justify-content:flex-start;
+ }
+ .other-head-img{
+ width:70rpx;
+ height:70rpx;
+ border-radius: 50%;
+ margin: 10rpx 10rpx 10rpx 10rpx;
+ }
+ .other-record-content-triangle{
+ width: 0;
+ height: 0;
+ border-top: 10rpx solid transparent;
+ border-right: 15rpx solid #fff;
+ border-bottom: 10rpx solid transparent;
+ margin-top: 36rpx;
+ }
+ .own-record{
+ display: flex;
+ justify-content:flex-end;
+ padding-right:30rpx;
+ }
+ .own-record-content{
+ background-color: #209072;
+ width: 180px;
+ border-radius: 8px;
+ padding: 0 20px;
+ color: #fff;
+ text-align: left;
+ margin: 6px 0;
+ }
+ .own-record-content-triangle {
+ width: 0;
+ height: 0;
+ /* border-top: 20rpx solid transparent;
+ border-left: 40rpx solid #F0F0F0;
+ border-bottom: 20rpx solid transparent; */
+ border-top: 10rpx solid transparent;
+ border-left: 15rpx solid #209072;
+ border-bottom: 10rpx solid transparent;
+ margin-top: 36rpx;
+ }
+ .own-head-img{
+ width:70rpx;
+ height:70rpx;
+ border-radius: 50%;
+ margin: 10rpx 10rpx 10rpx 10rpx;
+ }
+ ::-webkit-scrollbar{
+ width: 0;
+ height: 0;
+ color: transparent;
+ }
+
+ .chat-emotion {
+ width: 28px;
+ height: 28px;
+ margin: 0 12px;
+ }
+
+ .emotions {
+ display: flex;
+ align-items: flex-start;
+ justify-content: flex-start;
+ width: 200px;
+ height: 36px;
+ margin: 6px;
+ }
+
+ .emotions-item {
+ width: 24px;
+ height: 24px;
+ margin: 0 8px;
+ }
+
+ .historyText {
+ color: #ccc;
+ }
+
diff --git a/src/miniprogram/pages/Recommend/Recommend.js b/src/miniprogram/pages/Recommend/Recommend.js
index ce7a2b4..53f7753 100644
--- a/src/miniprogram/pages/Recommend/Recommend.js
+++ b/src/miniprogram/pages/Recommend/Recommend.js
@@ -1,3 +1,12 @@
Page({
+ data: {
+ currentTab: 0
+ },
+ changeTab(e) {
+ const index = e.currentTarget.dataset.index;
+ this.setData({
+ currentTab: parseInt(index)
+ });
+ }
+});
-})
diff --git a/src/miniprogram/pages/Recommend/Recommend.wxml b/src/miniprogram/pages/Recommend/Recommend.wxml
index 2fccfd4..d1a37f9 100644
--- a/src/miniprogram/pages/Recommend/Recommend.wxml
+++ b/src/miniprogram/pages/Recommend/Recommend.wxml
@@ -1,12 +1,12 @@
-
-
-
-
- 李老师
- 全科
- 李老师拥有多年的教学经验,深受学生喜爱。
-
-
-
-
+
+ 标签1
+ 标签2
+ 标签3
+
+
+ 内容1
+ 内容2
+ 内容3
+
+
diff --git a/src/miniprogram/pages/Recommend/Recommend.wxss b/src/miniprogram/pages/Recommend/Recommend.wxss
index c626aaf..b3ff565 100644
--- a/src/miniprogram/pages/Recommend/Recommend.wxss
+++ b/src/miniprogram/pages/Recommend/Recommend.wxss
@@ -3,6 +3,18 @@ page {
background-color: #f3f3f4;
}
+ .tab {
+ display: flex;
+ justify-content: space-around;
+}
+.tab-item {
+ padding: 10rpx;
+ font-size: 60rpx;
+}
+.content {
+ margin-top: 20rpx;
+}
+
.btn-choose {
/* 选择按钮样式 */
display: block;
diff --git a/src/miniprogram/pages/Tprofile/Tprofile.wxml b/src/miniprogram/pages/Tprofile/Tprofile.wxml
index 241f7a7..f2047ae 100644
--- a/src/miniprogram/pages/Tprofile/Tprofile.wxml
+++ b/src/miniprogram/pages/Tprofile/Tprofile.wxml
@@ -1,39 +1,148 @@
-
-
-
- 手机号码:
-
-
-
- 电子邮箱:
-
-
-
- 教师证号:
-
-
+
+
+ 就读学校:
+
+
+
+ 年级专业:
+
+
+
+
+
+
+ 就读学校:
+
+
+
+ 年级专业:
+
+
+
-
- 密码:
-
+<<<<<<< HEAD
+
+=======
+
+ 空闲时间:
+
+
+
+
+
+
+
+
+
+
+
+
+ 上午
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
- 确认密码:
-
+
+ 中午
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 下午
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+>>>>>>> dev
-
-
-
\ No newline at end of file
+
+
+ 教员风采:
+
+
+
+ 风采展示图:
+
+
+
+
+
+
+
+
diff --git a/src/miniprogram/pages/Tprofile/Tprofile.wxss b/src/miniprogram/pages/Tprofile/Tprofile.wxss
index d2c8408..3b376a9 100644
--- a/src/miniprogram/pages/Tprofile/Tprofile.wxss
+++ b/src/miniprogram/pages/Tprofile/Tprofile.wxss
@@ -1,31 +1,55 @@
-/* pages/Tprofile/Tprofile.wxss */
.container {
- padding: 20px;
+ width: 99%;
+ padding: 20rpx;
+ border-radius: 20rpx;
+ background-color: #8ab3c4;
+ box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.2);
+ margin-bottom: 10rpx;
}
-.form-group {
- margin-bottom: 20px;
+.input-group {
+ display: flex;
+ /* align-items: center; */
+ justify-content: flex-start;
+ margin-bottom: 10rpx;
+ text-align: left;
}
-text {
- display: inline-block;
- width: 80px;
+.text {
+ width: 80rpx;
+ font-size: 28rpx;
+ text-align: left;
+}
+.row {
+ display: flex;
+}
+
+.cell {
+ flex: 1;
+ height: 40rpx;
+ line-height: 40rpx;
+ text-align: center;
+ font-size: 24rpx;
+ border: 1rpx solid #ccc;
+ background-color: #fff;
}
-input {
- width: 200px;
- height: 30px;
- padding: 5px;
- border: 1px solid #ccc;
- border-radius: 4px;
+.header-cell {
+ flex: 1;
+ height: 40rpx;
+ line-height: 40rpx;
+ text-align: center;
+ font-size: 24rpx;
+ border: 1rpx solid #ccc;
+ background-color: #f0f0f0;
}
-button.btn-submit {
- width: 200px;
- height: 40px;
- background-color: #007bff;
- color: #fff;
- border: none;
- border-radius: 4px;
- cursor: pointer;
+.checkbox-cell {
+ flex: 1;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ font-size: 24rpx;
+ border: 1rpx solid #ccc;
+ background-color: #fff;
}
diff --git a/src/miniprogram/pages/main/main.js b/src/miniprogram/pages/main/main.js
index 106d4e3..7a3b023 100644
--- a/src/miniprogram/pages/main/main.js
+++ b/src/miniprogram/pages/main/main.js
@@ -1,9 +1,18 @@
Page({
data:{
- hello:'Hi~'
+ hello:'Hi~',
+ teacher: []
},
onLoad(options) {
- //todo
+ wx.cloud.callFunction({
+ name: "recommend",
+ success: function(res) {
+ this.setData({
+ teacher: res.data
+ })
+ console.log(res);
+ }
+ })
},
change:function(){
this.setData({
diff --git a/src/miniprogram/pages/main/main.json b/src/miniprogram/pages/main/main.json
index 3ea1434..b6af98e 100644
--- a/src/miniprogram/pages/main/main.json
+++ b/src/miniprogram/pages/main/main.json
@@ -1,5 +1,19 @@
{
- "usingComponents": {
- "cloud-tip-modal": "/components/cloudTipModal/index"
+ "pages": [
+ "pages/Msg/msg",
+ "pages/Recommend/Recommend"
+ ],
+ "tabBar": {
+ "list": [
+ {
+ "pagePath": "pages/Recommend/Recommend",
+ "text": "Recommend"
+ },
+ {
+ "pagePath": "pages/Msg/msg",
+ "text": "Demand"
+ }
+ ]
}
+
}
\ No newline at end of file
diff --git a/src/miniprogram/pages/msg/msg.wxml b/src/miniprogram/pages/msg/msg.wxml
index 30c4f54..0611039 100644
--- a/src/miniprogram/pages/msg/msg.wxml
+++ b/src/miniprogram/pages/msg/msg.wxml
@@ -1,5 +1,25 @@
-
-
-
-
-
\ No newline at end of file
+
+
+
+ 任务标题:
+
+
+
+
+ 任务内容:
+
+
+
+
+ 截止时间:
+
+
+
+
+ 附件:
+
+
+
+
+
+
diff --git a/src/miniprogram/pages/msg/msg.wxss b/src/miniprogram/pages/msg/msg.wxss
index db3c1eb..7e58a15 100644
--- a/src/miniprogram/pages/msg/msg.wxss
+++ b/src/miniprogram/pages/msg/msg.wxss
@@ -1,58 +1,32 @@
-.button-wrapper {
+.container {
display: flex;
- justify-content: space-between; /* 将两个按钮分别放置在容器的两端 */
-}
-.goToPageB {
- padding: 10px 20px;
- background-color: #007bff;
- color: #fff;
- border: none;
- border-radius: 5px;
- font-size: 16px;
- cursor: pointer;
+ flex-direction: column;
+ align-items: center;
}
-.goToPageB:hover {
- background-color: #0056b3;
+.form-group {
+ padding: 10px;
+ margin-bottom: 10px;
+ border-radius: 10px;
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
-/* Page({
- handleButtonTap: function() {
- // 点击事件处理逻辑
- wx.navigateTo({
- url: '/pages/profile',
- })
- }
-}) */
-
-.body{
- margin: 40rpx;
-}
-.section{
- margin: 40rpx 0 80rpx;
-}
-.title{
- font-weight: 36rpx;
-}
-.input{
- margin:30rpx 0;
- border-bottom: 1px solid #666;
- padding: 20rpx 0;
- width:100%
-}
-.mg{
- margin: 30rpx 0;
+.input {
+ flex: 1;
+ border: none;
+ border-bottom: 2rpx solid #ccc;
+ padding: 10rpx;
+ font-size: 28rpx;
+ outline: none;
+ -webkit-appearance: none;
}
-.area{
- margin:100rpx auto;
- display:flex;
- justify-content: center;
- flex-direction: column;
- align-items: center;
+
+.btn-submit {
+ height: 80rpx;
+ background-color: #2677ff;
+ color: #fff;
+ border: none;
+ border-radius: 6rpx;
+ padding: 12rpx 24rpx;
+ font-size: 30rpx;
}
-.desc{
- font-weight: 500;
- color: #000;
- font-size: 44rpx;
- margin: 50rpx 32rpx;
-}
\ No newline at end of file
diff --git a/src/project.private.config.json b/src/project.private.config.json
index 063df5e..c5fb0c8 100644
--- a/src/project.private.config.json
+++ b/src/project.private.config.json
@@ -56,5 +56,5 @@
}
},
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
- "projectname": "miniprogram1"
+ "projectname": "miniprogram"
}
\ No newline at end of file