|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div id="download" class="app">
|
|
|
+ <div id="download" :class="{ app: true, block: type === 1 }">
|
|
|
<van-overlay :show="show" class-name="overlay">
|
|
|
<div class="wrapper text">
|
|
|
<div class="top"></div>
|
|
@@ -22,6 +22,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { currentUrlToParams } from "@/utils/common.js";
|
|
|
import { Button as vanButton, Overlay as vanOverlay } from "vant";
|
|
|
import "vant/lib/button/style";
|
|
|
import "vant/lib/overlay/style";
|
|
@@ -33,7 +34,8 @@ export default {
|
|
|
isAndroid: true,
|
|
|
isWindows: false,
|
|
|
isIphone: false,
|
|
|
- show: false
|
|
|
+ show: false,
|
|
|
+ type: undefined
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -43,6 +45,8 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
+ this.$pageParams = currentUrlToParams();
|
|
|
+ this.type = this.$pageParams.pattern - 0;
|
|
|
const sys = window.navigator.userAgent.toLowerCase();
|
|
|
this.isAndroid = /android/g.test(sys);
|
|
|
this.isWindows = /windows/g.test(sys);
|