Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bh_face_counter
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
黄天晨
bh_face_counter
Commits
1667a64e
Commit
1667a64e
authored
Aug 26, 2020
by
陈敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提取APP标题文字到config
parent
43f221eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
HomeLayout.js
src/components/HomeLayout.js
+2
-3
config.js
src/utils/config.js
+2
-0
No files found.
src/components/HomeLayout.js
View file @
1667a64e
import
React
,
{
Component
}
from
'react'
;
import
{
Image
,
Text
,
View
}
from
'react-native'
;
import
{
appName
}
from
'../utils/config'
;
class
HomeLayout
extends
Component
{
render
()
{
return
(
...
...
@@ -15,14 +15,13 @@ class HomeLayout extends Component {
style
=
{{
marginLeft
:
20
}}
source
=
{
require
(
'../assets/Vertical/24h.png'
)}
/
>
<
Text
style
=
{
styles
.
titleText
}
>
仲马购人工智能
<
/Text
>
<
Text
style
=
{
styles
.
titleText
}
>
{
appName
}
<
/Text
>
<
/View
>
{
this
.
props
.
children
}
<
/View
>
);
}
}
const
styles
=
{
title
:
{
top
:
0
,
...
...
src/utils/config.js
View file @
1667a64e
...
...
@@ -7,6 +7,7 @@ export const login = `https://m${app}.vs-u.com`;
export
const
qrHost
=
login
;
export
const
imgUrl
=
'http://barcod.oss-cn-shenzhen.aliyuncs.com/images/'
;
export
const
watermark
=
'.jpg?x-oss-process=style/zmgo_thumb_watermark'
;
export
const
appName
=
'仲马购'
;
window
.
defaultCount
=
0
;
...
...
@@ -17,4 +18,5 @@ export default {
isProd
,
imgUrl
,
watermark
,
appName
,
};
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