diff --git a/components/nav/nav.vue b/components/nav/nav.vue index 85b58792..1fac0576 100644 --- a/components/nav/nav.vue +++ b/components/nav/nav.vue @@ -48,7 +48,7 @@ }, { photo:"https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/footer_door.png", - photoAc:"https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/footer_doorAc.png", + photoAc:"https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/footer_communityAc.png", nav_name:"上门服务", url:"/packages/homeServer/index/index" }, diff --git a/components/primewind-sliderrange/components/primewind-sliderrange/README.md b/components/primewind-sliderrange/components/primewind-sliderrange/README.md new file mode 100644 index 00000000..8487018b --- /dev/null +++ b/components/primewind-sliderrange/components/primewind-sliderrange/README.md @@ -0,0 +1,74 @@ +# slider-range +uni-app 滑块区间选择组件 + +可根据具体需求,修改、自定义其他内容。 + +## 属性说明 + +|属性名|类型|默认值|说明| +| -- | -- | --|--| +| value | Array | [0,100] |滑块已选中区间的值| +| min | Number| 0 | 滑块区间最小值 | +| max | Number | 100 | 滑块区间最大值 | +| step | Number | 1 | 拖动时的步长 | +| disabled | Boolean | false | 是否为禁用状态 | +| height | Number | 50 | 滑块容器高度 | +| barHeight | Number | 5 | 滑块进度条高度 | +| backgroundColor | String | #e9e9e9| 滑块进度条背景色| +| activeColor | String | #1aad19 | 已选中区间进度条颜色| +| blockSize | Number | 20 | 滑块大小 | +| blockColor | String | #fff | 滑块颜色 | +| decorationVisible | Boolean | false | 是否显示滑块内装饰元素| +| tipVisible | Boolean | true | 是否显示滑块值提示文本 | +| fomat| Function | | 滑块值提示文本格式化函数,**注意**:小程序中此属性必传,否则会报错,如果无需格式化,可以简单返回原始值: `format(val) { return val }`;H5中可以不传。| + + +## 使用示例 + +```html + + + + +``` + +```javascript + +import SliderRange from '../components/slider-range/index.vue' +export default { + components: { + SliderRange + }, + data() { + return { + rangeMin: 5, + rangMax: 200, + rangeValue: [10, 50] + } + }, + methods: { + format(val) { + return val + '%' + }, + handleRangeChange(e) { + this.rangeValue = e + } + } +} +``` + +效果图 + +![](http://images.alisali.cn/img_20190715175325.png) diff --git a/components/primewind-sliderrange/components/primewind-sliderrange/index.vue b/components/primewind-sliderrange/components/primewind-sliderrange/index.vue new file mode 100644 index 00000000..2cd8d4c0 --- /dev/null +++ b/components/primewind-sliderrange/components/primewind-sliderrange/index.vue @@ -0,0 +1,378 @@ + + + + diff --git a/components/primewind-sliderrange/pages/slider-range/index.vue b/components/primewind-sliderrange/pages/slider-range/index.vue new file mode 100644 index 00000000..edff3f09 --- /dev/null +++ b/components/primewind-sliderrange/pages/slider-range/index.vue @@ -0,0 +1,90 @@ + + + + diff --git a/packages/homeServer/chooseMaster/index.css b/packages/homeServer/chooseMaster/index.css index e69de29b..b3576c82 100644 --- a/packages/homeServer/chooseMaster/index.css +++ b/packages/homeServer/chooseMaster/index.css @@ -0,0 +1,411 @@ +page { + background-color: #f6f6fa; + padding: 0 !important; +} + +.container { + display: flex; + flex-direction: column; + height: 100vh; + overflow: hidden; +} + +.header { + z-index: 9; +} + +.main { + flex: 1; + box-sizing: border-box; + overflow: hidden; + overflow-y: auto; + position: relative; +} + +.searchBox { + display: flex; + align-items: center; + background-color: #fff; +} + +.Filter { + display: flex; + align-items: center; + background-color: #fff; +} + +.Filter_right { + width: 133rpx; + height: 110rpx; + background: #FFFFFF; + border-radius: 0rpx 0rpx 0rpx 0rpx; + font-size: 30rpx; + color: #FF370B; + display: flex; + align-items: center; + justify-content: center; +} + +.Filter_right image { + width: 26rpx; + height: 30rpx; + margin-left: 7rpx; +} + +.iptBox { + width: 431rpx; + height: 70rpx; + background: #F6F7FB; + border-radius: 100rpx 100rpx 100rpx 100rpx; + margin-left: 40rpx; + display: flex; + align-items: center; + padding-left: 30rpx; + box-sizing: border-box; +} + +.iptBox image { + width: 30rpx; + height: 30rpx; + margin-right: 16rpx; +} + +.iptBox .u-input { + padding: 0 !important; + background-color: transparent !important; + +} + +.Filter_left { + display: flex; + align-items: center; + overflow: hidden; + overflow-x: auto; + white-space: nowrap; +} + +.FilterItem { + font-size: 28rpx; + color: #222222; + display: flex; + align-items: center; + padding: 0 20rpx; + margin-right: 10rpx; +} + +.FilterItem image { + width: 24rpx; + height: 15rpx; + margin-left: 10rpx; +} + +.MasterList { + margin-top: 30rpx; +} + +.MasterItem { + display: flex; + align-items: center; + margin-bottom: 20rpx; +} + +.MasterItem_left { + width: 32rpx; + height: 32rpx; + margin-left: 20rpx; +} + +.MasterItem_right { + flex: 1; + margin-left: 40rpx; + background: #FFFFFF; + border-radius: 20rpx 20rpx 20rpx 20rpx; + margin-right: 20rpx; +} + +.MasterItem_info { + box-sizing: border-box; + padding: 12rpx 0 20rpx 20rpx; + display: flex; + align-items: flex-start; +} + + +.MasterItem_Info_left { + display: flex; + flex-direction: column; + justify-content: center; + width: 130rpx; + margin-right: 40rpx; +} + +.MasterItem_Info_left image { + width: 130rpx; + height: 130rpx; +} + +.state { + width: 110rpx; + height: 40rpx; + border-radius: 100rpx 100rpx 100rpx 100rpx; + display: flex; + align-items: center; + justify-content: center; + font-size: 26rpx; + color: #FFFFFF; + margin: 0 auto; + margin-top: -20rpx; + z-index: 2; + position: relative; +} + +.state1 { + background: #AECE2B; + +} + +.state2 { + background: #CECECE; +} + +.state3 { + background: #FF370B; +} + +.MasterItem_Info_right { + flex: 1; +} + +.MasterItem_Info_right_1 { + display: flex; + align-items: center; + font-size: 36rpx; + color: #222222; +} + +.Medal { + width: 35rpx; + height: 40rpx; + margin-left: 6rpx; + margin-right: 28rpx; +} + +.star { + width: 22rpx; + height: 22rpx; + margin-right: 6rpx; +} + +.MasterItem_Info_right_1 span { + font-size: 26rpx; + color: #000000; +} + +.MasterItem_Info_right_2 { + font-size: 26rpx; + color: #999999; + margin-top: 8rpx; +} + +.MasterItem_Info_right_3 { + font-size: 26rpx; + display: flex; + color: #999999; + align-items: center; + margin-top: 16rpx; +} + +.MasterItem_Info_right_3 span { + color: #FF370B; + +} + +.MasterItem_Info_right_4 { + display: flex; + align-items: center; + margin-top: 16rpx; +} + +.tagItem { + width: 130rpx; + height: 40rpx; + display: flex; + align-items: center; + justify-content: center; + border-radius: 100rpx 100rpx 100rpx 100rpx; + font-size: 22rpx; + color: #555555; + margin-right: 10rpx; +} + +.tag1 { + background: rgba(255, 178, 23, 0.1); +} + +.tag2 { + background: rgba(255, 81, 42, 0.1); +} + +.tag3 { + background: rgba(175, 175, 175, 0.1); +} + +.MasterItem_Info_right_5 { + font-size: 28rpx; + color: #999999; + display: flex; + align-items: center; + margin-top: 16rpx; +} + +.MasterItem_Info_right_5 span { + color: #FF370B; +} + +.MasterItem_Info_right_6 { + display: flex; + align-items: center; + margin-top: 20rpx; +} + +.MasterItem_Info_right_6 image { + width: 110rpx; + height: 110rpx; + margin-right: 20rpx; + border-radius: 20rpx; + overflow: hidden; +} + +.MasterItem_more { + font-weight: normal; + font-size: 28rpx; + color: #FF370B; + padding: 30rpx 0; + border-top: 1rpx solid #EBEBEB; + text-align: center; +} + +.Btn { + font-size: 36rpx; + color: #FFFFFF; + width: 600rpx; + height: 90rpx; + background: linear-gradient(91deg, #FF7658 0%, #FF370B 100%); + border-radius: 100rpx 100rpx 100rpx 100rpx; + display: flex; + align-items: center; + justify-content: center; + position: fixed; + left: 50%; + bottom: 60rpx; + transform: translateX(-50%); + z-index: 3; +} + + + +.local { + display: flex; + align-items: center; +} + +.local span { + font-weight: 700; +} + +.filterMore1 { + display: flex; + align-items: center; + overflow: hidden; + overflow-x: auto; + white-space: nowrap; + margin-top: 20rpx; +} + +.filterMoreItem { + font-size: 28rpx; + color: #222222; + display: flex; + align-items: center; + background-color: #f6f6fa; + padding: 0 20rpx; + margin-right: 10rpx; + margin-right: 20rpx; + border-radius: 20rpx; + padding: 10rpx 20rpx; +} + +.filterMore2_item { + display: flex; + align-items: center; + justify-content: space-between; + margin-bottom: 20rpx; + color: #999; +} + +.filterMore2_item_left {} + +.active2 { + color: #ff702c !important; +} + +.filterMore2_item_left2 { + color: #000; +} + + + + +.filterMore3Item { + font-size: 26rpx; + color: #555555; + width: 130rpx; + height: 50rpx; + background: #F6F7FB; + border-radius: 10rpx 10rpx 10rpx 10rpx; + display: flex; + align-items: center; + justify-content: center; + margin-right: 40rpx; + margin-bottom: 18rpx; +} + +.filterMore3Item:nth-child(4n) { + margin-right: 0; +} + +.fullscreen-black-bg { + /* position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100vh; + background-color: rgba(0, 0, 0, .4); + box-sizing: border-box; + z-index: 9; + overflow: hidden; */ +} + +.FilterMore3 { + width: 100%; + background-color: #fff; + padding: 20rpx; + box-sizing: border-box; + display: flex; + flex-wrap: wrap; +} + +.FilterMore { + width: 100%; + background-color: #fff; + padding: 20rpx; + box-sizing: border-box; +} + +.dialogBox{ + position: absolute; + background-color: rgba(0, 0, 0, .4); + z-index:8; + width: 100%; + height: 100%; +} \ No newline at end of file diff --git a/packages/homeServer/chooseMaster/index.vue b/packages/homeServer/chooseMaster/index.vue index dc343d9e..111277d4 100644 --- a/packages/homeServer/chooseMaster/index.vue +++ b/packages/homeServer/chooseMaster/index.vue @@ -1,5 +1,176 @@ @@ -12,19 +183,26 @@ export default { data() { return { top: "", - localHeight: "" + localHeight: "", + show1:false, + show2:false, + show3:false, + show4:false, } }, methods: { - + masterInfo(){ + NavgateTo("../masterInfo/index") + }, }, onReady() { }, - onload(options) { + onLoad(options) { const meun = menuButtonInfo(); this.top = meun.top; + // this.top = meun.height + meun.top; this.localHeight = meun.height; }, onShow() { diff --git a/packages/homeServer/masterInfo/index.css b/packages/homeServer/masterInfo/index.css index e69de29b..4a1ec7e9 100644 --- a/packages/homeServer/masterInfo/index.css +++ b/packages/homeServer/masterInfo/index.css @@ -0,0 +1,180 @@ +page { + background-color: #f6f7fb; +} + +.searchBox { + display: flex; + align-items: center; + background-color: #fff; +} + +.searchBox_left, +.searchBox_right, +.searchBox_mid { + flex: 1; +} + +.searchBox_left { + padding-left: 20rpx; +} + +.searchBox_right { + opacity: 0; + padding-right: 20rpx; +} + +.searchBox_mid { + font-size: 40rpx; + color: #222222; + text-align: center; +} + +.banner { + margin: 0 auto; + padding-top: 30rx; + background-color: #fff; + width: 100%; +} + +.banner swiper { + margin: 0 auto; + width: 710rpx; + height: 307rpx; +} + +.dotList { + display: flex; + align-items: center; + justify-content: center; + margin: 0 auto; + margin-top: 10rpx; + padding-bottom: 20rpx; +} + +.dot { + width: 8rpx; + height: 8rpx; + background: #555555; + border-radius: 50%; + margin-right: 6rpx; +} + +.active { + background: #FF370B; + width: 20rpx; + height: 8rpx; + border-radius: 10rpx 10rpx 10rpx 10rpx; +} + +.master { + background-color: #fff; + margin-top: 30rpx; + padding: 26rpx 20rpx; +} + +.master_info { + display: flex; + align-items: flex-start; +} + +.master_info_left { + display: flex; + flex-direction: column; + justify-content: center; + width: 130rpx; + margin-right: 42rpx; +} + +.master_info_left image { + width: 130rpx; + height: 130rpx; +} + +.state { + width: 110rpx; + height: 40rpx; + border-radius: 100rpx 100rpx 100rpx 100rpx; + display: flex; + align-items: center; + justify-content: center; + font-size: 26rpx; + color: #FFFFFF; + margin: 0 auto; + margin-top: -20rpx; + z-index: 2; + position: relative; +} + +.state1 { + background: #AECE2B; + +} + +.state2 { + background: #CECECE; +} + +.state3 { + background: #FF370B; +} + +.master_info_right{ + flex: 1; +} +.master_info_right1 { + display: flex; + align-items: center; + font-size: 36rpx; + color: #222222; +} + +.Medal { + width: 35rpx; + height: 40rpx; + margin-left: 6rpx; + margin-right: 28rpx; +} + +.star { + width: 22rpx; + height: 22rpx; + margin-right: 6rpx; +} + +.master_info_right1 span { + font-size: 26rpx; + color: #000000; +} + +.master_info_right2 { + font-size: 28rpx; + color: #999999; + display: flex; + align-items: center; + justify-content: space-between; + margin-top: 16rpx; +} + +.master_info_right2 span { + color: #FF370B; +} +.master_info_right3{ + margin-top: 13rpx; +} +.master_info_right3_item { + display: flex; + align-items: center; + font-size: 26rpx; + color: #999999; + margin-bottom: 10rpx; +} + +.master_info_right3_item span { + font-size: 26rpx; + color: #222222; + margin-left: 23rpx; +} + +.master_info_right3_item>div{ + margin-right: 27rpx; +} \ No newline at end of file diff --git a/packages/homeServer/masterInfo/index.vue b/packages/homeServer/masterInfo/index.vue index dc343d9e..6396d24b 100644 --- a/packages/homeServer/masterInfo/index.vue +++ b/packages/homeServer/masterInfo/index.vue @@ -1,5 +1,69 @@ @@ -22,7 +86,7 @@ export default { }, - onload(options) { + onLoad(options) { const meun = menuButtonInfo(); this.top = meun.top; this.localHeight = meun.height; @@ -43,4 +107,9 @@ export default { \ No newline at end of file diff --git a/packages/homeServer/serverInfo/index.css b/packages/homeServer/serverInfo/index.css index e69de29b..e979b52d 100644 --- a/packages/homeServer/serverInfo/index.css +++ b/packages/homeServer/serverInfo/index.css @@ -0,0 +1,189 @@ +.banner { + margin: 0 auto; + margin-top: 30rpx; + width: 100%; +} + +.banner swiper { + margin: 0 auto; + width: 710rpx; + height: 307rpx; +} + +.dotList { + display: flex; + align-items: center; + justify-content: center; + margin: 0 auto; + margin-top: 10rpx; + padding-bottom: 20rpx; +} + +.dot { + width: 8rpx; + height: 8rpx; + background: #555555; + border-radius: 50%; + margin-right: 6rpx; +} + +.active { + background: #FF370B; + width: 20rpx; + height: 8rpx; + border-radius: 10rpx 10rpx 10rpx 10rpx; +} + +.line { + height: 20rpx; + width: 100%; + background-color: #f6f7fb; +} + +.serverTitBox { + padding: 30rpx 20rpx; + box-sizing: border-box; +} + +.serverTit { + display: flex; + align-items: center; + justify-content: space-between; +} + +.serverTit_right { + font-size: 26rpx; + color: #999999; +} + +.serverTit_left { + display: flex; + align-items: center; +} + +.tit { + font-size: 40rpx; + color: #222222; + font-weight: 700; +} + +.msg { + font-size: 26rpx; + color: #E9BE62; + display: flex; + align-items: center; + margin-left: 36rpx; +} + +.serverCon { + margin-top: 30rpx; + font-size: 26rpx; + color: #999999; + +} + +.priceSelect { + padding: 24rpx 20rpx; +} + +.serverList { + padding: 20rpx; + box-sizing: border-box; +} + +.serverListTit { + font-size: 63rpx; + color: #222222; + font-weight: 600; +} + +.serverItem { + display: flex; + padding: 20rpx; + border-bottom: 1rpx solid #EBEBEB; +} + +.serverItem_left { + width: 140rpx; + height: 140rpx; + margin-right: 14rpx; + border-radius: 20rpx; + overflow: hidden; +} + +.serverItem_right { + flex: 1; + display: flex; + align-items: center; + justify-content: space-between; +} + +.msg_tit { + font-size: 30rpx; + color: #222222; + margin-bottom: 20rpx; +} + +.msg_price { + font-size: 26rpx; + color: rgba(153, 153, 153, 0.6); + display: flex; + align-items: center; +} + +.msg_price span { + color: #FF370B; +} + +.serverItem_right_btn { + width: 180rpx; + height: 50rpx; + background: #FF370B; + border-radius: 100rpx 100rpx 100rpx 100rpx; + display: flex; + align-items: center; + justify-content: center; + font-size: 30rpx; + color: #FFFFFF; +} + +.serverItem_right_btn .more { + width: 26rpx; + height: 26rpx; + display: flex; + align-items: center; + justify-content: center; + border-radius: 50%; +} + +.range { + display: flex; + align-items: center; + justify-content: space-between; + width: 100%; + overflow: hidden; + /* 防止内容溢出 */ + +} + +.minPrice, +.maxPrice { + width: 70rpx; + height: 70rpx; + background: #F6F7FB; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + font-size: 24rpx; + color: #999999; + margin-top: 20rpx; +} + +.slider-range { + flex: 1 !important; + margin: 0 10rpx; + /* 添加左右间距 */ + min-width: 0; + /* 防止 flex 子项溢出 */ +} \ No newline at end of file diff --git a/packages/homeServer/serverInfo/index.vue b/packages/homeServer/serverInfo/index.vue index dc343d9e..f0ba94d9 100644 --- a/packages/homeServer/serverInfo/index.vue +++ b/packages/homeServer/serverInfo/index.vue @@ -1,5 +1,65 @@ @@ -7,22 +67,38 @@