Browse Source

feat: 导航二维码

dev
jiannibang 3 years ago
parent
commit
48827d95af
  1. 1
      src/views/Guide/Guide.vue
  2. 19
      src/views/Nav/children/PassShop.vue
  3. BIN
      src/views/Nav/children/qrcodeBg.png

1
src/views/Guide/Guide.vue

@ -72,6 +72,7 @@ function onClickDeviceSite() {
window.Map_QM.onShowDeviceSite() window.Map_QM.onShowDeviceSite()
} }
function handleMapIcon(item, index) { function handleMapIcon(item, index) {
store.SET_SHOP(null)
clearTimeout(mapIconTimer.value) clearTimeout(mapIconTimer.value)
window.Map_QM.changeStateShopPro(false) window.Map_QM.changeStateShopPro(false)
mapIdx.value = index mapIdx.value = index

19
src/views/Nav/children/PassShop.vue

@ -8,6 +8,12 @@
请您面向屏幕 请您面向屏幕
</p> </p>
</div> </div>
<div class="qrcode-wrapper">
<QRCodeFromText
:text="`https://cdn.1000my.cn/qrcode/5aae5c33-cb8e-4737-b243-ed735bce68e2/?e=${shop.houseNumber}&s=${currentFloor.floorOrder}_${currentFloor.location}_屏幕的位置`"
:size="88"
></QRCodeFromText>
</div>
</div> </div>
<div class="right"> <div class="right">
<div class="top"> <div class="top">
@ -61,6 +67,7 @@
<script setup> <script setup>
import ScrollView from '@/base/ScrollView/ScrollView.vue' import ScrollView from '@/base/ScrollView/ScrollView.vue'
import QRCodeFromText from '@/components/QRCodeFromText/QRCodeFromText.vue'
defineProps({ defineProps({
shop: { shop: {
@ -99,6 +106,7 @@ defineProps({
.left { .left {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center;
width: 360px; width: 360px;
background: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.4);
.dir { .dir {
@ -126,7 +134,16 @@ defineProps({
} }
} }
} }
.qrcode-wrapper {
display: flex;
flex-direction: column;
align-items: center;
width: 180px;
height: 192px;
background: center / cover no-repeat url(./qrcodeBg.png);
margin-top: 29px;
padding-top: 39px;
}
.floor { .floor {
font-weight: 700; font-weight: 700;
font-family: 'font_bold'; font-family: 'font_bold';

BIN
src/views/Nav/children/qrcodeBg.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Loading…
Cancel
Save