jiGou.vue 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406
  1. <template>
  2. <view class="box">
  3. <u-navbar :autoBack="true" bgColor="rgba(255,255,255,0)" :placeholder="true" titleStyle="font-weight:bold;color:#121212"></u-navbar>
  4. <view class="box_sw">
  5. <u-swiper
  6. :list="mn_swiperList"
  7. imgMode="aspectFill"
  8. :height="220"
  9. :indicator="true"
  10. :autoplay="true"
  11. :circular="true"
  12. indicatorStyle="bottom: 20px"
  13. indicatorMode="dot"
  14. indicatorActiveColor="#fff"
  15. indicatorInactiveColor="rgba(255, 255, 255, 0.35)"
  16. ></u-swiper>
  17. </view>
  18. <view class="" style="position: relative">
  19. <view class="box_title">
  20. <view class="tit1">秦汉胡同国学书院</view>
  21. <view class="tit2">书法教育综合服务平台</view>
  22. <view class="box_tit">
  23. <view class="tit3">
  24. <uni-icons type="location-filled" color="#C3A07B" size="20"></uni-icons>
  25. <text>厦门市思明区金榜路63号凯旋广场写字楼502</text>
  26. </view>
  27. <view class="">
  28. <uni-icons type="forward" color="#C3A07B" size="20"></uni-icons>
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. <!-- 机构简介 -->
  34. <view class="box_ban">
  35. <view class="box_tab">
  36. <view v-for="(item, index) in tabTit" :key="item" @click="tabBtn(index)" :class="tabIndex == index ? 'active' : ''" class="tab_tit">{{ item.title }}</view>
  37. </view>
  38. </view>
  39. <!-- -->
  40. <view class="box_tab1" v-if="tabIndex == 0">
  41. 秦汉胡同国学书院定位于一站式创新书法教育综合服务 平台,产品整合“教研、教学、服务、营销、管理”五 大板块,以书法学习为基础,以互联网为核心,为线下
  42. 教培机构提供现代化的书法教育解决方案。
  43. </view>
  44. <!-- <view class="" v-if="tabIndex == 1">
  45. <view class="">1</view>
  46. </view> -->
  47. <view class="box_tab2">
  48. <view v-for="(item, index) in tabTit2" :key="item" @click="tabBtn2(index)" :class="tabIndex2 == index ? 'active' : ''" class="tab_tit">{{ item.title }}</view>
  49. </view>
  50. <!-- 热门课程 -->
  51. <view class="box_kc" v-if="tabIndex2 == 0">
  52. <course-item v-for="item in kcList" :item="item" :key="item.id"></course-item>
  53. </view>
  54. <!-- 精彩活动 -->
  55. <view class="box_kc" v-if="tabIndex2 == 1">
  56. <view class="list_3">
  57. <view @click="xqBtn" class="list-items_1-0" v-for="item in 2" :key="item">
  58. <view class="section_1-0"></view>
  59. <uni-icons style="margin-top: 50rpx; margin-left: 20rpx" type="paperclip" size="22"></uni-icons>
  60. <view class="text-wrapper_8-0">
  61. <text lines="1" class="text_9-0">“答嘴鼓”夏令营第三期活动</text>
  62. <text lines="1" decode="true" class="text_10-0">2023-01-12&nbsp;&nbsp;&nbsp;&nbsp;08:30</text>
  63. </view>
  64. </view>
  65. </view>
  66. </view>
  67. <!-- 作者展示 -->
  68. <view class="box_kc" v-if="tabIndex2 == 2">
  69. <custom-waterfalls-flow :value="list" style="width: 90%; margin: auto">
  70. <view class="item" style="position: relative" v-for="(item, index) in list" :key="index" slot="slot{{index}}">
  71. <view class="title_pubu">
  72. {{ item.title }}
  73. </view>
  74. <!-- <view class="desc">{{ item.desc }}</view> -->
  75. </view>
  76. </custom-waterfalls-flow>
  77. </view>
  78. <!-- 热点关注 -->
  79. <view class="box_kc" v-if="tabIndex2 == 3">
  80. <view class="sh_xs banxin">
  81. <view class="sh_xs_item" v-for="item in shXiShuList" :key="item">
  82. <view @click="detailsBtn" class="" style="width: 325rpx; height: 180rpx; border-radius: 10rpx">
  83. <image style="width: 100%; height: 100%" :src="item.img"></image>
  84. </view>
  85. <view class="">{{ item.title }}</view>
  86. <view class="ms_dianzan">
  87. <view class="">
  88. <uni-icons type="star-filled" color="#4e7198" size="20"></uni-icons>
  89. <text>1.5w</text>
  90. </view>
  91. <view class="">
  92. <uni-icons type="heart-filled" color="#ca5642" size="20"></uni-icons>
  93. <text>1.5w</text>
  94. </view>
  95. </view>
  96. </view>
  97. </view>
  98. </view>
  99. </view>
  100. </template>
  101. <script>
  102. let that;
  103. export default {
  104. data() {
  105. return {
  106. tabIndex: 0,
  107. tabIndex2: 0,
  108. tabTit: [
  109. {
  110. title: '机构简介'
  111. },
  112. {
  113. title: '业务介绍'
  114. },
  115. {
  116. title: '机构资质'
  117. },
  118. {
  119. title: '师资介绍'
  120. }
  121. ],
  122. tabTit2: [
  123. {
  124. title: '热门课程'
  125. },
  126. {
  127. title: '精彩活动'
  128. },
  129. {
  130. title: '作品展示'
  131. },
  132. {
  133. title: '热点关注'
  134. }
  135. ],
  136. mn_swiperList: [
  137. 'https://huli-app.wenlvti.net/app_static/minnanhun/image/sy_lbt2.png',
  138. 'https://huli-app.wenlvti.net/app_static/minnanhun/image/sy_lbt1.png',
  139. 'https://huli-app.wenlvti.net/app_static/minnanhun/image/sy_lbt3.jpg',
  140. 'https://huli-app.wenlvti.net/app_static/minnanhun/image/sy_lbt4.jpg',
  141. 'https://huli-app.wenlvti.net/app_static/minnanhun/image/sy_lbt5.png'
  142. ],
  143. kcList: [],
  144. list: [
  145. {
  146. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy1.png',
  147. title: '传统捏泥人',
  148. desc: '描述描述描述描述描述描述描述描述2'
  149. },
  150. {
  151. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy2.png',
  152. title: '青龙宫',
  153. desc: '描述描述描述描述描述描述描述描述1'
  154. },
  155. {
  156. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy3.png',
  157. title: '火把节',
  158. desc: '11'
  159. },
  160. {
  161. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy9.png',
  162. title: '老物件',
  163. desc: '描述描述描述描述描述描述描述描述2'
  164. },
  165. {
  166. image: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/mn_jy4.png',
  167. title: '林后青龙宫',
  168. desc: '描述描述描述描述描述描述描述描述2'
  169. }
  170. ],
  171. shXiShuList: [
  172. {
  173. img: 'https://www.chinanews.com/tp/hd2011/2013/03-11/U508P4T426D182733F16470DT20130311112416.jpg',
  174. title: '闽南民俗浔浦天香日'
  175. },
  176. {
  177. img: 'https://inews.gtimg.com/newsapp_bt/0/11032609926/1000',
  178. title: '闽南冬至丸'
  179. },
  180. {
  181. img: 'https://img1.baidu.com/it/u=1711973128,1321603179&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=333',
  182. title: '闽南习俗拜天公'
  183. },
  184. {
  185. img: 'https://i2.hdslb.com/bfs/archive/24ab948019ae5cc13055113cfcd5321f7c16dc41.jpg',
  186. title: '抬神'
  187. }
  188. ]
  189. };
  190. },
  191. onLoad() {
  192. that = this;
  193. this.kcfn();
  194. },
  195. methods: {
  196. tabBtn(index) {
  197. console.log(index);
  198. this.tabIndex = index;
  199. },
  200. tabBtn2(index) {
  201. console.log(index);
  202. this.tabIndex2 = index;
  203. },
  204. // 课程详情
  205. kcfn() {
  206. this.$api.getCourseList({}, function (res) {
  207. console.log('啦啦啦', res);
  208. if (res.code == 1) {
  209. if (res.data.items.length > 0) {
  210. that.kcList = [...that.kcList, ...res.data.items];
  211. }
  212. }
  213. });
  214. },
  215. // 活动详情
  216. xqBtn() {
  217. uni.navigateTo({
  218. url: '/xueyuan_fenbao/zhuangJia/huodongXq'
  219. });
  220. }
  221. }
  222. };
  223. </script>
  224. <style>
  225. .box {
  226. height: auto;
  227. width: 100%;
  228. background-color: #f8f8f8;
  229. background-attachment: fixed;
  230. position: relative;
  231. display: flex;
  232. flex-direction: column;
  233. }
  234. /deep/.u-swiper-indicator__wrapper__dot--active {
  235. width: 5px !important;
  236. }
  237. .course-item:last-child {
  238. margin-bottom: 20rpx !important;
  239. }
  240. .active {
  241. color: #ca5642 !important;
  242. font-size: 36rpx;
  243. font-weight: bold;
  244. }
  245. /deep/.column-value.data-v-ddfcbb1c {
  246. border-radius: 25rpx 60rpx 0rpx 30rpx !important;
  247. }
  248. .box_sw {
  249. margin-top: -128rpx;
  250. }
  251. .box_title {
  252. width: 100%;
  253. position: absolute;
  254. top: -30rpx;
  255. border-radius: 40rpx 40rpx 0rpx 0rpx;
  256. background-color: #ffffff;
  257. border-bottom: 1px solid #c3a07b;
  258. padding: 30rpx 20rpx 10rpx 32rpx;
  259. }
  260. .tit1 {
  261. font-size: 42rpx;
  262. font-weight: bold;
  263. color: #312520;
  264. }
  265. .tit2 {
  266. font-size: 28rpx;
  267. color: #5b5454;
  268. margin-top: 10rpx;
  269. margin-bottom: 20rpx;
  270. }
  271. .tit3 {
  272. display: flex;
  273. align-items: center;
  274. font-size: 24rpx;
  275. color: #c3a07b;
  276. }
  277. .box_tit {
  278. margin-left: -8rpx;
  279. display: flex;
  280. justify-content: space-between;
  281. align-items: center;
  282. }
  283. .box_ban {
  284. margin-top: 200rpx;
  285. /* height: 921rpx; */
  286. }
  287. .box_tab {
  288. height: 60rpx;
  289. display: flex;
  290. align-items: center;
  291. justify-content: space-around;
  292. }
  293. .box_tab2 {
  294. height: 95rpx;
  295. display: flex;
  296. align-items: center;
  297. justify-content: space-around;
  298. }
  299. .tab_tit {
  300. font-size: 28rpx;
  301. color: #5b5454;
  302. }
  303. .box_tab1 {
  304. /* height: 740rpx; */
  305. margin-top: 20rpx;
  306. padding: 30rpx;
  307. background-color: #f8f3e9;
  308. }
  309. .box_kc {
  310. padding: 30rpx;
  311. background-color: #f8f3e9;
  312. }
  313. .list_3 {
  314. width: 686rpx;
  315. display: flex;
  316. flex-direction: column;
  317. justify-content: space-between;
  318. margin: 0 0 0 32rpx;
  319. }
  320. .list-items_1-0 {
  321. background-color: rgba(255, 255, 255, 1);
  322. border-radius: 20rpx;
  323. width: 686rpx;
  324. height: 149rpx;
  325. margin-bottom: 32rpx;
  326. flex-direction: row;
  327. display: flex;
  328. }
  329. .section_1-0 {
  330. background-color: rgba(202, 86, 66, 1);
  331. width: 8rpx;
  332. height: 80rpx;
  333. margin-top: 35rpx;
  334. display: flex;
  335. flex-direction: column;
  336. }
  337. .text-wrapper_8-0 {
  338. width: 389rpx;
  339. height: 73rpx;
  340. display: flex;
  341. flex-direction: column;
  342. justify-content: space-between;
  343. margin: 36rpx 197rpx 0 20rpx;
  344. }
  345. .text_9-0 {
  346. width: 371rpx;
  347. height: 30rpx;
  348. overflow-wrap: break-word;
  349. color: rgba(49, 37, 32, 1);
  350. font-size: 30rpx;
  351. font-family: SourceHanSansCN-Bold;
  352. font-weight: 700;
  353. text-align: left;
  354. white-space: nowrap;
  355. line-height: 30rpx;
  356. margin-left: 18rpx;
  357. }
  358. .text_10-0 {
  359. width: 198rpx;
  360. height: 18rpx;
  361. overflow-wrap: break-word;
  362. color: rgba(153, 153, 153, 1);
  363. font-size: 24rpx;
  364. font-family: SourceHanSansCN-Regular;
  365. font-weight: normal;
  366. text-align: left;
  367. white-space: nowrap;
  368. line-height: 24rpx;
  369. margin-top: 25rpx;
  370. }
  371. .title_pubu {
  372. width: 100%;
  373. height: 65rpx;
  374. line-height: 65rpx;
  375. background-color: #ca5642;
  376. font-size: 30rpx;
  377. color: #ffffff;
  378. position: absolute;
  379. bottom: 0;
  380. left: 0;
  381. }
  382. .sh_xs {
  383. display: flex;
  384. flex-flow: wrap;
  385. justify-content: space-between;
  386. }
  387. .ms_dianzan {
  388. width: 245rpx;
  389. display: flex;
  390. justify-content: space-between;
  391. margin-top: 10rpx;
  392. }
  393. .sh_xs_item {
  394. border-radius: 10rpx;
  395. background: #ffffff;
  396. margin-bottom: 35rpx;
  397. }
  398. </style>