Explorar el Código

修改客开优化

chenzhfa hace 2 años
padre
commit
8c0dec9a6c
Se han modificado 2 ficheros con 15 adiciones y 2 borrados
  1. 14 1
      app/components/Grid.js
  2. 1 1
      app/containers/commodity/commoditydetail/Tab.js

+ 14 - 1
app/components/Grid.js

@@ -289,6 +289,18 @@ export default class Grid extends React.Component {
           >
             库存:{ScaleUtil(item[this.props.invenKey])}(件)
           </Text> */}
+          <View 
+              style = {{
+                flexDirection: 'row',
+                justifyContent: 'space-between',
+              }}>
+              <Text style={{fontSize:12}}>
+                {'型号:'+(item.model?(item.model.length>10?item.model.substr(0,10):item.model):"")}
+              </Text>
+              <Text style={{fontSize:12}}>
+                {'规格:'+(item.specification?(item.specification.split("/")[0]+"/"+item.basicUnitName):"")}
+              </Text>
+          </View>
           <View
             style={{
               flexDirection: 'row',
@@ -349,11 +361,12 @@ export default class Grid extends React.Component {
         {this.props.titleBool ? (
           <View>
             <TouchableOpacity
-              style={{ backgroundColor: '#FFF' }}
+              // style={{ backgroundColor: '#FFF' }}
               onPress={() => {
                 this.props.moreTouch()
               }}
               style={{
+                backgroundColor: '#FFF',
                 flexDirection: 'row',
                 justifyContent: 'space-between',
                 padding: 10,

+ 1 - 1
app/containers/commodity/commoditydetail/Tab.js

@@ -127,7 +127,7 @@ class CommodityDetail extends Component {
               TabopenSpec={this.state.openSpec}
               // style={styles.tabView}
             />
-            {/* {detailDatas.description ? <Detail tabLabel="详情" /> : null} */}
+            {detailDatas.description ? <Detail tabLabel="详情" /> : null}
             {/* <DetailComponent tabLabel="子件" /> */}
           </ScrollableTabView>
         </View>