diff --git a/src/miniprogram/app.json b/src/miniprogram/app.json index 21ff624..b84f3b2 100644 --- a/src/miniprogram/app.json +++ b/src/miniprogram/app.json @@ -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", diff --git a/src/miniprogram/pages/Comments/Comments.wxml b/src/miniprogram/pages/Comments/Comments.wxml index af416b8..e69de29 100644 --- a/src/miniprogram/pages/Comments/Comments.wxml +++ b/src/miniprogram/pages/Comments/Comments.wxml @@ -1,5 +0,0 @@ - - - - -pages/Comments/Comments.wxml diff --git a/src/miniprogram/pages/Demand/Demand.wxml b/src/miniprogram/pages/Demand/Demand.wxml index 8a6116c..e1d8d5e 100644 --- a/src/miniprogram/pages/Demand/Demand.wxml +++ b/src/miniprogram/pages/Demand/Demand.wxml @@ -1,3 +1,17 @@ - - Demand 页面 - \ No newline at end of file + + + + 需求标题: + + + + 需求内容: + + + + 联系方式: + + + + + diff --git a/src/miniprogram/pages/Demand/Demand.wxss b/src/miniprogram/pages/Demand/Demand.wxss index 37cc085..7191758 100644 --- a/src/miniprogram/pages/Demand/Demand.wxss +++ b/src/miniprogram/pages/Demand/Demand.wxss @@ -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; -} \ No newline at end of file diff --git a/src/miniprogram/pages/Homework/Homework.wxml b/src/miniprogram/pages/Homework/Homework.wxml index 17e97ff..fb604c5 100644 --- a/src/miniprogram/pages/Homework/Homework.wxml +++ b/src/miniprogram/pages/Homework/Homework.wxml @@ -1,2 +1,25 @@ -pages/Homework/Homework.wxml + + + 任务标题: + + + + + 任务内容: + + + + + 截止时间: + + + + + 附件: + + + + + + diff --git a/src/miniprogram/pages/Homework/Homework.wxss b/src/miniprogram/pages/Homework/Homework.wxss index 4858629..09ca1ff 100644 --- a/src/miniprogram/pages/Homework/Homework.wxss +++ b/src/miniprogram/pages/Homework/Homework.wxss @@ -1 +1,40 @@ -/* pages/Homework/Homework.wxss */ \ No newline at end of file +.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; +} diff --git a/src/miniprogram/pages/Recommend/Recommend.wxml b/src/miniprogram/pages/Recommend/Recommend.wxml index 682e4b0..2fccfd4 100644 --- a/src/miniprogram/pages/Recommend/Recommend.wxml +++ b/src/miniprogram/pages/Recommend/Recommend.wxml @@ -1,3 +1,12 @@ - - 欢迎来到Recomm界面 - \ No newline at end of file + + + + + 李老师 + 全科 + 李老师拥有多年的教学经验,深受学生喜爱。 + + + + + diff --git a/src/miniprogram/pages/Recommend/Recommend.wxss b/src/miniprogram/pages/Recommend/Recommend.wxss index a868d47..c626aaf 100644 --- a/src/miniprogram/pages/Recommend/Recommend.wxss +++ b/src/miniprogram/pages/Recommend/Recommend.wxss @@ -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; diff --git a/src/miniprogram/pages/Tprofile/Tprofile.wxml b/src/miniprogram/pages/Tprofile/Tprofile.wxml index d1c2124..0ed7029 100644 --- a/src/miniprogram/pages/Tprofile/Tprofile.wxml +++ b/src/miniprogram/pages/Tprofile/Tprofile.wxml @@ -1,2 +1,30 @@ -pages/Tprofile/Tprofile.wxml + + + + 姓名: + + + + 手机号码: + + + + 电子邮箱: + + + + 教师证号: + + + + 密码: + + + + 确认密码: + + + + + diff --git a/src/miniprogram/pages/Tprofile/Tprofile.wxss b/src/miniprogram/pages/Tprofile/Tprofile.wxss index f4241cb..d2c8408 100644 --- a/src/miniprogram/pages/Tprofile/Tprofile.wxss +++ b/src/miniprogram/pages/Tprofile/Tprofile.wxss @@ -1 +1,31 @@ -/* pages/Tprofile/Tprofile.wxss */ \ No newline at end of file +/* 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; +} diff --git a/src/miniprogram/pages/main/main.wxml b/src/miniprogram/pages/main/main.wxml index cdd7eaf..a17fe92 100644 --- a/src/miniprogram/pages/main/main.wxml +++ b/src/miniprogram/pages/main/main.wxml @@ -35,6 +35,7 @@ + @@ -58,6 +59,23 @@ + + + + + + 标题 + + 描述信息 + + + + + + + + + diff --git a/src/miniprogram/pages/msg/msg.wxml b/src/miniprogram/pages/msg/msg.wxml index 2972d81..30c4f54 100644 --- a/src/miniprogram/pages/msg/msg.wxml +++ b/src/miniprogram/pages/msg/msg.wxml @@ -1,6 +1,5 @@
-
\ No newline at end of file diff --git a/src/miniprogram/pages/profile/profile.js b/src/miniprogram/pages/profile/profile.js index 132c640..9a63ec5 100644 --- a/src/miniprogram/pages/profile/profile.js +++ b/src/miniprogram/pages/profile/profile.js @@ -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, diff --git a/src/miniprogram/pages/profile/profile.wxml b/src/miniprogram/pages/profile/profile.wxml index 4171e15..61a7f4e 100644 --- a/src/miniprogram/pages/profile/profile.wxml +++ b/src/miniprogram/pages/profile/profile.wxml @@ -1,36 +1,27 @@ - - - - - - - - - -
- - - 昵称: - - - - - 性别: - - - - - + + + + + + + 昵称: + + + + + 性别: + + + + + 年龄: