|
@@ -169,7 +169,7 @@ import {
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
components: {},
|
|
components: {},
|
|
setup(props) {
|
|
setup(props) {
|
|
- const formatEnergyDate = function (type = 1) {
|
|
|
|
|
|
+ const formatEnergyDate = function(type = 1) {
|
|
//三目运算符
|
|
//三目运算符
|
|
let dates = null;
|
|
let dates = null;
|
|
if (type == 2) {
|
|
if (type == 2) {
|
|
@@ -200,7 +200,7 @@ export default defineComponent({
|
|
hours + ":" + minutes,
|
|
hours + ":" + minutes,
|
|
];
|
|
];
|
|
};
|
|
};
|
|
- const getWeek = function () {
|
|
|
|
|
|
+ const getWeek = function() {
|
|
let week = new Date().getDay();
|
|
let week = new Date().getDay();
|
|
let str = "";
|
|
let str = "";
|
|
if (week == 0) {
|
|
if (week == 0) {
|
|
@@ -269,7 +269,7 @@ export default defineComponent({
|
|
myVid.controls = false;
|
|
myVid.controls = false;
|
|
|
|
|
|
// 视频播放完成
|
|
// 视频播放完成
|
|
- $(myVid).bind("ended", function () {
|
|
|
|
|
|
+ $(myVid).bind("ended", function() {
|
|
$(myVid).fadeOut();
|
|
$(myVid).fadeOut();
|
|
|
|
|
|
// 第2部分
|
|
// 第2部分
|
|
@@ -305,23 +305,30 @@ export default defineComponent({
|
|
let type = proxyData.type;
|
|
let type = proxyData.type;
|
|
// 第3部分
|
|
// 第3部分
|
|
|
|
|
|
- let timer = setTimeout(function () {
|
|
|
|
- $(skSlogan).fadeOut();
|
|
|
|
- $(aniThree).show();
|
|
|
|
- $(logoLeft).addClass("logoLeftAni");
|
|
|
|
- $(logoRight).addClass("logoRightAni");
|
|
|
|
- $(line).addClass("lineAni");
|
|
|
|
- $(text).addClass("lineAni");
|
|
|
|
- clearTimeout(timer);
|
|
|
|
- let time2 = setTimeout(() => {
|
|
|
|
- clearTimeout(time2);
|
|
|
|
- console.log("/weather" + "?type=" + type);
|
|
|
|
- router.push({
|
|
|
|
- path: "/weather",
|
|
|
|
- query: { type: proxyData.type },
|
|
|
|
- });
|
|
|
|
- }, 30000);
|
|
|
|
- // 30000
|
|
|
|
|
|
+ // let timer = setTimeout(function () {
|
|
|
|
+ // $(skSlogan).fadeOut();
|
|
|
|
+ // $(aniThree).show();
|
|
|
|
+ // $(logoLeft).addClass("logoLeftAni");
|
|
|
|
+ // $(logoRight).addClass("logoRightAni");
|
|
|
|
+ // $(line).addClass("lineAni");
|
|
|
|
+ // $(text).addClass("lineAni");
|
|
|
|
+ // clearTimeout(timer);
|
|
|
|
+ // let time2 = setTimeout(() => {
|
|
|
|
+ // clearTimeout(time2);
|
|
|
|
+ // console.log("/weather" + "?type=" + type);
|
|
|
|
+ // router.push({
|
|
|
|
+ // path: "/weather",
|
|
|
|
+ // query: { type: proxyData.type },
|
|
|
|
+ // });
|
|
|
|
+ // }, 30000);
|
|
|
|
+ // }, 30000);
|
|
|
|
+ let time2 = setTimeout(() => {
|
|
|
|
+ clearTimeout(time2);
|
|
|
|
+ console.log("/weather" + "?type=" + type);
|
|
|
|
+ router.push({
|
|
|
|
+ path: "/weather",
|
|
|
|
+ query: { type: proxyData.type },
|
|
|
|
+ });
|
|
}, 30000);
|
|
}, 30000);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -341,7 +348,7 @@ export default defineComponent({
|
|
winChange() {
|
|
winChange() {
|
|
window.addEventListener(
|
|
window.addEventListener(
|
|
"resize",
|
|
"resize",
|
|
- function () {
|
|
|
|
|
|
+ function() {
|
|
proxyData.updateStyle();
|
|
proxyData.updateStyle();
|
|
},
|
|
},
|
|
false
|
|
false
|