"use strict"; const common_vendor = require("../common/vendor.js"); const utils = { //一体机打印初始化 init: () => { }, //检查打印机状态 getstate: () => { }, //打印的内容 printxie: async (obj) => { }, // H5蓝牙打印初始化 initbl_App: () => { }, // 蓝牙打印初始化 initbl: () => { }, //给蓝牙打印机推送打印的内容 getbl: (dev, text) => { return new Promise((resolve, reject) => { try { } catch (err) { reject(null); } finally { common_vendor.index.hideLoading(); } }); }, //初始化tts语音引擎 inittts() { }, //语音播报 ttsspke: (text) => { }, //设置扫描的广播 setting: () => { }, //获取当前APP的版本信息 getversion: () => { return new Promise((relove, reject) => { }); }, //执行下载更新(apk和wgt都可以) updatefile: (file) => { }, //执行下载更新(无感)(wgt) updatefile1: (file) => { } }; exports.utils = utils;