index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929
  1. <template>
  2. <view class="nav-title"
  3. :style="{height:navBarHeight+'px',opacity: navOpacity,transition: 'opacity 0.3s ease-in-out',background: backgroundColor }">
  4. <view class="back-icon" :style="{paddingTop:statusBarHeight+'px'}" @click="openSellocation">
  5. <zzx-icon name="location" size="13"></zzx-icon>
  6. <view class="location-text textHidden">{{addressName}}</view>
  7. <zzx-icon name="right" size="10"></zzx-icon>
  8. </view>
  9. </view>
  10. <view class="index-header">
  11. <image class="header-bg" src="@/static/index_bg.png" mode="widthFix"></image>
  12. <view class="back-icon" :style="{paddingTop:(statusBarHeight+10)+'px'}" v-if="navOpacity==0"
  13. @click="openSellocation">
  14. <zzx-icon name="location" size="13"></zzx-icon>
  15. <view class="location-text textHidden">{{addressName}}</view>
  16. <zzx-icon name="right" size="10"></zzx-icon>
  17. </view>
  18. <view class="content" style="padding-top:180rpx;">
  19. <view class="header-search">
  20. <zzx-icon name="search" size="18"></zzx-icon>
  21. <swiper class="i-search-swiper" :vertical="true" :circular="true" :autoplay="true" :interval="5000"
  22. :duration="1000" @click="gotoPage('/pages/index/search/index')" @change="transitionChange">
  23. <swiper-item v-for="(item,index) in searchList" :key="item.id">
  24. <view class="">{{item.searchContent}}</view>
  25. </swiper-item>
  26. </swiper>
  27. <!-- <input type="text" placeholder="搜索俱乐部名称" /> -->
  28. <view class="search-btn" @click="searchInfoBtn">
  29. 搜索
  30. </view>
  31. </view>
  32. </view>
  33. <view class="header-banner">
  34. <view style="height: 200rpx;line-height: 200rpx;" v-if="indexLoading">
  35. <zs-loading></zs-loading>
  36. </view>
  37. <swiper class="header-swiper" :autoplay="true" :current="currentIndex" :circular="true"
  38. previous-margin="80rpx" next-margin="80rpx" :interval="4000" :duration="500" @change="swierChange">
  39. <swiper-item v-for="(item,i) in bannerList" :key="i">
  40. <image :src="item.imageUrl" class="slide-image" :class="currentIndex === i?'active':''"></image>
  41. </swiper-item>
  42. </swiper>
  43. </view>
  44. </view>
  45. <view class="content">
  46. <view class="announcement" @click="gotoPage('/pages/index/messageNotice/index')" v-if="indexMsg.length>0">
  47. <image src="/src/static/gg-icon.png" mode="heightFix"></image>
  48. <view class="">
  49. <swiper class="announcement-swiper" :vertical="true" :circular="true" :autoplay="true" :interval="3000"
  50. :duration="1000">
  51. <swiper-item v-for="(item,index) in indexMsg" :key="item.id">
  52. <view class="swiper-item textHidden">{{item.titile}}</view>
  53. </swiper-item>
  54. </swiper>
  55. </view>
  56. <zzx-icon name="ashRight" size="10"></zzx-icon>
  57. </view>
  58. <view class="grid-card">
  59. <view class="grid-item" @click="gotoPage('/pages/index/venue/index')">
  60. <view class="item-icon">
  61. <image src="/src/static/cd-icon.png" mode=""></image>
  62. </view>
  63. <view class="item-text">场地</view>
  64. </view>
  65. <view class="grid-item" @click="gotoPage('/pages/index/training/index')">
  66. <view class="item-icon">
  67. <image src="/src/static/px-icon.png" mode=""></image>
  68. </view>
  69. <view class="item-text">培训</view>
  70. </view>
  71. <view class="grid-item" @click="gotoPage('/pages/index/events/index')">
  72. <view class="item-icon">
  73. <image src="/src/static/ss-icon.png" mode=""></image>
  74. </view>
  75. <view class="item-text">赛事</view>
  76. </view>
  77. </view>
  78. <zs-loading v-if="indexLoading"></zs-loading>
  79. <view class="course-card" v-else>
  80. <view class="commonweal" @click="gotoPage(`/pages/index/training/index?priceType=1`)">
  81. <view class="commonweal-title">
  82. <view class="title-left">
  83. <image src="/src/static/gy-icon.png" mode=""></image>
  84. <view class="">公益课</view>
  85. </view>
  86. <zzx-icon name="right" size="14"></zzx-icon>
  87. </view>
  88. <view class="commonweal-detail">
  89. <view class="detail-list" v-for="item in gyCourseList" :key="item.id">
  90. <image :src="item.cover"></image>
  91. <view class="detail-text">免费</view>
  92. </view>
  93. </view>
  94. </view>
  95. <view class="audition" @click="gotoPage(`/pages/index/training/index?priceType=0`)">
  96. <view class="audition-title">
  97. <view class="title-left">
  98. <image src="/src/static/st-icon.png" mode=""></image>
  99. <view class="">试听课</view>
  100. </view>
  101. <zzx-icon name="whiteRight" size="14"></zzx-icon>
  102. </view>
  103. <view class="audition-detail">
  104. <view class="detail-list" v-for="item in stCourseList" :key="item.id">
  105. <image :src="item.cover"></image>
  106. <view class="detail-text">¥{{item.sellingPrice||'0'}}</view>
  107. </view>
  108. </view>
  109. </view>
  110. </view>
  111. <view class="hot-instructor" v-if="!indexLoading">
  112. <view class="i-title">
  113. <view class="i-hot">
  114. <view class="i-text">
  115. <text>热门教练</text>
  116. </view>
  117. <image src="/src/static/hot-icon1.png" mode="widthFix"></image>
  118. </view>
  119. <view class="i-more" @click="gotoPage('/pages/index/allInstructor/index')">
  120. <view class="">全部教练</view>
  121. <zzx-icon name="ashRight" size="10"></zzx-icon>
  122. </view>
  123. </view>
  124. <view class="i-info-card">
  125. <view class="i-card-list"
  126. :style="{background:index % 2=== 0?'linear-gradient(179deg, #FFD5FB 0%, #FFFFFF 40%)':'linear-gradient( 179deg, #F2FFBE 0%, #FFFFFF 40%)'}"
  127. v-for="(item,index) in instructorList" :key="item.id">
  128. <view class="i-info" @click="gotoPage(`/pages/index/instructorDetail/index?id=${item.id}`)">
  129. <view class="header" :style="{background:index % 2=== 0?'#FFB8F9':'#C8FF0C'}">
  130. <image class="head-img" :src="item.avatar" mode=""></image>
  131. <image class="head-tag" src="/src/static/badge.png" mode=""></image>
  132. </view>
  133. <view class="i-name-tag">
  134. <view class="name-tag">
  135. <view class="name">
  136. <view>
  137. <text class="textHidden" style="width: 130rpx;">{{item.name}}</text>
  138. </view>
  139. <image v-if="index % 2=== 0" src="/src/static/name_bg.png" mode=""></image>
  140. <image v-else src="/src/static/name_bg1.png" mode=""></image>
  141. </view>
  142. <view class="tag" v-for="(tag,index) in item.list">{{tag}}</view>
  143. </view>
  144. <view class="ascription textHidden">{{item.orgName}}</view>
  145. <view class="sign textHidden">{{item.teachingPhilosophy}}</view>
  146. </view>
  147. <view class="type-icon">
  148. <image src="/src/static/hot-icon2.png" mode=""></image>
  149. </view>
  150. </view>
  151. <view class="i-data">
  152. <view class="acclaim">
  153. <zzx-icon name="acclaim"></zzx-icon>
  154. <view style="color: #FFCC00;">好评 {{item.goodRate}}%</view>
  155. </view>
  156. <view class="acclaim">
  157. <zzx-icon name="order"></zzx-icon>
  158. <view style="color: #4DDF96;">订单数 {{item.orderCount||'0'}}</view>
  159. </view>
  160. <view class="acclaim">
  161. <zzx-icon name="number"></zzx-icon>
  162. <view style="color: #AB7BFF;">授课人数 {{item.teachingCount}}</view>
  163. </view>
  164. </view>
  165. <view class="i-skill">{{item.excelMsg}}</view>
  166. <view class="i-course" v-for="(course,index) in item.courseList" :key="course.id">
  167. <view class="course-name">
  168. <view class="price">¥{{(course.sellingPrice).toFixed(2)||'0.00'}}</view>
  169. <view class="name textHidden">{{course.name}}</view>
  170. </view>
  171. <view class="num">已售{{item.count||'0'}}</view>
  172. </view>
  173. <view class="more" @click="gotoPage(`/pages/index/instructorDetail/index?id=${item.id}`)">更多课程
  174. </view>
  175. </view>
  176. </view>
  177. <!-- <view style="position: relative;z-index: 1;"> -->
  178. <zs-empty v-if="!loading && instructorList.length === 0" />
  179. <!-- </view> -->
  180. </view>
  181. <view class="login-tips" v-if="!token">
  182. <view class="">终于等到你!快去登录吧~</view>
  183. <view class="" @click="submitLogin">马上登录</view>
  184. </view>
  185. </view>
  186. </template>
  187. <script setup lang="ts">
  188. import zsLoading from '@/components/zzx-loading/zzx-loading.vue'
  189. import { ref, onMounted, computed } from 'vue'
  190. import { onLoad, onPageScroll, onPullDownRefresh } from '@dcloudio/uni-app';
  191. import zsEmpty from '@/components/zs-empty/index.vue'
  192. import { RouterUtils, TipsUtils } from '@/utils/util';
  193. import { http } from '@/utils/http'
  194. import { useCacheStore } from '@/stores/cache'
  195. const cache = useCacheStore()
  196. const token = computed(() => {
  197. return cache.get('TOKEN')
  198. })
  199. const navBarHeight = ref(0);
  200. const statusBarHeight = ref(0);
  201. const titleBarHeight = ref(0);
  202. const navOpacity = ref(0);
  203. const backgroundColor = ref('#D2FD73');
  204. const instructorList = ref();
  205. onLoad(() => {
  206. get_location()
  207. })
  208. onPullDownRefresh(() => {
  209. get_indexInfo()
  210. get_message()
  211. get_searchList()
  212. })
  213. onMounted(() => {
  214. get_navheight()
  215. get_indexInfo()
  216. get_message()
  217. get_searchList()
  218. })
  219. onPageScroll((e) => {
  220. navOpacity.value = Math.min(Math.max(e.scrollTop / navBarHeight.value, 0), 1);
  221. })
  222. const get_navheight = () => {
  223. const systemInfo = uni.getSystemInfoSync();
  224. statusBarHeight.value = systemInfo.statusBarHeight || 0;
  225. const menuButtonInfo = uni.getMenuButtonBoundingClientRect();
  226. const titleBarHeightCalc = (menuButtonInfo.top - statusBarHeight.value) * 2 + menuButtonInfo.height;
  227. titleBarHeight.value = titleBarHeightCalc;
  228. navBarHeight.value = statusBarHeight.value + titleBarHeight.value;
  229. }
  230. const currentIndex = ref(0);
  231. const bannerList = ref([{
  232. img: 'https://bpic.588ku.com/element_origin_min_pic/23/07/11/d32dabe266d10da8b21bd640a2e9b611.jpg!r650'
  233. }, {
  234. img: 'https://ts1.tc.mm.bing.net/th/id/R-C.6f18e58bf3bacbcee226cb76dfc089a3?rik=61%2bMLnhOzFiZOg&riu=http%3a%2f%2fimages.shejidaren.com%2fwp-content%2fuploads%2f2014%2f07%2f085628m6c.jpg&ehk=v1vDvzVgPRc3irw6n%2bs5gF%2b5SEc1uCstErDhRaxqlgE%3d&risl=&pid=ImgRaw&r=0'
  235. }, {
  236. img: 'https://ts1.tc.mm.bing.net/th/id/R-C.a8553f142638e741396e386b43c2bca7?rik=dzSGk6XRsxAAsQ&riu=http%3a%2f%2fseopic.699pic.com%2fphoto%2f50062%2f5890.jpg_wh1200.jpg&ehk=BgxiqxvzoNQd0pZHWV4VPOMbYgqM76WDMt8RDzCjoYY%3d&risl=&pid=ImgRaw&r=0'
  237. }])
  238. const swierChange = (e) => {
  239. currentIndex.value = e.detail.current
  240. }
  241. const gotoPage = (path : string) => {
  242. if (!token.value) return TipsUtils.tips_alert('请先登录~', false)
  243. uni.navigateTo({
  244. url: path
  245. })
  246. }
  247. const submitLogin = () => {
  248. uni.login({
  249. provider: 'weixin',
  250. success: (res) => {
  251. get_logininfo(res.code)
  252. }
  253. })
  254. }
  255. const get_logininfo = (item : string) => {
  256. http.get('/user/loginByCode', { data: { code: item }, loading: true }).then(res => {
  257. cache.set('TOKEN', res.result.token)
  258. cache.set('USER_INFO', res.result)
  259. get_indexInfo()
  260. get_message()
  261. get_searchList()
  262. get_userinfo()
  263. TipsUtils.tips_toast('登录成功')
  264. })
  265. }
  266. const get_userinfo = () => {
  267. http.get('/user/getUserInfo', { loading: true }).then(res => {
  268. cache.set('USER_INFO', res.result)
  269. })
  270. }
  271. const get_location = () => {
  272. uni.authorize({
  273. scope: 'scope.userLocation',
  274. success() {
  275. uni.getLocation({
  276. type: 'gcj02',
  277. success: function (res) {
  278. uni.hideLoading()
  279. cache.set('LON', res.longitude)
  280. cache.set('LAT', res.latitude)
  281. },
  282. fail: function (err) {
  283. if (err.errMsg === 'getFuzzyLocation:fail system permission denied') {
  284. TipsUtils.tips_alert('系统定位未开启,请开启定位以便提供更好服务', false)
  285. } else if (err.errMsg === 'getFuzzyLocation:fail:ERROR_NOCELL&WIFI_LOCATIONSWITCHOFF' ||
  286. err.errMsg === 'getFuzzyLocation:fail system permission denied' ||
  287. err.errMsg === 'getFuzzyLocation:fail:system permission denied' || err.errMsg === 'getFuzzyLocation:fail auth deny') {
  288. showAuthGuide()
  289. }
  290. console.log(err, '错误信息')
  291. }
  292. });
  293. },
  294. fail: (err) => {
  295. showAuthGuide()
  296. }
  297. });
  298. }
  299. // 引导操作
  300. const showAuthGuide = async () => {
  301. let res : any = await TipsUtils.tips_alert('授权定位以提供更好服务', true)
  302. if (res.confirm) {
  303. uni.openSetting()
  304. }
  305. }
  306. // 手动选择
  307. const addressName = ref('选择定位')
  308. const openSellocation = () => {
  309. uni.chooseLocation({
  310. success: function (res) {
  311. addressName.value = res.name
  312. cache.set('LON', res.longitude)
  313. cache.set('LAT', res.latitude)
  314. },
  315. fail(res) {
  316. console.log(res);
  317. // showAuthGuide()
  318. }
  319. });
  320. }
  321. // 首页基础信息
  322. const gyCourseList = ref()
  323. const stCourseList = ref()
  324. const indexLoading = ref(true)
  325. const get_indexInfo = () => {
  326. http.get('/home/homeInfo').then((res) => {
  327. indexLoading.value = false
  328. bannerList.value = res.result.bannerList
  329. gyCourseList.value = res.result.courseList.filter(item => item.priceType === 0)
  330. stCourseList.value = res.result.courseList.filter(item => item.priceType === 1)
  331. instructorList.value = res.result.instructorList
  332. uni.stopPullDownRefresh()
  333. })
  334. }
  335. // 消息通知
  336. const indexMsg = ref([])
  337. const get_message = () => {
  338. http.get('/home/getMsg').then((res) => {
  339. indexMsg.value = res.result
  340. })
  341. }
  342. // 搜索相关
  343. const searchList = ref([])
  344. const get_searchList = () => {
  345. http.get('/home/getHotSearch').then((res) => {
  346. searchList.value = res.result
  347. })
  348. }
  349. const searchCurrent = ref()
  350. const transitionChange = (e) => {
  351. searchCurrent.value = e.detail.current
  352. }
  353. const searchInfoBtn = () => {
  354. if (searchList.value < 1) return TipsUtils.tips_toast('请输入关键词')
  355. let keyword = ''
  356. let venueType = null
  357. if (searchList.value.length > 1) {
  358. keyword = searchList.value[searchCurrent.value].searchContent
  359. venueType = searchList.value[searchCurrent.value].venueType
  360. } else {
  361. searchList.value.map((item) => {
  362. keyword = item.searchContent
  363. venueType = item.venueType
  364. })
  365. }
  366. gotoPage(`/pages/index/searchPage/index?keyword=${keyword}&venueType=${venueType}`)
  367. }
  368. </script>
  369. <style lang="less" scoped>
  370. .nav-title {
  371. position: fixed;
  372. width: 100%;
  373. text-align: center;
  374. font-size: 28rpx;
  375. z-index: 9999;
  376. display: flex;
  377. justify-content: center;
  378. align-items: center;
  379. .back-icon {
  380. position: absolute;
  381. left: 20rpx;
  382. z-index: 9999;
  383. display: flex;
  384. align-items: center;
  385. gap: 10rpx;
  386. font-weight: 800;
  387. font-size: 28rpx;
  388. color: #222222;
  389. .location-text {
  390. max-width: 460rpx;
  391. }
  392. }
  393. }
  394. .index-header {
  395. position: relative;
  396. height: 580rpx;
  397. .header-bg {
  398. position: absolute;
  399. width: 100%;
  400. }
  401. .back-icon {
  402. position: absolute;
  403. left: 20rpx;
  404. z-index: 9999;
  405. display: flex;
  406. align-items: center;
  407. gap: 10rpx;
  408. font-weight: 800;
  409. font-size: 28rpx;
  410. color: #222222;
  411. .location-text {
  412. max-width: 460rpx;
  413. }
  414. }
  415. .header-search {
  416. position: absolute;
  417. display: flex;
  418. align-items: center;
  419. gap: 10rpx;
  420. background: #fff;
  421. width: 685rpx;
  422. padding: 8rpx;
  423. border-radius: 40rpx;
  424. .i-search-swiper {
  425. height: 40rpx;
  426. line-height: 40rpx;
  427. width: 670rpx;
  428. font-weight: bold;
  429. font-size: 24rpx;
  430. color: #CCCCCC;
  431. }
  432. .search-btn {
  433. width: 144rpx;
  434. height: 52rpx;
  435. background: #222222;
  436. border-radius: 28rpx;
  437. font-weight: bold;
  438. font-size: 28rpx;
  439. color: #C8FF0C;
  440. line-height: 52rpx;
  441. text-align: center;
  442. }
  443. }
  444. .header-banner {
  445. position: absolute;
  446. top: 240rpx;
  447. left: 0;
  448. width: 100%;
  449. height: 340rpx;
  450. .header-swiper {
  451. height: 340rpx;
  452. }
  453. .slide-image {
  454. position: absolute;
  455. height: 200rpx;
  456. width: 570rpx;
  457. border-radius: 15rpx;
  458. z-index: 5;
  459. opacity: 0.7;
  460. top: 18%;
  461. margin: 0 20rpx;
  462. }
  463. swiper {
  464. height: 430rpx;
  465. }
  466. .active {
  467. opacity: 1;
  468. z-index: 10;
  469. height: 316rpx;
  470. width: 572rpx;
  471. top: 7%;
  472. transition: all 0.2s ease-in 0s;
  473. }
  474. }
  475. }
  476. .announcement {
  477. margin-top: 20rpx;
  478. padding: 20rpx;
  479. background: #FFFFFF;
  480. border-radius: 32rpx;
  481. display: flex;
  482. justify-content: space-around;
  483. z-index: 9999;
  484. &>image {
  485. height: 32rpx;
  486. }
  487. &>view {
  488. font-size: 28rpx;
  489. color: #222222;
  490. width: 440rpx;
  491. .announcement-swiper {
  492. height: 40rpx;
  493. }
  494. }
  495. }
  496. .grid-card {
  497. padding: 20rpx;
  498. background: #FFFFFF;
  499. border-radius: 32rpx;
  500. display: flex;
  501. justify-content: space-around;
  502. margin-top: 20rpx;
  503. .grid-item {
  504. display: flex;
  505. flex-direction: column;
  506. align-items: center;
  507. .item-icon {
  508. width: 80rpx;
  509. height: 80rpx;
  510. &>image {
  511. width: 80rpx;
  512. height: 80rpx;
  513. }
  514. }
  515. .item-text {
  516. font-size: 24rpx;
  517. color: #222222;
  518. margin-top: 20rpx;
  519. }
  520. }
  521. }
  522. .course-card {
  523. display: flex;
  524. align-items: center;
  525. justify-content: space-between;
  526. margin-top: 20rpx;
  527. .commonweal {
  528. background: #C8FF0C;
  529. border-radius: 32rpx;
  530. padding: 20rpx;
  531. .commonweal-title {
  532. display: flex;
  533. align-items: center;
  534. justify-content: space-between;
  535. .title-left {
  536. font-weight: 800;
  537. font-size: 32rpx;
  538. color: #222222;
  539. display: flex;
  540. gap: 10rpx;
  541. &>image {
  542. width: 40rpx;
  543. height: 40rpx;
  544. }
  545. }
  546. }
  547. .commonweal-detail {
  548. display: flex;
  549. justify-content: space-around;
  550. gap: 20rpx;
  551. margin-top: 20rpx;
  552. .detail-list {
  553. display: flex;
  554. flex-direction: column;
  555. align-items: center;
  556. &>image {
  557. width: 80rpx;
  558. height: 80rpx;
  559. border-radius: 50%;
  560. }
  561. .detail-text {
  562. text-align: center;
  563. margin-top: 16rpx;
  564. font-size: 24rpx;
  565. color: #222222;
  566. }
  567. }
  568. }
  569. }
  570. .audition {
  571. background: #AB7BFF;
  572. border-radius: 32rpx;
  573. padding: 20rpx;
  574. .audition-title {
  575. display: flex;
  576. align-items: center;
  577. justify-content: space-between;
  578. .title-left {
  579. font-weight: 800;
  580. font-size: 32rpx;
  581. color: #FFFFFF;
  582. display: flex;
  583. gap: 10rpx;
  584. &>image {
  585. width: 40rpx;
  586. height: 40rpx;
  587. }
  588. }
  589. }
  590. .audition-detail {
  591. display: flex;
  592. justify-content: space-around;
  593. gap: 20rpx;
  594. margin-top: 20rpx;
  595. .detail-list {
  596. display: flex;
  597. flex-direction: column;
  598. align-items: center;
  599. text-align: center;
  600. &>image {
  601. width: 80rpx;
  602. height: 80rpx;
  603. border-radius: 50%;
  604. }
  605. .detail-text {
  606. text-align: center;
  607. margin-top: 16rpx;
  608. font-size: 24rpx;
  609. color: #fff;
  610. }
  611. }
  612. }
  613. }
  614. }
  615. .hot-instructor {
  616. margin-top: 20rpx;
  617. position: relative;
  618. .i-title {
  619. display: flex;
  620. align-items: center;
  621. justify-content: space-between;
  622. background-color: #fff;
  623. padding: 0 20rpx 0 20rpx;
  624. border-radius: 32rpx 32rpx 0 0;
  625. .i-hot {
  626. display: flex;
  627. align-items: center;
  628. font-weight: bold;
  629. font-size: 32rpx;
  630. color: #222222;
  631. position: relative;
  632. height: 100rpx;
  633. .i-text {
  634. position: relative;
  635. width: 130rpx;
  636. margin-top: 30rpx;
  637. &>text {
  638. position: absolute;
  639. bottom: 0;
  640. z-index: 1;
  641. }
  642. }
  643. .i-text::after {
  644. position: absolute;
  645. content: '';
  646. bottom: -6rpx;
  647. left: 20rpx;
  648. width: 80rpx;
  649. height: 20rpx;
  650. background-color: #D3FD76;
  651. border-radius: 4rpx;
  652. }
  653. &>image {
  654. position: absolute;
  655. width: 300rpx;
  656. top: 0;
  657. left: 140rpx;
  658. }
  659. }
  660. .i-more {
  661. font-size: 24rpx;
  662. color: #AAAAAA;
  663. display: flex;
  664. align-items: center;
  665. gap: 10rpx;
  666. }
  667. }
  668. .i-info-card {
  669. position: absolute;
  670. .i-card-list {
  671. margin-bottom: 24rpx;
  672. border-radius: 32rpx;
  673. padding: 20rpx;
  674. width: 670rpx;
  675. max-height: 480rpx;
  676. }
  677. .i-info {
  678. display: flex;
  679. align-items: center;
  680. justify-content: space-around;
  681. .header {
  682. width: 150rpx;
  683. height: 150rpx;
  684. border-radius: 32rpx;
  685. // background: #FFB8F9;
  686. padding: 4rpx;
  687. position: relative;
  688. .head-img {
  689. width: 150rpx;
  690. height: 150rpx;
  691. border-radius: 32rpx;
  692. }
  693. .head-tag {
  694. position: absolute;
  695. bottom: 0;
  696. right: -14rpx;
  697. width: 36rpx;
  698. height: 36rpx;
  699. }
  700. }
  701. .i-name-tag {
  702. .name-tag {
  703. display: flex;
  704. align-items: center;
  705. gap: 8rpx;
  706. .name {
  707. width: 134rpx;
  708. height: 60rpx;
  709. font-weight: 800;
  710. font-size: 28rpx;
  711. color: #222222;
  712. position: relative;
  713. &>view {
  714. &>text {
  715. position: absolute;
  716. z-index: 1;
  717. top: 10rpx;
  718. }
  719. }
  720. &>image {
  721. top: 0;
  722. left: 0;
  723. position: absolute;
  724. width: 133rpx;
  725. height: 48rpx;
  726. }
  727. }
  728. .tag {
  729. font-size: 24rpx;
  730. color: #AAAAAA;
  731. }
  732. }
  733. .ascription {
  734. max-width: 360rpx;
  735. font-size: 24rpx;
  736. color: #222222;
  737. }
  738. .sign {
  739. width: 360rpx;
  740. margin-top: 20rpx;
  741. font-weight: bold;
  742. font-size: 24rpx;
  743. color: #222222;
  744. }
  745. }
  746. .type-icon {
  747. &>image {
  748. width: 106rpx;
  749. height: 100rpx;
  750. }
  751. }
  752. }
  753. .i-data {
  754. display: flex;
  755. align-items: center;
  756. gap: 28rpx;
  757. margin-top: 20rpx;
  758. .acclaim {
  759. display: flex;
  760. align-items: center;
  761. gap: 10rpx;
  762. font-size: 24rpx;
  763. }
  764. }
  765. .i-skill {
  766. width: 700rpx;
  767. margin-top: 20rpx;
  768. font-size: 24rpx;
  769. color: #AAAAAA;
  770. }
  771. .i-course {
  772. display: flex;
  773. align-items: center;
  774. justify-content: space-between;
  775. margin-top: 20rpx;
  776. .course-name {
  777. display: flex;
  778. align-items: center;
  779. gap: 20rpx;
  780. .price {
  781. font-weight: bold;
  782. font-size: 28rpx;
  783. color: #FB5B5B;
  784. }
  785. .name {
  786. width: 440rpx;
  787. font-weight: bold;
  788. font-size: 28rpx;
  789. color: #222222;
  790. }
  791. }
  792. .num {
  793. font-size: 24rpx;
  794. color: #AAAAAA;
  795. }
  796. }
  797. .more {
  798. margin: auto;
  799. width: 100rpx;
  800. margin-top: 20rpx;
  801. text-align: center;
  802. font-size: 24rpx;
  803. color: #CCCCCC;
  804. position: relative;
  805. }
  806. .more::after {
  807. position: absolute;
  808. bottom: -10rpx;
  809. left: 25rpx;
  810. content: '';
  811. width: 38rpx;
  812. height: 4rpx;
  813. border-radius: 2rpx;
  814. background-color: #CCCCCC;
  815. }
  816. }
  817. }
  818. .login-tips {
  819. position: fixed;
  820. bottom: 22rpx;
  821. width: 686rpx;
  822. display: flex;
  823. align-items: center;
  824. justify-content: space-between;
  825. padding: 10rpx;
  826. background: rgba(0, 0, 0, 0.6);
  827. border-radius: 8rpx;
  828. z-index: 9999;
  829. &>view:first-child {
  830. font-size: 28rpx;
  831. color: #FFFFFF;
  832. }
  833. &>view:last-child {
  834. width: 160rpx;
  835. height: 60rpx;
  836. background: #C8FF0C;
  837. border-radius: 8rpx;
  838. font-size: 28rpx;
  839. color: #222222;
  840. text-align: center;
  841. line-height: 60rpx;
  842. }
  843. }
  844. </style>