Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taobao-mini-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinhaitao
taobao-mini-template
Commits
1a5a151e
Commit
1a5a151e
authored
Dec 15, 2020
by
qinhaitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:
🐛
bug
parent
5585ec00
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
10 deletions
+20
-10
dialiog-wrap.axml
client/components/basic/dialiog-wrap/dialiog-wrap.axml
+1
-1
dialiog-wrap.js
client/components/basic/dialiog-wrap/dialiog-wrap.js
+3
-2
items-dialog.acss
client/components/dialog/items-dialog/items-dialog.acss
+5
-1
items-dialog.axml
client/components/dialog/items-dialog/items-dialog.axml
+1
-0
items-dialog.js
client/components/dialog/items-dialog/items-dialog.js
+10
-6
No files found.
client/components/basic/dialiog-wrap/dialiog-wrap.axml
View file @
1a5a151e
...
...
@@ -6,7 +6,7 @@
data-index="1"
canCloseByMask="{{true}}"
>
<view class="db-dialog-content" style="{{ { width: (width + 'px').replace('pxpx', 'px'), marginLeft: '-' + (width / 2 + 'px').replace('pxpx', 'px') } }}">
<view class="db-dialog-content
{{className}}
" style="{{ { width: (width + 'px').replace('pxpx', 'px'), marginLeft: '-' + (width / 2 + 'px').replace('pxpx', 'px') } }}">
<view class="db-dialog-title {{!title ? 'db-dialog-title_no': ''}}">{{title}}<icon size="xs" type="close" onTap="onCloseDialog" style="color: #999999;" /></view>
<view class="db-dialog-content_inner">
<slot/>
...
...
client/components/basic/dialiog-wrap/dialiog-wrap.js
View file @
1a5a151e
...
...
@@ -6,14 +6,15 @@ Component({
title
:
''
,
visible
:
false
,
onClose
:
()
=>
{},
hasMask
:
true
hasMask
:
true
,
className
:
''
},
didMount
()
{},
didUpdate
()
{},
didUnmount
()
{},
methods
:
{
onCloseDialog
()
{
this
.
props
.
onClose
()
this
.
props
.
onClose
()
;
}
},
});
client/components/dialog/items-dialog/items-dialog.acss
View file @
1a5a151e
...
...
@@ -5,6 +5,10 @@
display: flex;
flex-direction: column;
}
.item-goods-wrap .db-dialog-content_inner {
max-height: 500px;
padding: 0 24px 24px;
}
.modal-content-btn.choose-modal-footer {
justify-content:space-between;
...
...
@@ -14,7 +18,7 @@
padding:10px 20px;
flex-grow:1;
overflow:hidden;
height:
3
50px;
height:
4
50px;
}
.choose-content-tab .choose-content-tab-view{
padding:20px 0 5px;
...
...
client/components/dialog/items-dialog/items-dialog.axml
View file @
1a5a151e
...
...
@@ -3,6 +3,7 @@
visible="{{showBaby}}"
hasMask="{{true}}"
onClose="closeBaby"
className="item-goods-wrap"
width="738"
>
<view class="modal-content">
...
...
client/components/dialog/items-dialog/items-dialog.js
View file @
1a5a151e
...
...
@@ -17,7 +17,7 @@ Component({
pageNo
:
1
,
pageSize
:
8
,
totalCount
:
""
,
totalPages
:
""
,
totalPages
:
0
,
},
},
props
:
{
...
...
@@ -40,12 +40,17 @@ Component({
});
},
getBabyList
(
info
,
chooseId
)
{
console
.
log
(
info
)
console
.
log
(
info
)
;
API
.
findItemListByStatus
({
...
info
,
}).
then
((
res
)
=>
{
if
(
res
.
success
)
{
const
{
browseItemIds
}
=
this
.
props
;
console
.
log
(
`534543`
,
{
...
this
.
data
.
babyDialogInfo
,
...
res
.
data
,
list
:
res
.
data
.
list
?
res
.
data
.
list
:
[],
});
this
.
setData
({
chooseId
:
chooseId
?
[...
chooseId
]
...
...
@@ -102,9 +107,8 @@ Component({
...
this
.
data
.
searchInfo
,
pageNo
:
1
,
},
})
,()
=>
{
})
;
this
.
getBabyList
(
this
.
data
.
searchInfo
,
this
.
data
.
chooseId
);
};
},
changePagination
(
e
)
{
this
.
setData
({
...
...
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