Commit 1667a64e by 陈敏

提取APP标题文字到config

parent 43f221eb
import React, {Component} from 'react'; import React, {Component} from 'react';
import {Image, Text, View} from 'react-native'; import {Image, Text, View} from 'react-native';
import {appName} from '../utils/config';
class HomeLayout extends Component { class HomeLayout extends Component {
render() { render() {
return ( return (
...@@ -15,14 +15,13 @@ class HomeLayout extends Component { ...@@ -15,14 +15,13 @@ class HomeLayout extends Component {
style={{marginLeft: 20}} style={{marginLeft: 20}}
source={require('../assets/Vertical/24h.png')} source={require('../assets/Vertical/24h.png')}
/> />
<Text style={styles.titleText}>仲马购人工智能</Text> <Text style={styles.titleText}>{appName}</Text>
</View> </View>
{this.props.children} {this.props.children}
</View> </View>
); );
} }
} }
const styles = { const styles = {
title: { title: {
top: 0, top: 0,
......
...@@ -7,6 +7,7 @@ export const login = `https://m${app}.vs-u.com`; ...@@ -7,6 +7,7 @@ export const login = `https://m${app}.vs-u.com`;
export const qrHost = login; export const qrHost = login;
export const imgUrl = 'http://barcod.oss-cn-shenzhen.aliyuncs.com/images/'; export const imgUrl = 'http://barcod.oss-cn-shenzhen.aliyuncs.com/images/';
export const watermark = '.jpg?x-oss-process=style/zmgo_thumb_watermark'; export const watermark = '.jpg?x-oss-process=style/zmgo_thumb_watermark';
export const appName = '仲马购';
window.defaultCount = 0; window.defaultCount = 0;
...@@ -17,4 +18,5 @@ export default { ...@@ -17,4 +18,5 @@ export default {
isProd, isProd,
imgUrl, imgUrl,
watermark, watermark,
appName,
}; };
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