|
@@ -1,5 +1,12 @@
|
|
<template>
|
|
<template>
|
|
<div class="CalligraphyAndPaintingCompetition">
|
|
<div class="CalligraphyAndPaintingCompetition">
|
|
|
|
+ <div class="total">
|
|
|
|
+ 已有
|
|
|
|
+ <span class="num">
|
|
|
|
+ <countTo :startVal="0" :endVal="total" :duration="3000"></countTo>
|
|
|
|
+ </span>
|
|
|
|
+ 人报名
|
|
|
|
+ </div>
|
|
<div class="bottom">
|
|
<div class="bottom">
|
|
<div class="bottom_item">
|
|
<div class="bottom_item">
|
|
<div class="btn" @click="toDetail = true">活动详情</div>
|
|
<div class="btn" @click="toDetail = true">活动详情</div>
|
|
@@ -7,9 +14,6 @@
|
|
<div class="bottom_item" style="flex: 3">
|
|
<div class="bottom_item" style="flex: 3">
|
|
<div class="btn" @click="tougao">我要投稿</div>
|
|
<div class="btn" @click="tougao">我要投稿</div>
|
|
</div>
|
|
</div>
|
|
- <div class="bottom_item">
|
|
|
|
- <div class="btn">我的作品</div>
|
|
|
|
- </div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<van-overlay
|
|
<van-overlay
|
|
@@ -88,6 +92,8 @@ import {
|
|
isAndroid,
|
|
isAndroid,
|
|
isWechat,
|
|
isWechat,
|
|
} from '../../utils/isTerminal';
|
|
} from '../../utils/isTerminal';
|
|
|
|
+import countTo from '@/components/counto/vue-countTo.vue';
|
|
|
|
+import { getTotalNum } from '@/api/SilkRoadSpringGala.js';
|
|
/**
|
|
/**
|
|
* window.$originData.orginParames.title 页面标题
|
|
* window.$originData.orginParames.title 页面标题
|
|
* window.$originData.orginParames.parameters 固定参数值
|
|
* window.$originData.orginParames.parameters 固定参数值
|
|
@@ -97,7 +103,11 @@ import logoImage from '@/assets/img/logp.png';
|
|
const toShanshipin = ref(false);
|
|
const toShanshipin = ref(false);
|
|
const toDetail = ref(false);
|
|
const toDetail = ref(false);
|
|
const showWixin = ref(false);
|
|
const showWixin = ref(false);
|
|
-
|
|
|
|
|
|
+const total = ref(0);
|
|
|
|
+tot();
|
|
|
|
+window.setInterval(() => {
|
|
|
|
+ tot();
|
|
|
|
+}, 5000);
|
|
function getDownloadUrl() {
|
|
function getDownloadUrl() {
|
|
let url = 'https://ssp.sxtvs.com.cn';
|
|
let url = 'https://ssp.sxtvs.com.cn';
|
|
if (isIpad || isIpod || isIphone)
|
|
if (isIpad || isIpod || isIphone)
|
|
@@ -119,14 +129,15 @@ function toShanshipinFunc() {
|
|
}
|
|
}
|
|
|
|
|
|
function tougao() {
|
|
function tougao() {
|
|
- if(!window.$shanshipin) return toShanshipin.value = true;
|
|
|
|
- const url = "https://ssp-api.sxtvs.com.cn/tapi/form/index.html?ChannelID=20441",
|
|
|
|
- contentId = "",
|
|
|
|
- shareTitle = "",
|
|
|
|
- shareSummary = "",
|
|
|
|
- shareIcon = "",
|
|
|
|
- shareUrl = "";
|
|
|
|
- if (isIphone||isIpad||isIpod) {
|
|
|
|
|
|
+ if (!window.$shanshipin) return (toShanshipin.value = true);
|
|
|
|
+ const url =
|
|
|
|
+ 'https://ssp-api.sxtvs.com.cn/tapi/form/index.html?ChannelID=20441',
|
|
|
|
+ contentId = '',
|
|
|
|
+ shareTitle = '',
|
|
|
|
+ shareSummary = '',
|
|
|
|
+ shareIcon = '',
|
|
|
|
+ shareUrl = '';
|
|
|
|
+ if (isIphone || isIpad || isIpod) {
|
|
try {
|
|
try {
|
|
window.webkit.messageHandlers.TideAppStartNewsDetail.postMessage([
|
|
window.webkit.messageHandlers.TideAppStartNewsDetail.postMessage([
|
|
url,
|
|
url,
|
|
@@ -137,7 +148,7 @@ function tougao() {
|
|
shareUrl,
|
|
shareUrl,
|
|
]);
|
|
]);
|
|
} catch (e) {
|
|
} catch (e) {
|
|
- console.log(e)
|
|
|
|
|
|
+ console.log(e);
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
try {
|
|
try {
|
|
@@ -153,7 +164,12 @@ function tougao() {
|
|
console.log(e);
|
|
console.log(e);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+}
|
|
|
|
|
|
|
|
+function tot() {
|
|
|
|
+ getTotalNum().then(r => {
|
|
|
|
+ total.value = r || 0;
|
|
|
|
+ });
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
<style lang="scss">
|
|
<style lang="scss">
|
|
@@ -256,5 +272,19 @@ function tougao() {
|
|
width: 100vw;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
height: 100vh;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ .total{
|
|
|
|
+ color: #fff;
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 50%;
|
|
|
|
+ left:50%;
|
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
|
+
|
|
|
|
+ .num{
|
|
|
|
+ background-color: rgba(0, 0, 0, 0.4);
|
|
|
|
+ border-radius: 3px;
|
|
|
|
+ padding: .5em;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|