diff --git a/package.json b/package.json index 58aa883..e3ede33 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "core-js": "^3.8.3", "lottie-web": "^5.9.6", "pinia": "^2.0.11", + "qrcodejs2": "^0.0.2", "swiper": "^8.0.7", "vue": "^3.2.13", "vue-i18n": "^9.1.9", diff --git a/public/static/offline/JSON/config.json b/public/static/offline/JSON/config.json index 949670f..4e7761b 100644 --- a/public/static/offline/JSON/config.json +++ b/public/static/offline/JSON/config.json @@ -4,6 +4,7 @@ "data": { "interfaceUrl": "https://test.iot.1000my.com/api", "sourceUrl": "/static/offline", - "backSocket": "ws://127.0.0.1:7181" + "backSocket": "ws://127.0.0.1:7181", + "mobileNav":"https://lg-cjdqwkbo-1256266248.cos.ap-shanghai.myqcloud.com/qmgo/index.html#/" } } diff --git a/src/components/QRCodeFromText/QRCodeFromText.vue b/src/components/QRCodeFromText/QRCodeFromText.vue new file mode 100644 index 0000000..32fbafa --- /dev/null +++ b/src/components/QRCodeFromText/QRCodeFromText.vue @@ -0,0 +1,23 @@ + + + diff --git a/src/views/Billboard/Billboard.vue b/src/views/Billboard/Billboard.vue index fa332be..63079cb 100644 --- a/src/views/Billboard/Billboard.vue +++ b/src/views/Billboard/Billboard.vue @@ -6,6 +6,12 @@
当前位置
{{ bf }}
+
(buildingList.length > 1 ? currentFloor.value.building + '-' : '') + currentFloor.value.floor) const scrollWidth = ref(0) @@ -265,6 +272,18 @@ watch(scrollLefts, _scrollLefts => { height: 32px; background: center / cover no-repeat url(./meta.png); } + .qrcode { + display: flex; + position: absolute; + left: 314px; + top: 57px; + width: 120px; + height: 120px; + background: #ffffff; + border-radius: 12px; + justify-content: center; + align-items: center; + } } .list-container { overflow-x: scroll;