Browse Source

feat: 小程序二维码换成普通二维码

dev
jiannibang 3 years ago
parent
commit
544b29e1a7
  1. 9
      src/components/PublicComponent/PublicComponent.vue
  2. BIN
      src/components/PublicComponent/qrcode.JPG
  3. BIN
      src/components/PublicComponent/qrcode2.JPG

9
src/components/PublicComponent/PublicComponent.vue

@ -25,7 +25,9 @@
</div> </div>
<div class="bottom"> <div class="bottom">
<div class="qrcode1"></div>
<div class="qrcode1">
<QRCodeFromText :text="`https://cdn.1000my.cn/qrcode/5aae5c33-cb8e-4737-b243-ed735bce68e2/?e=undefined&s=undefined`" :size="100"></QRCodeFromText>
</div>
<div class="qrcode2"></div> <div class="qrcode2"></div>
<div class="btn" @click="store.SET_ENHANCED(!enhanced)"> <div class="btn" @click="store.SET_ENHANCED(!enhanced)">
<div class="text">{{ enhanced ? '关闭' : '开启' }}</div> <div class="text">{{ enhanced ? '关闭' : '开启' }}</div>
@ -43,6 +45,7 @@ import { useLogout } from '@/composables/useLogout'
import { useInitMap } from '@/composables/useInitMap' import { useInitMap } from '@/composables/useInitMap'
import Map from '@/components/Map/Map.vue' import Map from '@/components/Map/Map.vue'
import ScrollView from '@/base/ScrollView/ScrollView.vue' import ScrollView from '@/base/ScrollView/ScrollView.vue'
import QRCodeFromText from '../QRCodeFromText/QRCodeFromText.vue'
const Logout = defineAsyncComponent(() => import('@/base/Logout/Logout.vue')) const Logout = defineAsyncComponent(() => import('@/base/Logout/Logout.vue'))
const AutoBackNotification = defineAsyncComponent(() => import('@/base/AutoBackNotification/AutoBackNotification.vue')) const AutoBackNotification = defineAsyncComponent(() => import('@/base/AutoBackNotification/AutoBackNotification.vue'))
const Temperature = defineAsyncComponent(() => import('@/base/Temperature/Temperature.vue')) const Temperature = defineAsyncComponent(() => import('@/base/Temperature/Temperature.vue'))
@ -172,7 +175,9 @@ watch(route, to => {
left: 68px; left: 68px;
width: 100px; width: 100px;
height: 100px; height: 100px;
background: center / cover no-repeat url(./qrcode.JPG);
display: flex;
justify-content: center;
align-items: center;
} }
.qrcode2 { .qrcode2 {
position: absolute; position: absolute;

BIN
src/components/PublicComponent/qrcode.JPG

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

BIN
src/components/PublicComponent/qrcode2.JPG

Binary file not shown.

Before

Width:  |  Height:  |  Size: 101 KiB

After

Width:  |  Height:  |  Size: 79 KiB

Loading…
Cancel
Save