Commit 881468b9 by Denglingling

解决无图闪屏问题

parent 7a33255d
......@@ -553,36 +553,14 @@ class ProductModel extends Component {
// 清空
handleClearRubbish() {
let { orginOptionList, topProcOptionList } = this.state
// orginOptionList.map(function (listItem) {
// listItem[LocalVariable.SELECTED_QUQNTITY] = 0
// listItem[LocalVariable.SELECTED_DATA_ARR] = []
// listItem[LocalVariable.LOCAL_SECOND_DATA].forEach(function (deIt) {
// deIt[LocalVariable.QUANTITY_FIELD] = 0
// deIt[LocalVariable.CHILDREN_LINE_NAME] = []
// })
// })
// this.props.clearRubbish()
// this.closeModal()
this.refs.ClearAllModel.show('清空当前所有数据')
console.log('this--', this)
// topProcOptionList.map(function(top_item) {
// top_item[LocalVariable.SELECTED_QUQNTITY] = 0
// top_item[LocalVariable.SELECTED_DATA_ARR] = []
// })
// this.props.changeCallBack(topProcOptionList)
// this.setState({
// topProcOptionList: topProcOptionList
// })
// this.closeModal()
// this.refs.ClearAllModel.show('清空当前所有数据')
// console.log('this--', this)
this.modelClearAllCB(true)
}
// 清空当前
handleClearCurSuppRubbish(cu_item, cu_index) {
console.log('当前🥚=====', cu_item, cu_index)
// console.log('当前🥚=====', cu_item, cu_index)
let {orginOptionList, topProcOptionList, topActiveIndex} = this.state
topProcOptionList[topActiveIndex][LocalVariable.SELECTED_DATA_ARR].splice(cu_index, 1)
topProcOptionList[topActiveIndex][LocalVariable.SELECTED_QUQNTITY] = 0
......
import React, { Component } from 'react';
import { StyleSheet, Image, TouchableOpacity, View, Modal, ActivityIndicator, Text } from 'react-native';
import { StyleSheet, Image, TouchableOpacity, View, Modal, ActivityIndicator, Text, ImageBackground } from 'react-native';
import { font_family_medium, Height, icon_style, pxSize, second_text_size } from '../../../base/BaseStyle';
import ImageViewer from 'react-native-image-zoom-viewer';
const PropTypes = require('prop-types');
......@@ -200,11 +200,15 @@ class PictureZoom extends Component {
style={[styles.list_item_img, styles[picOthStyle], listStyleImage]}
onPress={curImgUrl.uri ? () => this.handleShowZoomPic(true) : null}
>
<ImageBackground
source={require('../../../images/not_img.png')}
style={icon_style}>
<Image
source={curImgUrl}
style={icon_style}
resizeMode="cover"
defaultSource={require('../../../images/not_img.png')} />
</ImageBackground>
</TouchableOpacity>
{
curImgFail ?
......
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