Commit d982de17 authored by youjie's avatar youjie

no message

parent 3c19873b
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column;"> flex-direction: column;">
<view style="width: 100%; height: 740rpx"> <view style="width: 100%; height: 740rpx;">
<canlendar v-if="showTimePopup" <canlendar v-if="showTimePopup"
:defaultDate="dayObj.start" :defaultDate="dayObj.start"
@finish="chosenDateResult" title="日期和人数"></canlendar> @finish="chosenDateResult" title="日期和人数"></canlendar>
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
<scroll-view <scroll-view
:scroll-y="true" :scroll-y="true"
class="hotelSign-scroll" class="hotelSign-scroll"
scroll-with-animation="true"
style="height: 100%; flex: 1; box-sizing: border-box" style="height: 100%; flex: 1; box-sizing: border-box"
:scroll-top="scrollTop" :scroll-top="scrollTop"
> >
...@@ -14,9 +13,10 @@ ...@@ -14,9 +13,10 @@
color: #111; color: #111;
text-align: center; text-align: center;
padding: 30rpx 0; padding: 30rpx 0;
" display: flex;
> ">
<text>{{ title }}</text> <text style="width: 1px;flex: 1;">{{ title }}</text>
<u-icon class="close" name="close" color="#000" size="50" @click="submit"/>
</view> </view>
<view class="week"> <view class="week">
<view></view> <view></view>
...@@ -231,6 +231,14 @@ export default { ...@@ -231,6 +231,14 @@ export default {
this.end = this.setDefaultDate(this.getDefaultDate(1)); this.end = this.setDefaultDate(this.getDefaultDate(1));
}, },
}); });
setTimeout(()=>{
const that =this
const query = uni.createSelectorQuery().in(this);
query.selectAll('.hotelSign-scroll').boundingClientRect((rects) => {
that.scrollHeight = rects[0].height
that.calcDefautlOffset()
}).exec();
},300)
// #ifdef MP-ALIPAY // #ifdef MP-ALIPAY
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: "", title: "",
...@@ -264,14 +272,7 @@ export default { ...@@ -264,14 +272,7 @@ export default {
// } // }
// }); // });
// } // }
setTimeout(()=>{
const that =this
const query = uni.createSelectorQuery().in(this);
query.selectAll('.hotelSign-scroll').boundingClientRect((rects) => {
that.scrollHeight = rects[0].height
that.calcDefautlOffset()
}).exec();
},500)
}, },
onShow(){ onShow(){
...@@ -729,7 +730,10 @@ export default { ...@@ -729,7 +730,10 @@ export default {
}; };
</script> </script>
<style> <style scoped>
.close{
margin-right: 30rpx;
}
/**确认按钮**/ /**确认按钮**/
.submit { .submit {
width: 100%; width: 100%;
......
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