Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quantum-blocks-h5
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
quantum-blocks-h5
Commits
4dfe0bf3
Commit
4dfe0bf3
authored
Aug 02, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: app颜色显示整合
parent
a80d1714
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
23 deletions
+15
-23
index.ts
app/web/page/activity/view/activity/index.ts
+1
-1
color.service.ts
app/web/service/color.service.ts
+1
-1
apollo.json
config/apollo.json
+10
-10
apollo.ssr.json
config/apollo.ssr.json
+1
-9
config.local.ts
config/config.local.ts
+2
-2
No files found.
app/web/page/activity/view/activity/index.ts
View file @
4dfe0bf3
app/web/service/color.service.ts
View file @
4dfe0bf3
...
...
@@ -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
...
...
config/apollo.json
View file @
4dfe0bf3
{
"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
},
...
...
config/apollo.ssr.json
View file @
4dfe0bf3
{
"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
config/config.local.ts
View file @
4dfe0bf3
...
...
@@ -29,8 +29,8 @@ export default (appInfo: EggAppConfig) => {
exports
.
redis
=
{
client
:
{
port
:
3
156
5
,
// Redis port
host
:
'
172.17.
5.13
'
,
// Redis host
port
:
3
262
5
,
// Redis port
host
:
'
172.17.
6.7
'
,
// Redis host
password
:
''
,
db
:
0
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment