|
@@ -1,7 +1,14 @@
|
|
|
<template>
|
|
|
- <view class="page">
|
|
|
-
|
|
|
+ <view class="page" :style="{'height':(h-th)+'px'}">
|
|
|
+ <u-navbar bgColor="transparent">
|
|
|
+ <view class="u-nav-slot" slot="left" style="display: flex;" @tap="show=true">
|
|
|
+ <text>{{name}}</text>
|
|
|
+ <u-icon name="arrow-down" size="28" :bold="true" color="#fff"></u-icon>
|
|
|
+ </view>
|
|
|
+ </u-navbar>
|
|
|
+ <view class="bg"></view>
|
|
|
<Tabbar :tabbarIndex="0"></Tabbar>
|
|
|
+ <u-picker :show="show" :columns="nameList" @close="show=false" @cancel="show=false" @confirm="confirm"></u-picker>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -9,17 +16,43 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
-
|
|
|
+ name:'一家民宿',
|
|
|
+ nameList:[['一家民宿','我家民宿','他家民宿']],
|
|
|
+ show:false
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
-
|
|
|
+ confirm(e){
|
|
|
+ this.name = e.value[0];
|
|
|
+ this.show = false;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="less">
|
|
|
.page{
|
|
|
-
|
|
|
+ background: #F3F4F4;
|
|
|
+ padding-bottom: 40rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+ overflow-y: auto;
|
|
|
+ .bg{
|
|
|
+ width: 100%;
|
|
|
+ height: 743rpx;
|
|
|
+ background: url(https://i.ringzle.com/file/20240107/8bc656fc64fd4386a6b336a7dc8c86d0.png) no-repeat;
|
|
|
+ background-size: 100% 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /deep/.u-nav-slot{
|
|
|
+ &>text{
|
|
|
+ font-size: 34rpx;
|
|
|
+ font-family: PingFang SC, PingFang SC;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #FFFFFF;
|
|
|
+ }
|
|
|
+ .u-icon{
|
|
|
+ margin: 8rpx 0 0 20rpx;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|