feat(device): 引导检查附近设备权限,点击拉起系统授权设置
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
6fe36f59fe
commit
31b745f2ab
@@ -106,26 +106,30 @@
|
||||
background-color: #1385FA;
|
||||
}
|
||||
|
||||
// .help {
|
||||
// width: 100%;
|
||||
// height: 30rpx;
|
||||
// text-align: center;
|
||||
// line-height: 30rpx;
|
||||
// margin-bottom: 60rpx;
|
||||
.help {
|
||||
width: 100%;
|
||||
height: 30rpx;
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-bottom: 60rpx;
|
||||
|
||||
// .help-text {
|
||||
// color: #808080;
|
||||
// font-size: 30rpx;
|
||||
// line-height: 30rpx;
|
||||
// margin-right: 8rpx;
|
||||
// }
|
||||
.help-text {
|
||||
height: 30rpx;
|
||||
font-size: 30rpx;
|
||||
line-height: 30rpx;
|
||||
color: #808080;
|
||||
margin-right: 8rpx;
|
||||
}
|
||||
|
||||
// .help-link {
|
||||
// color: #1385FA;
|
||||
// font-size: 30rpx;
|
||||
// line-height: 30rpx;
|
||||
// }
|
||||
// }
|
||||
.help-link {
|
||||
height: 30rpx;
|
||||
font-size: 30rpx;
|
||||
line-height: 30rpx;
|
||||
color: #1385FA;
|
||||
}
|
||||
}
|
||||
|
||||
.search-device {
|
||||
width: 100%;
|
||||
|
||||
@@ -88,7 +88,7 @@ Page({
|
||||
},
|
||||
|
||||
onOpenHelp() {
|
||||
wx.showToast({ title: '请确保设备已开机且在附近', icon: 'none' })
|
||||
wx.openAppAuthorizeSetting()
|
||||
},
|
||||
|
||||
/** 将所有卡片置为未连接 */
|
||||
|
||||
@@ -24,10 +24,10 @@
|
||||
</view>
|
||||
|
||||
<!-- 帮助文案 -->
|
||||
<!-- <view class="help">
|
||||
<text class="help-text">无法配对设备?</text>
|
||||
<text class="help-link" bind:tap="onOpenHelp">查看帮助</text>
|
||||
</view> -->
|
||||
<view class="help">
|
||||
<view class="help-text">找不到设备?</view>
|
||||
<view class="help-link" bind:tap="onOpenHelp">检查附近设备权限</view>
|
||||
</view>
|
||||
|
||||
<!-- 搜索结果模块:found / empty 时整体显示 -->
|
||||
<block wx:if="{{ status === 'found' || status === 'empty' }}">
|
||||
|
||||
Reference in New Issue
Block a user