|
@@ -1,12 +1,5 @@
|
|
|
<template>
|
|
|
<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_item">
|
|
|
<div class="btn" @click="toDetail = true">活动详情</div>
|
|
@@ -15,7 +8,7 @@
|
|
|
<div class="btn" @click="tougao">我要投稿</div>
|
|
|
</div>
|
|
|
<div class="bottom_item">
|
|
|
- <div class="btn" @click="toupiao">我的作品</div>
|
|
|
+ <div class="btn" @click="()=>openShanshipinDetail('https://ssp.sxtvs.com.cn/wap/waplist.shtml?shareurl=/a/a/w/m/list_1_0.shtml')">优秀选手</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -82,6 +75,18 @@
|
|
|
</div>
|
|
|
</van-dialog>
|
|
|
|
|
|
+ <van-dialog
|
|
|
+ theme="round-button"
|
|
|
+ confirm-button-text="关 闭"
|
|
|
+ v-model:show="toJianjie"
|
|
|
+ title="详情"
|
|
|
+ confirm-button-color="#cc0003"
|
|
|
+ >
|
|
|
+ <div class="DetailMain">
|
|
|
+ 5月即将开启,敬请关注!届时,我们将组织标准评委团对线上线下提交的作品进行初评,评选出优秀选手,通过初评的优秀选手将参加现场绘画、书法环节,现场所画作品直接参与专家评审团现场评审,最终选出各类优秀作品,并进行表彰。
|
|
|
+ </div>
|
|
|
+ </van-dialog>
|
|
|
+
|
|
|
<img v-if="showWixin" src="../../assets/img/weixin.jpg" class="Down" />
|
|
|
</div>
|
|
|
</template>
|
|
@@ -95,8 +100,7 @@ import {
|
|
|
isAndroid,
|
|
|
isWechat,
|
|
|
} from '../../utils/isTerminal';
|
|
|
-import countTo from '@/components/counto/vue-countTo.vue';
|
|
|
-import { getTotalNum, getToupiaoUrl } from '@/api/SilkRoadSpringGala.js';
|
|
|
+import { getToupiaoUrl } from '@/api/SilkRoadSpringGala.js';
|
|
|
/**
|
|
|
* window.$originData.orginParames.title 页面标题
|
|
|
* window.$originData.orginParames.parameters 固定参数值
|
|
@@ -106,12 +110,7 @@ import logoImage from '@/assets/img/logp.png';
|
|
|
const toShanshipin = ref(false);
|
|
|
const toDetail = ref(false);
|
|
|
const showWixin = ref(false);
|
|
|
-const total = ref(0);
|
|
|
const toJianjie = ref(false);
|
|
|
-tot();
|
|
|
-window.setInterval(() => {
|
|
|
- tot();
|
|
|
-}, 5000);
|
|
|
function getDownloadUrl() {
|
|
|
let url = 'https://ssp.sxtvs.com.cn';
|
|
|
if (isIpad || isIpod || isIphone)
|
|
@@ -133,27 +132,11 @@ function toShanshipinFunc() {
|
|
|
}
|
|
|
|
|
|
function tougao() {
|
|
|
- const newDate = Date.now();
|
|
|
- const inTime = newDate >= 1682870400000 && newDate < 1683734400000;
|
|
|
- if (inTime) {
|
|
|
- // 2023-5-1 00:00:00 到 2023-5-10 24:00:00 跳转到投票界面
|
|
|
- getToupiaoUrl().then(r => {
|
|
|
- const res = r || { toupiaourl: '' };
|
|
|
- openShanshipinDetail(res.toupiaourl);
|
|
|
- });
|
|
|
- return;
|
|
|
- } else {
|
|
|
- // 否则打开简介
|
|
|
- toJianjie.value = true;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-function toupiao() {
|
|
|
- if (!window.$shanshipin || !window.$shanshipin.invitedIp)
|
|
|
- return (toShanshipin.value = true);
|
|
|
- openShanshipinDetail(
|
|
|
- 'https://ssp-api.sxtvs.com.cn/tapi/form/index.html?ChannelID=20441'
|
|
|
- );
|
|
|
+ getToupiaoUrl().then(r => {
|
|
|
+ const res = r || { toxuanshouurl: '' };
|
|
|
+ if (res.toxuanshouurl) openShanshipinDetail(res.toxuanshouurl);
|
|
|
+ else toJianjie.value = true;
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
function openShanshipinDetail(url = '') {
|
|
@@ -162,8 +145,8 @@ function openShanshipinDetail(url = '') {
|
|
|
shareSummary = '',
|
|
|
shareIcon = '',
|
|
|
shareUrl = '';
|
|
|
- if (isIphone || isIpad || isIpod) {
|
|
|
- try {
|
|
|
+ try {
|
|
|
+ if (isIphone || isIpad || isIpod) {
|
|
|
window.webkit.messageHandlers.TideAppStartNewsDetail.postMessage([
|
|
|
url,
|
|
|
contentId,
|
|
@@ -172,11 +155,7 @@ function openShanshipinDetail(url = '') {
|
|
|
shareIcon,
|
|
|
shareUrl,
|
|
|
]);
|
|
|
- } catch (e) {
|
|
|
- console.log(e);
|
|
|
- }
|
|
|
- } else {
|
|
|
- try {
|
|
|
+ } else {
|
|
|
window.TideApp.startNewsDetail(
|
|
|
url,
|
|
|
contentId,
|
|
@@ -185,18 +164,12 @@ function openShanshipinDetail(url = '') {
|
|
|
shareIcon,
|
|
|
shareUrl
|
|
|
);
|
|
|
- } catch (e) {
|
|
|
- console.log(e);
|
|
|
}
|
|
|
+ } catch (e) {
|
|
|
+ console.log(e);
|
|
|
+ window.location.href = url;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-function tot() {
|
|
|
- getTotalNum().then(r => {
|
|
|
- const res = r || {real: 0, unreal: 0}
|
|
|
- total.value = Number(res.real || 0) + Number(res.unreal || 0);
|
|
|
- });
|
|
|
-}
|
|
|
</script>
|
|
|
<style lang="scss">
|
|
|
.CalligraphyAndPaintingCompetition {
|
|
@@ -298,19 +271,5 @@ function tot() {
|
|
|
width: 100vw;
|
|
|
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: 0.5em;
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
</style>
|