uu
This commit is contained in:
parent
d24fd1c0fb
commit
39a47d3a76
@ -3,9 +3,9 @@
|
|||||||
<template v-slot:header>
|
<template v-slot:header>
|
||||||
<view class="blcok-white" style="margin-top: 0;padding-top: 0;padding-bottom: 0;">
|
<view class="blcok-white" style="margin-top: 0;padding-top: 0;padding-bottom: 0;">
|
||||||
<view >
|
<view >
|
||||||
<u-row custom-style="gap: 10rpx;">
|
<u-row custom-style="gap: 15rpx;">
|
||||||
<u-button @click="discoveryPrinter">
|
<u-button @click="discoveryPrinter">
|
||||||
{{searchLoading?'搜索中...':'搜索周边设备'}}
|
{{searchLoading?'搜索中...':'搜索设备'}}
|
||||||
|
|
||||||
</u-button>
|
</u-button>
|
||||||
<u-button @click="stopDiscoveryPrinter">停止搜索</u-button>
|
<u-button @click="stopDiscoveryPrinter">停止搜索</u-button>
|
||||||
@ -200,6 +200,7 @@ export default {
|
|||||||
console.log("连接蓝牙 设备=====", deviceId)
|
console.log("连接蓝牙 设备=====", deviceId)
|
||||||
let bl = await new Promise((resolve)=> {
|
let bl = await new Promise((resolve)=> {
|
||||||
bluetoothTool.connDevice(deviceId,(result) => {
|
bluetoothTool.connDevice(deviceId,(result) => {
|
||||||
|
console.log('bluetoothTool.connDevice result ====== ', result)
|
||||||
let lb = !!result
|
let lb = !!result
|
||||||
_this.isStateOn = lb
|
_this.isStateOn = lb
|
||||||
resolve(lb)
|
resolve(lb)
|
||||||
|
|||||||
@ -4,7 +4,6 @@
|
|||||||
<u-button @click="handlePrint" type="primary">确认打印</u-button>
|
<u-button @click="handlePrint" type="primary">确认打印</u-button>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:content>
|
<template v-slot:content>
|
||||||
<view class="pt-20 pb-10">打印内容</view>
|
|
||||||
<view class="canvas-con">
|
<view class="canvas-con">
|
||||||
<canvas :canvas-id="canvasId" :style="{width:canvasWidth + 'px', height: canvasHeight + 'px'}"></canvas>
|
<canvas :canvas-id="canvasId" :style="{width:canvasWidth + 'px', height: canvasHeight + 'px'}"></canvas>
|
||||||
</view>
|
</view>
|
||||||
@ -154,12 +153,11 @@ export default {
|
|||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.canvas-con{
|
.canvas-con{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow: auto;
|
|
||||||
}
|
}
|
||||||
/*图片隐藏到窗口外*/
|
/*图片隐藏到窗口外*/
|
||||||
canvas {
|
canvas {
|
||||||
// position: absolute;
|
position: absolute;
|
||||||
// z-index: -999;
|
z-index: -999;
|
||||||
// top: -999px;
|
top: -999px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@ -3,9 +3,9 @@
|
|||||||
<template v-slot:header>
|
<template v-slot:header>
|
||||||
<view class="blcok-white" style="margin-top: 0;">
|
<view class="blcok-white" style="margin-top: 0;">
|
||||||
<view >
|
<view >
|
||||||
<u-row custom-style="gap: 10rpx;">
|
<u-row custom-style="gap: 15rpx;">
|
||||||
<u-button @click="discoveryPrinter">
|
<u-button @click="discoveryPrinter">
|
||||||
{{searchLoading?'搜索中...':'搜索周边设备'}}
|
{{searchLoading?'搜索中...':'搜索设备'}}
|
||||||
|
|
||||||
</u-button>
|
</u-button>
|
||||||
<u-button @click="stopDiscoveryPrinter">停止搜索</u-button>
|
<u-button @click="stopDiscoveryPrinter">停止搜索</u-button>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user