Merge branch 'develop_liuyf' into 'develop'

bug修复

See merge request StarlockTeam/wx-starlock!34
This commit is contained in:
刘燕峰 2025-03-28 08:19:28 +00:00
commit f08dd80f3d
5 changed files with 11 additions and 4 deletions

View File

@ -26,7 +26,7 @@
return 'XHJ'
}
if (this.envVersion === 'trial') {
return 'PRE'
return 'XHJ'
}
return 'XHJ'
}

View File

@ -3,7 +3,7 @@
"appid" : "__UNI__933D519",
"description" : "",
"versionName" : "1.2.0",
"versionCode" : "34",
"versionCode" : "35",
"transformPx" : false,
/* */
"mp-weixin" : {

View File

@ -9,7 +9,7 @@
class="bg-#63b8af mt-4 rounded-3xl w-600 h-80 line-height-80rpx text-center mx-75rpx text-white text-xl font-bold"
@click="update"
>
校准
校准时间
</view>
</view>
</template>

View File

@ -11,7 +11,7 @@
/>
</view>
<view class="m-4 text-sm">
功能开启后你将可以智能锁的提示音包括电量过低密码错误等提示
功能开启后你将可以听到智能锁的提示音包括电量过低密码错误等提示
</view>
<view class="bg-white" v-if="check">
<view class="py-3 px-4">请选择音量</view>

View File

@ -54,7 +54,9 @@
import { updateLockSettingRequest } from '@/api/setting'
import { useBluetoothStore } from '@/stores/bluetooth'
import { useUserStore } from '@/stores/user'
import { useBasicStore } from '../../stores/basic'
const $basic = useBasicStore()
const $bluetooth = useBluetoothStore()
const $user = useUserStore()
@ -67,6 +69,10 @@
})
const updateValue = async val => {
const netWork = await $basic.getNetworkType()
if (!netWork) {
return
}
if (pending.value || value.value === val) return
pending.value = true
uni.showLoading({
@ -81,6 +87,7 @@
withParams: true
})
$bluetooth.closeBluetoothConnection()
console.log('code-', code)
if (code === 0) {
const { code, message } = await updateLockSettingRequest({
lockId: $bluetooth.currentLockInfo.lockId,