将背景图获取移动到computed以适配toolkit2.x

This commit is contained in:
Searchstars
2025-01-01 14:13:45 +08:00
parent 44bd6d1c21
commit 0f84ce70f1
5 changed files with 30 additions and 5 deletions
+6 -1
View File
@@ -3,7 +3,7 @@
<template>
<div class="page">
<image style="position: absolute; left: 0px" src="{{this.$app.$def.bgimg.GetBackgroundImageSrc()}}"></image>
<image style="position: absolute; left: 0px" src="{{getBgImg}}"></image>
<scroll class="scroll" scroll-y="true" bounces="true">
<switch-bar title="dynamic.title"></switch-bar>
<div class="waterfall" if="show_content">
@@ -32,6 +32,11 @@ export default {
render_split_2: {}
}
},
computed: {
getBgImg(){
return this.$app.$def.bgimg.GetBackgroundImageSrc()
}
},
SplitWaterfallArea(arr) {
const arr1 = [];
const arr2 = [];
+6 -1
View File
@@ -3,7 +3,7 @@
<template>
<div class="page">
<image style="position: absolute; left: 0px" src="{{this.$app.$def.bgimg.GetBackgroundImageSrc()}}"></image>
<image style="position: absolute; left: 0px" src="{{getBgImg}}"></image>
<scroll scroll-y="true" class="scroll" bounces="true">
<switch-bar title="main.title"></switch-bar>
<text class="tip">{{ funnytip }}</text>
@@ -41,6 +41,11 @@ export default {
},
bgimg: ""
},
computed: {
getBgImg(){
return this.$app.$def.bgimg.GetBackgroundImageSrc()
}
},
async Refresh() {
if (!this.anims.showRefreshFX) {
this.recommend_vids = []
@@ -3,7 +3,7 @@
<template>
<div class="page">
<image style="position: absolute; left: 0px" src="{{this.$app.$def.bgimg.GetBackgroundImageSrc()}}"></image>
<image style="position: absolute; left: 0px" src="{{getBgImg}}"></image>
<scroll class="scroll" scroll-y="true" bounces="true">
<switch-bar title="savedcontent.title" static></switch-bar>
<div style="flex-direction: column; align-items: center; width: 100%" for="{{content}}">
@@ -23,6 +23,11 @@ export default {
private: {
content: []
},
computed: {
getBgImg(){
return this.$app.$def.bgimg.GetBackgroundImageSrc()
}
},
PatchContent(origin_content) {
try {
var new_content = []
+6 -1
View File
@@ -3,7 +3,7 @@
<template>
<div class="page">
<image style="position: absolute; left: 0px" src="{{this.$app.$def.bgimg.GetBackgroundImageSrc()}}"></image>
<image style="position: absolute; left: 0px" src="{{getBgImg}}"></image>
<switch-bar title="search.title" static></switch-bar>
<div class="searchbtn" @click="OpenInput">
<image src="/common/searchpage_search.png" style="margin-left: 25px" static></image>
@@ -34,6 +34,11 @@ export default {
show_loading: false
},
},
computed: {
getBgImg(){
return this.$app.$def.bgimg.GetBackgroundImageSrc()
}
},
ExitInput() {
this.input_mode = false
},
@@ -5,7 +5,7 @@
<template>
<div class="page">
<image style="position: absolute; left: 0px" src="{{this.$app.$def.bgimg.GetBackgroundImageSrc()}}"></image>
<image style="position: absolute; left: 0px" src="{{getBgImg}}"></image>
<scroll scroll-y="true" class="scroll" bounces="true">
<switch-bar title="searchresult.title" if="{{!overview_mode}}"></switch-bar>
<div class="searchbar" if="{{!overview_mode}}" @click="SearchBarClick">
@@ -103,6 +103,11 @@ export default {
public: {
keyword: ""
},
computed: {
getBgImg(){
return this.$app.$def.bgimg.GetBackgroundImageSrc()
}
},
UpdateTypeBarColors(index) {
this.typebar_colors = {
c1: "#919191",