App/Pages/ShoppingCarListViewCell.js
(开头部分) 11KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
'use strict';
import React, { Component, PropTypes} from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity,
Image,
ScrollView,
ListView,
PixelRatio,
InteractionManager
} from 'react-native';
import Common from '../Commom/constants';
import Icon from 'react-native-vector-icons/Ionicons';
import Buttom from '../Commom/Buttom';
import {selectOne, changeShopCount} from '../Action/ShopCarAction';
const isLoading = true;
const propTypes = {
module: PropTypes.array.isRequired,
};
const cellHeight = Common.window.width / 3;
let num = 0;
let shopNum = 0;
export default class ShoppingCarListViewCell extends Component {
constructor(props) {
super(props);
console.log(props)
this._renderRow = this._renderRow.bind(this);
this.state = {
dataSource: new ListView.DataSource({
rowHasChanged: (row1, row2) => row1 !== row2,
}),
};
}
show(date) {
alert(date);
}
selectOne(shopID, isSelectOne, isLoading) {
InteractionManager.runAfterInteractions(() => {
const {dispatch} = this.props;
// console.log(isSelectOne);
dispatch(selectOne(shopID, isSelectOne, isLoading));
});
}
changeShopCount(isChange, shopID) {
InteractionManager.runAfterInteractions(() => {
const {dispatch} = this.props;
// console.log(isSelectOne);
dispatch(changeShopCount(isChange, shopID));
});
后面还有 280 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
