瀏覽代碼

修改客开优化

chenzhfa 2 年之前
父節點
當前提交
8c0dec9a6c
共有 2 個文件被更改,包括 15 次插入2 次删除
  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>