uu
This commit is contained in:
parent
6ea8e5ddef
commit
601b84cd6b
@ -43,7 +43,7 @@ export default {
|
|||||||
percentage: 0, // 打印进度
|
percentage: 0, // 打印进度
|
||||||
threshold: 200, // 阈值(值越大,图片打印越深)
|
threshold: 200, // 阈值(值越大,图片打印越深)
|
||||||
imageUrl: '',
|
imageUrl: '',
|
||||||
paperWidth: 320,
|
paperWidth: 560,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
|
|||||||
@ -42,7 +42,6 @@ export default {
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
imageUrl: '',
|
imageUrl: '',
|
||||||
// paperWidth: 72,
|
|
||||||
paperWidth: 560,
|
paperWidth: 560,
|
||||||
show: false,
|
show: false,
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<tpx-page>
|
<tpx-page>
|
||||||
<tpx-bluetooth-print show="!pageLoading"
|
<tpx-bluetooth-print show="!pageLoading"
|
||||||
:imageUrl="queryOption.imageUrl" :paperWidth="queryOption.paperWidth"
|
:imageUrl="queryOption.imageUrl"
|
||||||
></tpx-bluetooth-print>
|
></tpx-bluetooth-print>
|
||||||
</tpx-page>
|
</tpx-page>
|
||||||
</template>
|
</template>
|
||||||
@ -18,7 +18,6 @@ export default {
|
|||||||
pageLoading: true,
|
pageLoading: true,
|
||||||
queryOption: {
|
queryOption: {
|
||||||
imageUrl: '',
|
imageUrl: '',
|
||||||
paperWidth: ''
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -72,7 +72,6 @@
|
|||||||
handlePrint() {
|
handlePrint() {
|
||||||
this.$refs.curPrint.startPrint({
|
this.$refs.curPrint.startPrint({
|
||||||
imageUrl: this.qrCodeImgUrl,
|
imageUrl: this.qrCodeImgUrl,
|
||||||
paperWidth: 480,
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user