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

fix: app颜色显示整合

parent a80d1714
......@@ -80,7 +80,7 @@ export function isColor(color) {
export function setAppTitleColor(bgcolor = "#fff") {
if (!isApp && !EASY_ENV_IS_BROWSER) return;
let jsBridge = new Bridge();
const isGradient = bgcolor.indexOf("rgb") > -1;
const isGradient = Array.isArray(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 colors = isGradient
......
{
"api": {
"apiHost": "https://quantum-blocks-vcc2.liangkebang.net",
"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",
"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-vcc2.liangkebang.net/#"
"h5ShopHost": "https://tenet-test1.liangkebang.net/#"
},
"mysql": {
"low_code": {
"host": "undefined",
"port": "undefined",
"host": "172.17.5.17",
"port": "31548",
"username": "qa",
"password": "qatest",
"database": "low_code"
}
},
"redis": {
"port": "undefined",
"host": "undefined",
"port": "32625",
"host": "172.17.6.7",
"password": "",
"db": 0
},
......
{
"apiHost": "https://quantum-blocks-vcc2.liangkebang.net",
"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
{"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"}
\ No newline at end of file
......@@ -29,8 +29,8 @@ export default (appInfo: EggAppConfig) => {
exports.redis = {
client: {
port: 31565, // Redis port
host: '172.17.5.13', // Redis host
port: 32625, // Redis port
host: '172.17.6.7', // Redis host
password: '',
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