Commit 7f71a364 by Denglingling

调整无图状态

parent a0f966fc
...@@ -758,7 +758,7 @@ class ProductModel extends Component { ...@@ -758,7 +758,7 @@ class ProductModel extends Component {
}) })
} }
console.log('底部🉐️=====', localBottomContData) // console.log('底部🉐️=====', localBottomContData)
// localBottomContData = [{ // localBottomContData = [{
// supplier_short_name: "嘉思特华剑医疗器材(天津)有限公司", // 测试 // supplier_short_name: "嘉思特华剑医疗器材(天津)有限公司", // 测试
// supplier_code: "SU00000369", // 测试 // supplier_code: "SU00000369", // 测试
...@@ -925,7 +925,7 @@ class ProductModel extends Component { ...@@ -925,7 +925,7 @@ class ProductModel extends Component {
sel_tip += `${proItem.category_name}x${proItem[LocalVariable.SELECTED_QUQNTITY]} ` sel_tip += `${proItem.category_name}x${proItem[LocalVariable.SELECTED_QUQNTITY]} `
} }
}) })
console.log('弹窗⏏️=======', topProcOptionList) // console.log('弹窗⏏️=======', topProcOptionList)
return ( return (
<View style={list_common_item.sub_box}> <View style={list_common_item.sub_box}>
<View style={list_common_item.sub_two_btn}> <View style={list_common_item.sub_two_btn}>
......
...@@ -51,20 +51,26 @@ class PictureZoom extends Component { ...@@ -51,20 +51,26 @@ class PictureZoom extends Component {
// 大图样式 // 大图样式
handleRenderImage(props) { handleRenderImage(props) {
return( return (
<View style={styles.zoom_pic_img_box}> <View style={styles.zoom_pic_img_box}>
<Image {...props} style={[props.style, styles.zoom_pic_img]}/> <Image {...props} style={[props.style, styles.zoom_pic_img]} />
</View> </View>
) )
} }
render() { render() {
let {listImageUrls, listImageIndex, listStyleImage, listPicType} = this.props let { listImageUrls, listImageIndex, listStyleImage, listPicType } = this.props
let {picZoomIsShow, listPicTypeArr, picStyleArr} = this.state let { picZoomIsShow, listPicTypeArr, picStyleArr } = this.state
let picOthStyle = '' let picOthStyle = ''
if(listPicTypeArr.indexOf(listPicType) > -1){ if (listPicTypeArr.indexOf(listPicType) > -1) {
picOthStyle = picStyleArr[listPicTypeArr.indexOf(listPicType)] picOthStyle = picStyleArr[listPicTypeArr.indexOf(listPicType)]
} }
let canShow = true
let cur_defalut = { uri: listImageUrls[listImageIndex].url }
if (!listImageUrls[listImageIndex].url) {
cur_defalut = require('../../../images/not_img.png')
canShow = false
}
return ( return (
<View style={[styles.container]}> <View style={[styles.container]}>
...@@ -75,10 +81,13 @@ class PictureZoom extends Component { ...@@ -75,10 +81,13 @@ class PictureZoom extends Component {
> >
<Image <Image
defaultSource={require('../../../images/not_img.png')} defaultSource={require('../../../images/not_img.png')}
source={{uri: listImageUrls[listImageIndex].url}} // source={{uri: listImageUrls[listImageIndex].url}}
source={cur_defalut}
style={icon_style} style={icon_style}
resizeMode="cover" /> resizeMode="cover" />
</TouchableOpacity> </TouchableOpacity>
{
canShow ?
<Modal <Modal
visible={picZoomIsShow} visible={picZoomIsShow}
animationType={"slide"} animationType={"slide"}
...@@ -94,10 +103,12 @@ class PictureZoom extends Component { ...@@ -94,10 +103,12 @@ class PictureZoom extends Component {
index={listImageIndex} index={listImageIndex}
onClick={() => this.handleShowZoomPic(false)} onClick={() => this.handleShowZoomPic(false)}
backgroundColor={'rgba(0,0,0,.6)'} backgroundColor={'rgba(0,0,0,.6)'}
renderImage = {(props) => this.handleRenderImage(props)} onDoubleClick={() => this.handleShowZoomPic(false)}
renderImage={(props) => this.handleRenderImage(props)}
renderIndicator={(currentIndex, allSize, props) => this.renderPageIndicator(currentIndex, allSize, props)} renderIndicator={(currentIndex, allSize, props) => this.renderPageIndicator(currentIndex, allSize, props)}
/> />
</Modal> </Modal> : null
}
</View> </View>
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment