Compare commits

..
15 Commits
Author SHA1 Message Date
haomingming 9a3398ce4b 4 2026-01-09 15:18:21 +08:00
haomingming 72476f3b10 3 2026-01-09 15:17:03 +08:00
haomingming d669d1dcb9 2 2026-01-09 15:15:35 +08:00
haomingming 36b5dc97fc Merge branch 'dev' 2026-01-09 15:13:54 +08:00
haomingming 95682b4b40 12 2026-01-09 15:13:14 +08:00
haomingming 8a2bf1bad2 去 vconsole 2025-12-28 09:17:19 +08:00
haomingming 0c9587b100 cc 2025-12-28 09:14:24 +08:00
haomingming 9de11a5f52 11 2025-12-28 09:11:07 +08:00
haomingming 09e794b2ef auu 2025-12-28 09:10:01 +08:00
haomingming 90407680af 去掉关注 2025-12-28 09:08:07 +08:00
haomingming 34a338fa55 去掉关注 2025-12-28 09:02:41 +08:00
haomingming 3a547c16de 去掉关注 2025-12-28 08:56:58 +08:00
haomingming da1fbce575 图片 2025-12-17 17:20:44 +08:00
haomingming 091a22cddb 图片 2025-12-17 17:11:44 +08:00
haomingming 2dd1eb4e98 分享文字 2025-12-17 10:58:55 +08:00
7 changed files with 60 additions and 69 deletions
+1 -1
View File
@@ -25,7 +25,7 @@
</div> </div>
</template> </template>
<script setup > <script setup >
const IMG_PATH = import.meta.env.VITE_IMAGE_URL+'/static/images/1178172634346456.png_hd.png' const IMG_PATH = import.meta.env.VITE_IMAGE_URL+'/static/images/1178172634346456.png_hd.png?v=2025'
const props = defineProps({ const props = defineProps({
num1: { num1: {
type: Number, type: Number,
+36 -50
View File
@@ -1,73 +1,59 @@
<template> <template>
<div class="votbg" @click="vote()"> <div class="votbg" @click="vote()">
<div>{{ text }}</div> <div>{{ text }}</div>
</div> </div>
</template> </template>
<script setup > <script setup>
import {goAuth}from '@/utils/authorize.js'; import { goAuth } from '@/utils/authorize.js';
const props = defineProps({ const props = defineProps({
text: { text: {
type: String, type: String,
}, },
}); });
const emits = defineEmits(["vote-click"]); const emits = defineEmits(["vote-click"]);
function vote(){ function vote() {
// emits('vote-click','1') // emits('vote-click','1')
// return // return
const token=localStorage.getItem('bearer-tokens'); const token = localStorage.getItem('bearer-tokens');
if(typeof token === "undefined"||token ==null|| token == ""|| token == "undefined")
{
const ticket= localStorage.getItem('qr-tickets');
if(typeof ticket === "undefined"||ticket ==null|| ticket == ""|| ticket == "undefined")
{
goAuth()
}
else
{
emits('vote-click',ticket)
localStorage.setItem('qr-tickets', "");
}
}
else
{
emits('vote-click','1')
}
if (typeof token === "undefined" || token == null || token == "" || token == "undefined") {
goAuth()
// const ticket = localStorage.getItem('qr-tickets');
// if (typeof ticket === "undefined" || ticket == null || ticket == "" || ticket == "undefined") {
// goAuth()
// }else {
// emits('vote-click', ticket)
// localStorage.setItem('qr-tickets', "");
// }
}else {
emits('vote-click', '1')
}
} }
</script> </script>
<style scoped> <style scoped>
.votbg {
.votbg{ height: 56px;
width: 212px;
height: 56px; margin-bottom: 16px;
width: 212px; background: url('../assets/votbutton.png');
margin-bottom: 16px; background-repeat: no-repeat;
background: url('../assets/votbutton.png'); background-size: cover;
background-repeat: no-repeat; font-family: AlibabaPuHuiTiH;
background-size: cover; font-size: 24px;
font-family: AlibabaPuHuiTiH; color: #FFFFFF;
font-size: 24px; line-height: 56px;
color: #FFFFFF; text-shadow: 0px 2px 2px #00A9E6;
line-height: 56px; text-align: center;
text-shadow: 0px 2px 2px #00A9E6; font-style: normal;
text-align: center;
font-style: normal;
} }
</style> </style>
+3 -2
View File
@@ -54,7 +54,8 @@ router.beforeEach((to, from, next) => {
const urlToBeAccessed = to.fullPath; // 获取即将跳转的完整URL const urlToBeAccessed = to.fullPath; // 获取即将跳转的完整URL
// alert(urlToBeAccessed+' 11111') // alert(urlToBeAccessed+' 11111')
console.log('即将跳转到:', urlToBeAccessed); console.log('即将跳转到:', urlToBeAccessed);
if(urlToBeAccessed.includes('subscribe')){
if(1==1){
const token=localStorage.getItem('bearer-tokens'); const token=localStorage.getItem('bearer-tokens');
if(typeof token === "undefined"||token ==null|| token == ""|| token == "undefined") if(typeof token === "undefined"||token ==null|| token == ""|| token == "undefined")
{ {
@@ -62,7 +63,7 @@ router.beforeEach((to, from, next) => {
let queryParams = to.query; let queryParams = to.query;
let subscribe = queryParams.subscribe let subscribe = queryParams.subscribe
// alert(subscribe+' 3333') // alert(subscribe+' 3333')
if(subscribe == '1'){ if(1==1){
// let openid = queryParams.openid // let openid = queryParams.openid
let openid = getCookie('wechat_user_openid') let openid = getCookie('wechat_user_openid')
+3 -3
View File
@@ -33,7 +33,7 @@
<votButton v-text="'投票'" @vote-click="vote" ></votButton> <votButton v-text="'投票'" @vote-click="vote" ></votButton>
</div> </div>
</div> </div>
<votView :show =show :shows =shows @onchange="handlechange" @onchanges="handlechange" :ticket=tickets ></votView> <!-- <votView :show =show :shows =shows @onchange="handlechange" @onchanges="handlechange" :ticket=tickets ></votView> -->
</template> </template>
<script setup > <script setup >
@@ -52,7 +52,7 @@ const tiltles = ref('')
const article_author = ref([]); const article_author = ref([]);
const id=ref('') const id=ref('')
import {browse,votearticle,getarticle} from '../utils/api.js' import {browse,votearticle,getarticle} from '../utils/api.js'
const IMG_PATH = import.meta.env.VITE_IMAGE_URL+'/static/images/1178172634346456.png' const IMG_PATH = import.meta.env.VITE_IMAGE_URL+'/static/images/1178172634346456-2.png?v=2025'
onMounted(()=>{ onMounted(()=>{
console.log("ee",route.query.id) console.log("ee",route.query.id)
@@ -112,7 +112,7 @@ function initData(id)
getarticle(id).then((data) => { getarticle(id).then((data) => {
console.log("getarticle",data) console.log("getarticle",data)
const Share_PATH = import.meta.env.VITE_SHARE_URL+'articleDetails?id='+route.query.id+'&name='+encodeURIComponent(route.query.name); const Share_PATH = import.meta.env.VITE_SHARE_URL+'articleDetails?id='+route.query.id+'&name='+encodeURIComponent(route.query.name);
WXSHARE("投我1票 | "+route.query.name, '2024第九届肝胆英雄榜最具影响力视频投票开始啦!', Share_PATH+fromwexin,""); WXSHARE("投我1票 | "+route.query.name, '2025第十届肝胆英雄榜最具影响力视频投票开始啦!', Share_PATH+fromwexin,"");
rank.value = data.data.rank rank.value = data.data.rank
ticket.value = data.data.vote_num ticket.value = data.data.vote_num
tiltles.value = data.data.article_title tiltles.value = data.data.article_title
+2 -2
View File
@@ -12,7 +12,7 @@
<div style="display: flex; justify-content: center;margin-top: 16px;"> <div style="display: flex; justify-content: center;margin-top: 16px;">
<votButton v-text="'开始投票'" @vote-click="voet"></votButton> <votButton v-text="'开始投票'" @vote-click="voet"></votButton>
</div> </div>
<votView :show=show :ticket=ticket @onchange="handlechange" ></votView> <!-- <votView :show=sho :ticket=ticket @onchange="handlechange" ></votView> -->
</div> </div>
</template> </template>
@@ -147,7 +147,7 @@ onMounted(() => {
initData() initData()
updatBrowse() updatBrowse()
WXSHARE('2024第九届肝胆英雄榜最具影响力视频投票开始啦!', '就差你一票~助力喜欢的专家或者视频上"肝胆英雄榜"', Share_PATH,"") WXSHARE('2025第十届肝胆英雄榜最具影响力视频投票开始啦!', '就差你一票~助力喜欢的专家或者视频上"肝胆英雄榜"', Share_PATH,"")
}) })
function voet(eventData) { function voet(eventData) {
+9 -5
View File
@@ -28,13 +28,16 @@
<div class="contents" v-html="content"></div> <div class="contents" v-html="content"></div>
</div> </div>
</div> </div>
<div class="buttomcla"> <!-- <div class="buttomcla">
<div style="display: flex; justify-content: center;margin-top: 10px;"> <div style="display: flex; justify-content: center;margin-top: 10px;">
<div class="text3" @click="goList()">去首页</div> <div class="text3" @click="goList()">去首页</div>
<votButton v-text="'投票'" @vote-click="vote" ></votButton> <votButton v-text="'投票'" @vote-click="vote" ></votButton>
</div> </div>
</div> </div> -->
<votView :show =show :shows =shows @onchange="handlechange" @onchanges="handlechange" :ticket=tickets ></votView> <!-- <div class="buttomcla"> -->
<!-- 投票已结束 -->
<!-- </div> -->
<!-- <votView :show =show :shows =shows @onchange="handlechange" @onchanges="handlechange" :ticket=tickets ></votView> -->
</template> </template>
<script setup > <script setup >
import { useRouter,useRoute } from 'vue-router'; import { useRouter,useRoute } from 'vue-router';
@@ -53,7 +56,7 @@ const article_author = ref([]);
const id=ref('') const id=ref('')
const video_author_t=ref("") const video_author_t=ref("")
import {browse,votevideo,getvideo} from '../utils/api.js' import {browse,votevideo,getvideo} from '../utils/api.js'
const IMG_PATH = import.meta.env.VITE_IMAGE_URL+'/static/images/1178172634346456.png' const IMG_PATH = import.meta.env.VITE_IMAGE_URL+'/static/images/1178172634346456-2.png?v=2025'
const players = ref([]) const players = ref([])
const playerJs=ref('//player.polyv.net/script/player.js') const playerJs=ref('//player.polyv.net/script/player.js')
const vid = ref('') const vid = ref('')
@@ -193,7 +196,8 @@ console.log(vid.value)
video_author_t.value=video_author_t.value.slice(0, -1); video_author_t.value=video_author_t.value.slice(0, -1);
} }
WXSHARE("投我1票 | "+video_author_t.value+":"+route.query.name, '2024第九届肝胆英雄榜最具影响力视频投票开始啦!', Share_PATH,""); // WXSHARE("投我1票 | "+video_author_t.value+":"+route.query.name, '2025第十届肝胆英雄榜最具影响力视频投票开始啦!', Share_PATH,"");
WXSHARE(video_author_t.value+":"+route.query.name, '2025第十届肝胆英雄榜最具影响力视频', Share_PATH,"");
}).then(()=>{ }).then(()=>{
console.log("加载视频信息") console.log("加载视频信息")
loadPlayerScript(loadPlayer); loadPlayerScript(loadPlayer);
+2 -2
View File
@@ -194,7 +194,7 @@ v-show="voting">
<van-empty description="暂无数据" /> <van-empty description="暂无数据" />
</div> </div>
<votView :show =show :shows =shows @onchange="handlechange" @onchanges="handlechange" :ticket=tickets ></votView> <!-- <votView :show =show :shows =shows @onchange="handlechange" @onchanges="handlechange" :ticket=tickets ></votView> -->
</div> </div>
</template> </template>
<script setup > <script setup >
@@ -584,7 +584,7 @@ onMounted(() => {
initData() initData()
updatBrowse() updatBrowse()
WXSHARE('2024第九届肝胆英雄榜最具影响力视频投票开始啦!', '就差你一票~助力喜欢的专家或者视频上"肝胆英雄榜"', Share_PATH,"") WXSHARE('2025第十届肝胆英雄榜最具影响力视频投票开始啦!', '就差你一票~助力喜欢的专家或者视频上"肝胆英雄榜"', Share_PATH,"")
saveurl('/voteList','','') saveurl('/voteList','','')
}) })