Authored by 于良

删除log review by 草莓

@@ -214,7 +214,7 @@ export function jumpToCategory(value, index, channel){ @@ -214,7 +214,7 @@ export function jumpToCategory(value, index, channel){
214 }else{ 214 }else{
215 channelId=4; 215 channelId=4;
216 } 216 }
217 - console.log(value); 217 +
218 ReactNative.NativeModules.YH_CommonHelper.jumpToCategory(value, parseInt(index), parseInt(channelId)); 218 ReactNative.NativeModules.YH_CommonHelper.jumpToCategory(value, parseInt(index), parseInt(channelId));
219 return { 219 return {
220 type: JUMP_TO_CATEGORY, 220 type: JUMP_TO_CATEGORY,
@@ -214,7 +214,7 @@ export function jumpToCategory(value, index, channel){ @@ -214,7 +214,7 @@ export function jumpToCategory(value, index, channel){
214 }else{ 214 }else{
215 channelId=4; 215 channelId=4;
216 } 216 }
217 - console.log(value); 217 +
218 ReactNative.NativeModules.YH_CommonHelper.jumpToCategory(value, parseInt(index), parseInt(channelId)); 218 ReactNative.NativeModules.YH_CommonHelper.jumpToCategory(value, parseInt(index), parseInt(channelId));
219 return { 219 return {
220 type: JUMP_TO_CATEGORY, 220 type: JUMP_TO_CATEGORY,
@@ -95,13 +95,13 @@ class HomeContainer extends Component { @@ -95,13 +95,13 @@ class HomeContainer extends Component {
95 95
96 //原生跳转 96 //原生跳转
97 _pushBrandVC(data){ 97 _pushBrandVC(data){
98 - console.log(data.toJS()); 98 +
99 // ReactNative.NativeModules.YH_CommonHelper.pushBrandVC(data); 99 // ReactNative.NativeModules.YH_CommonHelper.pushBrandVC(data);
100 } 100 }
101 101
102 //URL 拼装跳转规则跳转 102 //URL 拼装跳转规则跳转
103 _onJumpWithUrl(url) { 103 _onJumpWithUrl(url) {
104 - console.log(url); 104 +
105 // ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url); 105 // ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
106 } 106 }
107 107
@@ -116,7 +116,7 @@ export function getGlobalProductList(index,json,reload=false) { @@ -116,7 +116,7 @@ export function getGlobalProductList(index,json,reload=false) {
116 let page = reload?parseInt(page_0)+1:parseInt(page_0); 116 let page = reload?parseInt(page_0)+1:parseInt(page_0);
117 let order = json.order; 117 let order = json.order;
118 let sort = json.msort?json.msort:''; 118 let sort = json.msort?json.msort:'';
119 - console.log(page); 119 +
120 if (json) { 120 if (json) {
121 json.page = page; 121 json.page = page;
122 json.isFetching = true; 122 json.isFetching = true;
@@ -69,7 +69,6 @@ export default function listReducer(state=initialState, action) { @@ -69,7 +69,6 @@ export default function listReducer(state=initialState, action) {
69 let originAry = state.get('articles').get('list').toJS(); 69 let originAry = state.get('articles').get('list').toJS();
70 for (var i = 0; i < originAry.length; i++) { 70 for (var i = 0; i < originAry.length; i++) {
71 if (originAry[i].id == article_id) { 71 if (originAry[i].id == article_id) {
72 - console.log('......find....');  
73 originAry[i].isPraise = isLike?'Y':'N'; 72 originAry[i].isPraise = isLike?'Y':'N';
74 } 73 }
75 } 74 }
@@ -65,7 +65,7 @@ export function fetchFloor() { @@ -65,7 +65,7 @@ export function fetchFloor() {
65 return new HomeService(app.serviceHost).fetchHomeFloorRequest(contentCode, channel, gender, sourcePage, new_device) 65 return new HomeService(app.serviceHost).fetchHomeFloorRequest(contentCode, channel, gender, sourcePage, new_device)
66 .then(json => { 66 .then(json => {
67 let payload = parseHomeFloor(json) 67 let payload = parseHomeFloor(json)
68 - console.log(payload); 68 +
69 if (channel == 1) { 69 if (channel == 1) {
70 dispatch(fetchBoyFloorSuccess(payload)); 70 dispatch(fetchBoyFloorSuccess(payload));
71 }else if (channel == 2) { 71 }else if (channel == 2) {
@@ -47,7 +47,7 @@ export default class HomeService { @@ -47,7 +47,7 @@ export default class HomeService {
47 default: 47 default:
48 break; 48 break;
49 } 49 }
50 - console.log(rec_pos); 50 +
51 return await this.api.get({ 51 return await this.api.get({
52 url: '', 52 url: '',
53 body: { 53 body: {
@@ -44,7 +44,6 @@ export default function native(platform) { @@ -44,7 +44,6 @@ export default function native(platform) {
44 store.dispatch(setPlatform(platform)); 44 store.dispatch(setPlatform(platform));
45 let channel = this.props.channel; 45 let channel = this.props.channel;
46 channel && store.dispatch(setChannel(channel)); 46 channel && store.dispatch(setChannel(channel));
47 - console.log(channel);  
48 if (type == 'installmentHome') { 47 if (type == 'installmentHome') {
49 return ( 48 return (
50 <Provider store={store}> 49 <Provider store={store}>
@@ -81,7 +81,7 @@ export default class Open extends React.Component { @@ -81,7 +81,7 @@ export default class Open extends React.Component {
81 81
82 <View style={styles.nextContainer}> 82 <View style={styles.nextContainer}>
83 <Text style={{color:'#b0b0b0',fontSize:10*DEVICE_WIDTH_RATIO}}>数据智能加密,保障您的用卡安全</Text> 83 <Text style={{color:'#b0b0b0',fontSize:10*DEVICE_WIDTH_RATIO}}>数据智能加密,保障您的用卡安全</Text>
84 - <TouchableOpacity onPress={() => {console.log('---hahaha');this.props.onPressOpenNext && this.props.onPressOpenNext()}} > 84 + <TouchableOpacity onPress={() => {this.props.onPressOpenNext && this.props.onPressOpenNext()}} >
85 <Text style={[styles.next,{backgroundColor:nextBtnColor}]}>{nextBtnText}</Text> 85 <Text style={[styles.next,{backgroundColor:nextBtnColor}]}>{nextBtnText}</Text>
86 </TouchableOpacity> 86 </TouchableOpacity>
87 <Text style={{color:'#444444',fontSize:10*DEVICE_WIDTH_RATIO}}>Yoho!Buy有货及信而富联合提供</Text> 87 <Text style={{color:'#444444',fontSize:10*DEVICE_WIDTH_RATIO}}>Yoho!Buy有货及信而富联合提供</Text>
@@ -52,13 +52,10 @@ class InstallmentContainer extends Component { @@ -52,13 +52,10 @@ class InstallmentContainer extends Component {
52 52
53 _onPressMoreProducts() { 53 _onPressMoreProducts() {
54 this.props.actions.onPressMoreProducts(); 54 this.props.actions.onPressMoreProducts();
55 - console.log('-haha');  
56 } 55 }
57 56
58 render() { 57 render() {
59 let {isFetching,open,installmentStatus} = this.props.installment; 58 let {isFetching,open,installmentStatus} = this.props.installment;
60 - console.log(open);  
61 - console.log(open.productListForInstallment);  
62 return ( 59 return (
63 <Installment 60 <Installment
64 isFetching={open.isFetching} 61 isFetching={open.isFetching}
@@ -341,8 +341,7 @@ export function onPressCheckCode() { @@ -341,8 +341,7 @@ export function onPressCheckCode() {
341 if (snsCheckCodeEnable && snsCheckCodeText == '获取验证码') { 341 if (snsCheckCodeEnable && snsCheckCodeText == '获取验证码') {
342 return new InstallmentService(app.host).sendVerifyCode('17705176933') 342 return new InstallmentService(app.host).sendVerifyCode('17705176933')
343 .then(json => { 343 .then(json => {
344 - console.log('json');  
345 - console.log(json); 344 +
346 let status = 0; 345 let status = 0;
347 let snsText = ''; 346 let snsText = '';
348 new Timer().startCountdown(function() { 347 new Timer().startCountdown(function() {
@@ -59,7 +59,6 @@ export default class QRCode extends React.Component { @@ -59,7 +59,6 @@ export default class QRCode extends React.Component {
59 camera = cam; 59 camera = cam;
60 }} 60 }}
61 onBarCodeRead={(e) => { 61 onBarCodeRead={(e) => {
62 - console.log(e);  
63 let type = scanTypeValue; 62 let type = scanTypeValue;
64 if (e.bounds.origin.x >= 50 && e.bounds.origin.x <= 250 && e.bounds.origin.y >= 70 && e.bounds.origin.y < 270 && e.bounds.size.width < 200 && e.bounds.size.height < 200) { 63 if (e.bounds.origin.x >= 50 && e.bounds.origin.x <= 250 && e.bounds.origin.y >= 70 && e.bounds.origin.y < 270 && e.bounds.size.width < 200 && e.bounds.size.height < 200) {
65 camera._removeOnBarCodeReadListener(); 64 camera._removeOnBarCodeReadListener();
@@ -57,7 +57,6 @@ class QRCodeContainer extends Component { @@ -57,7 +57,6 @@ class QRCodeContainer extends Component {
57 57
58 _onBarCodeRead(scanString) { 58 _onBarCodeRead(scanString) {
59 if (!scanString) { 59 if (!scanString) {
60 - console.log('Illegal scanString');  
61 return; 60 return;
62 } 61 }
63 this.props.actions.processURL(scanString); 62 this.props.actions.processURL(scanString);
@@ -185,7 +185,7 @@ function scanYohoBuy(scanString) { @@ -185,7 +185,7 @@ function scanYohoBuy(scanString) {
185 } catch(err) { 185 } catch(err) {
186 return yohoBuyAlertInfo; 186 return yohoBuyAlertInfo;
187 } 187 }
188 - console.log(obj); 188 +
189 if (!obj) { 189 if (!obj) {
190 return yohoBuyAlertInfo; 190 return yohoBuyAlertInfo;
191 } else { 191 } else {
@@ -253,7 +253,7 @@ function scanComonURL(urlString) { @@ -253,7 +253,7 @@ function scanComonURL(urlString) {
253 } 253 }
254 254
255 function scanAddressLink (scanString) { 255 function scanAddressLink (scanString) {
256 - console.log('3333333333'); 256 +
257 //判断yoho 商品二维码' 257 //判断yoho 商品二维码'
258 let sknId = handleUrlForSknId(scanString); 258 let sknId = handleUrlForSknId(scanString);
259 if (sknId !== '') { 259 if (sknId !== '') {
@@ -364,8 +364,6 @@ export function clickRemindBtn(product) { @@ -364,8 +364,6 @@ export function clickRemindBtn(product) {
364 dispatch(addCancelUserReminder(method, product.activityId, skn,uid, product.id, okTip, failTip)); 364 dispatch(addCancelUserReminder(method, product.activityId, skn,uid, product.id, okTip, failTip));
365 }) 365 })
366 .catch(error => { 366 .catch(error => {
367 - console.log('error');  
368 - console.log(error);  
369 dispatch(showTipMessage('请到设置中开启日历授权')); 367 dispatch(showTipMessage('请到设置中开启日历授权'));
370 }); 368 });
371 }; 369 };