Merge branch 'develop' into fanpeng

# Conflicts:
#	manifest.json
This commit is contained in:
范鹏 2025-03-28 17:00:44 +08:00
commit 5ba64b814b
5 changed files with 11 additions and 4 deletions

View File

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

View File

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

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" 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" @click="update"
> >
校准 校准时间
</view> </view>
</view> </view>
</template> </template>

View File

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

View File

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