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
6c064d41
authored
Jan 29, 2021
by
Denglingling
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
增加注释说明,以及优化自助下单
parent
485480a2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
21 deletions
app/containers/common/listDataComponent/PageListArrow.js
app/containers/equipConsu/EquipConsuPage.js
app/containers/selfOrder/SelfOrderPage.js
app/containers/common/listDataComponent/PageListArrow.js
View file @
6c064d41
...
...
@@ -10,25 +10,26 @@ const PropTypes = require('prop-types');
class
PageListArrow
extends
Component
{
static
propTypres
=
{
listActOpa
:
PropTypes
.
number
,
listCallBack
:
PropTypes
.
func
,
// 点击后的回调函数
listHasAster
:
PropTypes
.
bool
,
// 是否必填
listEditAble
:
PropTypes
.
bool
,
listDefaValue
:
PropTypes
.
string
,
listItem
:
PropTypes
.
object
,
listTitle
:
PropTypes
.
string
,
listName
:
PropTypes
.
string
,
listValue
:
PropTypes
.
string
,
listHasArrow
:
PropTypes
.
bool
,
listOtherInput
:
PropTypes
.
string
,
otherInput
:
PropTypes
.
string
,
otherInputCallBack
:
PropTypes
.
func
,
listInputPlace
:
PropTypes
.
string
,
inputCallBack
:
PropTypes
.
func
,
isTitInputStyle
:
PropTypes
.
bool
,
listMaxLines
:
PropTypes
.
number
,
// 文本最大行数
listIsAudio
:
PropTypes
.
bool
,
listCellStyle
:
PropTypes
.
object
listActOpa
:
PropTypes
.
number
,
// 透明度显示(0 到 1 之间)
listCallBack
:
PropTypes
.
func
,
// 组件点击后的回调函数
listHasAster
:
PropTypes
.
bool
,
// 必填✳️号显示
listEditAble
:
PropTypes
.
bool
,
// 文本框可编辑的。默认值为 true
listDefaValue
:
PropTypes
.
string
,
// 文本框中的初始值
listItem
:
PropTypes
.
object
,
// 当前组件的数据
listTitle
:
PropTypes
.
string
,
// 标题属性名
listName
:
PropTypes
.
string
,
// 展示字段属性名
listValue
:
PropTypes
.
string
,
// 值字段属性名
listHasArrow
:
PropTypes
.
bool
,
// 右侧箭头图标显示
listOtherInput
:
PropTypes
.
string
,
// 特定输入框显示(如‘医生’)
otherInput
:
PropTypes
.
string
,
// 特定输入框属性名
otherInputCallBack
:
PropTypes
.
func
,
// 特定输入框回调函数
listInputPlace
:
PropTypes
.
string
,
// 输入框默认显示内容
inputCallBack
:
PropTypes
.
func
,
// 输入框默认显示内容
isTitInputStyle
:
PropTypes
.
bool
,
// 输入框回调函数
listMaxLines
:
PropTypes
.
number
,
// 限制输入框的行数
listIsAudio
:
PropTypes
.
bool
,
// 特定单选按钮显示
listCellStyle
:
PropTypes
.
object
,
// 组件另外样式
inputKeyboardType
:
PropTypes
.
string
,
// 弹出何种软键盘类型
}
constructor
(
props
)
{
...
...
@@ -47,7 +48,7 @@ class PageListArrow extends Component {
render
()
{
let
{
listActOpa
,
listCallBack
,
listHasAster
,
listEditAble
,
listDefaValue
,
listItem
,
listTitle
,
listName
,
listValue
,
listHasArrow
,
listOtherInput
,
otherInput
,
otherInputCallBack
,
listInputPlace
,
inputCallBack
,
isTitInputStyle
,
listMaxLines
,
listIsAudio
,
listCellStyle
}
=
this
.
props
inputCallBack
,
isTitInputStyle
,
listMaxLines
,
listIsAudio
,
listCellStyle
,
inputKeyboardType
}
=
this
.
props
if
(
!
listMaxLines
){
listMaxLines
=
2
// 默认
}
...
...
@@ -65,6 +66,7 @@ class PageListArrow extends Component {
editable
=
{
!
listEditAble
}
defaultValue
=
{
listItem
[
listDefaValue
]}
placeholder
=
{
listInputPlace
}
keyboardType
=
{
inputKeyboardType
?
inputKeyboardType
:
'default'
}
onChangeText
=
{(
text
)
=>
{
return
inputCallBack
?
inputCallBack
(
text
)
:
''
}}
/> : <ContTextStyle numberOfLines={listMaxLines}>{listItem
[
listName
]
}</
ContTextStyle
>
}
...
...
app/containers/equipConsu/EquipConsuPage.js
View file @
6c064d41
This diff is collapsed.
Click to expand it.
app/containers/selfOrder/SelfOrderPage.js
View file @
6c064d41
...
...
@@ -592,7 +592,6 @@ class SelfOrderPage extends Component {
// 组织 点击
handleOrganizationCheck
(
curData
)
{
console
.
log
(
curData
)
let
{
props
}
=
this
this
.
setState
({
currentTitle
:
curData
.
title
,
...
...
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