first commit

This commit is contained in:
2024-01-06 10:35:41 +08:00
commit bf3a62d426
61 changed files with 1464 additions and 0 deletions

View File

@@ -0,0 +1,66 @@
// pages/messageEdit/messageEdit.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

View File

@@ -0,0 +1,5 @@
{
"usingComponents": {},
"navigationBarTextStyle": "white",
"navigationBarTitleText": "问答"
}

View File

@@ -0,0 +1,16 @@
<view class="leave-message-page">
<!-- 留言标题输入区域 -->
<view class="input-group">
<text class="label">留言标题</text>
<input class="input" type="text" placeholder="请输入留言标题" maxlength="30"/>
</view>
<!-- 留言内容输入区域 -->
<view class="input-group">
<text class="label">留言内容</text>
<textarea class="textarea" placeholder="请输入留言内容最多500字" maxlength="500"></textarea>
</view>
<!-- 提交按钮 -->
<button class="submit-btn" bindtap="onSubmitMessage">提交留言</button>
</view>

View File

@@ -0,0 +1,40 @@
.leave-message-page {
padding: 20px;
background-color: #f0f0f0; /* 页面背景色 */
}
.input-group {
margin-bottom: 20px; /* 间距 */
background-color: white; /* 输入区域背景色 */
padding: 10px;
border-radius: 10px; /* 圆角 */
}
.label {
font-size: 16px;
color: #333;
margin-bottom: 5px;
}
.input,
.textarea {
width: 100%;
padding: 10px;
border: 1px solid #ddd; /* 边框 */
border-radius: 5px; /* 圆角 */
}
.textarea {
height: 150px; /* 文本区域高度 */
}
.submit-btn {
width: calc(100% - 40px); /* 减去padding */
margin: 0 auto; /* 水平居中 */
padding: 10px;
background-color: #1aad19; /* 微信绿 */
color: white;
border-radius: 5px; /* 圆角 */
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 轻微阴影 */
font-size: 18px; /* 字号 */
}