diff --git a/packages/homeServer/search/index.vue b/packages/homeServer/search/index.vue index a89e468f..16dd57ea 100644 --- a/packages/homeServer/search/index.vue +++ b/packages/homeServer/search/index.vue @@ -97,6 +97,7 @@ class="service-card" v-for="(service, index) in hotServiceList" :key="index" + @click="navigateToReservation(service)" > - 去预约 - + --> {{ service.count }} @@ -334,6 +335,14 @@ export default { goSubscribe() { NavgateTo("/packages/homeServer/searchInfo/index"); }, + + navigateToReservation(item) { + uni.navigateTo({ + url: `/packages/homeServer/serverInfo/index?service=${encodeURIComponent( + JSON.stringify(item) + )}`, + }); + }, }, }; diff --git a/packages/homeServer/serverInfo/index.css b/packages/homeServer/serverInfo/index.css index e979b52d..46095503 100644 --- a/packages/homeServer/serverInfo/index.css +++ b/packages/homeServer/serverInfo/index.css @@ -10,6 +10,29 @@ height: 307rpx; } +.cirList { + display: flex; + align-items: center; + justify-content: center; + margin: 0 auto; + margin-top: 10rpx; + padding-bottom: 20rpx; +} + +.cir { + width: 6rpx; + height: 6rpx; + border-radius: 50%; + background-color: #333; + margin-right: 6rpx; +} + +.active { + width: 12rpx; + height: 6rpx; + border-radius: 100rpx; +} + .dotList { display: flex; align-items: center; @@ -92,7 +115,7 @@ } .serverListTit { - font-size: 63rpx; + font-size: 32rpx; color: #222222; font-weight: 600; } @@ -119,6 +142,7 @@ } .msg_tit { + display: flex; font-size: 30rpx; color: #222222; margin-bottom: 20rpx; @@ -145,15 +169,7 @@ 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%; + margin-left: 200rpx; } .range { @@ -186,4 +202,63 @@ /* 添加左右间距 */ min-width: 0; /* 防止 flex 子项溢出 */ +} + +.msg_meta { + display: flex; + align-items: center; + margin-bottom: 12rpx; + font-size: 24rpx; + color: #666666; +} + +.msg_meta .rating, +.msg_meta .distance, +.msg_meta .served { + display: flex; + align-items: center; + margin-right: 20rpx; +} + +.infoImage { + width: 25rpx; + height: 25rpx; + margin-right: 5rpx; +} + +.tabs { + display: flex; + align-items: center; + background: #ffffff; + height: 100rpx; + padding: 0 20rpx; + box-sizing: border-box; + display: flex; + overflow-x: auto; + white-space: nowrap; +} + +.tabItem { + font-size: 25rpx; + color: #222222; + margin-right: 60rpx; + height: 42rpx; +} + +.active2 { + font-size: 25rpx; + font-weight: 700; + position: relative; +} + +.active2::after { + content: ''; + background: url(https://wechat-img-file.oss-cn-beijing.aliyuncs.com/property-img-file/com_active.png) no-repeat; + background-size: 100% 100%; + width: 52rpx; + height: 22rpx; + position: absolute; + left: 50%; + bottom: -16rpx; + transform: translateX(-50%); } \ No newline at end of file diff --git a/packages/homeServer/serverInfo/index.vue b/packages/homeServer/serverInfo/index.vue index 880cb4e6..360a2c83 100644 --- a/packages/homeServer/serverInfo/index.vue +++ b/packages/homeServer/serverInfo/index.vue @@ -1,7 +1,25 @@