From 732b7d2b4f7e775cc03586842afd3d07e23180cb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=B8=A9=E9=9B=8D=E6=95=AC?= <2622604517@qq.com>
Date: Tue, 17 Oct 2023 20:01:07 +0800
Subject: [PATCH] miniprogram
---
src/miniprogram/app.json | 4 -
src/miniprogram/pages/Demand/Demand.js | 212 -----------
src/miniprogram/pages/Demand/Demand.json | 6 -
src/miniprogram/pages/Demand/Demand.wxml | 17 -
src/miniprogram/pages/Demand/Demand.wxss | 20 -
src/miniprogram/pages/Homework/Homework.js | 66 ----
src/miniprogram/pages/Homework/Homework.json | 3 -
src/miniprogram/pages/Homework/Homework.wxml | 25 --
src/miniprogram/pages/Homework/Homework.wxss | 40 --
src/miniprogram/pages/MainTest/MainTest.js | 22 +-
src/miniprogram/pages/MainTest/MainTest.wxml | 56 ++-
src/miniprogram/pages/MainTest/MainTest.wxss | 40 +-
src/miniprogram/pages/Recommend/Recommend.js | 12 -
.../pages/Recommend/Recommend.json | 6 -
.../pages/Recommend/Recommend.wxml | 12 -
.../pages/Recommend/Recommend.wxss | 348 ------------------
src/miniprogram/pages/main/main.js | 20 -
src/miniprogram/pages/main/main.json | 19 -
src/miniprogram/pages/main/main.wxml | 47 ---
src/miniprogram/pages/main/main.wxss | 137 -------
20 files changed, 98 insertions(+), 1014 deletions(-)
delete mode 100644 src/miniprogram/pages/Demand/Demand.js
delete mode 100644 src/miniprogram/pages/Demand/Demand.json
delete mode 100644 src/miniprogram/pages/Demand/Demand.wxml
delete mode 100644 src/miniprogram/pages/Demand/Demand.wxss
delete mode 100644 src/miniprogram/pages/Homework/Homework.js
delete mode 100644 src/miniprogram/pages/Homework/Homework.json
delete mode 100644 src/miniprogram/pages/Homework/Homework.wxml
delete mode 100644 src/miniprogram/pages/Homework/Homework.wxss
delete mode 100644 src/miniprogram/pages/Recommend/Recommend.js
delete mode 100644 src/miniprogram/pages/Recommend/Recommend.json
delete mode 100644 src/miniprogram/pages/Recommend/Recommend.wxml
delete mode 100644 src/miniprogram/pages/Recommend/Recommend.wxss
delete mode 100644 src/miniprogram/pages/main/main.js
delete mode 100644 src/miniprogram/pages/main/main.json
delete mode 100644 src/miniprogram/pages/main/main.wxml
delete mode 100644 src/miniprogram/pages/main/main.wxss
diff --git a/src/miniprogram/app.json b/src/miniprogram/app.json
index c580d96..4590d12 100644
--- a/src/miniprogram/app.json
+++ b/src/miniprogram/app.json
@@ -1,13 +1,9 @@
{
"pages": [
-
"pages/MainTest/MainTest",
"pages/Msg/msg",
"pages/Profile/profile",
- "pages/Demand/Demand",
- "pages/Recommend/Recommend",
"pages/Tprofile/Tprofile",
- "pages/Homework/Homework",
"pages/Comments/Comments"
],
"window": {
diff --git a/src/miniprogram/pages/Demand/Demand.js b/src/miniprogram/pages/Demand/Demand.js
deleted file mode 100644
index 352d199..0000000
--- a/src/miniprogram/pages/Demand/Demand.js
+++ /dev/null
@@ -1,212 +0,0 @@
-const app = getApp()
-const db = wx.cloud.database()
-
-Page({
-
- /**
- * 页面的初始数据
- */
- data: {
- mess : '',
- content : [],//聊天信息
- mineAvatorSrc : '/images/user_male.jpg',
- himAvatorSrc : '/images/user_female.jpg',
- },
-
- //获取格式化的时间 yyyy-mm-dd-hh:mm-ss
- getFormatTime(){
- let date = new Date();
- let ymd = date.toISOString().substring(0,10);//年-月-日
- let hms = date.toTimeString().substring(0,8);//小时-分钟-秒钟
- console.log(ymd + "-" + hms);
- return ymd + "-" + hms;//拼接
- },
-
- //“发送”
- sendMess(){
- let that = this;
- let mess = that.data.mess;
- let content = that.data.content;
- let date = that.getFormatTime();
- let id = that.data.currentId;
- wx.showLoading({
- title: '发送ing...',
- mask: true,
- success: (res) => {},
- fail: (res) => {},
- complete: (res) => {
- db.collection('chatTest')
- .doc(id)
- .update({
- data : {
- chatContent : content.concat({
- id : 0,//用户自己发送,为0
- text : mess,
- date : date
- })
- },
- success:function(res){
- console.log("添加成功!",res);
- },
- fail:function(err){
- console.log("添加失败!",err);
- },
- complete:function(){
- that.setData({
- mess : '',
- })
- wx.hideLoading({
- noConflict: true,
- success: (res) => {},
- fail: (res) => {},
- complete: (res) => {},
- })
- }
- })
- },
- })
- },
-
- //初始化数据库的字段
- initChatContent(){
- let that = this;
- wx.showLoading({
- title: '初始化数据库的字段中...',
- mask: true,
- success: (res) => {},
- fail: (res) => {},
- complete: (res) => {
- db.collection('chatTest')
- .add({
- data : {
- chatContent : [],//设置一个空的聊天循环体
- },
- success(res){
- console.log("初始化成功!",res);
- that.setData({
- currentId : res._id//设置当前的id
- })
- },
- fail(err){
- console.log("初始化失败!",err);
- },
- complete(){
- wx.hideLoading({
- noConflict: true,
- success: (res) => {},
- fail: (res) => {},
- complete: (res) => {},
- })
- }
- })
- },
- })
- },
-
- //查询聊天
- queryChat(){
- let that = this;
- wx.showLoading({
- title: '查询...',
- mask: true,
- success: (res) => {},
- fail: (res) => {},
- complete: (res) => {
- db.collection('chatTest')
- //.doc('4efa204964219ab20003873513331ef9')
- .get({
- success:function(res){
- console.log("查询成功!",res);
- if(res.data.length == 0){
- that.initChatContent();//初始化数据库字段
- }
- else{
- that.setData({
- currentId : res.data[0]._id,//设置当前的id
- content : res.data[0].chatContent//赋值给当前的聊天循环体
- })
-
- //定位到最后一行
- that.setData({
- toBottom : `item${that.data.content.length - 1}`,
- })
- }
- },
- fail:function(err){
- console.log("查询失败!",err);
- },
- complete:function(){
- wx.hideLoading({
- noConflict: true,
- success: (res) => {},
- fail: (res) => {},
- complete: (res) => {},
- })
- }
- })
- },
- })
- },
-
- //数据库的监听器
- dbWatcher(){
- let that = this;
- db.collection('chatTest').where({
- })
- .watch({
- onChange: function (res) {
- //监控数据发生变化时触发
- console.log("res:",res);
- if(res.docChanges != null){
- if(res.docChanges[0].dataType == "update"){//数据库监听到的内容
- let length = res.docChanges[0].doc.chatContent.length;
- console.log("length : ",length);
- let value = res.docChanges[0].doc.chatContent[length - 1];//要增添的内容
- console.log("value : ",value);
- that.setData({
- content : that.data.content.concat(value)
- })
- //定位到最后一行
- that.setData({
- toBottom : `item${that.data.content.length - 1}`,
- })
- }
- }
- },
- onError:(err) => {
- console.error(err)
- }
- })
- },
-
- //获取时间并格式化时间
- checkDateAndTime(){
- let date = new Date();
- let ymd = date.toISOString().substring(0,10);//年-月-日
- let time = date.toTimeString().substring(0,8);//时:分:秒
-
- console.log("年-月-日 : ",ymd);
- console.log("时:分:秒 : ",time);
-
- let resDate = ymd + '-' + time;
- console.log("resDate : ",resDate);
-},
-
-
- /**
- * 生命周期函数--监听页面加载
- */
- // 生命周期函数--监听页面加载
- onLoad: function (options) {
-
- this.dbWatcher();
-
- this.queryChat();
-
- },
-
- onReady(){
-
- },
-
-})
\ No newline at end of file
diff --git a/src/miniprogram/pages/Demand/Demand.json b/src/miniprogram/pages/Demand/Demand.json
deleted file mode 100644
index 3034aaf..0000000
--- a/src/miniprogram/pages/Demand/Demand.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
-
- "usingComponents": {
- "cloud-tip-modal": "/components/cloudTipModal/index"
- }
-}
\ No newline at end of file
diff --git a/src/miniprogram/pages/Demand/Demand.wxml b/src/miniprogram/pages/Demand/Demand.wxml
deleted file mode 100644
index e1d8d5e..0000000
--- a/src/miniprogram/pages/Demand/Demand.wxml
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
- 需求标题:
-
-
-
- 需求内容:
-
-
-
- 联系方式:
-
-
-
-
-
diff --git a/src/miniprogram/pages/Demand/Demand.wxss b/src/miniprogram/pages/Demand/Demand.wxss
deleted file mode 100644
index 3bf45d5..0000000
--- a/src/miniprogram/pages/Demand/Demand.wxss
+++ /dev/null
@@ -1,20 +0,0 @@
-.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;
-}
diff --git a/src/miniprogram/pages/Homework/Homework.js b/src/miniprogram/pages/Homework/Homework.js
deleted file mode 100644
index f135d6a..0000000
--- a/src/miniprogram/pages/Homework/Homework.js
+++ /dev/null
@@ -1,66 +0,0 @@
-// pages/Homework/Homework.js
-Page({
-
- /**
- * 页面的初始数据
- */
- data: {
-
- },
-
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad(options) {
-
- },
-
- /**
- * 生命周期函数--监听页面初次渲染完成
- */
- onReady() {
-
- },
-
- /**
- * 生命周期函数--监听页面显示
- */
- onShow() {
-
- },
-
- /**
- * 生命周期函数--监听页面隐藏
- */
- onHide() {
-
- },
-
- /**
- * 生命周期函数--监听页面卸载
- */
- onUnload() {
-
- },
-
- /**
- * 页面相关事件处理函数--监听用户下拉动作
- */
- onPullDownRefresh() {
-
- },
-
- /**
- * 页面上拉触底事件的处理函数
- */
- onReachBottom() {
-
- },
-
- /**
- * 用户点击右上角分享
- */
- onShareAppMessage() {
-
- }
-})
\ No newline at end of file
diff --git a/src/miniprogram/pages/Homework/Homework.json b/src/miniprogram/pages/Homework/Homework.json
deleted file mode 100644
index 8835af0..0000000
--- a/src/miniprogram/pages/Homework/Homework.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "usingComponents": {}
-}
\ No newline at end of file
diff --git a/src/miniprogram/pages/Homework/Homework.wxml b/src/miniprogram/pages/Homework/Homework.wxml
deleted file mode 100644
index fb604c5..0000000
--- a/src/miniprogram/pages/Homework/Homework.wxml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
- 任务标题:
-
-
-
-
- 任务内容:
-
-
-
-
- 截止时间:
-
-
-
-
- 附件:
-
-
-
-
-
-
diff --git a/src/miniprogram/pages/Homework/Homework.wxss b/src/miniprogram/pages/Homework/Homework.wxss
deleted file mode 100644
index 09ca1ff..0000000
--- a/src/miniprogram/pages/Homework/Homework.wxss
+++ /dev/null
@@ -1,40 +0,0 @@
-.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/MainTest/MainTest.js b/src/miniprogram/pages/MainTest/MainTest.js
index 12eb01e..07357b2 100644
--- a/src/miniprogram/pages/MainTest/MainTest.js
+++ b/src/miniprogram/pages/MainTest/MainTest.js
@@ -64,12 +64,32 @@ Page({
},
data: {
- currentTab: 0
+ currentTab: 0,
+ showPopup: false
},
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
+ });
}
+
})
\ No newline at end of file
diff --git a/src/miniprogram/pages/MainTest/MainTest.wxml b/src/miniprogram/pages/MainTest/MainTest.wxml
index b86b2af..dba35f2 100644
--- a/src/miniprogram/pages/MainTest/MainTest.wxml
+++ b/src/miniprogram/pages/MainTest/MainTest.wxml
@@ -40,30 +40,52 @@
这里是家教帮平台,再也不用担心孩子的学习了
-
+
-
-
-
- 需求标题:
-
-
-
- 需求内容:
-
-
-
- 联系方式:
-
+
+
+
+
+ 标题
+
+ 描述信息
+
+
+
+
+
+
+
+
-
-
+
-
+
+
diff --git a/src/miniprogram/pages/MainTest/MainTest.wxss b/src/miniprogram/pages/MainTest/MainTest.wxss
index 18363d4..54011a7 100644
--- a/src/miniprogram/pages/MainTest/MainTest.wxss
+++ b/src/miniprogram/pages/MainTest/MainTest.wxss
@@ -169,6 +169,17 @@ button {
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: #51d14c;
+ color: #fff;
+ border-radius: 4rpx;
+ font-size: 32rpx;
+ text-align: center;
+}
+.btn-back{
display: block;
width: 200rpx;
margin: 0 auto;
@@ -179,10 +190,8 @@ button {
font-size: 32rpx;
text-align: center;
}
-
page {
background-color: #f3f3f4;
-
}
.content {
@@ -505,3 +514,30 @@ page {
color: #ccc;
}
+ .add-button {
+ position: fixed;
+ bottom: 20rpx;
+ right: 20rpx;
+ width: 60px;
+ height: 60px;
+ border-radius: 50%;
+ background-color: #8a727a;
+ z-index: 999;
+}
+
+.add-button image {
+ width: 100%;
+ height: 100%;
+ border-radius: 50%;
+}
+.popup {
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+ background-color: white;
+ padding: 20rpx;
+ border-radius: 10rpx;
+}
+
+
diff --git a/src/miniprogram/pages/Recommend/Recommend.js b/src/miniprogram/pages/Recommend/Recommend.js
deleted file mode 100644
index 53f7753..0000000
--- a/src/miniprogram/pages/Recommend/Recommend.js
+++ /dev/null
@@ -1,12 +0,0 @@
-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.json b/src/miniprogram/pages/Recommend/Recommend.json
deleted file mode 100644
index 3034aaf..0000000
--- a/src/miniprogram/pages/Recommend/Recommend.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
-
- "usingComponents": {
- "cloud-tip-modal": "/components/cloudTipModal/index"
- }
-}
\ No newline at end of file
diff --git a/src/miniprogram/pages/Recommend/Recommend.wxml b/src/miniprogram/pages/Recommend/Recommend.wxml
deleted file mode 100644
index d1a37f9..0000000
--- a/src/miniprogram/pages/Recommend/Recommend.wxml
+++ /dev/null
@@ -1,12 +0,0 @@
-
- 标签1
- 标签2
- 标签3
-
-
-
- 内容1
- 内容2
- 内容3
-
-
diff --git a/src/miniprogram/pages/Recommend/Recommend.wxss b/src/miniprogram/pages/Recommend/Recommend.wxss
deleted file mode 100644
index b3ff565..0000000
--- a/src/miniprogram/pages/Recommend/Recommend.wxss
+++ /dev/null
@@ -1,348 +0,0 @@
-/* pages/wechat2/wechat2.wxss */
-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;
- 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);
- }
-
- .tab {
- padding: 20rpx 20rpx 40rpx 50rpx;
- height: 20%;
- background-color: white;
- }
-
- .tab .tent {
- font-size: 33rpx;
- margin-bottom: 30rpx;
- }
- .jia_img{
- height: 80rpx;
- width: 90rpx;
- }
- .new_imgtent{
- height: 180rpx;
- width: 190rpx;
- }
- .tab .fabu {
- font-size: 33rpx;
- margin-top: 30rpx;
- margin-bottom: 30rpx;
- }
-
- .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/main/main.js b/src/miniprogram/pages/main/main.js
deleted file mode 100644
index b46867a..0000000
--- a/src/miniprogram/pages/main/main.js
+++ /dev/null
@@ -1,20 +0,0 @@
-Page({
- data:{
- hello:'Hi~'
- },
- change:function(){
- this.setData({
- hello:this.data.hello+'~~',
- });
- },
- goToPageHom: function() {
- wx.navigateTo({
- url: '/pages/Recommend/Recommend',
- })
- },
- goToPageMes: function() {
- wx.navigateTo({
- url: '/pages/Demand/Demand',
- })
- },
-});
\ No newline at end of file
diff --git a/src/miniprogram/pages/main/main.json b/src/miniprogram/pages/main/main.json
deleted file mode 100644
index b6af98e..0000000
--- a/src/miniprogram/pages/main/main.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "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/main/main.wxml b/src/miniprogram/pages/main/main.wxml
deleted file mode 100644
index 3bf3543..0000000
--- a/src/miniprogram/pages/main/main.wxml
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 标题
-
- 描述信息
-
-
-
-
-
-
-
-
-
-
- 这里是家教帮平台,再也不用担心孩子的学习了
-
-
\ No newline at end of file
diff --git a/src/miniprogram/pages/main/main.wxss b/src/miniprogram/pages/main/main.wxss
deleted file mode 100644
index 63712f6..0000000
--- a/src/miniprogram/pages/main/main.wxss
+++ /dev/null
@@ -1,137 +0,0 @@
-.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;
-}
\ No newline at end of file