Commit 1a5a151e authored by qinhaitao's avatar qinhaitao

fix: 🐛 bug

parent 5585ec00
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
data-index="1" data-index="1"
canCloseByMask="{{true}}" 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-title {{!title ? 'db-dialog-title_no': ''}}">{{title}}<icon size="xs" type="close" onTap="onCloseDialog" style="color: #999999;" /></view>
<view class="db-dialog-content_inner"> <view class="db-dialog-content_inner">
<slot/> <slot/>
......
...@@ -6,14 +6,15 @@ Component({ ...@@ -6,14 +6,15 @@ Component({
title: '', title: '',
visible: false, visible: false,
onClose: () => {}, onClose: () => {},
hasMask: true hasMask: true,
className: ''
}, },
didMount() {}, didMount() {},
didUpdate() {}, didUpdate() {},
didUnmount() {}, didUnmount() {},
methods: { methods: {
onCloseDialog() { onCloseDialog() {
this.props.onClose() this.props.onClose();
} }
}, },
}); });
...@@ -5,6 +5,10 @@ ...@@ -5,6 +5,10 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.item-goods-wrap .db-dialog-content_inner {
max-height: 500px;
padding: 0 24px 24px;
}
.modal-content-btn.choose-modal-footer { .modal-content-btn.choose-modal-footer {
justify-content:space-between; justify-content:space-between;
...@@ -14,7 +18,7 @@ ...@@ -14,7 +18,7 @@
padding:10px 20px; padding:10px 20px;
flex-grow:1; flex-grow:1;
overflow:hidden; overflow:hidden;
height:350px; height:450px;
} }
.choose-content-tab .choose-content-tab-view{ .choose-content-tab .choose-content-tab-view{
padding:20px 0 5px; padding:20px 0 5px;
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
visible="{{showBaby}}" visible="{{showBaby}}"
hasMask="{{true}}" hasMask="{{true}}"
onClose="closeBaby" onClose="closeBaby"
className="item-goods-wrap"
width="738" width="738"
> >
<view class="modal-content"> <view class="modal-content">
......
...@@ -17,7 +17,7 @@ Component({ ...@@ -17,7 +17,7 @@ Component({
pageNo: 1, pageNo: 1,
pageSize: 8, pageSize: 8,
totalCount: "", totalCount: "",
totalPages: "", totalPages: 0,
}, },
}, },
props: { props: {
...@@ -40,12 +40,17 @@ Component({ ...@@ -40,12 +40,17 @@ Component({
}); });
}, },
getBabyList(info, chooseId) { getBabyList(info, chooseId) {
console.log(info) console.log(info);
API.findItemListByStatus({ API.findItemListByStatus({
...info, ...info,
}).then((res) => { }).then((res) => {
if (res.success) { if (res.success) {
const { browseItemIds } = this.props; const { browseItemIds } = this.props;
console.log(`534543`, {
...this.data.babyDialogInfo,
...res.data,
list: res.data.list ? res.data.list : [],
});
this.setData({ this.setData({
chooseId: chooseId chooseId: chooseId
? [...chooseId] ? [...chooseId]
...@@ -97,14 +102,13 @@ Component({ ...@@ -97,14 +102,13 @@ Component({
} }
}, },
searchBabyList() { searchBabyList() {
this.setData({ this.setData({
searchInfo: { searchInfo: {
...this.data.searchInfo, ...this.data.searchInfo,
pageNo: 1, pageNo: 1,
}, },
}),()=>{ });
this.getBabyList(this.data.searchInfo, this.data.chooseId); this.getBabyList(this.data.searchInfo, this.data.chooseId);
};
}, },
changePagination(e) { changePagination(e) {
this.setData({ this.setData({
......
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 to comment