|
@@ -31,11 +31,11 @@
|
|
<div class="qr-code">
|
|
<div class="qr-code">
|
|
<img
|
|
<img
|
|
class="qr-code"
|
|
class="qr-code"
|
|
- src="@/assets/images/qr-code.png"
|
|
|
|
|
|
+ :src="imageUrl"
|
|
alt=""
|
|
alt=""
|
|
draggable="false"
|
|
draggable="false"
|
|
>
|
|
>
|
|
- <span>扫码体验小程序</span>
|
|
|
|
|
|
+ <!-- <span>扫码体验小程序</span> -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -45,6 +45,7 @@
|
|
import { ref, computed, watch, onMounted } from "vue"
|
|
import { ref, computed, watch, onMounted } from "vue"
|
|
import { useRoute, useRouter } from "vue-router"
|
|
import { useRoute, useRouter } from "vue-router"
|
|
import { useStore } from "vuex"
|
|
import { useStore } from "vuex"
|
|
|
|
+import QRCode from 'qrcode'
|
|
|
|
|
|
const route = useRoute()
|
|
const route = useRoute()
|
|
const router = useRouter()
|
|
const router = useRouter()
|
|
@@ -52,6 +53,10 @@ const store = useStore()
|
|
|
|
|
|
const isShowVideo = ref(true)
|
|
const isShowVideo = ref(true)
|
|
|
|
|
|
|
|
+const imageUrl = ref('')
|
|
|
|
+QRCode.toDataURL(`${location.origin}${process.env.BASE_URL || '/'}index.html#/`).then((url) => {
|
|
|
|
+ imageUrl.value = url
|
|
|
|
+})
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|