fix: 英文翻译修改。

This commit is contained in:
tianyongbao
2025-12-22 14:38:41 +08:00
parent 6eeb104485
commit 3b025dcba9
2 changed files with 13 additions and 39 deletions

View File

@@ -1,8 +1,8 @@
{
"name" : "搅拌器控制",
"name" : "MixerControl",
"appid" : "__UNI__0373DF9",
"description" : "搅拌器控制软件",
"versionName" : "1.1.0",
"description" : "MixerControl",
"versionName" : "1.2.0",
"versionCode" : "100",
"transformPx" : false,
/* 5+App */
@@ -55,10 +55,10 @@
"sdkConfigs" : {},
"icons" : {
"android" : {
"hdpi" : "mixer.png",
"xhdpi" : "mixer.png",
"xxhdpi" : "mixer.png",
"xxxhdpi" : "mixer.png"
"hdpi" : "mixerControlE.png",
"xhdpi" : "mixerControlE.png",
"xxhdpi" : "mixerControlE.png",
"xxxhdpi" : "mixerControlE.png"
}
}
}
@@ -85,5 +85,6 @@
"uniStatistics" : {
"enable" : false
},
"vueVersion" : "3"
"vueVersion" : "3",
"locale" : "en"
}

View File

@@ -1,7 +1,7 @@
<template>
<view class="bluetooth-page">
<!-- 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">
@@ -44,17 +44,7 @@
</u-button>
</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 -->
@@ -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带蓝牙信息
const buildMixerPageUrl = (device, bleInfo) => {
const params = {
deviceId: device.deviceId,
deviceName: encodeURIComponent(device.name || device.localName || '未命名设备')
deviceName: encodeURIComponent(device.name || device.localName || 'Unnamed Device')
}
// 添加蓝牙服务和特征值信息