|
@@ -1,4 +1,5 @@
|
|
|
<template>
|
|
<template>
|
|
|
|
|
+ <view class="container" style="height: 100vh" >
|
|
|
<scroll-view class="main-container" scroll-y="true"
|
|
<scroll-view class="main-container" scroll-y="true"
|
|
|
:refresher-enabled="false">
|
|
:refresher-enabled="false">
|
|
|
<view v-for="(item, index) in deviceListDataShow" :key="item.id" class="list-item" hover-class="list-item-hover"
|
|
<view v-for="(item, index) in deviceListDataShow" :key="item.id" class="list-item" hover-class="list-item-hover"
|
|
@@ -49,7 +50,7 @@
|
|
|
<view v-if="deviceListDataShow.length==0" class="notice"> - {{ $t('buletooth.nodevice') }} -</view>
|
|
<view v-if="deviceListDataShow.length==0" class="notice"> - {{ $t('buletooth.nodevice') }} -</view>
|
|
|
<view class="gap"></view>
|
|
<view class="gap"></view>
|
|
|
</scroll-view>
|
|
</scroll-view>
|
|
|
-
|
|
|
|
|
|
|
+ </view>
|
|
|
|
|
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -89,7 +90,12 @@ export default {
|
|
|
uni.setNavigationBarTitle({
|
|
uni.setNavigationBarTitle({
|
|
|
title: this.$t('page.bluetooth')
|
|
title: this.$t('page.bluetooth')
|
|
|
})
|
|
})
|
|
|
- ecUI.showLoading(this.$t('buletooth.init'))
|
|
|
|
|
|
|
+ let titles = i18(this.$t('buletooth.init'));
|
|
|
|
|
+ uni.showLoading({
|
|
|
|
|
+ titles,
|
|
|
|
|
+ mask:true,
|
|
|
|
|
+ });
|
|
|
|
|
+ // ecUI.showLoading(this.$t('buletooth.init'))
|
|
|
ctx = this
|
|
ctx = this
|
|
|
clearInterval(this.timer);
|
|
clearInterval(this.timer);
|
|
|
this.timer = setInterval(() => {
|
|
this.timer = setInterval(() => {
|
|
@@ -196,7 +202,12 @@ export default {
|
|
|
},
|
|
},
|
|
|
listViewTap(id){
|
|
listViewTap(id){
|
|
|
let self = this;
|
|
let self = this;
|
|
|
- ecUI.showLoading(this.$t('buletooth.connecting'))
|
|
|
|
|
|
|
+ // ecUI.showLoading(this.$t('buletooth.connecting'))
|
|
|
|
|
+ let titles = i18(this.$t('buletooth.connecting'));
|
|
|
|
|
+ uni.showLoading({
|
|
|
|
|
+ titles,
|
|
|
|
|
+ mask:true,
|
|
|
|
|
+ });
|
|
|
ecBLE.onBLEConnectionStateChange(res => {
|
|
ecBLE.onBLEConnectionStateChange(res => {
|
|
|
console.log(res);
|
|
console.log(res);
|
|
|
if (res.ok) {
|
|
if (res.ok) {
|
|
@@ -352,11 +363,15 @@ export default {
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
<style>
|
|
|
|
|
+ .container{
|
|
|
|
|
+ background-image: url('../../../static/images/new/starts/bg2.jpg');
|
|
|
|
|
+ background-size: cover;
|
|
|
|
|
+ background-repeat: no-repeat;
|
|
|
|
|
+ height: 100%;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ }
|
|
|
.main-container {
|
|
.main-container {
|
|
|
- height: 100vh;
|
|
|
|
|
- background-image: url('../../../static/images/new/starts/bg1.jpg');
|
|
|
|
|
- background-size: cover;
|
|
|
|
|
- background-repeat: no-repeat;
|
|
|
|
|
|
|
+ height: 100%;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.list-item {
|
|
.list-item {
|