blue ui
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
<view class="nav-container">
|
||||
<navigator open-type="navigate" url="/pages/deal/saleOrder/saleOrder" hover-class="navigator-hover" class="nav-button">销售</navigator>
|
||||
<bluetooth-component/>
|
||||
</view>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<view>
|
||||
|
||||
<bluetooth-component printdata="{{printdata}}"/>
|
||||
</view>
|
||||
@@ -1,46 +1,15 @@
|
||||
Page({
|
||||
data: {
|
||||
switch1: '',
|
||||
switch2: '',
|
||||
switch3: '',
|
||||
switch4: '',
|
||||
iconType: [
|
||||
'cancel',
|
||||
],
|
||||
// 'success',连接成功打勾
|
||||
// 'info', 感叹号
|
||||
// 'warn', 黄色感叹号
|
||||
// 'waiting',时钟
|
||||
// 'clear',打叉
|
||||
// 'success_no_circle',打勾
|
||||
// 'download',下载
|
||||
// 'cancel',打叉
|
||||
// 'search',搜索
|
||||
array: ['TSPL', 'ZPL', 'CPCL', 'ESC/POS'],
|
||||
value: {},
|
||||
printdata: {},
|
||||
blueoptions: [],
|
||||
deviceId: '',
|
||||
connected: false,
|
||||
devices: [],
|
||||
showDeviceList: false,
|
||||
currentDeviceServices: [],
|
||||
currentDeviceCharacteristics: [],
|
||||
hasLocation: false,
|
||||
location: {},
|
||||
deviceCount: 0,
|
||||
targetDeviceId: 'DC:0D:30:63:9E:0E',
|
||||
isSearching: true,
|
||||
printFormat: 'TSPL',
|
||||
maxAllowedLength: 1024,
|
||||
delayTime: 5000, // 默认延迟 5 秒,单位:毫秒
|
||||
paperSize: {
|
||||
width: 80, // 默认宽度 80mm
|
||||
height: 60 // 默认高度 60mm
|
||||
},
|
||||
index: 0 //指令集默认选择
|
||||
// printFormat: 'TSPL',
|
||||
// maxAllowedLength: 1024,
|
||||
// delayTime: 5000, // 默认延迟 5 秒,单位:毫秒
|
||||
// paperSize: {
|
||||
// width: 80, // 默认宽度 80mm
|
||||
// height: 60 // 默认高度 60mm
|
||||
// },
|
||||
// index: 0 //指令集默认选择
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
const selectedSaleOrderLines = dd.getStorageSync({
|
||||
key: 'selectedSaleOrderLines'
|
||||
@@ -50,5 +19,4 @@ Page({
|
||||
printdata
|
||||
});
|
||||
},
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user