fix: 英文翻译修改。
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"name" : "搅拌器控制",
|
"name" : "MixerControl",
|
||||||
"appid" : "__UNI__0373DF9",
|
"appid" : "__UNI__0373DF9",
|
||||||
"description" : "搅拌器控制软件",
|
"description" : "MixerControl",
|
||||||
"versionName" : "1.1.0",
|
"versionName" : "1.2.0",
|
||||||
"versionCode" : "100",
|
"versionCode" : "100",
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
@@ -55,10 +55,10 @@
|
|||||||
"sdkConfigs" : {},
|
"sdkConfigs" : {},
|
||||||
"icons" : {
|
"icons" : {
|
||||||
"android" : {
|
"android" : {
|
||||||
"hdpi" : "mixer.png",
|
"hdpi" : "mixerControlE.png",
|
||||||
"xhdpi" : "mixer.png",
|
"xhdpi" : "mixerControlE.png",
|
||||||
"xxhdpi" : "mixer.png",
|
"xxhdpi" : "mixerControlE.png",
|
||||||
"xxxhdpi" : "mixer.png"
|
"xxxhdpi" : "mixerControlE.png"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -85,5 +85,6 @@
|
|||||||
"uniStatistics" : {
|
"uniStatistics" : {
|
||||||
"enable" : false
|
"enable" : false
|
||||||
},
|
},
|
||||||
"vueVersion" : "3"
|
"vueVersion" : "3",
|
||||||
|
"locale" : "en"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="bluetooth-page">
|
<view class="bluetooth-page">
|
||||||
<!-- Navigation Bar -->
|
<!-- Navigation Bar -->
|
||||||
<uni-navbar title="Mixer Device Connection" :border="false" background-color="rgba(102, 126, 234, 0.9)" color="#fff" />
|
<uni-navbar title="Mixer Connection" :border="false" background-color="rgba(102, 126, 234, 0.9)" color="#fff" />
|
||||||
|
|
||||||
<view class="bluetooth-container">
|
<view class="bluetooth-container">
|
||||||
|
|
||||||
@@ -44,17 +44,7 @@
|
|||||||
</u-button>
|
</u-button>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- Preview Button -->
|
|
||||||
<view class="preview-button-wrapper">
|
|
||||||
<u-button
|
|
||||||
type="success"
|
|
||||||
plain
|
|
||||||
@click="previewMixerPage"
|
|
||||||
>
|
|
||||||
<uni-icons type="eye" color="#52c41a" size="20" style="margin-right: 8rpx;"></uni-icons>
|
|
||||||
Preview Mixer Page
|
|
||||||
</u-button>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Device List -->
|
<!-- Device List -->
|
||||||
@@ -991,30 +981,13 @@ const getBLEDeviceCharacteristicsSync = (deviceId, serviceId) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 预览控制页面(模拟设备数据)
|
// 预览控制页面(模拟设备数据)
|
||||||
const previewMixerPage = () => {
|
|
||||||
const fakeDevice = {
|
|
||||||
deviceId: 'preview-fake-id',
|
|
||||||
name: '预览测试设备',
|
|
||||||
localName: 'Preview Device',
|
|
||||||
RSSI: -50
|
|
||||||
}
|
|
||||||
|
|
||||||
const fakeBleInfo = {
|
|
||||||
serviceId: 'fake-service-id',
|
|
||||||
characteristicId: 'fake-char-id',
|
|
||||||
notifyCharacteristicId: 'fake-notify-id'
|
|
||||||
}
|
|
||||||
|
|
||||||
const url = buildMixerPageUrl(fakeDevice, fakeBleInfo)
|
|
||||||
console.log('🎨 预览跳转:', url)
|
|
||||||
uni.navigateTo({ url })
|
|
||||||
}
|
|
||||||
|
|
||||||
// 构造跳转到 mixer 页面的 URL(带蓝牙信息)
|
// 构造跳转到 mixer 页面的 URL(带蓝牙信息)
|
||||||
const buildMixerPageUrl = (device, bleInfo) => {
|
const buildMixerPageUrl = (device, bleInfo) => {
|
||||||
const params = {
|
const params = {
|
||||||
deviceId: device.deviceId,
|
deviceId: device.deviceId,
|
||||||
deviceName: encodeURIComponent(device.name || device.localName || '未命名设备')
|
deviceName: encodeURIComponent(device.name || device.localName || 'Unnamed Device')
|
||||||
}
|
}
|
||||||
|
|
||||||
// 添加蓝牙服务和特征值信息
|
// 添加蓝牙服务和特征值信息
|
||||||
|
|||||||
Reference in New Issue
Block a user