Authored by 于良

删除log review by 草莓

... ... @@ -214,7 +214,7 @@ export function jumpToCategory(value, index, channel){
}else{
channelId=4;
}
console.log(value);
ReactNative.NativeModules.YH_CommonHelper.jumpToCategory(value, parseInt(index), parseInt(channelId));
return {
type: JUMP_TO_CATEGORY,
... ...
... ... @@ -214,7 +214,7 @@ export function jumpToCategory(value, index, channel){
}else{
channelId=4;
}
console.log(value);
ReactNative.NativeModules.YH_CommonHelper.jumpToCategory(value, parseInt(index), parseInt(channelId));
return {
type: JUMP_TO_CATEGORY,
... ...
... ... @@ -95,13 +95,13 @@ class HomeContainer extends Component {
//原生跳转
_pushBrandVC(data){
console.log(data.toJS());
// ReactNative.NativeModules.YH_CommonHelper.pushBrandVC(data);
}
//URL 拼装跳转规则跳转
_onJumpWithUrl(url) {
console.log(url);
// ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
}
... ...
... ... @@ -116,7 +116,7 @@ export function getGlobalProductList(index,json,reload=false) {
let page = reload?parseInt(page_0)+1:parseInt(page_0);
let order = json.order;
let sort = json.msort?json.msort:'';
console.log(page);
if (json) {
json.page = page;
json.isFetching = true;
... ...
... ... @@ -69,7 +69,6 @@ export default function listReducer(state=initialState, action) {
let originAry = state.get('articles').get('list').toJS();
for (var i = 0; i < originAry.length; i++) {
if (originAry[i].id == article_id) {
console.log('......find....');
originAry[i].isPraise = isLike?'Y':'N';
}
}
... ...
... ... @@ -65,7 +65,7 @@ export function fetchFloor() {
return new HomeService(app.serviceHost).fetchHomeFloorRequest(contentCode, channel, gender, sourcePage, new_device)
.then(json => {
let payload = parseHomeFloor(json)
console.log(payload);
if (channel == 1) {
dispatch(fetchBoyFloorSuccess(payload));
}else if (channel == 2) {
... ...
... ... @@ -47,7 +47,7 @@ export default class HomeService {
default:
break;
}
console.log(rec_pos);
return await this.api.get({
url: '',
body: {
... ...
... ... @@ -44,7 +44,6 @@ export default function native(platform) {
store.dispatch(setPlatform(platform));
let channel = this.props.channel;
channel && store.dispatch(setChannel(channel));
console.log(channel);
if (type == 'installmentHome') {
return (
<Provider store={store}>
... ...
... ... @@ -81,7 +81,7 @@ export default class Open extends React.Component {
<View style={styles.nextContainer}>
<Text style={{color:'#b0b0b0',fontSize:10*DEVICE_WIDTH_RATIO}}>数据智能加密,保障您的用卡安全</Text>
<TouchableOpacity onPress={() => {console.log('---hahaha');this.props.onPressOpenNext && this.props.onPressOpenNext()}} >
<TouchableOpacity onPress={() => {this.props.onPressOpenNext && this.props.onPressOpenNext()}} >
<Text style={[styles.next,{backgroundColor:nextBtnColor}]}>{nextBtnText}</Text>
</TouchableOpacity>
<Text style={{color:'#444444',fontSize:10*DEVICE_WIDTH_RATIO}}>Yoho!Buy有货及信而富联合提供</Text>
... ...
... ... @@ -52,13 +52,10 @@ class InstallmentContainer extends Component {
_onPressMoreProducts() {
this.props.actions.onPressMoreProducts();
console.log('-haha');
}
render() {
let {isFetching,open,installmentStatus} = this.props.installment;
console.log(open);
console.log(open.productListForInstallment);
return (
<Installment
isFetching={open.isFetching}
... ...
... ... @@ -341,8 +341,7 @@ export function onPressCheckCode() {
if (snsCheckCodeEnable && snsCheckCodeText == '获取验证码') {
return new InstallmentService(app.host).sendVerifyCode('17705176933')
.then(json => {
console.log('json');
console.log(json);
let status = 0;
let snsText = '';
new Timer().startCountdown(function() {
... ...
... ... @@ -59,7 +59,6 @@ export default class QRCode extends React.Component {
camera = cam;
}}
onBarCodeRead={(e) => {
console.log(e);
let type = scanTypeValue;
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) {
camera._removeOnBarCodeReadListener();
... ...
... ... @@ -57,7 +57,6 @@ class QRCodeContainer extends Component {
_onBarCodeRead(scanString) {
if (!scanString) {
console.log('Illegal scanString');
return;
}
this.props.actions.processURL(scanString);
... ...
... ... @@ -185,7 +185,7 @@ function scanYohoBuy(scanString) {
} catch(err) {
return yohoBuyAlertInfo;
}
console.log(obj);
if (!obj) {
return yohoBuyAlertInfo;
} else {
... ... @@ -253,7 +253,7 @@ function scanComonURL(urlString) {
}
function scanAddressLink (scanString) {
console.log('3333333333');
//判断yoho 商品二维码'
let sknId = handleUrlForSknId(scanString);
if (sknId !== '') {
... ...
... ... @@ -364,8 +364,6 @@ export function clickRemindBtn(product) {
dispatch(addCancelUserReminder(method, product.activityId, skn,uid, product.id, okTip, failTip));
})
.catch(error => {
console.log('error');
console.log(error);
dispatch(showTipMessage('请到设置中开启日历授权'));
});
};
... ...