index.vue 28 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274
  1. <template>
  2. <zzx-navbar :scrollable="true" :back="true" title="详情"></zzx-navbar>
  3. <view class="detail-header">
  4. <image class="header-bg" :src="'http://192.168.1.166:8080/jeecg-boot/sys/common/static/' + bannerList[0]" mode="">
  5. </image>
  6. <view class="back-icon" :style="{ paddingTop: (statusBarHeight + 10) + 'px' }" @click="RouterUtils.back()">
  7. <zzx-icon name="back"></zzx-icon>
  8. </view>
  9. <view :style="{ height: (statusBarHeight + 70) + 'px' }"></view>
  10. <scroll-view class="header-swiper content" scroll-x="true" :show-scrollbar="false">
  11. <view class="swiper-inner">
  12. <block v-if="detailInfo.video">
  13. <video v-for="(item, index) in videoList" :key="index" :src="item"></video>
  14. </block>
  15. <image v-for="(item, index) in bannerList" :key="index"
  16. :src="'http://192.168.1.166:8080/jeecg-boot/sys/common/static/' + item" mode=""></image>
  17. </view>
  18. </scroll-view>
  19. </view>
  20. <view :style="{ height: (statusBarHeight + 34) + 'px' }"></view>
  21. <view class="header-info">
  22. <view class="venue-name">
  23. <view style="display: flex;gap: 20rpx;align-items: center;">
  24. <view class="name">{{ detailInfo.name }}</view>
  25. <view class="open-status">{{ detailInfo.runStatus ? '营业中' : '歇业中' }}</view>
  26. </view>
  27. <view class="star">
  28. <zzx-icon name="star" size="12"></zzx-icon>
  29. <text>{{ detailInfo.goodRate }}</text>
  30. </view>
  31. </view>
  32. <view class="open-time" v-if="teachingDay">
  33. <view class="time">
  34. <view>教学日 <text style="margin-right: 14rpx;" v-for="(item, index) in teachingDay.data"
  35. :key="index">{{ item.startTime + '-' + item.endTime || '--' }}</text></view>
  36. <view class="">非教学日 <text style="margin-right: 14rpx;" v-for="(item, index) in noTeachingDay.data"
  37. :key="index">{{ item.startTime + '-' + item.endTime || '--' }}</text></view>
  38. </view>
  39. </view>
  40. <view class="venues-tags">
  41. <view class="tags-box">
  42. <view class="tags" v-for="(item, index) in detailInfo.facilityInfo" :key="index">{{ item }}</view>
  43. </view>
  44. <!-- <view class="more-info" @click="RouterUtils.to_page('/pages/index/basisInfo/index')">
  45. <text>信息/设备设施</text>
  46. <zzx-icon name="ashRight" size="10"></zzx-icon>
  47. </view> -->
  48. </view>
  49. <view class="venues-address">
  50. <view class="address">
  51. <zzx-icon name="location" size="14"></zzx-icon>
  52. <text>{{ detailInfo.address }}</text>
  53. </view>
  54. <view class="nav-phone">
  55. <view class="nav" @click="open_map">
  56. <zzx-icon name="navigation" size="14"></zzx-icon>
  57. <view class="">导航</view>
  58. </view>
  59. <view class="phone" @click="open_phone">
  60. <zzx-icon name="phone" size="14"></zzx-icon>
  61. <view class="">电话</view>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. <view class="content">
  67. <uv-sticky offset-top="74">
  68. <view class="detail-select">
  69. <view :class="sel_index === index ? 'select-text' : 'notsel-text'" v-for="(item, index) in selectList"
  70. :key="index" @click="sel_tab(index)">
  71. <text>{{ item }}</text>
  72. </view>
  73. </view>
  74. </uv-sticky>
  75. <view id="detail">
  76. <view class="venue-select-card">
  77. <view class="v-caed-header">
  78. <view class="v-left">
  79. <zzx-icon name="venue-icon1" size="14"></zzx-icon>
  80. <view style="margin-bottom: 10rpx;">包场</view>
  81. </view>
  82. <view class="" v-if="charteredList">
  83. 开场前{{ charteredList.earlyRefundTime }}分钟随时退
  84. </view>
  85. <view class="v-left"
  86. @click="RouterUtils.to_page(`/pages/index/vr/index?vrImg=${detailInfo.vr}`)">
  87. <zzx-icon name="venue-icon2" size="14"></zzx-icon>
  88. <view style="margin-bottom: 10rpx;">VR实景</view>
  89. </view>
  90. </view>
  91. <view class="v-select-infocard">
  92. <view class="select-btn">
  93. <view :class="selChartered === index ? 'distance' : 'score'" v-for="(item, index) in allCategoryList"
  94. :key="item.id" @click="selectChartered(item, index)">{{ item.name }}</view>
  95. </view>
  96. <view class="info-card-list" v-if="charteredList">
  97. <scroll-view scroll-x="true" class="scroll-view_H">
  98. <view class="item-card scroll-view-item_H" v-for="(item, index) in charteredList.timeSlot"
  99. :key="item.id" @click="open_popup(item, index)">
  100. <view class="today">{{ item.dateLabel }}</view>
  101. <view class="time">最早{{ item.startTime }}可订</view>
  102. <view class="price">¥{{ item.sellingPrice }}起</view>
  103. </view>
  104. <view class="not-data" v-if="charteredList.timeSlot.length < 1">暂无可选时间</view>
  105. </scroll-view>
  106. </view>
  107. </view>
  108. </view>
  109. <view class="venue-card">
  110. <view class="card-title">
  111. <zzx-icon name="venue-icon3" size="14"></zzx-icon>
  112. <view class="">无固定场</view>
  113. </view>
  114. <view class="item-card" v-for="(item, index) in detailInfo.placeInfoMsgVO" :key="item.id">
  115. <image :src="item.cover" mode=""></image>
  116. <view class="venue-info">
  117. <view class="info-title">
  118. <view class="title textHidden">{{ item.name }}</view>
  119. <view class="sales">年售{{ item.sales }}</view>
  120. </view>
  121. <!-- <view class="type">
  122. 篮球、足球、羽毛球
  123. </view> -->
  124. <view class="price-info">
  125. <view class="price">
  126. <view class="">¥{{ item.sellingPrice }}</view>
  127. <view class="">¥{{ item.originalPrice }}</view>
  128. </view>
  129. <view class="price-btn"
  130. @click="RouterUtils.to_page(`/pages/index/gymPay/index?type=1&placeId=${item.id}`)">抢购
  131. </view>
  132. </view>
  133. </view>
  134. <view class="card-tips">
  135. <view class="item-tips" @click="buyTips(item)">
  136. <text>购买须知</text>
  137. <zzx-icon name="ashRight" size="10"></zzx-icon>
  138. </view>
  139. <view class="item-tips" @click="serveTips(item)">
  140. <text>服务保障</text>
  141. <zzx-icon name="ashRight" size="10"></zzx-icon>
  142. </view>
  143. <!-- <view class="item-tips">
  144. <text>用户评价</text>
  145. <zzx-icon name="ashRight" size="10"></zzx-icon>
  146. </view> -->
  147. </view>
  148. </view>
  149. <view class="not-data" v-if="detailInfo.placeInfoMsgVO.length < 1">暂无场地数据</view>
  150. </view>
  151. </view>
  152. <view class="course-card" id="notice">
  153. <view class="course-tips">
  154. <view class="">!</view>
  155. <view class="">全平台每种类型的运动课程只可免费试听一次</view>
  156. </view>
  157. <view class="select-btn">
  158. <view :class="sel_btn === index ? 'distance' : 'score'" v-for="(item, index) in allCategoryList" :key="item.id"
  159. @click="selectallCategory(item, index)">{{ item.name }}</view>
  160. </view>
  161. <block v-if="!courseLoading">
  162. <view class="venue-card" v-for="item in courseList" :key="item.id" @click="toCOurseDetail">
  163. <image :src="item.cover" mode=""></image>
  164. <view class="venue-info">
  165. <view class="info-title">
  166. <view class="title textHidden">{{ item.name }}</view>
  167. <view class="sales">年售{{ item.salesYear }}</view>
  168. </view>
  169. <view class="type">
  170. {{ item.address }} {{ item.km || '--' }}km
  171. </view>
  172. <view class="price">
  173. <view class="">¥{{ item.sellingPrice }}</view>
  174. <view class="">¥{{ item.originalPrice }}</view>
  175. </view>
  176. <view class="course-count">
  177. {{ item.period }}课时 {{ item.startTime }}-{{ item.endTime }}
  178. </view>
  179. <view class="price-info">
  180. <view class="sale">
  181. 已售{{ item.sales }} {{ item.goodRate }}%好评
  182. </view>
  183. <view class="price-btn"
  184. @click="RouterUtils.to_page(`/pages/index/courseDetail/index?id=${item.id}&type=2`)">
  185. 免费试听
  186. </view>
  187. </view>
  188. </view>
  189. </view>
  190. </block>
  191. <loading v-else />
  192. <view class="not-data" v-if="courseList.length < 1 && !courseLoading">暂无数据</view>
  193. <!-- <view class="more">查看更多</view> -->
  194. </view>
  195. <view class="instructor-card" id="schedule">
  196. <view class="card-title" @click="RouterUtils.to_page('/pages/index/allInstructor/index')">
  197. <view class="">教练({{ detailInfo.instructorVOList.length }})</view>
  198. <zzx-icon name="right" size="12"></zzx-icon>
  199. </view>
  200. <scroll-view class="header-swiper content" scroll-x="true" :show-scrollbar="false">
  201. <view class="swiper-box">
  202. <view class="swiper-inner" v-for="item in detailInfo.instructorVOList" :key="item.id"
  203. @click="RouterUtils.to_page(`/pages/index/instructorDetail/index?id=${item.id}`)">
  204. <view class="header-img">
  205. <image :src="item.avatar" mode=""></image>
  206. <image src="/src/static/badge.png" mode=""></image>
  207. </view>
  208. <view class="instructor-name">{{ item.name }}</view>
  209. <view class="instructor-specialty">篮球</view>
  210. </view>
  211. </view>
  212. </scroll-view>
  213. </view>
  214. <view class="appraise-card" id="appraise">
  215. <view class="appraise-title">
  216. <view class="title">评价</view>
  217. <view class="comments">
  218. <view class="a-star">
  219. <zzx-icon name="star" size="10"></zzx-icon>
  220. <text>4.8</text>
  221. </view>
  222. <view class="a-text">| 37人评论</view>
  223. </view>
  224. </view>
  225. <view class="appraise-info" v-for="item in 5">
  226. <view class="a-user-info">
  227. <view class="info">
  228. <image src="https://img.keaitupian.cn/newupload/08/1629449018344288.jpg" mode=""></image>
  229. <view class="name">詹姆斯</view>
  230. </view>
  231. <view class="time">03-20</view>
  232. </view>
  233. <view class="a-score">
  234. <text>4.0</text>
  235. <uni-rate :readonly="true" size="16" :value="2" />
  236. </view>
  237. <view class="a-content">
  238. 詹姆四对孩子很有耐心,也非常照顾小朋友的情绪,
  239. 值得推荐!
  240. </view>
  241. <scroll-view class="scroll-view_H" scroll-x="true" :show-scrollbar="false">
  242. <view class="scroll-view-item_H uni-bg-red" v-for="item in 5">
  243. <image src="https://img.keaitupian.cn/newupload/08/1629449018344288.jpg" mode=""></image>
  244. </view>
  245. </scroll-view>
  246. </view>
  247. </view>
  248. </view>
  249. <view style="position: relative;z-index: 99999;">
  250. <selPopup :listData="placedata" :itemList="selItems" :deteObj="dateIndex" @change="onchange" ref="openPopup" />
  251. <uni-popup ref="placeInfoPopup" :safe-area="false" type="bottom">
  252. <view class="buyTips-box">
  253. <view class="buyTips-title">购买须知</view>
  254. <view class="rich-box" v-if="buyTipsObj">
  255. <rich-text :nodes="buyTipsObj.reminder"></rich-text>
  256. </view>
  257. </view>
  258. </uni-popup>
  259. <uni-popup ref="salesPopup" :safe-area="false" type="bottom">
  260. <view class="buyTips-box">
  261. <view class="buyTips-title">服务保障</view>
  262. <view class="rich-box">{{ salesTipsText }}</view>
  263. </view>
  264. </uni-popup>
  265. </view>
  266. </template>
  267. <script lang="ts" setup>
  268. import { ref, onMounted, getCurrentInstance, nextTick, computed } from 'vue';
  269. import { RouterUtils } from '@/utils/util';
  270. import { http } from '@/utils/http'
  271. import zzxNavbar from '@/components/zzx-navbar/zzx-navbar.vue';
  272. import { onLoad, onPageScroll } from '@dcloudio/uni-app';
  273. import loading from '@/components/zzx-loading/zzx-loading.vue';
  274. import selPopup from './components/popup.vue';
  275. import { useCacheStore } from '@/stores/cache'
  276. const cache = useCacheStore()
  277. const openPopup = ref(null);
  278. const placeInfoPopup = ref()
  279. const statusBarHeight = ref(0);
  280. const sectionTops = ref<number[]>([]);
  281. const isScrollingByTab = ref(false);
  282. const scrollTimer = ref<any>(null);
  283. const selectList = ref(['场地', '课程', '教练', '评价']);
  284. const sel_index = ref(0);
  285. const sel_btn = ref(0);
  286. const instance = getCurrentInstance();
  287. onLoad((option) => {
  288. listId.value = option.id
  289. })
  290. onMounted(() => {
  291. get_navheight()
  292. nextTick(() => {
  293. setTimeout(() => getSectionsTop(), 300);
  294. });
  295. get_placeInfo()
  296. get_allCategory()
  297. })
  298. const get_navheight = () => {
  299. const systemInfo = uni.getSystemInfoSync();
  300. statusBarHeight.value = systemInfo.statusBarHeight || 0;
  301. }
  302. // 打开选场弹窗
  303. const dateIndex = ref()
  304. const open_popup = (e, i) => {
  305. dateIndex.value = i
  306. get_placeInfoDetail(categoryId.value, i)
  307. openPopup.value?.open()
  308. }
  309. // 获取所有模块的位置信息
  310. const getSectionsTop = () => {
  311. const ids = ['detail', 'notice', 'schedule', 'appraise'];
  312. const query = uni.createSelectorQuery().in(instance.proxy);
  313. ids.forEach(id => {
  314. query.select(`#${id}`).boundingClientRect();
  315. });
  316. query.exec((rects) => {
  317. // 计算各模块相对于页面顶部的距离
  318. sectionTops.value = rects.map((rect: any) => rect.top - 130);
  319. })
  320. };
  321. //滚动事件
  322. onPageScroll((e) => {
  323. if (isScrollingByTab.value) return;
  324. if (scrollTimer.value) return;
  325. scrollTimer.value = setTimeout(() => {
  326. updateActiveTab(e.scrollTop);
  327. scrollTimer.value = null;
  328. }, 100);
  329. });
  330. // 根据滚动位置更新激活的Tab
  331. const updateActiveTab = (scrollTop: number) => {
  332. const offset = 130;
  333. const scrollPosition = scrollTop + offset;
  334. let activeIndex = 0;
  335. for (let i = 0; i < sectionTops.value.length; i++) {
  336. if (scrollPosition >= sectionTops.value[i]) {
  337. activeIndex = i;
  338. } else {
  339. break; // 模块位置已排序,可提前结束
  340. }
  341. }
  342. if (sel_index.value !== activeIndex) {
  343. sel_index.value = activeIndex;
  344. }
  345. };
  346. const sel_tab = async (i: number) => {
  347. isScrollingByTab.value = true; // 标记为Tab点击触发的滚动
  348. sel_index.value = i;
  349. const ids = ['detail', 'notice', 'schedule', 'appraise'];
  350. const id = ids[i];
  351. await scrollToTop();
  352. await nextTick();
  353. const query = uni.createSelectorQuery().in(instance.proxy);
  354. query.select(`#${id}`).boundingClientRect(data => {
  355. if (!data) return;
  356. uni.pageScrollTo({
  357. scrollTop: data.top - 130,
  358. duration: 500,
  359. complete: () => {
  360. setTimeout(() => {
  361. isScrollingByTab.value = false;
  362. }, 300);
  363. }
  364. });
  365. }).exec();
  366. }
  367. // 滚动到顶部
  368. const scrollToTop = () => {
  369. return new Promise(resolve => {
  370. uni.pageScrollTo({
  371. scrollTop: 0,
  372. duration: 0,
  373. success: resolve
  374. });
  375. });
  376. }
  377. // 打开地图
  378. const open_map = () => {
  379. uni.openLocation({
  380. latitude: detailInfo.value.latitude,
  381. longitude: detailInfo.value.longitude,
  382. success: function () {
  383. console.log('success');
  384. }
  385. });
  386. }
  387. // 拨打电话
  388. const open_phone = () => {
  389. uni.makePhoneCall({
  390. phoneNumber: detailInfo.value.phone
  391. });
  392. }
  393. // 详情信息
  394. const listId = ref(0);
  395. const detailInfo = ref({})
  396. const bannerList = ref([])
  397. const videoList = ref([])
  398. const noTeachingDay = ref()
  399. const teachingDay = ref()
  400. const get_placeInfo = () => {
  401. http.get('/detail/getPlaceInfo', { data: { id: listId.value }, loading: true }).then((res) => {
  402. const startIndex = res.result.cover ? res.result.cover.indexOf('"') + 1 : 0;
  403. const endIndex = res.result.cover ? res.result.cover.lastIndexOf('') : 0;
  404. bannerList.value = res.result.cover ? res.result.cover.slice(startIndex, endIndex).split(',') : [];
  405. let videoIndex = res.result.video ? res.result.video.indexOf('"') + 1 : 0;
  406. let videoEndIndex = res.result.video ? res.result.video.lastIndexOf('') : 0;
  407. videoList.value = res.result.video ? res.result.video.slice(videoIndex, videoEndIndex).split(',') : [];
  408. detailInfo.value = res.result
  409. noTeachingDay.value = JSON.parse(res.result.noTeachingDay)
  410. teachingDay.value = JSON.parse(res.result.teachingDay)
  411. })
  412. }
  413. // 课程分类
  414. const allCategoryList = ref([])
  415. const categoryId = ref()
  416. const get_allCategory = () => {
  417. http.get('/detail/getAllCategory', { data: { id: listId.value } }).then((res) => {
  418. categoryId.value = res.result[0].id
  419. allCategoryList.value = res.result
  420. get_courseList(categoryId.value)
  421. get_placeInfoNoFixation(categoryId.value)
  422. get_placeInfoDetail(categoryId.value, '')
  423. })
  424. }
  425. // 课程列表
  426. const courseList = ref([])
  427. const courseLoading = ref(false)
  428. const get_courseList = (categoryId) => {
  429. courseLoading.value = true
  430. http.get('/detail/courseInfoVOList', { data: { categoryId: categoryId, id: listId.value, longitude:cache.get('LON'), latitude:cache.get('LAT') }}).then((res) => {
  431. courseList.value = res.result
  432. courseLoading.value = false
  433. })
  434. }
  435. // 课程切换
  436. const selectallCategory = (e, i) => {
  437. sel_btn.value = i
  438. get_courseList(e.id)
  439. }
  440. // 包场切换
  441. const selChartered = ref(0)
  442. const selectChartered = (e, i) => {
  443. categoryId.value = e.id
  444. selChartered.value = i
  445. get_placeInfoNoFixation(e.id)
  446. get_placeInfoDetail(e.id, '')
  447. }
  448. // 包场信息
  449. const charteredList = ref()
  450. const get_placeInfoNoFixation = (categoryId) => {
  451. http.get('/detail/getPlaceInfoNoFixation', { data: { categoryId: categoryId, id: listId.value }, loading: true }).then((res) => {
  452. charteredList.value = res.result
  453. })
  454. }
  455. const buyTipsObj = ref()
  456. const buyTips = (e) => {
  457. placeInfoPopup.value.open()
  458. buyTipsObj.value = e
  459. }
  460. const salesPopup = ref()
  461. const salesTipsText = ref('')
  462. const serveTips = (e) => {
  463. salesPopup.value.open()
  464. if (e.sales === 0) {
  465. salesTipsText.value = '未消费随时退款,过期未消费自动退款。'
  466. } else if (e.sales === 2) {
  467. salesTipsText.value = '不支退款,请慎重考虑后购买。'
  468. }
  469. }
  470. const placedata = ref()
  471. const selItems = ref()
  472. const get_placeInfoDetail = (catId, dateIndex) => {
  473. http.get('/stadium/getPlaceInfo', { data: { siteId: listId.value, categoryId: catId } }).then((res) => {
  474. placedata.value = res.result
  475. selItems.value = res.result.stadiumConcertsVOList[dateIndex].concertsVOList
  476. })
  477. }
  478. const onchange = (e, i) => {
  479. selItems.value = e.concertsVOList
  480. dateIndex.value = i
  481. }
  482. </script>
  483. <style lang="less" scoped>
  484. .detail-header {
  485. position: relative;
  486. .header-bg {
  487. position: absolute;
  488. width: 100%;
  489. height: 432rpx;
  490. z-index: -100;
  491. }
  492. .back-icon {
  493. position: absolute;
  494. left: 20rpx;
  495. z-index: 9999;
  496. }
  497. .header-swiper {
  498. position: absolute;
  499. width: 740rpx;
  500. white-space: nowrap;
  501. overflow: hidden;
  502. /* 隐藏滚动条 */
  503. /deep/ ::-webkit-scrollbar {
  504. display: none;
  505. width: 0 !important;
  506. height: 0 !important;
  507. background: transparent;
  508. }
  509. .swiper-inner {
  510. display: inline-flex;
  511. align-items: center;
  512. gap: 14rpx;
  513. height: 100%;
  514. &>video,
  515. &>image {
  516. width: 220rpx;
  517. height: 126rpx;
  518. border-radius: 16rpx;
  519. flex-shrink: 0;
  520. }
  521. }
  522. }
  523. }
  524. .header-info {
  525. padding: 20rpx;
  526. background: #FFFFFF;
  527. border-radius: 16rpx 16rpx 0rpx 0rpx;
  528. .venue-name {
  529. display: flex;
  530. align-items: center;
  531. justify-content: space-between;
  532. .open-status {
  533. font-size: 24rpx;
  534. color: #4DD951;
  535. }
  536. .name {
  537. font-weight: 800;
  538. font-size: 32rpx;
  539. color: #222222;
  540. }
  541. .star {
  542. display: flex;
  543. align-items: center;
  544. gap: 10rpx;
  545. font-size: 28rpx;
  546. color: #FDD143;
  547. }
  548. }
  549. .open-time {
  550. margin-top: 20rpx;
  551. .time {
  552. font-size: 24rpx;
  553. color: #AAAAAA;
  554. &>view {
  555. margin-top: 20rpx;
  556. }
  557. }
  558. }
  559. .venues-tags {
  560. display: flex;
  561. align-items: center;
  562. justify-content: space-between;
  563. margin-top: 20rpx;
  564. .tags-box {
  565. display: flex;
  566. flex-wrap: wrap;
  567. gap: 10rpx;
  568. .tags {
  569. padding: 8rpx 16rpx;
  570. font-size: 24rpx;
  571. color: #222222;
  572. background: #F5F5F5;
  573. border-radius: 8rpx;
  574. }
  575. }
  576. .more-info {
  577. display: flex;
  578. align-items: center;
  579. font-size: 24rpx;
  580. gap: 6rpx;
  581. color: #AAAAAA;
  582. }
  583. }
  584. .venues-address {
  585. display: flex;
  586. align-items: center;
  587. justify-content: space-between;
  588. margin-top: 20rpx;
  589. background: #F9F9F9;
  590. border-radius: 16rpx;
  591. padding: 20rpx;
  592. .address {
  593. display: flex;
  594. align-items: center;
  595. gap: 10rpx;
  596. font-weight: bold;
  597. font-size: 24rpx;
  598. color: #222222;
  599. }
  600. .nav-phone {
  601. display: flex;
  602. align-items: center;
  603. gap: 20rpx;
  604. text-align: center;
  605. .nav,
  606. .phone {
  607. font-size: 22rpx;
  608. color: #222222;
  609. }
  610. }
  611. }
  612. }
  613. .detail-select {
  614. display: flex;
  615. align-items: center;
  616. gap: 60rpx;
  617. margin-top: 20rpx;
  618. height: 80rpx;
  619. background-color: #F6F6F6;
  620. .select-text,
  621. .notsel-text {
  622. position: relative;
  623. transition: all 0.3s ease;
  624. }
  625. .select-text {
  626. font-weight: 800;
  627. font-size: 32rpx;
  628. color: #222222;
  629. position: relative;
  630. }
  631. .notsel-text {
  632. font-size: 32rpx;
  633. color: #AAAAAA;
  634. }
  635. .select-text::after {
  636. position: absolute;
  637. content: '';
  638. width: 40rpx;
  639. height: 20rpx;
  640. background-color: #C8FF0C;
  641. border-radius: 4rpx;
  642. left: 050%;
  643. transform: translateX(-50%);
  644. bottom: -16rpx;
  645. transition: all 0.3s ease;
  646. opacity: 1;
  647. }
  648. .notsel-text::after {
  649. content: '';
  650. position: absolute;
  651. left: 50%;
  652. bottom: -16rpx;
  653. width: 0;
  654. height: 20rpx;
  655. background-color: #C8FF0C;
  656. border-radius: 4rpx;
  657. transform: translateX(-50%);
  658. opacity: 0;
  659. transition: all 0.3s ease;
  660. }
  661. }
  662. .venue-select-card {
  663. padding: 20rpx;
  664. background: linear-gradient(180deg, #FCFFF1 0%, #FFFFFF 100%);
  665. border-radius: 32rpx;
  666. .v-caed-header {
  667. display: flex;
  668. align-items: center;
  669. justify-content: space-around;
  670. height: 80rpx;
  671. font-size: 24rpx;
  672. color: #AAAAAA;
  673. border-bottom: 2rpx solid #F0F0F0;
  674. .v-left {
  675. display: flex;
  676. align-items: center;
  677. gap: 10rpx;
  678. }
  679. }
  680. .v-select-infocard {
  681. .select-btn {
  682. display: flex;
  683. align-items: center;
  684. gap: 20rpx;
  685. margin-top: 20rpx;
  686. .distance {
  687. width: 92rpx;
  688. height: 36rpx;
  689. background: #C8FF0C;
  690. border-radius: 8rpx;
  691. font-size: 24rpx;
  692. color: #222222;
  693. line-height: 34rpx;
  694. text-align: center;
  695. }
  696. .score {
  697. width: 92rpx;
  698. height: 36rpx;
  699. background: #F5F5F5;
  700. border-radius: 8rpx;
  701. font-size: 24rpx;
  702. color: #AAAAAA;
  703. line-height: 34rpx;
  704. text-align: center;
  705. }
  706. }
  707. .info-card-list {
  708. margin-top: 20rpx;
  709. .scroll-view_H {
  710. white-space: nowrap;
  711. width: 100%;
  712. .item-card {
  713. width: 200rpx;
  714. height: 132rpx;
  715. padding: 20rpx;
  716. background: #F6F6F6;
  717. border-radius: 16rpx;
  718. display: inline-block;
  719. margin-right: 16rpx;
  720. .today {
  721. font-size: 24rpx;
  722. color: #222222;
  723. }
  724. .time {
  725. margin-top: 12rpx;
  726. font-size: 24rpx;
  727. color: #222222;
  728. }
  729. .price {
  730. margin-top: 12rpx;
  731. font-weight: bold;
  732. font-size: 28rpx;
  733. color: #FB5B5B;
  734. }
  735. }
  736. }
  737. }
  738. }
  739. }
  740. .venue-card {
  741. padding: 20rpx;
  742. background: #FFFFFF;
  743. border-radius: 32rpx;
  744. margin-top: 20rpx;
  745. .card-title {
  746. display: flex;
  747. align-items: center;
  748. gap: 10rpx;
  749. font-size: 24rpx;
  750. color: #AAAAAA;
  751. &>view {
  752. margin-bottom: 10rpx;
  753. }
  754. }
  755. .item-card {
  756. margin-top: 20rpx;
  757. display: flex;
  758. align-items: center;
  759. flex-wrap: wrap;
  760. gap: 20rpx;
  761. &>image {
  762. width: 200rpx;
  763. height: 200rpx;
  764. border-radius: 32rpx;
  765. }
  766. .venue-info {
  767. width: 430rpx;
  768. .info-title {
  769. display: flex;
  770. align-items: center;
  771. justify-content: space-between;
  772. .title {
  773. width: 340rpx;
  774. font-weight: 800;
  775. font-size: 32rpx;
  776. color: #222222;
  777. }
  778. .sales {
  779. font-size: 22rpx;
  780. color: #AAAAAA;
  781. }
  782. }
  783. .type {
  784. margin-top: 16rpx;
  785. font-size: 24rpx;
  786. color: #AAAAAA;
  787. }
  788. .price-info {
  789. display: flex;
  790. align-items: center;
  791. justify-content: space-between;
  792. margin-top: 16rpx;
  793. .price {
  794. display: flex;
  795. align-items: center;
  796. gap: 20rpx;
  797. &>view:nth-child(1) {
  798. font-weight: bold;
  799. font-size: 28rpx;
  800. color: #FB5B5B;
  801. }
  802. &>view:nth-child(2) {
  803. font-size: 22rpx;
  804. color: #AAAAAA;
  805. text-decoration: line-through;
  806. }
  807. }
  808. .price-btn {
  809. width: 152rpx;
  810. height: 48rpx;
  811. background: #C8FF0C;
  812. border-radius: 8rpx;
  813. font-weight: bold;
  814. font-size: 28rpx;
  815. color: #222222;
  816. text-align: center;
  817. line-height: 48rpx;
  818. }
  819. }
  820. }
  821. .card-tips {
  822. display: flex;
  823. align-items: center;
  824. gap: 40rpx;
  825. flex-basis: 100%;
  826. height: 60rpx;
  827. border-bottom: 1rpx solid #F0F0F0;
  828. .item-tips {
  829. display: flex;
  830. align-items: center;
  831. gap: 10rpx;
  832. font-size: 22rpx;
  833. color: #222222;
  834. }
  835. }
  836. }
  837. }
  838. .course-card {
  839. padding: 20rpx;
  840. background: #FFFFFF;
  841. border-radius: 32rpx;
  842. margin-top: 20rpx;
  843. .course-tips {
  844. display: flex;
  845. align-items: center;
  846. gap: 10rpx;
  847. font-size: 24rpx;
  848. color: #999999;
  849. &>view:first-child {
  850. width: 32rpx;
  851. height: 32rpx;
  852. background: #FFA347;
  853. border-radius: 50%;
  854. display: flex;
  855. justify-content: center;
  856. align-items: center;
  857. color: #FFFFFF;
  858. }
  859. }
  860. .select-btn {
  861. display: flex;
  862. align-items: center;
  863. gap: 20rpx;
  864. margin-top: 20rpx;
  865. .distance {
  866. width: 92rpx;
  867. height: 36rpx;
  868. background: #C8FF0C;
  869. border-radius: 8rpx;
  870. font-size: 24rpx;
  871. color: #222222;
  872. line-height: 34rpx;
  873. text-align: center;
  874. }
  875. .score {
  876. width: 92rpx;
  877. height: 36rpx;
  878. background: #F5F5F5;
  879. border-radius: 8rpx;
  880. font-size: 24rpx;
  881. color: #AAAAAA;
  882. line-height: 34rpx;
  883. text-align: center;
  884. }
  885. }
  886. .venue-card {
  887. display: flex;
  888. align-items: center;
  889. gap: 20rpx;
  890. margin-top: 20rpx;
  891. &>image {
  892. width: 200rpx;
  893. height: 200rpx;
  894. border-radius: 32rpx;
  895. }
  896. .venue-info {
  897. width: 430rpx;
  898. height: 220rpx;
  899. border-bottom: 1rpx solid #F0F0F0;
  900. .info-title {
  901. display: flex;
  902. align-items: center;
  903. justify-content: space-between;
  904. .title {
  905. width: 340rpx;
  906. font-weight: 800;
  907. font-size: 32rpx;
  908. color: #222222;
  909. }
  910. .sales {
  911. font-size: 22rpx;
  912. color: #AAAAAA;
  913. }
  914. }
  915. .type {
  916. margin-top: 16rpx;
  917. font-size: 24rpx;
  918. color: #AAAAAA;
  919. }
  920. .price {
  921. display: flex;
  922. align-items: center;
  923. gap: 20rpx;
  924. margin-top: 16rpx;
  925. &>view:nth-child(1) {
  926. font-weight: bold;
  927. font-size: 28rpx;
  928. color: #FB5B5B;
  929. }
  930. &>view:nth-child(2) {
  931. font-size: 22rpx;
  932. color: #AAAAAA;
  933. text-decoration: line-through;
  934. }
  935. }
  936. .course-count {
  937. font-size: 22rpx;
  938. color: #AAAAAA;
  939. }
  940. .price-info {
  941. display: flex;
  942. align-items: center;
  943. justify-content: space-between;
  944. .sale {
  945. font-size: 24rpx;
  946. color: #AAAAAA;
  947. }
  948. .price-btn {
  949. width: 152rpx;
  950. height: 48rpx;
  951. background: #C8FF0C;
  952. border-radius: 8rpx;
  953. font-weight: bold;
  954. font-size: 28rpx;
  955. color: #222222;
  956. text-align: center;
  957. line-height: 48rpx;
  958. }
  959. }
  960. }
  961. }
  962. .more {
  963. margin: auto;
  964. width: 100rpx;
  965. margin-top: 20rpx;
  966. text-align: center;
  967. font-size: 24rpx;
  968. color: #CCCCCC;
  969. position: relative;
  970. }
  971. .more::after {
  972. position: absolute;
  973. bottom: -10rpx;
  974. left: 25rpx;
  975. content: '';
  976. width: 38rpx;
  977. height: 4rpx;
  978. border-radius: 2rpx;
  979. background-color: #CCCCCC;
  980. }
  981. }
  982. .instructor-card {
  983. padding: 20rpx;
  984. background: #FFFFFF;
  985. border-radius: 32rpx;
  986. margin-top: 20rpx;
  987. overflow: hidden;
  988. .card-title {
  989. display: flex;
  990. align-items: center;
  991. justify-content: space-between;
  992. font-weight: 800;
  993. font-size: 32rpx;
  994. color: #222222;
  995. }
  996. .header-swiper {
  997. margin-top: 24rpx;
  998. width: 700rpx;
  999. white-space: nowrap;
  1000. overflow: hidden;
  1001. /* 隐藏滚动条 */
  1002. /deep/ ::-webkit-scrollbar {
  1003. display: none;
  1004. width: 0 !important;
  1005. height: 0 !important;
  1006. background: transparent;
  1007. }
  1008. .swiper-box {
  1009. display: flex;
  1010. align-items: center;
  1011. gap: 44rpx;
  1012. .swiper-inner {
  1013. width: 100rpx;
  1014. text-align: center;
  1015. .header-img {
  1016. position: relative;
  1017. image {
  1018. width: 100rpx;
  1019. height: 100rpx;
  1020. border-radius: 50%;
  1021. &:nth-child(2) {
  1022. position: absolute;
  1023. bottom: 0;
  1024. right: 0;
  1025. width: 36rpx;
  1026. height: 36rpx;
  1027. }
  1028. }
  1029. }
  1030. .instructor-name {
  1031. font-size: 28rpx;
  1032. font-weight: 600;
  1033. }
  1034. .instructor-specialty {
  1035. font-size: 22rpx;
  1036. color: #AAAAAA;
  1037. }
  1038. }
  1039. }
  1040. }
  1041. }
  1042. .appraise-card {
  1043. padding: 20rpx;
  1044. background: #FFFFFF;
  1045. border-radius: 32rpx;
  1046. margin-top: 20rpx;
  1047. .appraise-title {
  1048. display: flex;
  1049. align-items: center;
  1050. justify-content: space-between;
  1051. .title {
  1052. font-weight: 800;
  1053. font-size: 32rpx;
  1054. color: #222222;
  1055. }
  1056. .comments {
  1057. display: flex;
  1058. align-items: center;
  1059. gap: 16rpx;
  1060. .a-star {
  1061. font-size: 24rpx;
  1062. color: #FDD143;
  1063. }
  1064. .a-text {
  1065. font-size: 24rpx;
  1066. color: #AAAAAA;
  1067. }
  1068. }
  1069. }
  1070. .appraise-info {
  1071. margin-top: 20rpx;
  1072. .a-user-info {
  1073. display: flex;
  1074. align-items: center;
  1075. justify-content: space-between;
  1076. .info {
  1077. display: flex;
  1078. align-items: center;
  1079. gap: 20rpx;
  1080. &>image {
  1081. width: 60rpx;
  1082. height: 60rpx;
  1083. border-radius: 50%;
  1084. }
  1085. .name {
  1086. font-weight: bold;
  1087. font-size: 24rpx;
  1088. color: #222222;
  1089. }
  1090. }
  1091. .time {
  1092. font-size: 24rpx;
  1093. color: #AAAAAA;
  1094. }
  1095. }
  1096. .a-score {
  1097. font-size: 24rpx;
  1098. color: #AAAAAA;
  1099. display: flex;
  1100. align-items: center;
  1101. gap: 20rpx;
  1102. margin-top: 20rpx;
  1103. }
  1104. .a-content {
  1105. margin-top: 20rpx;
  1106. font-size: 28rpx;
  1107. color: #222222;
  1108. }
  1109. .scroll-view_H {
  1110. white-space: nowrap;
  1111. width: 100%;
  1112. height: 220rpx;
  1113. margin-top: 20rpx;
  1114. border-bottom: 1rpx solid #F0F0F0;
  1115. .scroll-view-item_H {
  1116. display: inline-block;
  1117. text-align: center;
  1118. margin-right: 14rpx;
  1119. &>image {
  1120. width: 202rpx;
  1121. height: 200rpx;
  1122. background: #D8D8D8;
  1123. border-radius: 32rpx;
  1124. }
  1125. }
  1126. }
  1127. }
  1128. }
  1129. .buyTips-box {
  1130. background: #F6F6F6;
  1131. border-radius: 32rpx 32rpx 0rpx 0rpx;
  1132. max-height: 1200rpx;
  1133. overflow: auto;
  1134. padding: 20rpx;
  1135. .buyTips-title {
  1136. text-align: center;
  1137. font-size: 28rpx;
  1138. font-weight: bold;
  1139. }
  1140. .rich-box {
  1141. margin-top: 20rpx;
  1142. }
  1143. }
  1144. </style>