Commit 1b3257ee authored by shiyunjie's avatar shiyunjie

注释 console

parent 836d8efd
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
"react-native-svg": "^9.5.1", "react-native-svg": "^9.5.1",
"react-native-swiper": "^1.5.14", "react-native-swiper": "^1.5.14",
"react-native-tab-view": "2.7.1", "react-native-tab-view": "2.7.1",
"react-native-update-mutlirn-hg": "^3.1.1",
"react-native-vector-icons": "^6.4.2", "react-native-vector-icons": "^6.4.2",
"react-navigation": "^3.11.0", "react-navigation": "^3.11.0",
"react-navigation-redux-helpers": "^3.0.2", "react-navigation-redux-helpers": "^3.0.2",
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
#read env #read env
echo 玩命打包中.... echo 玩命打包中....
echo '程序会自动npm prune,旧包将备份在build/backup文件夹下' echo '程序会自动npm prune,旧包将备份在build/backup文件夹下'
echo '在updage.json文件中可以定义模板,binary版本信息等'
echo '在update.json中,_androidPPK,_iOSPPK字符将会替换成打包后的文件名'
echo '' echo ''
backup(){ backup(){
if [ ! -d "build/backup" ];then if [ ! -d "build/backup" ];then
...@@ -28,23 +26,13 @@ bundle(){ ...@@ -28,23 +26,13 @@ bundle(){
package(){ package(){
currentPath=`pwd`; currentPath=`pwd`;
workPath=build/output workPath=build/output
content=`cat ./update.json`;
cd $workPath; cd $workPath;
android=`ls android*.ppk`; android=`ls android*.ppk`;
ios=`ls ios*.ppk`; ios=`ls ios*.ppk`;
content=${content/'_iOSPPK'/$ios};
content=${content/'_androidPPK'/$android};
content=${content/'_buildBy'/`git config user.name`};
content=${content/'_buildDate'/`date '+%Y-%m-%d-%H-%M-%S'`};
cd $currentPath
androidBinary=`cd android && ./gradlew echoVersionName -q`
cd $workPath;
content=${content/'_androidBinary'/$androidBinary};
echo $content > update.json;
zip -r `date '+%Y-%m-%d-%H时%M分%S秒'.zip` ./ zip -r `date '+%Y-%m-%d-%H时%M分%S秒'.zip` ./
rm *.ppk *.json rm *.ppk *.json
cd $currentPath; cd $currentPath;
echo '打包完毕,将自动打开Finder...' echo '打包完毕,将自动打开Finder...'
} }
backup && npm prune && bundle '--platform ios' && bundle '--platform android' backup && npm prune && bundle '--platform ios' && bundle '--platform android'
......
...@@ -16,7 +16,7 @@ const ActionForNativePage = action => NavigationStack.router ...@@ -16,7 +16,7 @@ const ActionForNativePage = action => NavigationStack.router
const initialState = NavigationStack.router.getStateForAction(ActionForTab); const initialState = NavigationStack.router.getStateForAction(ActionForTab);
const nav = (state = initialState, action) => { const nav = (state = initialState, action) => {
console.log('nav:',action) //console.log('nav:',action)
switch (action.type) { switch (action.type) {
case PUSH: case PUSH:
return NavigationStack.router.getStateForAction(ActionForNativePage(action), state); return NavigationStack.router.getStateForAction(ActionForNativePage(action), state);
......
...@@ -11,7 +11,7 @@ type Props = { ...@@ -11,7 +11,7 @@ type Props = {
} }
function SwiperBanner(props:Props) { function SwiperBanner(props:Props) {
console.log('SwiperBanner',props) //console.log('SwiperBanner',props)
return ( return (
<SwipeView <SwipeView
showsButtons={false} showsButtons={false}
......
...@@ -18,7 +18,7 @@ class TabButton extends Component<Props> { ...@@ -18,7 +18,7 @@ class TabButton extends Component<Props> {
theme, iconSuite, tabBarIconName, tabBarTitle, focused, badge, theme, iconSuite, tabBarIconName, tabBarTitle, focused, badge,
} = this.props; } = this.props;
const color = focused ? theme.ThemeColor : theme.Colors.charcoal; const color = focused ? theme.ThemeColor : theme.Colors.charcoal;
console.log('badge:', badge); //console.log('badge:', badge);
const hasBadge = !!badge; const hasBadge = !!badge;
return ( return (
<View style={{ alignItems: 'center' }}> <View style={{ alignItems: 'center' }}>
......
...@@ -63,7 +63,7 @@ const pageName = 'productDetail'; ...@@ -63,7 +63,7 @@ const pageName = 'productDetail';
class BaseContainer extends Component { class BaseContainer extends Component {
constructor(props : Props) { constructor(props : Props) {
super(props); super(props);
console.log('props', props); //console.log('props', props);
const productDetail = getConfig(props.blueId)[props.pageName]; const productDetail = getConfig(props.blueId)[props.pageName];
const { params } = props; const { params } = props;
const { keys, layout } = productDetail; const { keys, layout } = productDetail;
...@@ -79,7 +79,7 @@ class BaseContainer extends Component { ...@@ -79,7 +79,7 @@ class BaseContainer extends Component {
keys, keys,
}; };
console.log('ProductDetailPage', this.state); //console.log('ProductDetailPage', this.state);
} }
componentWillMount() : void { componentWillMount() : void {
...@@ -88,7 +88,7 @@ class BaseContainer extends Component { ...@@ -88,7 +88,7 @@ class BaseContainer extends Component {
const { keys, layout } = this.productDetail; const { keys, layout } = this.productDetail;
keys.forEach((key) => { keys.forEach((key) => {
const data = this.fillData(key, this.productDetail[key], params); const data = this.fillData(key, this.productDetail[key], params);
console.log('productDetail:', this.productDetail, layout[key], key); //console.log('productDetail:', this.productDetail, layout[key], key);
config[key] = { ...layout[key], ...data }; config[key] = { ...layout[key], ...data };
}); });
this.setState({ this.setState({
...@@ -102,7 +102,7 @@ class BaseContainer extends Component { ...@@ -102,7 +102,7 @@ class BaseContainer extends Component {
name, description, tagNameList, bannerIconUrl, guaranteeContent, name, description, tagNameList, bannerIconUrl, guaranteeContent,
productIntroductionUrl, serviceProcessUrl, productIntroductionUrl, serviceProcessUrl,
} = params.detail; } = params.detail;
console.log('productIntroductionUrl', productIntroductionUrl); //console.log('productIntroductionUrl', productIntroductionUrl);
switch (key) { switch (key) {
case PRODUCT_BANNER: case PRODUCT_BANNER:
return { return {
...@@ -113,7 +113,7 @@ class BaseContainer extends Component { ...@@ -113,7 +113,7 @@ class BaseContainer extends Component {
case PREM_GROUP: case PREM_GROUP:
return { return {
onSelect: (index) => { onSelect: (index) => {
console.log('BUTTON_GROUP,onSelect', index); //console.log('BUTTON_GROUP,onSelect', index);
switch (index) { switch (index) {
case 0: case 0:
this.policy.prem = 99; this.policy.prem = 99;
...@@ -151,9 +151,9 @@ class BaseContainer extends Component { ...@@ -151,9 +151,9 @@ class BaseContainer extends Component {
case MULT: case MULT:
return { return {
onChangeText: (value) => { onChangeText: (value) => {
console.log('ProductDetailPage_onChangeText', value); //console.log('ProductDetailPage_onChangeText', value);
this.policy.mult = value; this.policy.mult = value;
console.log(this.policy.mult); //console.log(this.policy.mult);
}, },
onEndEditing: () => { onEndEditing: () => {
}, },
...@@ -226,7 +226,7 @@ class BaseContainer extends Component { ...@@ -226,7 +226,7 @@ class BaseContainer extends Component {
) )
renderPicker = (data) => { renderPicker = (data) => {
console.log('renderPicker:', data); //console.log('renderPicker:', data);
return ( return (
<Picker {...data} /> <Picker {...data} />
); );
...@@ -240,7 +240,7 @@ class BaseContainer extends Component { ...@@ -240,7 +240,7 @@ class BaseContainer extends Component {
render() { render() {
const { config, keys } = this.state; const { config, keys } = this.state;
console.log('config:', config, keys); //console.log('config:', config, keys);
const type = 'type'; const type = 'type';
return ( return (
<SpringScrollView <SpringScrollView
......
...@@ -9,9 +9,9 @@ type RiskTakerParams = { ...@@ -9,9 +9,9 @@ type RiskTakerParams = {
} }
export async function queryInsuranceListByUidAPI(params : RiskTakerParams) { export async function queryInsuranceListByUidAPI(params : RiskTakerParams) {
console.log('queryInsuranceListByUidAPI', params); //console.log('queryInsuranceListByUidAPI', params);
const body = await fetchCoreAPI('001001', params); const body = await fetchCoreAPI('001001', params);
console.log('queryInsuranceListByUidAPI_body:', body); //console.log('queryInsuranceListByUidAPI_body:', body);
if (_.get(body, 'code') === '0000' && _.get(body, 'data')) { if (_.get(body, 'code') === '0000' && _.get(body, 'data')) {
return _.get(body, 'data'); return _.get(body, 'data');
} }
...@@ -19,9 +19,9 @@ export async function queryInsuranceListByUidAPI(params : RiskTakerParams) { ...@@ -19,9 +19,9 @@ export async function queryInsuranceListByUidAPI(params : RiskTakerParams) {
} }
export async function queryInsuranceProductsAPI(params) { export async function queryInsuranceProductsAPI(params) {
console.log('queryInsuranceProductsAPI', params); //console.log('queryInsuranceProductsAPI', params);
const body = await fetchCoreAPI('001002', params); const body = await fetchCoreAPI('001002', params);
console.log('queryInsuranceProductsAPI_body:', body); //console.log('queryInsuranceProductsAPI_body:', body);
if (_.get(body, 'code') === '0000' && _.get(body, 'data')) { if (_.get(body, 'code') === '0000' && _.get(body, 'data')) {
return _.get(body, 'data'); return _.get(body, 'data');
} }
...@@ -29,9 +29,9 @@ export async function queryInsuranceProductsAPI(params) { ...@@ -29,9 +29,9 @@ export async function queryInsuranceProductsAPI(params) {
} }
export async function trailPolicyAPI(params) { export async function trailPolicyAPI(params) {
console.log('trailPolicyAPI', params); //console.log('trailPolicyAPI', params);
const body = await fetchCoreAPI('001003', {params:params}); const body = await fetchCoreAPI('001003', {params:params});
console.log('trailPolicyAPI_body:', body); //console.log('trailPolicyAPI_body:', body);
if (_.get(body, 'code') === '0000' && _.get(body, 'data')) { if (_.get(body, 'code') === '0000' && _.get(body, 'data')) {
return _.get(body, 'data'); return _.get(body, 'data');
} }
......
...@@ -92,7 +92,7 @@ function renderInsuranceDetail(props) { ...@@ -92,7 +92,7 @@ function renderInsuranceDetail(props) {
); );
const uri = `${resourceURLMapping[ENV]}${ const uri = `${resourceURLMapping[ENV]}${
params.company === '太平人寿' ? 'bg_bdxq_rs.png' : 'bg_bdxq_cx.png'}` params.company === '太平人寿' ? 'bg_bdxq_rs.png' : 'bg_bdxq_cx.png'}`
console.log('uri:',uri) //console.log('uri:',uri)
return ( return (
<View style={[Styles.container, { backgroundColor: '#F4F5F5' }]}> <View style={[Styles.container, { backgroundColor: '#F4F5F5' }]}>
<NavigationBar <NavigationBar
......
...@@ -97,7 +97,7 @@ function InsuranceListPage(props : Props) { ...@@ -97,7 +97,7 @@ function InsuranceListPage(props : Props) {
}; };
const queryList = async () => { const queryList = async () => {
const list = await queryInsuranceListByUidAPI({ params: { uid: 'u0000001' } }); const list = await queryInsuranceListByUidAPI({ params: { uid: 'u0000001' } });
console.log('list:', list); //console.log('list:', list);
if (list) { if (list) {
setData([ setData([
......
...@@ -45,16 +45,15 @@ class HomePage extends Component<Props> { ...@@ -45,16 +45,15 @@ class HomePage extends Component<Props> {
}; };
this.scrollView = null; this.scrollView = null;
} }
componentDidMount() : void {
this.listener =NativeAppEventEmitter.addListener('react_navigation_onTransitionEnd_call',() => console.log('onTransitionEnd_call'))
componentDidMount() : void {
this.listener = NativeAppEventEmitter.addListener('react_navigation_onTransitionEnd_call', () => console.log('onTransitionEnd_call'));
} }
componentWillUnmount() : void { componentWillUnmount() : void {
if(this.listener){ if (this.listener) {
this.listener.remove(); this.listener.remove();
} }
} }
...@@ -76,7 +75,7 @@ class HomePage extends Component<Props> { ...@@ -76,7 +75,7 @@ class HomePage extends Component<Props> {
}; };
render() { render() {
const { pushTo } = this.props const { pushTo } = this.props;
return ( return (
<View style={styles.container}> <View style={styles.container}>
<HomeHeader /> <HomeHeader />
......
...@@ -55,7 +55,7 @@ class PolicyList extends Component { ...@@ -55,7 +55,7 @@ class PolicyList extends Component {
queryList = async () => { queryList = async () => {
const list = await queryInsuranceProductsAPI({}); const list = await queryInsuranceProductsAPI({});
console.log('queryInsuranceProductsAPI:', list); //console.log('queryInsuranceProductsAPI:', list);
if (list) { if (list) {
this.setState({ this.setState({
data: [ data: [
......
...@@ -76,7 +76,7 @@ class PolicyPage extends Component<Props> { ...@@ -76,7 +76,7 @@ class PolicyPage extends Component<Props> {
}; };
_handleIndexChange = (index) => { _handleIndexChange = (index) => {
console.log('_handleIndexChange:', index); //console.log('_handleIndexChange:', index);
const type = { const type = {
index, index,
routes: typeArr, routes: typeArr,
......
...@@ -41,7 +41,6 @@ const step = 13; ...@@ -41,7 +41,6 @@ const step = 13;
class ServicePage extends Component<Props> { class ServicePage extends Component<Props> {
constructor(props) { constructor(props) {
super(props); super(props);
console.log('constructor', this);
this.state = { this.state = {
count: step, count: step,
allLoaded: false, allLoaded: false,
......
...@@ -67,7 +67,7 @@ export function swiperItem(props) { ...@@ -67,7 +67,7 @@ export function swiperItem(props) {
} }
export function renderBanner(props) { export function renderBanner(props) {
console.log('renderBanner', props); //console.log('renderBanner', props);
return ( return (
<View <View
key="SwiperView" key="SwiperView"
...@@ -93,7 +93,7 @@ export const renderGridItem = (props) => { ...@@ -93,7 +93,7 @@ export const renderGridItem = (props) => {
return ( return (
<TouchableOpacity <TouchableOpacity
onPress={() => { onPress={() => {
console.log(props, item.tagUrl); //console.log(props, item.tagUrl);
props.pushTo(item.tagUrl); props.pushTo(item.tagUrl);
}} }}
> >
...@@ -130,7 +130,7 @@ export const renderGridItem = (props) => { ...@@ -130,7 +130,7 @@ export const renderGridItem = (props) => {
export const renderGrid = (props) => { export const renderGrid = (props) => {
const gridWidth = ((props.width) / 4); const gridWidth = ((props.width) / 4);
console.log('renderGrid:', gridWidth); //console.log('renderGrid:', gridWidth);
return ( return (
<FlatGrid <FlatGrid
itemDimension={gridWidth} itemDimension={gridWidth}
...@@ -219,7 +219,7 @@ export function renderActivity(props) { ...@@ -219,7 +219,7 @@ export function renderActivity(props) {
{props.data.map((item, index) => ( {props.data.map((item, index) => (
<TouchableOpacity <TouchableOpacity
onPress={() => { onPress={() => {
console.log(props.pushTo, item.tagUrl); //console.log(props.pushTo, item.tagUrl);
props.pushTo(item.tagUrl); props.pushTo(item.tagUrl);
}} }}
> >
......
...@@ -68,7 +68,7 @@ function renderGrid(props) { ...@@ -68,7 +68,7 @@ function renderGrid(props) {
renderItem={({ item, index }) => ( renderItem={({ item, index }) => (
<TouchableOpacity <TouchableOpacity
onPress={() => { onPress={() => {
console.log(props, item.tagUrl); //console.log(props, item.tagUrl);
props.pushTo(item.tagUrl); props.pushTo(item.tagUrl);
}} }}
> >
......
...@@ -80,7 +80,7 @@ class FillPolicyInfoPage extends Component { ...@@ -80,7 +80,7 @@ class FillPolicyInfoPage extends Component {
this.policy = props.navigation.state.params.policy; this.policy = props.navigation.state.params.policy;
const { fillInfo } = getConfig(this.policy.blueId); const { fillInfo } = getConfig(this.policy.blueId);
console.log('FillPolicyInfoPage_fillInfo', fillInfo); //console.log('FillPolicyInfoPage_fillInfo', fillInfo);
const { keys, layout } = fillInfo; const { keys, layout } = fillInfo;
this.fillInfo = fillInfo; this.fillInfo = fillInfo;
this.state = { this.state = {
...@@ -91,7 +91,7 @@ class FillPolicyInfoPage extends Component { ...@@ -91,7 +91,7 @@ class FillPolicyInfoPage extends Component {
keys, keys,
}; };
console.log('FillPolicyInfoPage', this.state); //console.log('FillPolicyInfoPage', this.state);
} }
componentWillMount() : void { componentWillMount() : void {
...@@ -100,7 +100,7 @@ class FillPolicyInfoPage extends Component { ...@@ -100,7 +100,7 @@ class FillPolicyInfoPage extends Component {
const { keys, layout } = this.fillInfo; const { keys, layout } = this.fillInfo;
keys.forEach((key) => { keys.forEach((key) => {
const data = this.fillData(key, this.fillInfo[key], params); const data = this.fillData(key, this.fillInfo[key], params);
console.log('FillPolicyInfoPage:', this.fillInfo, layout[key], key); //console.log('FillPolicyInfoPage:', this.fillInfo, layout[key], key);
config[key] = { ...layout[key], ...data }; config[key] = { ...layout[key], ...data };
}); });
this.setState({ this.setState({
......
...@@ -69,7 +69,7 @@ class PaymentPage extends Component { ...@@ -69,7 +69,7 @@ class PaymentPage extends Component {
this.policy = props.navigation.state.params.policy; this.policy = props.navigation.state.params.policy;
const { payment } = getConfig(this.policy.blueId); const { payment } = getConfig(this.policy.blueId);
console.log('paymentPage_payment', payment); //console.log('paymentPage_payment', payment);
const { keys, layout } = payment; const { keys, layout } = payment;
this.payment = payment; this.payment = payment;
this.state = { this.state = {
...@@ -83,7 +83,7 @@ class PaymentPage extends Component { ...@@ -83,7 +83,7 @@ class PaymentPage extends Component {
keys, keys,
}; };
console.log('paymentPage', this.state); //console.log('paymentPage', this.state);
} }
componentWillMount() : void { componentWillMount() : void {
...@@ -92,7 +92,7 @@ class PaymentPage extends Component { ...@@ -92,7 +92,7 @@ class PaymentPage extends Component {
const { keys, layout } = this.payment; const { keys, layout } = this.payment;
keys.forEach((key) => { keys.forEach((key) => {
const data = this.fillData(key, this.payment[key], params); const data = this.fillData(key, this.payment[key], params);
console.log('paymentPage:', this.payment, layout[key], key); //console.log('paymentPage:', this.payment, layout[key], key);
config[key] = { ...layout[key], ...data }; config[key] = { ...layout[key], ...data };
}); });
this.setState({ this.setState({
......
...@@ -85,7 +85,7 @@ class ProductDetailPage extends Component { ...@@ -85,7 +85,7 @@ class ProductDetailPage extends Component {
keys, keys,
}; };
console.log('ProductDetailPage', this.state); //console.log('ProductDetailPage', this.state);
} }
componentWillMount() : void { componentWillMount() : void {
...@@ -94,7 +94,7 @@ class ProductDetailPage extends Component { ...@@ -94,7 +94,7 @@ class ProductDetailPage extends Component {
const { keys, layout } = this.productDetail; const { keys, layout } = this.productDetail;
keys.forEach((key) => { keys.forEach((key) => {
const data = this.fillData(key, this.productDetail[key], params); const data = this.fillData(key, this.productDetail[key], params);
console.log('productDetail:', this.productDetail, layout[key], key); //console.log('productDetail:', this.productDetail, layout[key], key);
config[key] = { ...layout[key], ...data }; config[key] = { ...layout[key], ...data };
}); });
this.setState({ this.setState({
...@@ -107,7 +107,7 @@ class ProductDetailPage extends Component { ...@@ -107,7 +107,7 @@ class ProductDetailPage extends Component {
name, description, tagNameList, bannerIconUrl, guaranteeContent, name, description, tagNameList, bannerIconUrl, guaranteeContent,
productIntroductionUrl, serviceProcessUrl, productIntroductionUrl, serviceProcessUrl,
} = params.detail; } = params.detail;
console.log('productIntroductionUrl', productIntroductionUrl); //console.log('productIntroductionUrl', productIntroductionUrl);
switch (key) { switch (key) {
case PRODUCT_BANNER: case PRODUCT_BANNER:
return { return {
...@@ -118,7 +118,7 @@ class ProductDetailPage extends Component { ...@@ -118,7 +118,7 @@ class ProductDetailPage extends Component {
case PREM_GROUP: case PREM_GROUP:
return { return {
onSelect: (index) => { onSelect: (index) => {
console.log('BUTTON_GROUP,onSelect', index); //console.log('BUTTON_GROUP,onSelect', index);
switch (index) { switch (index) {
case 0: case 0:
this.policy.prem = 99; this.policy.prem = 99;
...@@ -157,9 +157,9 @@ class ProductDetailPage extends Component { ...@@ -157,9 +157,9 @@ class ProductDetailPage extends Component {
case MULT: case MULT:
return { return {
onChangeText: (value) => { onChangeText: (value) => {
console.log('ProductDetailPage_onChangeText', value); //console.log('ProductDetailPage_onChangeText', value);
this.policy.mult = value; this.policy.mult = value;
console.log(this.policy.mult); //console.log(this.policy.mult);
}, },
onEndEditing: () => { onEndEditing: () => {
this.trialPolicy(); this.trialPolicy();
...@@ -221,7 +221,7 @@ class ProductDetailPage extends Component { ...@@ -221,7 +221,7 @@ class ProductDetailPage extends Component {
console.log('trialPolicy:', prem); console.log('trialPolicy:', prem);
this.policy.premTotal = prem; this.policy.premTotal = prem;
this.submit.setPrem(prem); this.submit.setPrem(prem);
console.log('this.policy:', this.policy); //console.log('this.policy:', this.policy);
} }
renderPicker = (data) => { renderPicker = (data) => {
......
...@@ -30,7 +30,7 @@ function JSPage(props: Props) { ...@@ -30,7 +30,7 @@ function JSPage(props: Props) {
useEffect(() => { useEffect(() => {
console.log('在 dep 改变时触发,若无 dep 则,每次更新组件都会触发') console.log('在 dep 改变时触发,若无 dep 则,每次更新组件都会触发')
const didFocus = NativeAppEventEmitter.addListener('react_navigation_onTransitionEnd_call', () => { const didFocus = NativeAppEventEmitter.addListener('react_navigation_onTransitionEnd_call', () => {
console.log('JSPage__didFocus',props.nav); //console.log('JSPage__didFocus',props.nav);
}) })
return () => { return () => {
console.log('在组件 unmount 时触发'); console.log('在组件 unmount 时触发');
......
...@@ -36,7 +36,7 @@ class NativePage extends Component<Props> { ...@@ -36,7 +36,7 @@ class NativePage extends Component<Props> {
<Button <Button
containerStyle={{ height: 40, margin: 10 }} containerStyle={{ height: 40, margin: 10 }}
onPress={() => { onPress={() => {
console.log('onPress', this.props); //console.log('onPress', this.props);
this.props.popTo('TabPage'); this.props.popTo('TabPage');
}} }}
title="返回首页" title="返回首页"
......
...@@ -29,7 +29,7 @@ type ...@@ -29,7 +29,7 @@ type
function RatingPage(props:Props) { function RatingPage(props:Props) {
const { theme } = props; const { theme } = props;
const ratingCompleted = (rating) => { const ratingCompleted = (rating) => {
console.log('Rating is: ', rating); //console.log('Rating is: ', rating);
}; };
return ( return (
<View style={Styles.container}> <View style={Styles.container}>
......
...@@ -32,13 +32,13 @@ import React, { Component, Fragment } from 'react'; ...@@ -32,13 +32,13 @@ import React, { Component, Fragment } from 'react';
function decorator(Comp) { function decorator(Comp) {
if(typeof Comp === 'function'){ if(typeof Comp === 'function'){
console.log('isFunction') //console.log('isFunction')
return Comp; return Comp;
} }
class WrapComp extends Component { class WrapComp extends Component {
componentDidMount() : void { componentDidMount() : void {
console.log('WrapComp_name', Comp.name); //console.log('WrapComp_name', Comp.name);
console.log('WrapComp_componentDidMount', Comp); //console.log('WrapComp_componentDidMount', Comp);
} }
render() { render() {
......
{
"ios": {
"binary": "1.0.4",
"url": "https://fir.im/f9ay",
"patch":"http://192.168.3.13/IXX/_iOSPPK"
},
"android": {
"binary": "1.0.4",
"url": "https://fir.im/qbsy",
"patch":"http://192.168.3.13/_androidPPK"
},
"buildDate":"_buildDate",
"buildBy":"_buildBy"
}
\ No newline at end of file
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