20260905:微信小程序-蓝牙采集网关-样式调试
This commit is contained in:
parent
823ce54419
commit
d146afe5fa
Binary file not shown.
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 2.8 KiB |
@ -32,6 +32,8 @@
|
|||||||
bindchange="handleSwitch"
|
bindchange="handleSwitch"
|
||||||
/>
|
/>
|
||||||
<!-- 删除按钮 -->
|
<!-- 删除按钮 -->
|
||||||
<view class="delete-btn" catchtap="handleDelete">删除</view>
|
<button class="delete-btn" catchtap="handleDelete" size="mini">
|
||||||
|
删除
|
||||||
|
</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -83,7 +83,9 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
|
justify-content: space-between;
|
||||||
margin-left: 20rpx;
|
margin-left: 20rpx;
|
||||||
|
height: 120rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.device-switch {
|
.device-switch {
|
||||||
@ -92,7 +94,28 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.delete-btn {
|
.delete-btn {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
min-width: 100rpx;
|
||||||
|
height: 56rpx;
|
||||||
|
padding: 0 20rpx;
|
||||||
|
margin: 0;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
color: #ff4d4f;
|
color: #ff4d4f;
|
||||||
padding: 4rpx 12rpx;
|
background-color: #fff1f0;
|
||||||
|
border: 1rpx solid #ffa39e;
|
||||||
|
border-radius: 28rpx;
|
||||||
|
line-height: 1;
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.delete-btn::after {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.delete-btn:active {
|
||||||
|
background-color: #ff4d4f;
|
||||||
|
color: #fff;
|
||||||
|
border-color: #ff4d4f;
|
||||||
}
|
}
|
||||||
@ -5,8 +5,8 @@
|
|||||||
|
|
||||||
// 开发环境
|
// 开发环境
|
||||||
const DEV_CONFIG = {
|
const DEV_CONFIG = {
|
||||||
baseUrl: 'http://localhost:8080',
|
baseUrl: 'http://192.168.110.117:8080',
|
||||||
mqttServer: 'wxs://localhost:8084/mqtt',
|
mqttServer: 'wxs://192.168.110.117:8084/mqtt',
|
||||||
};
|
};
|
||||||
|
|
||||||
// 生产环境
|
// 生产环境
|
||||||
|
|||||||
@ -140,11 +140,22 @@
|
|||||||
.btn-upload {
|
.btn-upload {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-width: 200rpx;
|
min-width: 200rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
height: 80rpx;
|
height: 80rpx;
|
||||||
line-height: 80rpx;
|
line-height: 1;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
border-radius: 8rpx;
|
border-radius: 8rpx;
|
||||||
border: none;
|
border: none;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-connect::after,
|
||||||
|
.btn-mqtt::after,
|
||||||
|
.btn-upload::after {
|
||||||
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-connect {
|
.btn-connect {
|
||||||
|
|||||||
@ -119,22 +119,40 @@
|
|||||||
|
|
||||||
.btn-scan {
|
.btn-scan {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
background-color: #1890ff;
|
background-color: #1890ff;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
height: 88rpx;
|
height: 88rpx;
|
||||||
line-height: 88rpx;
|
line-height: 1;
|
||||||
border-radius: 44rpx;
|
border-radius: 44rpx;
|
||||||
border: none;
|
border: none;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-scan::after {
|
||||||
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-stop {
|
.btn-stop {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
background-color: #ff4d4f;
|
background-color: #ff4d4f;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
height: 88rpx;
|
height: 88rpx;
|
||||||
line-height: 88rpx;
|
line-height: 1;
|
||||||
border-radius: 44rpx;
|
border-radius: 44rpx;
|
||||||
border: none;
|
border: none;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-stop::after {
|
||||||
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 配置弹窗 */
|
/* 配置弹窗 */
|
||||||
@ -212,12 +230,22 @@
|
|||||||
.btn-cancel,
|
.btn-cancel,
|
||||||
.btn-confirm {
|
.btn-confirm {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
height: 100rpx;
|
height: 100rpx;
|
||||||
line-height: 100rpx;
|
line-height: 1;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-cancel::after,
|
||||||
|
.btn-confirm::after {
|
||||||
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-cancel {
|
.btn-cancel {
|
||||||
|
|||||||
@ -1,14 +1,14 @@
|
|||||||
<!-- 首页 - 设备列表 -->
|
<!-- 首页 - 设备列表 -->
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<!-- 已登录用户信息栏 -->
|
<!-- 已登录用户信息栏 -->
|
||||||
<view class="user-bar card" wx:if="{{userInfo}}">
|
<!-- <view class="user-bar card" wx:if="{{userInfo}}">
|
||||||
<image class="user-avatar" src="{{userInfo.avatar || '/assets/images/default-avatar.png'}}" mode="aspectFill"></image>
|
<image class="user-avatar" src="{{userInfo.avatar || '/assets/images/default-avatar.png'}}" mode="aspectFill"></image>
|
||||||
<view class="user-info">
|
<view class="user-info">
|
||||||
<text class="user-name">{{userInfo.userName}}</text>
|
<text class="user-name">{{userInfo.userName}}</text>
|
||||||
<text class="user-id">ID: {{userInfo.userId}}</text>
|
<text class="user-id">ID: {{userInfo.userId}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="logout-btn" bindtap="handleLogout">退出</view>
|
<view class="logout-btn" bindtap="handleLogout">退出</view>
|
||||||
</view>
|
</view> -->
|
||||||
|
|
||||||
<!-- 设备列表 -->
|
<!-- 设备列表 -->
|
||||||
<view class="device-list" wx:if="{{devices.length > 0}}">
|
<view class="device-list" wx:if="{{devices.length > 0}}">
|
||||||
|
|||||||
@ -58,16 +58,26 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.add-btn {
|
.add-btn {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
background-color: #1890ff;
|
background-color: #1890ff;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
height: 92rpx;
|
height: 92rpx;
|
||||||
line-height: 92rpx;
|
line-height: 1;
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
border-radius: 46rpx;
|
border-radius: 46rpx;
|
||||||
border: none;
|
border: none;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
box-shadow: 0 8rpx 24rpx rgba(24, 144, 255, 0.4);
|
box-shadow: 0 8rpx 24rpx rgba(24, 144, 255, 0.4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.add-btn::after {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
.add-btn:active {
|
.add-btn:active {
|
||||||
background-color: #096dd9;
|
background-color: #096dd9;
|
||||||
}
|
}
|
||||||
@ -4,7 +4,7 @@
|
|||||||
<view class="login-header">
|
<view class="login-header">
|
||||||
<image class="logo" src="/assets/images/logo_zh.png" mode="aspectFit"></image>
|
<image class="logo" src="/assets/images/logo_zh.png" mode="aspectFit"></image>
|
||||||
<text class="title">岩安测控蓝牙网关</text>
|
<text class="title">岩安测控蓝牙网关</text>
|
||||||
<text class="subtitle">采集 BLE 设备数据,透传至云平台</text>
|
<!-- <text class="subtitle">采集 BLE 设备数据,透传至云平台</text> -->
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 登录表单 -->
|
<!-- 登录表单 -->
|
||||||
|
|||||||
@ -78,12 +78,21 @@
|
|||||||
.btn-login {
|
.btn-login {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 88rpx;
|
height: 88rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
background-color: #1890ff;
|
background-color: #1890ff;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
border-radius: 8rpx;
|
border-radius: 8rpx;
|
||||||
margin-top: 40rpx;
|
margin-top: 40rpx;
|
||||||
border: none;
|
border: none;
|
||||||
|
padding: 0;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-login::after {
|
||||||
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-login:active {
|
.btn-login:active {
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<image class="avatar" src="/assets/images/default-avatar.png" mode="aspectFill"></image>
|
<image class="avatar" src="/assets/images/default-avatar.png" mode="aspectFill"></image>
|
||||||
<view class="info">
|
<view class="info">
|
||||||
<text class="username">{{userInfo.userName || '未登录'}}</text>
|
<text class="username">{{userInfo.userName || '未登录'}}</text>
|
||||||
<text class="user-id">ID: {{userInfo.userId || '-'}}</text>
|
<!-- <text class="user-id">ID: {{userInfo.userId || '-'}}</text> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@ -118,12 +118,17 @@
|
|||||||
.logout-btn {
|
.logout-btn {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 88rpx;
|
height: 88rpx;
|
||||||
line-height: 88rpx;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
color: #ff4d4f;
|
color: #ff4d4f;
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 8rpx;
|
border-radius: 8rpx;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logout-btn::after {
|
.logout-btn::after {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user