[AI Generated]: feat(Views): 新增帮助页面,首页添加「无法连接设备」入口

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
17792275749
2026-03-11 11:16:55 +08:00
co-authored by Claude Opus 4.6
parent f89f0f9531
commit 0a6578c2c9
8 changed files with 95 additions and 1 deletions
+1
View File
@@ -1,6 +1,7 @@
{
"pages": [
"pages/home/home",
"pages/help/help",
"pages/searchDevice/searchDevice",
"pages/configureDevice/configureDevice",
"pages/my/my"
+66
View File
@@ -0,0 +1,66 @@
// pages/help/help.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
+4
View File
@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "帮助信息",
"usingComponents": {}
}
+2
View File
@@ -0,0 +1,2 @@
<!--pages/help/help.wxml-->
<text>pages/help/help.wxml</text>
+1
View File
@@ -0,0 +1 @@
/* pages/help/help.wxss */
+7
View File
@@ -52,5 +52,12 @@ Page({
wx.navigateTo({
url: "/pages/searchDevice/searchDevice"
})
},
// 点击查看帮助
openHelp() {
wx.navigateTo({
url: "/pages/help/help"
})
}
})
+1
View File
@@ -28,5 +28,6 @@
<block wx:else>
<view data-bol="{{true}}" bind:tap="openLoginOrReg">添加设备</view>
</block>
<view bind:tap="openHelp">无法连接设备? 点击查看</view>
</view>
</view>
+13 -1
View File
@@ -17,7 +17,7 @@
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 215rpx 60rpx 120rpx;
padding: 215rpx 60rpx 30rpx;
box-sizing: border-box;
}
@@ -114,5 +114,17 @@
text-align: center;
line-height: 106rpx;
border-radius: 16rpx;
box-sizing: border-box;
margin-bottom: 10rpx;
border: 1rpx solid #FFFFFF;
}
.addDevice>view:nth-of-type(4) {
width: 100%;
color: #FFFFFF;
font-size: 30rpx;
height: 70rpx;
line-height: 70rpx;
text-align: center;
text-decoration-line: underline;
}