Browse Source

feat: 主背景色配置

dev
jiannibang 4 years ago
parent
commit
1e65e56329
  1. 2
      src/App.vue
  2. 3
      src/themes/fashion/style.json
  3. 3
      src/themes/highend/style.json
  4. 3
      src/themes/main/style.json
  5. 7
      src/views/Billboard/Billboard.vue

2
src/App.vue

@ -15,7 +15,7 @@ html,
#app { #app {
width: 1080px; width: 1080px;
height: 1920px; height: 1920px;
background-color: #dee6f6;
background-color: var(--global-appBackground);
overflow: hidden; overflow: hidden;
} }

3
src/themes/fashion/style.json

@ -1,6 +1,7 @@
{ {
"global": { "global": {
"background": "linear-gradient(180deg, #6257d7 0%, #f191c0 100%)"
"background": "linear-gradient(180deg, #6257d7 0%, #f191c0 100%)",
"appBackground": "#dee6f6"
}, },
"weather": { "weather": {
"iconColor": "#fff", "iconColor": "#fff",

3
src/themes/highend/style.json

@ -1,6 +1,7 @@
{ {
"global": { "global": {
"background": "center / cover no-repeat"
"background": "center / cover no-repeat",
"appBackground": "#F2EEE8"
}, },
"weather": { "weather": {
"iconColor": "#000", "iconColor": "#000",

3
src/themes/main/style.json

@ -1,6 +1,7 @@
{ {
"global": { "global": {
"background": "#dee6f6"
"background": "#dee6f6",
"appBackground": "#dee6f6"
}, },
"weather": { "weather": {
"iconColor": "#000", "iconColor": "#000",

7
src/views/Billboard/Billboard.vue

@ -21,7 +21,12 @@
width: `calc(484px * ${Math.ceil(columns.length / 2) * 2} + 68px)` width: `calc(484px * ${Math.ceil(columns.length / 2) * 2} + 68px)`
}" }"
> >
<div v-for="(col, i) of columns" :key="'col' + i" class="column" :style="{ height: `calc(${columnHeight / 1080} * 100vw)` }">
<div
v-for="(col, i) of columns"
:key="'col' + i"
class="column"
:style="{ height: `calc(${columnHeight / 1080} * 100vw)`, opacity: Math.floor(i / 2) === index ? 1 : 0.5 }"
>
<template v-for="(data, j) of col.list"> <template v-for="(data, j) of col.list">
<div v-if="data.type === 'format'" class="format" :key="data.name"> <div v-if="data.type === 'format'" class="format" :key="data.name">
{{ data.name }} {{ data.name }}

Loading…
Cancel
Save