Commit 1a5a151e authored by qinhaitao's avatar qinhaitao

fix: 🐛 bug

parent 5585ec00
......@@ -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/>
......
......@@ -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();
}
},
});
......@@ -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:350px;
height:450px;
}
.choose-content-tab .choose-content-tab-view{
padding:20px 0 5px;
......
......@@ -3,6 +3,7 @@
visible="{{showBaby}}"
hasMask="{{true}}"
onClose="closeBaby"
className="item-goods-wrap"
width="738"
>
<view class="modal-content">
......
......@@ -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]
......@@ -97,14 +102,13 @@ Component({
}
},
searchBabyList() {
this.setData({
this.setData({
searchInfo: {
...this.data.searchInfo,
pageNo: 1,
},
}),()=>{
this.getBabyList(this.data.searchInfo, this.data.chooseId);
};
});
this.getBabyList(this.data.searchInfo, this.data.chooseId);
},
changePagination(e) {
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