Commit 4dfe0bf3 authored by 郭志伟's avatar 郭志伟

fix: app颜色显示整合

parent a80d1714
...@@ -80,7 +80,7 @@ export function isColor(color) { ...@@ -80,7 +80,7 @@ export function isColor(color) {
export function setAppTitleColor(bgcolor = "#fff") { export function setAppTitleColor(bgcolor = "#fff") {
if (!isApp && !EASY_ENV_IS_BROWSER) return; if (!isApp && !EASY_ENV_IS_BROWSER) return;
let jsBridge = new Bridge(); let jsBridge = new Bridge();
const isGradient = bgcolor.indexOf("rgb") > -1; const isGradient = Array.isArray(bgcolor);
const rgbColor = hexToRgb(isGradient ? bgcolor[0] : bgcolor); const rgbColor = hexToRgb(isGradient ? bgcolor[0] : bgcolor);
const isDarkContent = 0.213 * rgbColor[0] + 0.715 * rgbColor[1] + 0.072 * rgbColor[2] <= 255 / 2; const isDarkContent = 0.213 * rgbColor[0] + 0.715 * rgbColor[1] + 0.072 * rgbColor[2] <= 255 / 2;
const colors = isGradient const colors = isGradient
......
{ {
"api": { "api": {
"apiHost": "https://quantum-blocks-vcc2.liangkebang.net", "apiHost": "https://quantum-blocks-test1.liangkebang.net",
"h5Host": "https://quantum-h5-vcc2.liangkebang.net", "h5Host": "https://quantum-h5-test1.liangkebang.net",
"opapiHost": "https://opapi-vcc2.liangkebang.net", "opapiHost": "https://opapi-test1.liangkebang.net",
"passportHost": "https://passportapi-vcc2.liangkebang.net", "passportHost": "https://passportapi-test1.liangkebang.net",
"kdspHost": "https://talos-vcc2.liangkebang.net", "kdspHost": "https://talos-test1.liangkebang.net",
"loginUrl": "", "loginUrl": "",
"h5ShopHost": "https://tenet-vcc2.liangkebang.net/#" "h5ShopHost": "https://tenet-test1.liangkebang.net/#"
}, },
"mysql": { "mysql": {
"low_code": { "low_code": {
"host": "undefined", "host": "172.17.5.17",
"port": "undefined", "port": "31548",
"username": "qa", "username": "qa",
"password": "qatest", "password": "qatest",
"database": "low_code" "database": "low_code"
} }
}, },
"redis": { "redis": {
"port": "undefined", "port": "32625",
"host": "undefined", "host": "172.17.6.7",
"password": "", "password": "",
"db": 0 "db": 0
}, },
......
{ {"apiHost":"https://quantum-blocks-test1.liangkebang.net","h5Host":"https://quantum-h5-test1.liangkebang.net","opapiHost":"https://opapi-test1.liangkebang.net","passportHost":"https://passportapi-test1.liangkebang.net","kdspHost":"https://talos-test1.liangkebang.net","loginUrl":"","h5ShopHost":"https://tenet-test1.liangkebang.net/#","qiniuUpHost":"https://up-z0.qiniup.com","qiniuHost":"https://appsync.lkbang.net"}
"apiHost": "https://quantum-blocks-vcc2.liangkebang.net", \ No newline at end of file
"h5Host": "https://quantum-h5-vcc2.liangkebang.net",
"opapiHost": "https://opapi-vcc2.liangkebang.net",
"passportHost": "https://passportapi-vcc2.liangkebang.net",
"kdspHost": "https://talos-vcc2.liangkebang.net",
"loginUrl": "",
"h5ShopHost": "https://tenet-vcc2.liangkebang.net/#"
}
\ No newline at end of file
...@@ -29,8 +29,8 @@ export default (appInfo: EggAppConfig) => { ...@@ -29,8 +29,8 @@ export default (appInfo: EggAppConfig) => {
exports.redis = { exports.redis = {
client: { client: {
port: 31565, // Redis port port: 32625, // Redis port
host: '172.17.5.13', // Redis host host: '172.17.6.7', // Redis host
password: '', password: '',
db: 0 db: 0
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment