uu
This commit is contained in:
parent
e1dab7106b
commit
fef2b299ff
@ -91,10 +91,12 @@
|
||||
</view>
|
||||
</template>
|
||||
</view>
|
||||
|
||||
<canvas canvas-id="shareCanvas" :style="{width:canvas_width+'px', height: canvas_height+'px'}"></canvas>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
</tpx-layout>
|
||||
<canvas canvas-id="shareCanvas" :style="{width:canvas_width+'px', height: canvas_height+'px'}"></canvas>
|
||||
</tpx-page>
|
||||
</template>
|
||||
|
||||
@ -196,6 +198,7 @@ export default {
|
||||
await this.connect()
|
||||
if(this.serverList?.length > 0) {
|
||||
this.curTab = 1
|
||||
this.stopDiscoveryPrinter()
|
||||
} else {
|
||||
showToast('该设备无服务,请检查配置或换一个设备连接')
|
||||
}
|
||||
@ -410,7 +413,7 @@ export default {
|
||||
|
||||
},
|
||||
renderPic() {
|
||||
let filePath = 'http://oss-emis.tanex56.com/sapp/sdg/hdbg.png' // TODO
|
||||
let filePath = 'http://image-c.weimobwmc.com/ol-6NoQb/c2a90db027fa4cd19d2300f21fd8e593.jpg' // TODO
|
||||
let that = this
|
||||
return new Promise((resolve, reject)=> {
|
||||
const cxt = uni.createCanvasContext(that.canvasId, that);
|
||||
@ -482,7 +485,7 @@ export default {
|
||||
}
|
||||
/*二维码隐藏到窗口外*/
|
||||
canvas {
|
||||
position: absolute;
|
||||
top: -999rpx
|
||||
// position: absolute;
|
||||
// top: -999rpx
|
||||
}
|
||||
</style>
|
||||
Loading…
Reference in New Issue
Block a user