Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
zhangzhonghua
/
BoneHouse_Business_APP
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
881468b9
authored
Jan 03, 2021
by
Denglingling
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
解决无图闪屏问题
parent
7a33255d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
32 deletions
app/containers/common/ProductModel.js
app/containers/common/listDataComponent/PictureZoom.js
app/containers/common/ProductModel.js
View file @
881468b9
...
...
@@ -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
...
...
app/containers/common/listDataComponent/PictureZoom.js
View file @
881468b9
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
}
>
<
Image
source
=
{
curImgUrl
}
style
=
{
icon_style
}
resizeMode
=
"cover"
defaultSource
=
{
require
(
'../../../images/not_img.png'
)}
/
>
<
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
?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment