Commit 881468b9 by Denglingling

解决无图闪屏问题

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