You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
4.1 KiB
1 line
4.1 KiB
{"remainingRequest":"/Users/linhuakun/Downloads/coderlhk/big bar/bigbar-start/node_modules/vue-loader/lib/index.js??vue-loader-options!/Users/linhuakun/Downloads/coderlhk/big bar/bigbar-start/src/views/home/childComps/scan.vue?vue&type=style&index=0&id=780b7faa&scoped=true&lang=css&","dependencies":[{"path":"/Users/linhuakun/Downloads/coderlhk/big bar/bigbar-start/src/views/home/childComps/scan.vue","mtime":1618712672865},{"path":"/Users/linhuakun/Downloads/coderlhk/big bar/bigbar-start/node_modules/css-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/big bar/bigbar-start/node_modules/vue-loader/lib/loaders/stylePostLoader.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/big bar/bigbar-start/node_modules/postcss-loader/src/index.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/big bar/bigbar-start/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/Users/linhuakun/Downloads/coderlhk/big bar/bigbar-start/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgojYmNpZCB7CiAgd2lkdGg6IDEwMCU7CiAgcG9zaXRpb246IGZpeGVkOwogIHRvcDogMHB4OwogIGJvdHRvbTogMHB4OwogIHRleHQtYWxpZ246IGNlbnRlcjsKfQoKLnRpcCB7CiAgY29sb3I6ICNmZmZmZmY7CiAgZm9udC13ZWlnaHQ6IGJvbGQ7CiAgdGV4dC1zaGFkb3c6IDBweCAtMXB4ICMxMDNlNWM7Cn0K"},{"version":3,"sources":["scan.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+FA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA","file":"scan.vue","sourceRoot":"src/views/home/childComps","sourcesContent":["<template>\n <div style=\"background-color:#000000;\">\n <div id=\"bcid\">\n <div style=\"height:40%\"></div>\n <p class=\"tip\">...载入中...</p>\n </div>\n </div>\n</template>\n\n<script>\nvar ws = null;\nvar scan = null;\nvar view = null;\nexport default {\n name: \"scan\",\n methods: {\n plusReady() {\n // 获取窗口对象\n ws = plus.webview.currentWebview();\n nv = ws.getTitleNView();\n // 开始扫描\n ws.addEventListener(\n \"show\",\n function() {\n scan = new plus.barcode.Barcode(\n \"bcid\",\n [plus.barcode.QR, plus.barcode.EAN8, plus.barcode.EAN13],\n {\n frameColor: \"#009DE2\",\n scanbarColor: \"#009DE2\"\n }\n );\n scan.onmarked = onmarked;\n scan.start({\n conserve: true,\n filename: \"_doc/barcode/\"\n });\n createSubview();\n },\n false\n );\n // 显示页面并关闭等待框\n ws.show(\"pop-in\");\n },\n onmarked(type, result, file) {\n switch (type) {\n case plus.barcode.QR:\n type = \"QR\";\n break;\n case plus.barcode.EAN13:\n type = \"EAN13\";\n break;\n case plus.barcode.EAN8:\n type = \"EAN8\";\n break;\n default:\n type = \"其它\" + type;\n break;\n }\n result = result.replace(/\\r\\n/g, \"\");\n ws.opener().evalJS(\n \"scaned('\" + type + \"','\" + result + \"','\" + file + \"');\"\n );\n back();\n },\n createSubview() {\n view = new plus.nativeObj.View(\n \"nbutton\",\n {\n bottom: \"28%\",\n left: \"30%\",\n width: \"40%\",\n height: \"44px\"\n },\n [\n {\n tag: \"font\",\n id: \"text\",\n text: \"请扫描二维码\",\n textStyles: {\n color: \"#FFFFFF\"\n }\n }\n ]\n );\n ws.append(view);\n }\n },\n mounted() {\n this.$bus.$on(\"plusReady\", this.plusReady());\n }\n};\n</script>\n\n<style scoped>\n#bcid {\n width: 100%;\n position: fixed;\n top: 0px;\n bottom: 0px;\n text-align: center;\n}\n\n.tip {\n color: #ffffff;\n font-weight: bold;\n text-shadow: 0px -1px #103e5c;\n}\n</style>\n"]}]} |