From 0bac0eb8789a035c100fa0ffdc2a427552c5b57a Mon Sep 17 00:00:00 2001 From: bobi Date: Sat, 2 Nov 2019 13:53:57 +0800 Subject: [PATCH] =?UTF-8?q?add:okBarcode=E4=BD=BF=E7=94=A8=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/tripartite/okBarcode.html | 57 ++++++++++++++++++++++++++------- 1 file changed, 45 insertions(+), 12 deletions(-) diff --git a/pages/tripartite/okBarcode.html b/pages/tripartite/okBarcode.html index 4c4be13..c137edc 100644 --- a/pages/tripartite/okBarcode.html +++ b/pages/tripartite/okBarcode.html @@ -8,24 +8,57 @@
+
+

创建条形码

+
+
+layui.use(["okBarcode"], function () {
+    let $ = layui.jquery;
+    
+ $("#barcode").barcode("153510264086cc8e", "code128", { + output: "css", // 渲染方式 css|bmp|svg|canvas + //bgColor: "#ff0000", // 条码背景颜色 + //color: "#00ff00", // 条码颜色 + barWidth: 1, // 单条条码宽度 + barHeight: 30, // 单体条码高度 + // moduleSize: 10, // 条码大小 + // posX: 10, // 条码坐标X + // posY: 5, // 条码坐标Y + showHRI: true, // 是否在条码下方显示内容 + addQuietZone: false // 是否添加空白区(内边距) + }); +}); +
+ +
+