| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298 |
- <template>
- <view class="container" :style="'overflow:' + (showPage ? 'hidden' : 'visible')" v-if="info">
- <!-- 顶部分段器区域 -->
- <view class="control">
- <uni-segmented-control :current="activeIndex" :values="headerList" style-type="text" active-color="#096562" @clickItem="onClickItem" />
- </view>
- <!-- 顶部民宿图片区域 -->
- <view class="banner">
- <swiper autoplay circular class="swiper">
- <swiper-item class="swiper_item" v-for="item in info.hotelFileInfoList" :key="item.id">
- <img mode="aspectFill" class="img" :src="item.url" />
- </swiper-item>
- </swiper>
- <view class="slogan">
- <img src="../../static/index/slogan.png" />
- </view>
- <view class="full" v-if="info.linkProUrl" @click="handleGoPull(info.linkProUrl)">
- <img src="../../static/index/full.png" />
- 720°全景
- </view>
- </view>
- <!-- 民宿详细信息区域 -->
- <view class="detail">
- <view class="detail_name">{{ info.hotel_name }}</view>
- <view class="detail_info">
- <view class="info_left">{{ info.fitupTime }}装修 | {{ info.openTime }}开业</view>
- <view class="info_right" @click="goPageDetailInfo">
- 设施/详情
- <img src="../../static/index/right.png" />
- </view>
- </view>
- <view class="detail_group">
- <view class="group_item" v-for="item in info.hconfigList" :key="item.id">
- <img :src="item.fileUrl" />
- {{ item.name }}
- </view>
- </view>
- <view class="address">
- <view class="address_left">{{ info.hposition }}</view>
- <view class="address_right">
- <view class="right_box" @click="handleMap(info)">
- <img src="../../static/index/map.png" />
- </view>
- <view class="right_box" @click="handlePhone(info.managerPhone)">
- <img src="../../static/index/phone.png" />
- </view>
- </view>
- </view>
- <view class="distance" v-if="distance">距离我{{ distance }}km</view>
- </view>
- <!-- 房型信息区域 -->
- <view class="body">
- <!-- 选择日期区域 -->
- <view class="body_header" @click="handleOpen">
- <view class="header_start">
- <view class="header_top">{{ getWeek(startTime) }}入住</view>
- <view class="header_bottom">{{ startTime.slice(5, 7) }}月{{ startTime.slice(8, 10) }}日</view>
- </view>
- <view class="header_night">
- <view class="night_line"></view>
- <view class="night_box">{{ nightNum }}晚</view>
- <view class="night_line"></view>
- </view>
- <view class="header_end">
- <view class="header_top">{{ getWeek(endTime) }}离店</view>
- <view class="header_bottom">{{ endTime.slice(5, 7) }}月{{ endTime.slice(8, 10) }}日</view>
- </view>
- </view>
- <!-- 日历组件 -->
- <uv-calendars
- ref="calendar"
- range
- title="选择日期"
- start-text="住店"
- end-text="离店"
- color="#096562"
- confirmColor="#096562"
- :selected="selected"
- :startDate="earlyTime"
- :endDate="lateTime"
- @confirm="handleConfirm"
- />
- <!-- 房型列表区域 -->
- <view class="body_content" v-if="list.length">
- <!-- 每一个房型盒子区域 -->
- <view class="body_box" v-for="item in list" :key="item.id" @click="handleLookDetail(item)">
- <view class="box_left">
- <img mode="aspectFill" :src="item.fileInfoList[0].url" />
- </view>
- <view class="box_center">
- <view class="center_top">{{ item.hName }}</view>
- <view class="center_center">
- <view class="center_item" v-if="item.hAreas">{{ item.hAreas }}㎡ 剩余{{ item.remainRooms }}间</view>
- </view>
- <view class="center_bottom">
- <img v-for="item2 in item.hConfigList" :key="item2.id" class="img" :src="item2.fileUrl" />
- </view>
- </view>
- <view class="box_right">
- <view class="right_price">
- <text>¥</text>
- {{ item.price }}
- </view>
- <view class="right_btn" :class="{ inactive: item.remainRooms * 1 <= 0 }" @click.stop="goPageAffOrder(item)">订</view>
- </view>
- </view>
- <!-- 点击房型弹窗区域 -->
- <uv-popup ref="popup" bgColor="none" :safeAreaInsetBottom="false">
- <view class="body_pop">
- <!-- 轮播图区域 -->
- <swiper indicator-dots circular indicator-color="#FFFFFF" indicator-active-color="#096562" class="pop_swiper">
- <swiper-item class="pop_swiper_item" v-for="item in roomInfo.fileInfoList" :key="item.id">
- <img class="img" :src="item.url" />
- </swiper-item>
- </swiper>
- <!-- 轮播图关闭图标区域 -->
- <img class="pop_icon" src="../../static/index/close.png" @click="handleClosePop" />
- <view class="pop_body">
- <view class="body_title">{{ roomInfo.hName }}</view>
- <view class="body_tags">
- <view class="tags_item">
- <img class="img" src="../../static/index/place.png" />
- {{ roomInfo.hAreas }}㎡
- </view>
- <view class="tags_item" v-for="item2 in roomInfo.hConfigList" :key="item2.id">
- <img class="img" :src="item2.fileUrl" />
- {{ item2.name }}
- </view>
- </view>
- <view class="body_title2">费用明细</view>
- <view class="body_detail">
- <!-- <view class="detail_old">¥{{ roomInfo.price }}</view> -->
- <!-- <view class="detail_box">
- 黄金会员9折
- <text>-¥25</text>
- </view>
- <view class="detail_box">
- 活动
- <text>-¥2.5</text>
- </view> -->
- <view class="detail_new">
- 每间每晚
- <view class="ml_10 color">¥</view>
- <view class="price color">{{ roomInfo.price }}</view>
- </view>
- </view>
- <view class="body_bottom">
- <view class="bottom_left" @click="handlePhone(info.managerPhone)">
- <img class="img" src="../../static/index/phone2.png" />
- 联系商家
- </view>
- <view class="bottom_right">
- <text>¥</text>
- {{ roomInfo.price }}
- <view class="btn" :class="{ inactive: roomInfo.remainRooms * 1 <= 0 }" @click="goPageAffOrder(roomInfo)">预定</view>
- </view>
- </view>
- </view>
- </view>
- </uv-popup>
- </view>
- <view class="noData" v-else>
- <img src="../../static/images/noData.png" />
- 暂无数据
- </view>
- </view>
- <!-- 评价区域 -->
- <view class="evaluate">
- <view class="evaluate_title">评价</view>
- <view class="evaluate_body">
- <!-- 评分区域 -->
- <view class="header">
- <view class="header_box">
- <!-- 总评分区域 -->
- <view class="box_left">4.6</view>
- <view class="box_right">
- <!-- 位置评分区域 -->
- <view class="right_item">
- <view class="item_info">位置 4.6</view>
- <view class="item_progress">
- <progress activeColor="#0BAD8B" backgroundColor="#CCCCCC" stroke-width="10" border-radius="92" :percent="(4.6 / 5) * 100" />
- </view>
- </view>
- <!-- 设施评分区域 -->
- <view class="right_item">
- <view class="item_info">设施 4.6</view>
- <view class="item_progress">
- <progress activeColor="#0BAD8B" backgroundColor="#CCCCCC" stroke-width="10" border-radius="92" :percent="(4.6 / 5) * 100" />
- </view>
- </view>
- <!-- 服务评分区域 -->
- <view class="right_item">
- <view class="item_info">服务 4.6</view>
- <view class="item_progress">
- <progress activeColor="#0BAD8B" backgroundColor="#CCCCCC" stroke-width="10" border-radius="92" :percent="(4.6 / 5) * 100" />
- </view>
- </view>
- <!-- 卫生评分区域 -->
- <view class="right_item">
- <view class="item_info">卫生 4.6</view>
- <view class="item_progress">
- <progress activeColor="#0BAD8B" backgroundColor="#CCCCCC" stroke-width="10" border-radius="92" :percent="(4.6 / 5) * 100" />
- </view>
- </view>
- </view>
- </view>
- </view>
- <!-- 每一个评价区域 -->
- <view class="evaluate_box" v-for="item in commentList" :key="item.id">
- <!-- 用户信息区域 -->
- <view class="box_userInfo" @click="handleGoDetail(item)">
- <img mode="aspectFill" :src="item.imgUrl" />
- <view class="userInfo_msg">
- <view class="msg_name">{{ item.name }}</view>
- <view class="msg_star">
- <uni-rate readonly activeColor="#FFC300" :size="16" :value="item.rate" />
- </view>
- </view>
- </view>
- <!-- 入住时间区域 -->
- <view class="box_time">{{ item.liveTime }}入住,{{ item.subTime }}发表 | {{ item.type }}</view>
- <!-- 评价内容区域 -->
- <uv-read-more show-height="85rpx" closeText="全文" color="#096663" fontSize="24rpx" textIndent="0" :toggle="true" :shadowStyle="shadowStyle">
- <view class="box_content">
- {{ item.content }}
- </view>
- </uv-read-more>
- <!-- 图片区域 -->
- <view class="box_img">
- <img v-for="(ele, index) in item.imgList" :key="index" mode="aspectFill" :src="ele" @click="handleClickImg(item.imgList, index)" />
- </view>
- </view>
- <view class="foot" @click="handleGoPage" v-if="commentList.length">
- 查看全部{{ commentList.length }}条评价
- <img src="../../static/index/right.png" />
- </view>
- <view class="noData" v-if="commentList.length === 0">
- <img src="../../static/images/noData.png" />
- 暂无评论
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- // 滚动穿透控制
- showPage: false,
- // 房型数据数组
- list: [],
- // 住几晚
- nightNum: 1,
- // 选择日期数组
- dayList: [],
- // 酒店信息
- info: null,
- // 房间信息
- roomInfo: {},
- // 民宿Id
- hotelId: '',
- // 是否有定位权限
- showLocation: false,
- // 是否展示距离
- distance: '',
- // 入住时间 YYYY-MM-DD
- startTime: '',
- // 离店时间 YYYY-MM-DD
- endTime: '',
- // 日历可以选择的最早日期
- earlyTime: '',
- // 日历可以选择的最晚日期
- lateTime: '',
- activeIndex: 0,
- headerList: ['预定', '评价'],
- // 评价列表数据
- commentList: [
- // {
- // id: 1,
- // imgUrl: 'https://img1.baidu.com/it/u=4085584268,3308739054&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=375',
- // name: '张三',
- // rate: 4.6,
- // liveTime: '2023-07',
- // subTime: '2023-08-01',
- // type: '大床房',
- // content:
- // '评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容的丰富的丰富评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容的丰富的丰富',
- // imgList: [
- // 'https://img1.baidu.com/it/u=2776549017,1408541252&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500',
- // 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fitem%2F201912%2F28%2F20191228151619_wxioq.thumb.1000_0.jpg&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1695352503&t=cf595866bbcbd5c6a01ffe69913da7e0'
- // ],
- // count: 12
- // },
- // {
- // id: 2,
- // imgUrl: 'https://img1.baidu.com/it/u=4085584268,3308739054&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=375',
- // name: '李四',
- // rate: 4.1,
- // liveTime: '2023-08',
- // subTime: '2023-08-11',
- // type: '双人房',
- // content:
- // '评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容的丰富的丰富评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容的丰富的丰富',
- // imgList: [
- // 'https://img1.baidu.com/it/u=2776549017,1408541252&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500',
- // 'https://img1.baidu.com/it/u=4085584268,3308739054&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=375',
- // 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fitem%2F201912%2F28%2F20191228151619_wxioq.thumb.1000_0.jpg&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1695352503&t=cf595866bbcbd5c6a01ffe69913da7e0',
- // 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fsafe-img.xhscdn.com%2Fbw1%2F70a86822-e473-4ad8-9147-fad3e5cbc5ec%3FimageView2%2F2%2Fw%2F1080%2Fformat%2Fjpg&refer=http%3A%2F%2Fsafe-img.xhscdn.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1695352600&t=689d4a86e77580db11cdc227291ef6f7'
- // ],
- // count: 8
- // },
- // {
- // id: 3,
- // imgUrl: 'https://img1.baidu.com/it/u=4085584268,3308739054&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=375',
- // name: '王八',
- // rate: 3.8,
- // liveTime: '2023-07',
- // subTime: '2023-07-11',
- // type: '普通房',
- // content:
- // '评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容的丰富的丰富评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容评价内容的丰富的丰富',
- // imgList: [],
- // count: 26
- // }
- ],
- queryDom: null,
- domTop: null,
- selected: [
- // {
- // date: '2023-09-07',
- // topinfo: '¥456'
- // },
- // {
- // date: '2023-09-08',
- // topinfo: '¥888'
- // }
- ]
- }
- },
- onLoad(options) {
- this.getTimes()
- this.hotelId = options.id
- this.distance = options.distance === 'undefined' ? false : options.distance
- uni.getSetting({
- success: (res) => {
- this.showLocation = res.authSetting['scope.userLocation']
- this.getHotelInfo()
- }
- })
- },
- onPageScroll(e) {
- if (!this.queryDom) {
- this.queryDom = uni.createSelectorQuery().in(this)
- this.queryDom
- .select('.evaluate')
- .boundingClientRect((data) => {
- this.domTop = data.top
- })
- .exec()
- }
- if (e.scrollTop > this.domTop) {
- this.activeIndex = 1
- } else {
- this.activeIndex = 0
- }
- },
- methods: {
- async getHotelInfo() {
- const res = await this.$myRequest({
- url: '/mhotel/ahpgetHouseByHotelId.action',
- data: {
- hotelId: this.hotelId,
- queryStartTime: this.startTime,
- queryEndTime: this.endTime
- }
- })
- // console.log(res)
- if (res.code === 200) {
- this.info = res.data.data
- this.list = res.data.data.houseList
- uni.setNavigationBarTitle({
- title: res.data.data.hotel_name
- })
- }
- },
- onClickItem(e) {
- this.activeIndex = e.currentIndex
- if (this.activeIndex === 1) {
- uni.pageScrollTo({
- selector: '.evaluate'
- })
- } else {
- uni.pageScrollTo({
- scrollTop: 0
- })
- }
- },
- // 选择日期确定回调
- handleConfirm(e) {
- this.startTime = e.range.before
- this.endTime = e.range.after
- this.dayList = e.range.data
- this.nightNum = e.range.data.length - 1
- this.getHotelInfo()
- },
- // 点击地图图标回调
- handleMap(item) {
- if (this.showLocation) {
- let lat = item.hpositionWens.split(',')[0] * 1
- let lng = item.hpositionWens.split(',')[1] * 1
- uni.openLocation({
- latitude: lat,
- longitude: lng,
- name: item.hname,
- address: item.hposition,
- success: () => {}
- })
- } else {
- uni.showModal({
- content: '当前没有定位权限,是否去设置打开?',
- confirmText: '确认',
- cancelText: '取消',
- success: (res) => {
- if (res.confirm) {
- uni.openSetting({
- success: (res) => {
- this.showLocation = true
- this.handleMap(item)
- }
- })
- } else {
- uni.showToast({
- title: '获取定位权限失败,无法使用地图功能',
- icon: 'none',
- mask: true
- })
- }
- }
- })
- }
- },
- // 点击电话图标回调
- handlePhone(phone) {
- uni.makePhoneCall({
- phoneNumber: phone
- })
- },
- // 点击弹窗关闭图标回调
- handleClosePop() {
- this.showPage = false
- this.$refs.popup.close()
- },
- // 点击每一个户型回调
- handleLookDetail(item) {
- this.roomInfo = item
- this.showPage = true
- this.$refs.popup.open('bottom')
- },
- // 点击设施详情回调
- goPageDetailInfo() {
- uni.navigateTo({
- url: `/pages/detailInfo/detailInfo?hotelId=${this.hotelId}`
- })
- },
- // 点击 订 预定 按钮回调
- goPageAffOrder(item) {
- let flag = uni.getStorageSync('openid')
- if (flag) {
- if (!this.startTime) {
- uni.showToast({
- title: '请选择入住时间',
- icon: 'none'
- })
- return
- }
- if (!this.endTime) {
- uni.showToast({
- title: '请选择离店时间',
- icon: 'none'
- })
- return
- }
- if (item.remainRooms * 1 > 0) {
- this.$refs.popup.close()
- this.showPage = false
- let info = JSON.stringify({
- nightNum: this.nightNum,
- startTimeDay: this.startTime.slice(8, 10),
- startTimeMonth: this.startTime.slice(5, 7),
- startTimeWeek: this.getWeek(this.startTime),
- endTimeDay: this.endTime.slice(8, 10),
- endTimeMonth: this.endTime.slice(5, 7),
- endTimeWeek: this.getWeek(this.endTime),
- item: item,
- queryStartTime: this.startTime,
- queryEndTime: this.endTime,
- dayList: this.dayList,
- hTypeName: this.info.hTypeName,
- hotelName: this.info.hotel_name
- })
- uni.navigateTo({
- url: `/pages/affirmOrder/affirmOrder?info=${info}`
- })
- } else {
- uni.showToast({
- title: '该房间已售罄',
- icon: 'none',
- mask: true
- })
- }
- } else {
- uni.showToast({
- title: '请先登录',
- icon: 'none',
- mask: true
- })
- setTimeout(() => {
- uni.navigateTo({
- url: '/pages/login/login'
- })
- }, 1500)
- }
- },
- // 点击日期区域回调
- handleOpen() {
- this.$refs.calendar.open()
- },
- // 传入参数获取当前是星期几
- getWeek(time) {
- let date = new Date(time)
- let week = date.getDay()
- let weekList = ['日', '一', '二', '三', '四', '五', '六']
- let res = '周' + weekList[week]
- return res
- },
- // 获取今明两天的日期 YYYY-MM-DD
- getTimes() {
- // 今天
- let today = new Date()
- // 明天
- let tomorrow = new Date(today.getTime() + 24 * 60 * 60 * 1000)
- let late = new Date(today.getTime() + 24 * 60 * 60 * 1000 * 14)
- this.startTime = `${today.getFullYear()}-${(today.getMonth() + 1).toString().padStart(2, 0)}-${today.getDate().toString().padStart(2, 0)}`
- this.endTime = `${tomorrow.getFullYear()}-${(tomorrow.getMonth() + 1).toString().padStart(2, 0)}-${tomorrow.getDate().toString().padStart(2, 0)}`
- this.dayList = [this.startTime, this.endTime]
- this.earlyTime = this.startTime
- this.lateTime = `${late.getFullYear()}-${(late.getMonth() + 1).toString().padStart(2, 0)}-${late.getDate().toString().padStart(2, 0)}`
- },
- handleGoPull(linkProUrl) {
- let temURL = linkProUrl.slice(22)
- let url = 'https://f10mfe54bri.720yun.com' + temURL
- uni.navigateTo({
- url: `/pages/web/web?url=${url}`
- })
- },
- // 点击每一个评价回调
- handleGoDetail(item) {
- let info = encodeURIComponent(JSON.stringify(item))
- uni.navigateTo({
- url: `/pages/appraiseDetail/appraiseDetail?info=${info}`
- })
- },
- // 点击评价图片回调
- handleClickImg(url, index) {
- // 预览图片
- uni.previewImage({
- current: index,
- urls: url
- })
- },
- handleGoPage() {
- uni.navigateTo({
- url: '/pages/appraise/appraise'
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .container {
- display: flex;
- flex-direction: column;
- align-items: center;
- position: relative;
- min-height: 100vh;
- background-color: #f2f3f5;
- .control {
- z-index: 999;
- position: sticky;
- top: 0;
- width: 100%;
- height: 100rpx;
- background-color: #fff;
- }
- .banner {
- position: relative;
- width: 750rpx;
- height: 422rpx;
- .swiper {
- height: 422rpx;
- .swiper_item {
- width: 100%;
- height: 100%;
- .img {
- width: 100%;
- height: 100%;
- }
- }
- }
- .img {
- width: 100%;
- height: 100%;
- }
- .slogan {
- position: absolute;
- top: 0;
- left: 0;
- display: flex;
- justify-content: center;
- align-items: center;
- width: 163rpx;
- height: 60rpx;
- background-color: rgba(255, 255, 255, 0.4);
- img {
- width: 125rpx;
- height: 44rpx;
- }
- }
- .full {
- position: absolute;
- top: 13rpx;
- right: 20rpx;
- display: flex;
- align-items: center;
- justify-content: space-around;
- width: 173rpx;
- height: 60rpx;
- color: #fff;
- font-size: 24rpx;
- border-radius: 11rpx;
- background-color: rgba(0, 0, 0, 0.5);
- img {
- width: 40rpx;
- height: 40rpx;
- }
- }
- }
- .detail {
- z-index: 1;
- float: left;
- margin-top: -177rpx;
- box-sizing: border-box;
- padding: 0 30rpx 30rpx;
- width: 710rpx;
- border-radius: 10rpx;
- background-color: #fff;
- .detail_name {
- margin-top: 25rpx;
- font-size: 34rpx;
- font-weight: bold;
- }
- .detail_info {
- display: flex;
- justify-content: space-between;
- margin-top: 10rpx;
- .info_left {
- color: #999999;
- font-size: 20rpx;
- }
- .info_right {
- display: flex;
- align-items: center;
- color: #096562;
- font-size: 24rpx;
- img {
- margin-left: 6rpx;
- width: 10rpx;
- height: 20rpx;
- }
- }
- }
- .detail_group {
- display: flex;
- flex-wrap: wrap;
- margin-top: 5rpx;
- width: 450rpx;
- .group_item {
- display: flex;
- align-items: center;
- margin-right: 10rpx;
- margin-bottom: 10rpx;
- color: #999999;
- font-size: 20rpx;
- img {
- margin-right: 5rpx;
- width: 22rpx;
- height: 22rpx;
- }
- }
- }
- .address {
- display: flex;
- justify-content: space-between;
- margin-top: 8rpx;
- font-size: 28rpx;
- font-weight: bold;
- .address_left {
- width: 480rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .address_right {
- display: flex;
- .right_box {
- margin-left: 28rpx;
- width: 50rpx;
- height: 78rpx;
- img {
- width: 100%;
- height: 100%;
- }
- }
- }
- }
- .distance {
- margin-top: -35rpx;
- color: #999999;
- font-size: 24rpx;
- }
- }
- .body {
- float: left;
- margin-top: 20rpx;
- // padding-bottom: 30rpx;
- width: 710rpx;
- border-radius: 10rpx;
- background-color: #fff;
- .body_header {
- display: flex;
- justify-content: space-around;
- box-sizing: border-box;
- padding: 0 30rpx;
- height: 150rpx;
- .header_start {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- width: 213rpx;
- height: 150rpx;
- font-size: 30rpx;
- .header_top {
- margin-bottom: 10rpx;
- color: #999999;
- font-size: 24rpx;
- }
- .header_bottom {
- font-size: 34rpx;
- font-weight: bold;
- }
- }
- .header_night {
- display: flex;
- justify-content: center;
- align-items: center;
- .night_line {
- width: 17rpx;
- height: 1rpx;
- background-color: #296de3;
- }
- .night_box {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 81rpx;
- height: 46rpx;
- font-size: 24rpx;
- border-radius: 66rpx;
- border: 1rpx solid #296de3;
- }
- }
- .header_end {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- width: 213rpx;
- height: 150rpx;
- font-size: 30rpx;
- .header_top {
- margin-bottom: 10rpx;
- color: #999999;
- font-size: 24rpx;
- }
- .header_bottom {
- font-size: 34rpx;
- font-weight: bold;
- }
- }
- }
- .body_content {
- .body_box {
- box-sizing: border-box;
- padding: 0 30rpx;
- margin-bottom: 30rpx;
- display: flex;
- height: 193rpx;
- border-bottom: 1rpx solid #cccccc;
- .box_left {
- width: 213rpx;
- height: 161rpx;
- border-radius: 5rpx;
- img {
- width: 100%;
- height: 100%;
- }
- }
- .box_center {
- margin-left: 16rpx;
- .center_top {
- font-size: 34rpx;
- font-weight: bold;
- }
- .center_center {
- display: flex;
- flex-wrap: wrap;
- margin-top: 10rpx;
- color: #999999;
- font-size: 24rpx;
- .center_item {
- margin-right: 15rpx;
- }
- }
- .center_bottom {
- margin-top: 25rpx;
- .img {
- margin-right: 15rpx;
- width: 30rpx;
- height: 30rpx;
- }
- }
- }
- .box_right {
- display: flex;
- flex-direction: column;
- align-items: flex-end;
- margin-left: auto;
- margin-top: 20rpx;
- .right_price {
- color: #ff5733;
- font-size: 42rpx;
- text {
- font-size: 24rpx;
- }
- }
- .right_btn {
- display: flex;
- justify-content: center;
- align-items: center;
- margin-top: 10rpx;
- width: 100rpx;
- height: 66rpx;
- color: #fff;
- font-size: 36rpx;
- border-radius: 11rpx;
- background-color: #096562;
- }
- .inactive {
- background-color: #cccccc;
- }
- }
- }
- .body_pop {
- position: relative;
- height: 955rpx;
- border-radius: 22rpx 22rpx 0 0;
- background-color: #fff;
- overflow-y: auto;
- .pop_swiper {
- height: 422rpx;
- border-radius: 22rpx 22rpx 0 0;
- .pop_swiper_item {
- width: 100%;
- height: 100%;
- .img {
- width: 100%;
- height: 100%;
- border-radius: 22rpx 22rpx 0 0;
- }
- }
- }
- .pop_icon {
- position: absolute;
- top: 20rpx;
- right: 30rpx;
- width: 58rpx;
- height: 58rpx;
- }
- .pop_body {
- box-sizing: border-box;
- padding: 0 20rpx 30rpx;
- .body_title {
- margin-top: 30rpx;
- font-size: 32rpx;
- font-weight: bold;
- }
- .body_tags {
- display: flex;
- flex-wrap: wrap;
- margin-top: 20rpx;
- .tags_item {
- display: flex;
- align-items: center;
- margin-right: 76rpx;
- margin-bottom: 20rpx;
- color: #383838;
- font-size: 24rpx;
- .img {
- margin-right: 5rpx;
- width: 28rpx;
- height: 28rpx;
- }
- }
- }
- .body_title2 {
- margin-top: 20rpx;
- font-size: 28rpx;
- }
- .body_detail {
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- // align-items: flex-end;
- box-sizing: border-box;
- padding: 20rpx 30rpx;
- margin-top: 18rpx;
- width: 710rpx;
- height: 266rpx;
- font-size: 24rpx;
- border-radius: 7rpx;
- background-color: #f2f2f2;
- .detail_old {
- text-align: end;
- text-decoration: line-through;
- }
- .detail_box {
- display: flex;
- justify-content: space-between;
- color: #808080;
- text {
- color: #ff5733;
- }
- }
- .detail_new {
- display: flex;
- justify-content: flex-end;
- align-items: center;
- font-size: 24rpx;
- .color {
- color: #ff5733;
- }
- .price {
- font-size: 36rpx;
- }
- .ml_10 {
- margin-left: 10rpx;
- }
- }
- }
- .body_bottom {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-top: 250rpx;
- height: 80rpx;
- .bottom_left {
- display: flex;
- align-items: center;
- color: #333333;
- font-size: 24rpx;
- .img {
- margin-right: 10rpx;
- width: 48rpx;
- height: 48rpx;
- }
- }
- .bottom_right {
- display: flex;
- align-items: center;
- color: #ff5733;
- font-size: 40rpx;
- font-weight: bold;
- text {
- font-size: 24rpx;
- }
- .btn {
- display: flex;
- justify-content: center;
- align-items: center;
- margin-left: 30rpx;
- width: 238rpx;
- height: 80rpx;
- color: #fff;
- font-size: 32rpx;
- font-weight: 400;
- border-radius: 64rpx;
- background-color: #096562;
- }
- .inactive {
- background-color: #cccccc;
- }
- }
- }
- }
- }
- }
- .noData {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- padding-bottom: 20rpx;
- img {
- margin-top: 60rpx;
- width: 600rpx;
- height: 600rpx;
- }
- }
- }
- .evaluate {
- width: 710rpx;
- background-color: #f2f3f5;
- .evaluate_title {
- line-height: 83rpx;
- font-size: 32rpx;
- font-weight: bold;
- }
- .evaluate_body {
- display: flex;
- flex-direction: column;
- margin-bottom: 20rpx;
- width: 710rpx;
- border-radius: 11rpx;
- background-color: #fff;
- .header {
- display: flex;
- align-items: center;
- margin: 25rpx 20rpx;
- width: 670rpx;
- height: 120rpx;
- border-radius: 13rpx;
- background-color: #e4f0ef;
- .header_box {
- display: flex;
- height: 70rpx;
- .box_left {
- display: flex;
- justify-content: center;
- align-items: center;
- width: 140rpx;
- color: #096562;
- font-size: 60rpx;
- font-weight: 900;
- border-right: 1rpx solid #cccccc;
- }
- .box_right {
- flex: 1;
- display: flex;
- flex-wrap: wrap;
- color: #808080;
- font-size: 24rpx;
- .right_item {
- display: flex;
- align-items: center;
- width: 50%;
- .item_info {
- margin-left: 33rpx;
- }
- .item_progress {
- margin-right: 20rpx;
- padding: 0 13rpx;
- flex: 1;
- }
- }
- }
- }
- }
- .evaluate_box {
- box-sizing: border-box;
- padding: 0 20rpx;
- margin: 0 auto 20rpx;
- width: 710rpx;
- border-radius: 18rpx;
- background-color: #fff;
- .box_userInfo {
- display: flex;
- align-items: center;
- height: 115rpx;
- img {
- width: 70rpx;
- height: 70rpx;
- border-radius: 50%;
- }
- .userInfo_msg {
- margin-left: 18rpx;
- .msg_name {
- font-size: 28rpx;
- }
- .msg_star {
- margin-left: -5rpx;
- margin-top: 5rpx;
- }
- }
- }
- .box_time {
- display: flex;
- align-items: center;
- color: #a6a6a6;
- font-size: 24rpx;
- }
- .box_content {
- margin-top: 15rpx;
- font-size: 24rpx;
- color: #000;
- }
- .box_img {
- display: grid;
- grid-template-columns: 1fr 1fr 1fr;
- grid-auto-rows: auto;
- gap: 10rpx;
- margin-top: 20rpx;
- img {
- width: 216rpx;
- height: 216rpx;
- border-radius: 20rpx;
- }
- }
- }
- .foot {
- display: flex;
- justify-content: center;
- align-items: center;
- padding-bottom: 20rpx;
- height: 68rpx;
- font-size: 24rpx;
- font-weight: bold;
- color: #096663;
- img {
- margin-left: 10rpx;
- width: 10rpx;
- height: 18rpx;
- }
- }
- .noData {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- padding-bottom: 60rpx;
- img {
- margin-top: 160rpx;
- width: 600rpx;
- height: 600rpx;
- }
- }
- }
- }
- }
- </style>
|