12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274 |
- <template>
- <zzx-navbar :scrollable="true" :back="true" title="详情"></zzx-navbar>
- <view class="detail-header">
- <image class="header-bg" :src="'http://192.168.1.166:8080/jeecg-boot/sys/common/static/' + bannerList[0]" mode="">
- </image>
- <view class="back-icon" :style="{ paddingTop: (statusBarHeight + 10) + 'px' }" @click="RouterUtils.back()">
- <zzx-icon name="back"></zzx-icon>
- </view>
- <view :style="{ height: (statusBarHeight + 70) + 'px' }"></view>
- <scroll-view class="header-swiper content" scroll-x="true" :show-scrollbar="false">
- <view class="swiper-inner">
- <block v-if="detailInfo.video">
- <video v-for="(item, index) in videoList" :key="index" :src="item"></video>
- </block>
- <image v-for="(item, index) in bannerList" :key="index"
- :src="'http://192.168.1.166:8080/jeecg-boot/sys/common/static/' + item" mode=""></image>
- </view>
- </scroll-view>
- </view>
- <view :style="{ height: (statusBarHeight + 34) + 'px' }"></view>
- <view class="header-info">
- <view class="venue-name">
- <view style="display: flex;gap: 20rpx;align-items: center;">
- <view class="name">{{ detailInfo.name }}</view>
- <view class="open-status">{{ detailInfo.runStatus ? '营业中' : '歇业中' }}</view>
- </view>
- <view class="star">
- <zzx-icon name="star" size="12"></zzx-icon>
- <text>{{ detailInfo.goodRate }}</text>
- </view>
- </view>
- <view class="open-time" v-if="teachingDay">
- <view class="time">
- <view>教学日 <text style="margin-right: 14rpx;" v-for="(item, index) in teachingDay.data"
- :key="index">{{ item.startTime + '-' + item.endTime || '--' }}</text></view>
- <view class="">非教学日 <text style="margin-right: 14rpx;" v-for="(item, index) in noTeachingDay.data"
- :key="index">{{ item.startTime + '-' + item.endTime || '--' }}</text></view>
- </view>
- </view>
- <view class="venues-tags">
- <view class="tags-box">
- <view class="tags" v-for="(item, index) in detailInfo.facilityInfo" :key="index">{{ item }}</view>
- </view>
- <!-- <view class="more-info" @click="RouterUtils.to_page('/pages/index/basisInfo/index')">
- <text>信息/设备设施</text>
- <zzx-icon name="ashRight" size="10"></zzx-icon>
- </view> -->
- </view>
- <view class="venues-address">
- <view class="address">
- <zzx-icon name="location" size="14"></zzx-icon>
- <text>{{ detailInfo.address }}</text>
- </view>
- <view class="nav-phone">
- <view class="nav" @click="open_map">
- <zzx-icon name="navigation" size="14"></zzx-icon>
- <view class="">导航</view>
- </view>
- <view class="phone" @click="open_phone">
- <zzx-icon name="phone" size="14"></zzx-icon>
- <view class="">电话</view>
- </view>
- </view>
- </view>
- </view>
- <view class="content">
- <uv-sticky offset-top="74">
- <view class="detail-select">
- <view :class="sel_index === index ? 'select-text' : 'notsel-text'" v-for="(item, index) in selectList"
- :key="index" @click="sel_tab(index)">
- <text>{{ item }}</text>
- </view>
- </view>
- </uv-sticky>
- <view id="detail">
- <view class="venue-select-card">
- <view class="v-caed-header">
- <view class="v-left">
- <zzx-icon name="venue-icon1" size="14"></zzx-icon>
- <view style="margin-bottom: 10rpx;">包场</view>
- </view>
- <view class="" v-if="charteredList">
- 开场前{{ charteredList.earlyRefundTime }}分钟随时退
- </view>
- <view class="v-left"
- @click="RouterUtils.to_page(`/pages/index/vr/index?vrImg=${detailInfo.vr}`)">
- <zzx-icon name="venue-icon2" size="14"></zzx-icon>
- <view style="margin-bottom: 10rpx;">VR实景</view>
- </view>
- </view>
- <view class="v-select-infocard">
- <view class="select-btn">
- <view :class="selChartered === index ? 'distance' : 'score'" v-for="(item, index) in allCategoryList"
- :key="item.id" @click="selectChartered(item, index)">{{ item.name }}</view>
- </view>
- <view class="info-card-list" v-if="charteredList">
- <scroll-view scroll-x="true" class="scroll-view_H">
- <view class="item-card scroll-view-item_H" v-for="(item, index) in charteredList.timeSlot"
- :key="item.id" @click="open_popup(item, index)">
- <view class="today">{{ item.dateLabel }}</view>
- <view class="time">最早{{ item.startTime }}可订</view>
- <view class="price">¥{{ item.sellingPrice }}起</view>
- </view>
- <view class="not-data" v-if="charteredList.timeSlot.length < 1">暂无可选时间</view>
- </scroll-view>
- </view>
- </view>
- </view>
- <view class="venue-card">
- <view class="card-title">
- <zzx-icon name="venue-icon3" size="14"></zzx-icon>
- <view class="">无固定场</view>
- </view>
- <view class="item-card" v-for="(item, index) in detailInfo.placeInfoMsgVO" :key="item.id">
- <image :src="item.cover" mode=""></image>
- <view class="venue-info">
- <view class="info-title">
- <view class="title textHidden">{{ item.name }}</view>
- <view class="sales">年售{{ item.sales }}</view>
- </view>
- <!-- <view class="type">
- 篮球、足球、羽毛球
- </view> -->
- <view class="price-info">
- <view class="price">
- <view class="">¥{{ item.sellingPrice }}</view>
- <view class="">¥{{ item.originalPrice }}</view>
- </view>
- <view class="price-btn"
- @click="RouterUtils.to_page(`/pages/index/gymPay/index?type=1&placeId=${item.id}`)">抢购
- </view>
- </view>
- </view>
- <view class="card-tips">
- <view class="item-tips" @click="buyTips(item)">
- <text>购买须知</text>
- <zzx-icon name="ashRight" size="10"></zzx-icon>
- </view>
- <view class="item-tips" @click="serveTips(item)">
- <text>服务保障</text>
- <zzx-icon name="ashRight" size="10"></zzx-icon>
- </view>
- <!-- <view class="item-tips">
- <text>用户评价</text>
- <zzx-icon name="ashRight" size="10"></zzx-icon>
- </view> -->
- </view>
- </view>
- <view class="not-data" v-if="detailInfo.placeInfoMsgVO.length < 1">暂无场地数据</view>
- </view>
- </view>
- <view class="course-card" id="notice">
- <view class="course-tips">
- <view class="">!</view>
- <view class="">全平台每种类型的运动课程只可免费试听一次</view>
- </view>
- <view class="select-btn">
- <view :class="sel_btn === index ? 'distance' : 'score'" v-for="(item, index) in allCategoryList" :key="item.id"
- @click="selectallCategory(item, index)">{{ item.name }}</view>
- </view>
- <block v-if="!courseLoading">
- <view class="venue-card" v-for="item in courseList" :key="item.id" @click="toCOurseDetail">
- <image :src="item.cover" mode=""></image>
- <view class="venue-info">
- <view class="info-title">
- <view class="title textHidden">{{ item.name }}</view>
- <view class="sales">年售{{ item.salesYear }}</view>
- </view>
- <view class="type">
- {{ item.address }} {{ item.km || '--' }}km
- </view>
- <view class="price">
- <view class="">¥{{ item.sellingPrice }}</view>
- <view class="">¥{{ item.originalPrice }}</view>
- </view>
- <view class="course-count">
- {{ item.period }}课时 {{ item.startTime }}-{{ item.endTime }}
- </view>
- <view class="price-info">
- <view class="sale">
- 已售{{ item.sales }} {{ item.goodRate }}%好评
- </view>
- <view class="price-btn"
- @click="RouterUtils.to_page(`/pages/index/courseDetail/index?id=${item.id}&type=2`)">
- 免费试听
- </view>
- </view>
- </view>
- </view>
- </block>
- <loading v-else />
- <view class="not-data" v-if="courseList.length < 1 && !courseLoading">暂无数据</view>
- <!-- <view class="more">查看更多</view> -->
- </view>
- <view class="instructor-card" id="schedule">
- <view class="card-title" @click="RouterUtils.to_page('/pages/index/allInstructor/index')">
- <view class="">教练({{ detailInfo.instructorVOList.length }})</view>
- <zzx-icon name="right" size="12"></zzx-icon>
- </view>
- <scroll-view class="header-swiper content" scroll-x="true" :show-scrollbar="false">
- <view class="swiper-box">
- <view class="swiper-inner" v-for="item in detailInfo.instructorVOList" :key="item.id"
- @click="RouterUtils.to_page(`/pages/index/instructorDetail/index?id=${item.id}`)">
- <view class="header-img">
- <image :src="item.avatar" mode=""></image>
- <image src="/src/static/badge.png" mode=""></image>
- </view>
- <view class="instructor-name">{{ item.name }}</view>
- <view class="instructor-specialty">篮球</view>
- </view>
- </view>
- </scroll-view>
- </view>
- <view class="appraise-card" id="appraise">
- <view class="appraise-title">
- <view class="title">评价</view>
- <view class="comments">
- <view class="a-star">
- <zzx-icon name="star" size="10"></zzx-icon>
- <text>4.8</text>
- </view>
- <view class="a-text">| 37人评论</view>
- </view>
- </view>
- <view class="appraise-info" v-for="item in 5">
- <view class="a-user-info">
- <view class="info">
- <image src="https://img.keaitupian.cn/newupload/08/1629449018344288.jpg" mode=""></image>
- <view class="name">詹姆斯</view>
- </view>
- <view class="time">03-20</view>
- </view>
- <view class="a-score">
- <text>4.0</text>
- <uni-rate :readonly="true" size="16" :value="2" />
- </view>
- <view class="a-content">
- 詹姆四对孩子很有耐心,也非常照顾小朋友的情绪,
- 值得推荐!
- </view>
- <scroll-view class="scroll-view_H" scroll-x="true" :show-scrollbar="false">
- <view class="scroll-view-item_H uni-bg-red" v-for="item in 5">
- <image src="https://img.keaitupian.cn/newupload/08/1629449018344288.jpg" mode=""></image>
- </view>
- </scroll-view>
- </view>
- </view>
- </view>
- <view style="position: relative;z-index: 99999;">
- <selPopup :listData="placedata" :itemList="selItems" :deteObj="dateIndex" @change="onchange" ref="openPopup" />
- <uni-popup ref="placeInfoPopup" :safe-area="false" type="bottom">
- <view class="buyTips-box">
- <view class="buyTips-title">购买须知</view>
- <view class="rich-box" v-if="buyTipsObj">
- <rich-text :nodes="buyTipsObj.reminder"></rich-text>
- </view>
- </view>
- </uni-popup>
- <uni-popup ref="salesPopup" :safe-area="false" type="bottom">
- <view class="buyTips-box">
- <view class="buyTips-title">服务保障</view>
- <view class="rich-box">{{ salesTipsText }}</view>
- </view>
- </uni-popup>
- </view>
- </template>
- <script lang="ts" setup>
- import { ref, onMounted, getCurrentInstance, nextTick, computed } from 'vue';
- import { RouterUtils } from '@/utils/util';
- import { http } from '@/utils/http'
- import zzxNavbar from '@/components/zzx-navbar/zzx-navbar.vue';
- import { onLoad, onPageScroll } from '@dcloudio/uni-app';
- import loading from '@/components/zzx-loading/zzx-loading.vue';
- import selPopup from './components/popup.vue';
- import { useCacheStore } from '@/stores/cache'
- const cache = useCacheStore()
- const openPopup = ref(null);
- const placeInfoPopup = ref()
- const statusBarHeight = ref(0);
- const sectionTops = ref<number[]>([]);
- const isScrollingByTab = ref(false);
- const scrollTimer = ref<any>(null);
- const selectList = ref(['场地', '课程', '教练', '评价']);
- const sel_index = ref(0);
- const sel_btn = ref(0);
- const instance = getCurrentInstance();
- onLoad((option) => {
- listId.value = option.id
- })
- onMounted(() => {
- get_navheight()
- nextTick(() => {
- setTimeout(() => getSectionsTop(), 300);
- });
- get_placeInfo()
- get_allCategory()
- })
- const get_navheight = () => {
- const systemInfo = uni.getSystemInfoSync();
- statusBarHeight.value = systemInfo.statusBarHeight || 0;
- }
- // 打开选场弹窗
- const dateIndex = ref()
- const open_popup = (e, i) => {
- dateIndex.value = i
- get_placeInfoDetail(categoryId.value, i)
- openPopup.value?.open()
- }
- // 获取所有模块的位置信息
- const getSectionsTop = () => {
- const ids = ['detail', 'notice', 'schedule', 'appraise'];
- const query = uni.createSelectorQuery().in(instance.proxy);
- ids.forEach(id => {
- query.select(`#${id}`).boundingClientRect();
- });
- query.exec((rects) => {
- // 计算各模块相对于页面顶部的距离
- sectionTops.value = rects.map((rect: any) => rect.top - 130);
- })
- };
- //滚动事件
- onPageScroll((e) => {
- if (isScrollingByTab.value) return;
- if (scrollTimer.value) return;
- scrollTimer.value = setTimeout(() => {
- updateActiveTab(e.scrollTop);
- scrollTimer.value = null;
- }, 100);
- });
- // 根据滚动位置更新激活的Tab
- const updateActiveTab = (scrollTop: number) => {
- const offset = 130;
- const scrollPosition = scrollTop + offset;
- let activeIndex = 0;
- for (let i = 0; i < sectionTops.value.length; i++) {
- if (scrollPosition >= sectionTops.value[i]) {
- activeIndex = i;
- } else {
- break; // 模块位置已排序,可提前结束
- }
- }
- if (sel_index.value !== activeIndex) {
- sel_index.value = activeIndex;
- }
- };
- const sel_tab = async (i: number) => {
- isScrollingByTab.value = true; // 标记为Tab点击触发的滚动
- sel_index.value = i;
- const ids = ['detail', 'notice', 'schedule', 'appraise'];
- const id = ids[i];
- await scrollToTop();
- await nextTick();
- const query = uni.createSelectorQuery().in(instance.proxy);
- query.select(`#${id}`).boundingClientRect(data => {
- if (!data) return;
- uni.pageScrollTo({
- scrollTop: data.top - 130,
- duration: 500,
- complete: () => {
- setTimeout(() => {
- isScrollingByTab.value = false;
- }, 300);
- }
- });
- }).exec();
- }
- // 滚动到顶部
- const scrollToTop = () => {
- return new Promise(resolve => {
- uni.pageScrollTo({
- scrollTop: 0,
- duration: 0,
- success: resolve
- });
- });
- }
- // 打开地图
- const open_map = () => {
- uni.openLocation({
- latitude: detailInfo.value.latitude,
- longitude: detailInfo.value.longitude,
- success: function () {
- console.log('success');
- }
- });
- }
- // 拨打电话
- const open_phone = () => {
- uni.makePhoneCall({
- phoneNumber: detailInfo.value.phone
- });
- }
- // 详情信息
- const listId = ref(0);
- const detailInfo = ref({})
- const bannerList = ref([])
- const videoList = ref([])
- const noTeachingDay = ref()
- const teachingDay = ref()
- const get_placeInfo = () => {
- http.get('/detail/getPlaceInfo', { data: { id: listId.value }, loading: true }).then((res) => {
- const startIndex = res.result.cover ? res.result.cover.indexOf('"') + 1 : 0;
- const endIndex = res.result.cover ? res.result.cover.lastIndexOf('') : 0;
- bannerList.value = res.result.cover ? res.result.cover.slice(startIndex, endIndex).split(',') : [];
- let videoIndex = res.result.video ? res.result.video.indexOf('"') + 1 : 0;
- let videoEndIndex = res.result.video ? res.result.video.lastIndexOf('') : 0;
- videoList.value = res.result.video ? res.result.video.slice(videoIndex, videoEndIndex).split(',') : [];
- detailInfo.value = res.result
- noTeachingDay.value = JSON.parse(res.result.noTeachingDay)
- teachingDay.value = JSON.parse(res.result.teachingDay)
- })
- }
- // 课程分类
- const allCategoryList = ref([])
- const categoryId = ref()
- const get_allCategory = () => {
- http.get('/detail/getAllCategory', { data: { id: listId.value } }).then((res) => {
- categoryId.value = res.result[0].id
- allCategoryList.value = res.result
- get_courseList(categoryId.value)
- get_placeInfoNoFixation(categoryId.value)
- get_placeInfoDetail(categoryId.value, '')
- })
- }
- // 课程列表
- const courseList = ref([])
- const courseLoading = ref(false)
- const get_courseList = (categoryId) => {
- courseLoading.value = true
- http.get('/detail/courseInfoVOList', { data: { categoryId: categoryId, id: listId.value, longitude:cache.get('LON'), latitude:cache.get('LAT') }}).then((res) => {
- courseList.value = res.result
- courseLoading.value = false
- })
- }
- // 课程切换
- const selectallCategory = (e, i) => {
- sel_btn.value = i
- get_courseList(e.id)
- }
- // 包场切换
- const selChartered = ref(0)
- const selectChartered = (e, i) => {
- categoryId.value = e.id
- selChartered.value = i
- get_placeInfoNoFixation(e.id)
- get_placeInfoDetail(e.id, '')
- }
- // 包场信息
- const charteredList = ref()
- const get_placeInfoNoFixation = (categoryId) => {
- http.get('/detail/getPlaceInfoNoFixation', { data: { categoryId: categoryId, id: listId.value }, loading: true }).then((res) => {
- charteredList.value = res.result
- })
- }
- const buyTipsObj = ref()
- const buyTips = (e) => {
- placeInfoPopup.value.open()
- buyTipsObj.value = e
- }
- const salesPopup = ref()
- const salesTipsText = ref('')
- const serveTips = (e) => {
- salesPopup.value.open()
- if (e.sales === 0) {
- salesTipsText.value = '未消费随时退款,过期未消费自动退款。'
- } else if (e.sales === 2) {
- salesTipsText.value = '不支退款,请慎重考虑后购买。'
- }
- }
- const placedata = ref()
- const selItems = ref()
- const get_placeInfoDetail = (catId, dateIndex) => {
- http.get('/stadium/getPlaceInfo', { data: { siteId: listId.value, categoryId: catId } }).then((res) => {
- placedata.value = res.result
- selItems.value = res.result.stadiumConcertsVOList[dateIndex].concertsVOList
- })
- }
- const onchange = (e, i) => {
- selItems.value = e.concertsVOList
- dateIndex.value = i
- }
- </script>
- <style lang="less" scoped>
- .detail-header {
- position: relative;
- .header-bg {
- position: absolute;
- width: 100%;
- height: 432rpx;
- z-index: -100;
- }
- .back-icon {
- position: absolute;
- left: 20rpx;
- z-index: 9999;
- }
- .header-swiper {
- position: absolute;
- width: 740rpx;
- white-space: nowrap;
- overflow: hidden;
- /* 隐藏滚动条 */
- /deep/ ::-webkit-scrollbar {
- display: none;
- width: 0 !important;
- height: 0 !important;
- background: transparent;
- }
- .swiper-inner {
- display: inline-flex;
- align-items: center;
- gap: 14rpx;
- height: 100%;
- &>video,
- &>image {
- width: 220rpx;
- height: 126rpx;
- border-radius: 16rpx;
- flex-shrink: 0;
- }
- }
- }
- }
- .header-info {
- padding: 20rpx;
- background: #FFFFFF;
- border-radius: 16rpx 16rpx 0rpx 0rpx;
- .venue-name {
- display: flex;
- align-items: center;
- justify-content: space-between;
- .open-status {
- font-size: 24rpx;
- color: #4DD951;
- }
- .name {
- font-weight: 800;
- font-size: 32rpx;
- color: #222222;
- }
- .star {
- display: flex;
- align-items: center;
- gap: 10rpx;
- font-size: 28rpx;
- color: #FDD143;
- }
- }
- .open-time {
- margin-top: 20rpx;
- .time {
- font-size: 24rpx;
- color: #AAAAAA;
- &>view {
- margin-top: 20rpx;
- }
- }
- }
- .venues-tags {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-top: 20rpx;
- .tags-box {
- display: flex;
- flex-wrap: wrap;
- gap: 10rpx;
- .tags {
- padding: 8rpx 16rpx;
- font-size: 24rpx;
- color: #222222;
- background: #F5F5F5;
- border-radius: 8rpx;
- }
- }
- .more-info {
- display: flex;
- align-items: center;
- font-size: 24rpx;
- gap: 6rpx;
- color: #AAAAAA;
- }
- }
- .venues-address {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-top: 20rpx;
- background: #F9F9F9;
- border-radius: 16rpx;
- padding: 20rpx;
- .address {
- display: flex;
- align-items: center;
- gap: 10rpx;
- font-weight: bold;
- font-size: 24rpx;
- color: #222222;
- }
- .nav-phone {
- display: flex;
- align-items: center;
- gap: 20rpx;
- text-align: center;
- .nav,
- .phone {
- font-size: 22rpx;
- color: #222222;
- }
- }
- }
- }
- .detail-select {
- display: flex;
- align-items: center;
- gap: 60rpx;
- margin-top: 20rpx;
- height: 80rpx;
- background-color: #F6F6F6;
- .select-text,
- .notsel-text {
- position: relative;
- transition: all 0.3s ease;
- }
- .select-text {
- font-weight: 800;
- font-size: 32rpx;
- color: #222222;
- position: relative;
- }
- .notsel-text {
- font-size: 32rpx;
- color: #AAAAAA;
- }
- .select-text::after {
- position: absolute;
- content: '';
- width: 40rpx;
- height: 20rpx;
- background-color: #C8FF0C;
- border-radius: 4rpx;
- left: 050%;
- transform: translateX(-50%);
- bottom: -16rpx;
- transition: all 0.3s ease;
- opacity: 1;
- }
- .notsel-text::after {
- content: '';
- position: absolute;
- left: 50%;
- bottom: -16rpx;
- width: 0;
- height: 20rpx;
- background-color: #C8FF0C;
- border-radius: 4rpx;
- transform: translateX(-50%);
- opacity: 0;
- transition: all 0.3s ease;
- }
- }
- .venue-select-card {
- padding: 20rpx;
- background: linear-gradient(180deg, #FCFFF1 0%, #FFFFFF 100%);
- border-radius: 32rpx;
- .v-caed-header {
- display: flex;
- align-items: center;
- justify-content: space-around;
- height: 80rpx;
- font-size: 24rpx;
- color: #AAAAAA;
- border-bottom: 2rpx solid #F0F0F0;
- .v-left {
- display: flex;
- align-items: center;
- gap: 10rpx;
- }
- }
- .v-select-infocard {
- .select-btn {
- display: flex;
- align-items: center;
- gap: 20rpx;
- margin-top: 20rpx;
- .distance {
- width: 92rpx;
- height: 36rpx;
- background: #C8FF0C;
- border-radius: 8rpx;
- font-size: 24rpx;
- color: #222222;
- line-height: 34rpx;
- text-align: center;
- }
- .score {
- width: 92rpx;
- height: 36rpx;
- background: #F5F5F5;
- border-radius: 8rpx;
- font-size: 24rpx;
- color: #AAAAAA;
- line-height: 34rpx;
- text-align: center;
- }
- }
- .info-card-list {
- margin-top: 20rpx;
- .scroll-view_H {
- white-space: nowrap;
- width: 100%;
- .item-card {
- width: 200rpx;
- height: 132rpx;
- padding: 20rpx;
- background: #F6F6F6;
- border-radius: 16rpx;
- display: inline-block;
- margin-right: 16rpx;
- .today {
- font-size: 24rpx;
- color: #222222;
- }
- .time {
- margin-top: 12rpx;
- font-size: 24rpx;
- color: #222222;
- }
- .price {
- margin-top: 12rpx;
- font-weight: bold;
- font-size: 28rpx;
- color: #FB5B5B;
- }
- }
- }
- }
- }
- }
- .venue-card {
- padding: 20rpx;
- background: #FFFFFF;
- border-radius: 32rpx;
- margin-top: 20rpx;
- .card-title {
- display: flex;
- align-items: center;
- gap: 10rpx;
- font-size: 24rpx;
- color: #AAAAAA;
- &>view {
- margin-bottom: 10rpx;
- }
- }
- .item-card {
- margin-top: 20rpx;
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- gap: 20rpx;
- &>image {
- width: 200rpx;
- height: 200rpx;
- border-radius: 32rpx;
- }
- .venue-info {
- width: 430rpx;
- .info-title {
- display: flex;
- align-items: center;
- justify-content: space-between;
- .title {
- width: 340rpx;
- font-weight: 800;
- font-size: 32rpx;
- color: #222222;
- }
- .sales {
- font-size: 22rpx;
- color: #AAAAAA;
- }
- }
- .type {
- margin-top: 16rpx;
- font-size: 24rpx;
- color: #AAAAAA;
- }
- .price-info {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-top: 16rpx;
- .price {
- display: flex;
- align-items: center;
- gap: 20rpx;
- &>view:nth-child(1) {
- font-weight: bold;
- font-size: 28rpx;
- color: #FB5B5B;
- }
- &>view:nth-child(2) {
- font-size: 22rpx;
- color: #AAAAAA;
- text-decoration: line-through;
- }
- }
- .price-btn {
- width: 152rpx;
- height: 48rpx;
- background: #C8FF0C;
- border-radius: 8rpx;
- font-weight: bold;
- font-size: 28rpx;
- color: #222222;
- text-align: center;
- line-height: 48rpx;
- }
- }
- }
- .card-tips {
- display: flex;
- align-items: center;
- gap: 40rpx;
- flex-basis: 100%;
- height: 60rpx;
- border-bottom: 1rpx solid #F0F0F0;
- .item-tips {
- display: flex;
- align-items: center;
- gap: 10rpx;
- font-size: 22rpx;
- color: #222222;
- }
- }
- }
- }
- .course-card {
- padding: 20rpx;
- background: #FFFFFF;
- border-radius: 32rpx;
- margin-top: 20rpx;
- .course-tips {
- display: flex;
- align-items: center;
- gap: 10rpx;
- font-size: 24rpx;
- color: #999999;
- &>view:first-child {
- width: 32rpx;
- height: 32rpx;
- background: #FFA347;
- border-radius: 50%;
- display: flex;
- justify-content: center;
- align-items: center;
- color: #FFFFFF;
- }
- }
- .select-btn {
- display: flex;
- align-items: center;
- gap: 20rpx;
- margin-top: 20rpx;
- .distance {
- width: 92rpx;
- height: 36rpx;
- background: #C8FF0C;
- border-radius: 8rpx;
- font-size: 24rpx;
- color: #222222;
- line-height: 34rpx;
- text-align: center;
- }
- .score {
- width: 92rpx;
- height: 36rpx;
- background: #F5F5F5;
- border-radius: 8rpx;
- font-size: 24rpx;
- color: #AAAAAA;
- line-height: 34rpx;
- text-align: center;
- }
- }
- .venue-card {
- display: flex;
- align-items: center;
- gap: 20rpx;
- margin-top: 20rpx;
- &>image {
- width: 200rpx;
- height: 200rpx;
- border-radius: 32rpx;
- }
- .venue-info {
- width: 430rpx;
- height: 220rpx;
- border-bottom: 1rpx solid #F0F0F0;
- .info-title {
- display: flex;
- align-items: center;
- justify-content: space-between;
- .title {
- width: 340rpx;
- font-weight: 800;
- font-size: 32rpx;
- color: #222222;
- }
- .sales {
- font-size: 22rpx;
- color: #AAAAAA;
- }
- }
- .type {
- margin-top: 16rpx;
- font-size: 24rpx;
- color: #AAAAAA;
- }
- .price {
- display: flex;
- align-items: center;
- gap: 20rpx;
- margin-top: 16rpx;
- &>view:nth-child(1) {
- font-weight: bold;
- font-size: 28rpx;
- color: #FB5B5B;
- }
- &>view:nth-child(2) {
- font-size: 22rpx;
- color: #AAAAAA;
- text-decoration: line-through;
- }
- }
- .course-count {
- font-size: 22rpx;
- color: #AAAAAA;
- }
- .price-info {
- display: flex;
- align-items: center;
- justify-content: space-between;
- .sale {
- font-size: 24rpx;
- color: #AAAAAA;
- }
- .price-btn {
- width: 152rpx;
- height: 48rpx;
- background: #C8FF0C;
- border-radius: 8rpx;
- font-weight: bold;
- font-size: 28rpx;
- color: #222222;
- text-align: center;
- line-height: 48rpx;
- }
- }
- }
- }
- .more {
- margin: auto;
- width: 100rpx;
- margin-top: 20rpx;
- text-align: center;
- font-size: 24rpx;
- color: #CCCCCC;
- position: relative;
- }
- .more::after {
- position: absolute;
- bottom: -10rpx;
- left: 25rpx;
- content: '';
- width: 38rpx;
- height: 4rpx;
- border-radius: 2rpx;
- background-color: #CCCCCC;
- }
- }
- .instructor-card {
- padding: 20rpx;
- background: #FFFFFF;
- border-radius: 32rpx;
- margin-top: 20rpx;
- overflow: hidden;
- .card-title {
- display: flex;
- align-items: center;
- justify-content: space-between;
- font-weight: 800;
- font-size: 32rpx;
- color: #222222;
- }
- .header-swiper {
- margin-top: 24rpx;
- width: 700rpx;
- white-space: nowrap;
- overflow: hidden;
- /* 隐藏滚动条 */
- /deep/ ::-webkit-scrollbar {
- display: none;
- width: 0 !important;
- height: 0 !important;
- background: transparent;
- }
- .swiper-box {
- display: flex;
- align-items: center;
- gap: 44rpx;
- .swiper-inner {
- width: 100rpx;
- text-align: center;
- .header-img {
- position: relative;
- image {
- width: 100rpx;
- height: 100rpx;
- border-radius: 50%;
- &:nth-child(2) {
- position: absolute;
- bottom: 0;
- right: 0;
- width: 36rpx;
- height: 36rpx;
- }
- }
- }
- .instructor-name {
- font-size: 28rpx;
- font-weight: 600;
- }
- .instructor-specialty {
- font-size: 22rpx;
- color: #AAAAAA;
- }
- }
- }
- }
- }
- .appraise-card {
- padding: 20rpx;
- background: #FFFFFF;
- border-radius: 32rpx;
- margin-top: 20rpx;
- .appraise-title {
- display: flex;
- align-items: center;
- justify-content: space-between;
- .title {
- font-weight: 800;
- font-size: 32rpx;
- color: #222222;
- }
- .comments {
- display: flex;
- align-items: center;
- gap: 16rpx;
- .a-star {
- font-size: 24rpx;
- color: #FDD143;
- }
- .a-text {
- font-size: 24rpx;
- color: #AAAAAA;
- }
- }
- }
- .appraise-info {
- margin-top: 20rpx;
- .a-user-info {
- display: flex;
- align-items: center;
- justify-content: space-between;
- .info {
- display: flex;
- align-items: center;
- gap: 20rpx;
- &>image {
- width: 60rpx;
- height: 60rpx;
- border-radius: 50%;
- }
- .name {
- font-weight: bold;
- font-size: 24rpx;
- color: #222222;
- }
- }
- .time {
- font-size: 24rpx;
- color: #AAAAAA;
- }
- }
- .a-score {
- font-size: 24rpx;
- color: #AAAAAA;
- display: flex;
- align-items: center;
- gap: 20rpx;
- margin-top: 20rpx;
- }
- .a-content {
- margin-top: 20rpx;
- font-size: 28rpx;
- color: #222222;
- }
- .scroll-view_H {
- white-space: nowrap;
- width: 100%;
- height: 220rpx;
- margin-top: 20rpx;
- border-bottom: 1rpx solid #F0F0F0;
- .scroll-view-item_H {
- display: inline-block;
- text-align: center;
- margin-right: 14rpx;
- &>image {
- width: 202rpx;
- height: 200rpx;
- background: #D8D8D8;
- border-radius: 32rpx;
- }
- }
- }
- }
- }
- .buyTips-box {
- background: #F6F6F6;
- border-radius: 32rpx 32rpx 0rpx 0rpx;
- max-height: 1200rpx;
- overflow: auto;
- padding: 20rpx;
- .buyTips-title {
- text-align: center;
- font-size: 28rpx;
- font-weight: bold;
- }
- .rich-box {
- margin-top: 20rpx;
- }
- }
- </style>
|