Merge branch 'develop' into fanpeng
# Conflicts: # manifest.json
This commit is contained in:
commit
5ba64b814b
2
App.vue
2
App.vue
@ -26,7 +26,7 @@
|
|||||||
return 'XHJ'
|
return 'XHJ'
|
||||||
}
|
}
|
||||||
if (this.envVersion === 'trial') {
|
if (this.envVersion === 'trial') {
|
||||||
return 'PRE'
|
return 'XHJ'
|
||||||
}
|
}
|
||||||
return 'XHJ'
|
return 'XHJ'
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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",
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user