|
@@ -0,0 +1,73 @@
|
|
|
+<!-- https://cxzx.smcic.net/topic/qinshufa/assets/logp.png -->
|
|
|
+<template>
|
|
|
+ <van-row class="shanshipin">
|
|
|
+ <van-col span="12" style="padding-left: 5px">
|
|
|
+ <img
|
|
|
+ style="
|
|
|
+ width: 30px;
|
|
|
+ border-radius: 5px;
|
|
|
+ vertical-align: middle;
|
|
|
+ margin-right: 5px;
|
|
|
+ "
|
|
|
+ src="https://cxzx.smcic.net/topic/qinshufa/assets/logp.png"
|
|
|
+ alt=""
|
|
|
+ srcset=""
|
|
|
+ />
|
|
|
+ <span style="vertical-align: middle">闪视频</span>
|
|
|
+ </van-col>
|
|
|
+ <van-col span="12" style="text-align: right; padding-right: 5px">
|
|
|
+ <van-button
|
|
|
+ style="margin-top: -5px"
|
|
|
+ type="danger"
|
|
|
+ size="small"
|
|
|
+ @click="download"
|
|
|
+ >下载</van-button
|
|
|
+ >
|
|
|
+ </van-col>
|
|
|
+ </van-row>
|
|
|
+</template>
|
|
|
+<script setup>
|
|
|
+// import { reactive } from "vue";
|
|
|
+/**
|
|
|
+ * window.$originData.orginParames.title 页面标题
|
|
|
+ * window.$originData.orginParames.parameters 固定参数值
|
|
|
+ * window.$originData.urlParames url参数
|
|
|
+ */
|
|
|
+import { isIpad, isIphone, isIpod, isWechat } from "@/utils/isTerminal.js";
|
|
|
+let time = undefined;
|
|
|
+function getDownloadUrl() {
|
|
|
+ let url = "https://ssp.sxtvs.com.cn/app/shp.apk";
|
|
|
+ if (isIpad || isIpod || isIphone)
|
|
|
+ url =
|
|
|
+ "https://apps.apple.com/cn/app/%E9%97%AA%E8%A7%86%E9%A2%91/id1498056575";
|
|
|
+ return url;
|
|
|
+}
|
|
|
+
|
|
|
+function download() {
|
|
|
+ if (time) clearTimeout(time);
|
|
|
+ time = window.setTimeout(() => {
|
|
|
+ window.SL.Interactive.AppClick({
|
|
|
+ page_name: "官网",
|
|
|
+ event_type: "downloadApp",
|
|
|
+ });
|
|
|
+
|
|
|
+ if (isIpad || isIpod || isIphone) return window.open(getDownloadUrl());
|
|
|
+ if (isWechat)
|
|
|
+ document.querySelector(".weixin").setAttribute("style", "display: block");
|
|
|
+ else window.open(getDownloadUrl());
|
|
|
+ }, 200);
|
|
|
+}
|
|
|
+</script>
|
|
|
+<style scoped>
|
|
|
+.shanshipin {
|
|
|
+ position: fixed;
|
|
|
+ bottom: 0;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ height: 50px;
|
|
|
+ line-height: 50px;
|
|
|
+ background: #fff;
|
|
|
+ z-index: 5;
|
|
|
+ font-size: 16px;
|
|
|
+}
|
|
|
+</style>
|