index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893
  1. <template>
  2. <view class="ps-wrapper">
  3. <view id="headerBox" ref="headerBox" :class="[mpCommonClass]" :style="{
  4. // background: `url(${bgImg}) no-repeat center top`,
  5. backgroundSize: '100% 400rpx',
  6. paddingTop: `${navbarHeight+topData.height}px`,
  7. backgroundColor: '#D6E1D0',
  8. }" class="header-box">
  9. <view>
  10. <view :height="'1050rpx'" class="banner-container">
  11. <u-swiper imgMode="scaleToFill" :autoplay="true" :current="current" :height="'1050rpx'" :list="bannerList" circular
  12. duration="1000" interval="5000" @change="(data) => (current = data.current)" @click="bannerClick">
  13. <template #indicator>
  14. <view class="custom-indicator">
  15. <text v-for="item in bannerList.length" v-show="bannerList.length > 0" :key="item"
  16. :class="{ 'banner-active': item === current }" class="custom-indicator-item"></text>
  17. </view>
  18. </template>
  19. </u-swiper>
  20. <view class="logo-search-container" :style="{top:0,left:'0rpx',paddingBottom:'20rpx',height:navbarHeight+topData.height+10+'px'}">
  21. <view class="centered-image" :style="{
  22. marginTop:`${navbarHeight}px`
  23. }">
  24. <van-image
  25. :src="logoImg"
  26. fit="contain"
  27. :height="topData.height"
  28. width="83px"
  29. />
  30. </view>
  31. <view :style="{
  32. width: '50%',
  33. height:topData.height+'px',
  34. marginTop:`${navbarHeight}px`
  35. }" class="search-box" @click="toSearchList">
  36. <u-icon name="search" size="20"></u-icon>
  37. <text>请输入关键词</text>
  38. </view>
  39. </view>
  40. </view>
  41. <view style="background-color: #FFFFFF;">
  42. <view>
  43. <u-notice-bar @click="handleAdv" color="#EE7945" :text="advList.map((a) => a.remark)"></u-notice-bar>
  44. </view>
  45. </view>
  46. <!-- 商品分类 -->
  47. <view class="box-list">
  48. <view class="box-list-item" @click="jumpPage('haowu')">
  49. <van-image
  50. height="136rpx"
  51. src="/static/hd1.png"
  52. width="84rpx"
  53. />
  54. <view style=" margin-top: 14rpx">芳香好物</view>
  55. </view>
  56. <view class="box-list-item" @click="jumpPage('xueyuan')">
  57. <van-image
  58. height="136rpx"
  59. src="/static/hd2.png"
  60. width="84rpx"
  61. />
  62. <view style=" margin-top: 14rpx"> 芳香学院</view>
  63. </view>
  64. <view class="box-list-item" @click="jumpPage('huodong')">
  65. <van-image
  66. height="136rpx"
  67. src="/static/hd3.png"
  68. width="84rpx"
  69. />
  70. <view style=" margin-top: 14rpx"> 芳香活动</view>
  71. </view>
  72. <view class="box-list-item" @click="jumpPage('shenghuo')">
  73. <van-image
  74. height="136rpx"
  75. src="/static/hd5.png"
  76. width="84rpx"
  77. />
  78. <view style=" margin-top: 14rpx"> 芳香生活
  79. </view>
  80. </view>
  81. <view class="box-list-item" @click="jumpPage('peiban')">
  82. <van-image
  83. height="136rpx"
  84. src="/static/hd4.png"
  85. width="84rpx"
  86. />
  87. <view style=" margin-top: 14rpx">陪伴营</view>
  88. </view>
  89. </view>
  90. <view class="content-box">
  91. <view class="activity-list">
  92. <view class="biaoti" style="background: linear-gradient( 180deg, #C4D1BB 0%, #F7F9F6 84%);">
  93. <van-image
  94. height="85.94rpx"
  95. src="/static/biaoti1.png"
  96. width="171.3rpx"
  97. />
  98. </view>
  99. <image src="/static/huodong-icon.png" mode="aspectFill" class="biaoti-icon"></image>
  100. <view v-for="(item, index) in activityList" :key="index"
  101. @click="toHuodong(item)" class="activity-item">
  102. <van-image
  103. height="670rpx"
  104. :src="item.pic"
  105. width="750rpx"
  106. />
  107. <view class="activity-init display-flex-between ">
  108. <view class="display-flex-content-center">
  109. <view class="huodongText2">
  110. <van-image
  111. class="huodongText2-img"
  112. height="28rpx"
  113. src="/static/hdlist2.png" width="28rpx"
  114. />
  115. {{ item.hits }}
  116. </view>
  117. <view class="huodongText2">
  118. <van-image
  119. class="huodongText2-img"
  120. height="28rpx"
  121. src="/static/hdlist3.png" width="28rpx"
  122. />
  123. {{ item.entry_num }}
  124. </view>
  125. </view>
  126. <view class="activity-btn display-flex-content-center" @click.stop="handleRegister(item)">
  127. 立即报名
  128. </view>
  129. </view>
  130. </view>
  131. </view>
  132. <view class="course-list">
  133. <view class="biaoti">
  134. <van-image
  135. height="85.94rpx"
  136. src="/static/biaoti2.png"
  137. width="171.3rpx"
  138. />
  139. </view>
  140. <image src="/static/kecheng-icon.png" mode="aspectFill" class="biaoti-icon">
  141. </image>
  142. <view v-for="(item, index) in goods_class" :key="index" class="course-item" v-if="index < 2">
  143. <view style="margin-bottom: 24rpx" @click="toKecheng(item)">
  144. <van-image
  145. :src="item.cover"
  146. height="208rpx"
  147. width="100%"
  148. />
  149. </view>
  150. </view>
  151. </view>
  152. <view class="goods-list">
  153. <view class="biaoti">
  154. <van-image
  155. height="85.94rpx"
  156. src="/static/biaoti3.png"
  157. width="171.3rpx"
  158. />
  159. </view>
  160. <image src="/static/shangpin-icon.png" style="width: 250rpx;height: 250rpx;right: -43px;" mode="aspectFill" class="biaoti-icon">
  161. </image>
  162. <view
  163. :style="{width: '690rpx', margin: '0rpx auto'}">
  164. <CommercePart :data="commonDataList"></CommercePart>
  165. <!-- 赠品专区 -->
  166. <image v-if="giftBanner.pic" :src="giftBanner.pic" mode="aspectFill"
  167. style="width: 100%; height: 206rpx" @click="toSubpages('giftZone')">
  168. </image>
  169. </view>
  170. </view>
  171. </view>
  172. </view>
  173. </view>
  174. <tabbarCom current="0"></tabbarCom>
  175. <van-toast id="van-toast"/>
  176. </view>
  177. </template>
  178. <script>
  179. import tabbarCom from "@/components/tabbar/tabbar.vue"
  180. import CommercePart from "@/components/CommercePart.vue";
  181. // import FlowPart from "@/components/FlowPart.vue";
  182. import {
  183. goodsList
  184. } from "./config";
  185. import {
  186. getBanner
  187. } from "@/common/api/home.js";
  188. import {
  189. getNewsList
  190. } from "@/common/api/news.js";
  191. import {getActivityList} from "@/common/api/activity";
  192. import Toast from "wxcomponents/vant/dist/toast/toast";
  193. // 获取系统状态栏的高度
  194. let systemInfo = uni.getSystemInfoSync();
  195. let menuButtonInfo = {};
  196. // 如果是小程序,获取右上角胶囊的尺寸信息,避免导航栏右侧内容与胶囊重叠(支付宝小程序非本API,尚未兼容)
  197. menuButtonInfo = uni.getMenuButtonBoundingClientRect();
  198. export default {
  199. components: {
  200. tabbarCom,
  201. CommercePart
  202. },
  203. data() {
  204. return {
  205. bgImg: '',
  206. logoImg: '',
  207. shopName: '',
  208. shopShareImg: '',
  209. ponitsBanner: {}, // 积分兑换
  210. giftBanner: {}, // 赠品
  211. partGoodsList: [],
  212. msGoodsList: [],
  213. bannerList: [],
  214. topData: {
  215. top: 0,
  216. height: 0,
  217. },
  218. current: 0,
  219. titleTabCurrentIndex: 0,
  220. goodsList: goodsList,
  221. imageUrl: this.$C.imageUrl,
  222. userInfo: {},
  223. keyword: "",
  224. commonPage: {
  225. pageNum: 1,
  226. pageSize: 4,
  227. total: 0,
  228. },
  229. flowPage: {
  230. pageNum: 1,
  231. pageSize: 4,
  232. total: 0,
  233. },
  234. status: "loadmore",
  235. filterData: {},
  236. loadText: {
  237. loadmore: "点击加载更多",
  238. loading: "努力加载中",
  239. nomore: "没有更多了",
  240. },
  241. selectedType: "",
  242. activeTabStyle: {
  243. fontSize: "36rpx",
  244. fontWeight: "600",
  245. },
  246. mainHeightStyle: {},
  247. mainHeight: "",
  248. commonDataList: [],
  249. flowDataList: [],
  250. statusBarHeight: "",
  251. menuButtonInfo: menuButtonInfo,
  252. searchInputStyle: {
  253. backgroundColor: "transparent",
  254. color: "#1D161F",
  255. },
  256. prevData: [],
  257. advList: [],
  258. goods_class: [],
  259. sourceBanner: [],
  260. activityList: []
  261. };
  262. },
  263. computed: {
  264. // 转换字符数值为真正的数值
  265. navbarHeight() {
  266. return this.topData.top
  267. },
  268. token() {
  269. return this.$U.getStorage("token");
  270. },
  271. mpCommonClass() {
  272. return this.$C.mpCommonClass || ''
  273. }
  274. },
  275. watch: {
  276. titleTabCurrentIndex() {
  277. if (this.titleTabCurrentIndex == 0) {
  278. this.getCommonData(true);
  279. } else {
  280. this.getFlowData(true);
  281. }
  282. },
  283. },
  284. onLoad() {
  285. },
  286. onShow() {
  287. this.getBanner();
  288. this.getNewsList();
  289. this.getActivityList();
  290. this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight - 1; // 状态栏高度
  291. // uni
  292. // .createSelectorQuery()
  293. // .in(this)
  294. // .select("#headerBox")
  295. // .boundingClientRect((data) => {
  296. // let height = (data.height + 20) * 2 + "rpx";
  297. // this.mainHeight = `calc(100vh - ${height})`;
  298. // })
  299. // .exec();
  300. const topData = uni.getMenuButtonBoundingClientRect();
  301. this.topData.top = topData.top;
  302. this.topData.height = topData.height;
  303. if (this.token) {
  304. this.userInfo = this.$U.getStorage("userInfo");
  305. }
  306. // this.getMsData()
  307. // this.getCommonData(true);
  308. },
  309. onReachBottom() {
  310. this.getCommonData();
  311. },
  312. onShareAppMessage(res) {
  313. if (res.from === 'button') { // 来自页面内分享按钮
  314. }
  315. let userInfo = uni.getStorageSync('userInfo')
  316. userInfo = userInfo && JSON.parse(userInfo) || {}
  317. let params = {}
  318. if (userInfo.id) {
  319. params = {
  320. id: userInfo.id
  321. }
  322. }
  323. return {
  324. title: this.shopName,
  325. path: `/pages/home/index${this.$stringPageOptions(params)}`,
  326. imageUrl: this.shopShareImg,
  327. }
  328. },
  329. onShareTimeline(res) {
  330. if (res.from === 'button') { // 来自页面内分享按钮
  331. }
  332. let userInfo = uni.getStorageSync('userInfo')
  333. userInfo = userInfo && JSON.parse(userInfo) || {}
  334. let params = {}
  335. if (userInfo.id) {
  336. params = {
  337. id: userInfo.id
  338. }
  339. }
  340. return {
  341. title: this.shopName,
  342. imageUrl: this.shopShareImg,
  343. path: `/pages/home/index${this.$stringPageOptions(params)}`
  344. }
  345. },
  346. methods: {
  347. toMsList() {
  348. uni.navigateTo({
  349. url: `/subPages/msGoodsList/msGoodsList`,
  350. });
  351. },
  352. toMsDetail(item) {
  353. // 秒杀详情
  354. uni.navigateTo({
  355. url: `/subPages/goodsDetail/goodsDetail?code=${item.id}&type=msGoods`,
  356. });
  357. },
  358. toDetails(item) {
  359. // 秒杀详情
  360. uni.navigateTo({
  361. url: `/subPages/goodsDetail/goodsDetail?code=${item.code}&type=common`,
  362. });
  363. },
  364. toSubpages(type) {
  365. if (type == "pointsZone") {
  366. uni.navigateTo({
  367. url: `/subPages/pointsZone/pointsZone?id=${this.ponitsBanner.pstn_id}`,
  368. });
  369. } else {
  370. uni.navigateTo({
  371. url: `/subPages/giftZone/giftZone?id=${this.giftBanner.pstn_id}`,
  372. });
  373. }
  374. },
  375. jumpPage(type) {
  376. if (type === "haowu") {
  377. uni.navigateTo({
  378. url: '/pages/productCenter/productCenter',
  379. })
  380. } else if (type === "xueyuan") {
  381. uni.navigateTo({url: `/subPages/course/course`,})
  382. } else if (type === "huodong") {
  383. uni.switchTab({
  384. url: '/pages/activity/activity',
  385. })
  386. } else if (type === "peiban") {
  387. uni.navigateTo({url: `/subPages/accompanyingCamp/accompanyingCamp`,})
  388. } else if (type === "shenghuo") {
  389. uni.navigateTo({url: `/subPages/fragrantLife/fragrantLife`,})
  390. } else {
  391. Toast('敬请期待');
  392. }
  393. },
  394. toHuodong(item) {
  395. uni.navigateTo({url: `/subPages/activityDetail/activityDetail?activityId=${item.id}`,})
  396. },
  397. toKecheng(item) {
  398. uni.navigateTo({url: `/subPages/courseDetail/courseDetail?goods_code=${item.code}`,})
  399. },
  400. bannerClick(index) {
  401. const currentUrl = this.sourceBanner[index].pic_url
  402. console.log("22222222222222222222222",currentUrl)
  403. if (currentUrl != '#') {
  404. uni.navigateTo({
  405. url: currentUrl
  406. })
  407. }
  408. },
  409. getBanner() {
  410. getBanner().then((res) => {
  411. const {
  412. slider = [],
  413. goods_class = [],
  414. goods_cate = [],
  415. goods_online = [],
  416. seckill_goods = [],
  417. integral_page = [],
  418. gifts_page = [],
  419. shop_name,
  420. shop_home_logo,
  421. shop_share_img,
  422. shop_bgimg
  423. } = res.data;
  424. const configs = uni.getStorageSync("configs");
  425. if (configs) {
  426. this.logoImg = configs.shop_home_logo
  427. this.bgImg = configs.shop_bgimg
  428. this.shopName = configs.shop_share_title
  429. this.shopShareImg = configs.shop_share_img
  430. } else {
  431. this.logoImg = shop_home_logo
  432. this.bgImg = shop_bgimg
  433. this.shopName = shop_name
  434. this.shopShareImg = shop_share_img
  435. }
  436. this.bannerList = slider.map(item => item.pic);
  437. this.sourceBanner = slider
  438. this.goodsList = goods_cate;
  439. this.commonDataList = goods_online.slice(0, 4);;
  440. this.msGoodsList = seckill_goods;
  441. this.goods_class = goods_class;
  442. this.ponitsBanner = integral_page.length && integral_page[0];
  443. this.giftBanner = gifts_page.length && gifts_page[0];
  444. uni.setStorageSync('mpInfo', {
  445. shopName: this.shopName,
  446. shareImg: this.shopShareImg
  447. })
  448. });
  449. // const data = {
  450. // name: 'sliderread'
  451. // };
  452. // this.$api.getData(data)
  453. // .then((res) => {
  454. // uni.hideLoading();
  455. // console.log("getBanner==>", res.data)
  456. // if (res.data) {
  457. // this.bannerList = res.data;
  458. // } else {}
  459. // })
  460. // .catch(() => {
  461. // uni.hideLoading();
  462. // });
  463. },
  464. toSearchList() {
  465. uni.navigateTo({
  466. url: "/subPages/searchList/searchList",
  467. });
  468. },
  469. getActivityList() {
  470. getActivityList({page: 1, pageSize: 1}).then(({data}) => {
  471. this.activityList = data.list
  472. });
  473. },
  474. getMsData() {
  475. uni.showLoading({
  476. title: "加载中",
  477. });
  478. this.$api
  479. .getPSMsList()
  480. .then((res) => {
  481. uni.hideLoading();
  482. // this.msGoodsList = res.data && res.data.list || []
  483. })
  484. .catch(() => {
  485. uni.hideLoading();
  486. });
  487. },
  488. getNewsList() {
  489. getNewsList({
  490. cid: 1,
  491. page: 1,
  492. pageSize: 1,
  493. }).then(({
  494. data = {}
  495. }) => {
  496. this.advList = data.list || [];
  497. });
  498. },
  499. getCommonData(initFlag) {
  500. if (!initFlag) {
  501. if (
  502. this.commonPage.pageNum * this.commonPage.pageSize <
  503. this.commonPage.total
  504. ) {
  505. this.commonPage.pageNum++;
  506. } else {
  507. return;
  508. }
  509. } else {
  510. this.commonPage.pageNum = 1;
  511. this.commonPage.total = 0;
  512. this.commonDataList = [];
  513. }
  514. let sendData = {
  515. limit: this.commonPage.pageSize,
  516. page: this.commonPage.pageNum,
  517. };
  518. uni.showLoading({
  519. title: "加载中",
  520. });
  521. this.$api
  522. .getPSGoodsList(sendData)
  523. .then((res) => {
  524. uni.hideLoading();
  525. if (res.code == 1) {
  526. const {
  527. list = [], page = {}
  528. } = res.data;
  529. this.commonDataList = this.commonDataList.concat(list);
  530. this.commonPage.total = page.total;
  531. }
  532. })
  533. .catch((err) => {
  534. uni.hideLoading();
  535. });
  536. },
  537. getFlowData(initFlag) {
  538. if (!initFlag) {
  539. if (
  540. this.flowPage.pageNum * this.flowPage.pageSize <
  541. this.flowPage.total
  542. ) {
  543. this.flowPage.pageNum++;
  544. } else {
  545. return;
  546. }
  547. } else {
  548. this.flowPage.pageNum = 1;
  549. this.flowPage.total = 0;
  550. this.flowDataList = [];
  551. }
  552. let sendData = {
  553. limit: this.flowPage.pageSize,
  554. page: this.flowPage.pageNum,
  555. };
  556. uni.showLoading({
  557. title: "加载中",
  558. });
  559. this.$api
  560. .getFlowData(sendData)
  561. .then((res) => {
  562. uni.hideLoading();
  563. if (res.code == 1) {
  564. const {
  565. list = [], page = {}
  566. } = res.data;
  567. this.flowDataList = this.flowDataList.concat(list);
  568. this.flowPage.total = page.total;
  569. }
  570. })
  571. .catch((err) => {
  572. uni.hideLoading();
  573. });
  574. },
  575. searchChange() {
  576. },
  577. toDetail(item) {
  578. uni.navigateTo({
  579. url: "../../subPages/commerceDetail/commerceDetail?id=" + item.id,
  580. });
  581. },
  582. toList(item) {
  583. uni.setStorageSync('currentCateid', item.id)
  584. uni.switchTab({
  585. url: `/pages/productCenter/productCenter?cateid=${item.id}`,
  586. });
  587. },
  588. handleRegister(item2) {
  589. uni.navigateTo({url: `/subPages/activityDetail/activitySave?activityId=${item2.id}`,})
  590. },
  591. handleAdv(index = 0) {
  592. const activeAdv = this.advList[index];
  593. console.log("index==>", index)
  594. console.log("advList==>", this.advList)
  595. uni.navigateTo({
  596. url: "/subPages/accompanyingCamp/accompanyingCampDetail?id=" + activeAdv.id,
  597. });
  598. },
  599. },
  600. };
  601. </script>
  602. w
  603. <style lang="scss" scoped>
  604. page {
  605. overflow-x: hidden;
  606. }
  607. .ps-wrapper {
  608. //background-color: $primary-bg-color;
  609. background-color: #C4D1BB;
  610. overflow: hidden;
  611. .adv-box {
  612. position: relative;
  613. // padding: 0 33rpx 20rpx;
  614. height: 64rpx;
  615. background-color: white;
  616. padding: 0 20rpx 0;
  617. border-radius: 16rpx;
  618. margin: 40rpx 0 20rpx;
  619. font-weight: 500;
  620. .adv-icon {
  621. position: absolute;
  622. left: 6rpx;
  623. top: 50%;
  624. transform: translateY(-50%);
  625. }
  626. ::v-deep {
  627. .u-notice__left-icon {
  628. width: 19px;
  629. .u-icon__icon {
  630. display: none;
  631. }
  632. }
  633. }
  634. }
  635. .custom-indicator {
  636. position: absolute;
  637. bottom: 29rpx;
  638. display: flex;
  639. margin: 0 0rpx 0 0rpx;
  640. flex-direction: row;
  641. justify-content: center;
  642. transform: translateX(-80rpx);
  643. .custom-indicator-item {
  644. width: 16rpx;
  645. height: 16rpx;
  646. margin: 0 6rpx;
  647. border-radius: 12rpx;
  648. background-color: #666666;
  649. }
  650. .banner-active {
  651. width: 48rpx;
  652. background-color: #222222;
  653. }
  654. }
  655. .slot-wrap {
  656. background-color: red;
  657. }
  658. .content-box {
  659. // overflow-y: auto;
  660. background-color: $primary-bg-color;
  661. overflow: hidden;
  662. .activity-list{
  663. width: 750rpx;
  664. border-radius: 0;
  665. position: relative;
  666. overflow: hidden;
  667. .activity-item{
  668. width: 750rpx;
  669. height: 750rpx;
  670. background-color: #E1E3D5;
  671. opacity: 0.8;
  672. .activity-init {
  673. width: 750rpx;
  674. height: 80rpx;
  675. .huodongText2-img {
  676. margin-right: 30rpx;
  677. margin-left: 30rpx;
  678. display: flex; // 添加 flex 布局
  679. align-items: center; // 垂直居中
  680. }
  681. .huodongText2 {
  682. height: 80rpx;
  683. display: flex; // 添加 flex 布局
  684. align-items: center; // 垂直居中
  685. font-weight: 350;
  686. font-size: 24rpx;
  687. color: #4C644A;
  688. line-height: 34rpx;
  689. text-align: left;
  690. font-style: normal;
  691. text-transform: none;
  692. }
  693. .activity-btn {
  694. width: 144rpx;
  695. height: 48rpx;
  696. border-radius: 0rpx 0rpx 0rpx 0rpx;
  697. border: 1rpx solid #4C644A;
  698. font-weight: 350;
  699. font-size: 22rpx;
  700. color: #4C644A;
  701. line-height: 32rpx;
  702. text-align: left;
  703. font-style: normal;
  704. text-transform: none;
  705. margin-right: 20rpx;
  706. }
  707. }
  708. }
  709. }
  710. .biaoti-icon{
  711. width: 200rpx;
  712. height: 200rpx;
  713. position: absolute;
  714. top: 0;
  715. right: -22px;
  716. }
  717. .course-list {
  718. width: 750rpx;
  719. background: linear-gradient(180deg, #C4D1BB 0%, #F7F9F6 31%);
  720. border-radius: 0;
  721. padding-bottom: 22rpx;
  722. position: relative;
  723. .course-item {
  724. width: 690rpx;
  725. height: 208rpx;
  726. margin-bottom: 28rpx;
  727. padding: 0 30rpx;
  728. }
  729. overflow: hidden;
  730. }
  731. .goods-list{
  732. width: 750rpx;
  733. background: linear-gradient( 180deg, #C4D1BB 0%, #F7F9F6 31%);
  734. border-radius: 0;
  735. padding-bottom: 22rpx;
  736. position: relative;
  737. overflow: hidden;
  738. }
  739. .part-box {
  740. background: linear-gradient(180deg, #fdd118 0%, #f7f7f7 100%);
  741. border-radius: 10rpx 10rpx 10rpx 10rpx;
  742. padding: 18rpx 14rpx;
  743. .part-list {
  744. display: flex !important;
  745. flex-direction: row !important;
  746. // justify-content: space-between;
  747. background-color: #fff;
  748. border-radius: 10rpx;
  749. padding: 15rpx 15rpx 30rpx;
  750. font-size: 24rpx;
  751. color: #1d161f;
  752. margin-top: 15rpx;
  753. &-item {
  754. width: calc(33% - 10rpx);
  755. margin-right: 10rpx;
  756. }
  757. }
  758. }
  759. }
  760. .header-box {
  761. width: 100%;
  762. .banner-container {
  763. position: relative;
  764. width: 100%;
  765. .logo-search-container {
  766. position: fixed;
  767. width: 100%;
  768. display: flex;
  769. align-items: center;
  770. padding: 0 20rpx;
  771. box-sizing: border-box;
  772. z-index: 9999;
  773. background-color: rgba(214, 225, 208,1);
  774. .search-box {
  775. margin: 0rpx 20rpx 0rpx 20rpx;
  776. height: 61rpx;
  777. background: rgba(255, 255, 255, 0.3);
  778. border-radius: 30rpx;
  779. opacity: 1;
  780. display: flex;
  781. align-items: center;
  782. flex-direction: row;
  783. text {
  784. font-size: 24rpx;
  785. font-weight: 400;
  786. color: #9D9D9D;
  787. line-height: 61rpx;
  788. margin-left: 11rpx;
  789. }
  790. }
  791. }
  792. .centered-image {
  793. display: flex;
  794. justify-content: center;
  795. align-items: center;
  796. height: 61rpx;
  797. }
  798. }
  799. .content {
  800. width: 100%;
  801. z-index: 50;
  802. // margin-top: -60rpx;s
  803. .title-tab {
  804. font-size: 34rpx;
  805. color: #aca9af;
  806. font-style: italic;
  807. font-weight: 700;
  808. margin-bottom: 26rpx;
  809. padding: 0 20rpx;
  810. &-item {
  811. margin-right: 30rpx;
  812. }
  813. &-actived {
  814. color: #000;
  815. }
  816. }
  817. }
  818. }
  819. .box-list {
  820. display: flex;
  821. flex-wrap: wrap;
  822. justify-content: flex-start;
  823. width: calc(750rpx - 40rpx);
  824. height: 292rpx;
  825. background: linear-gradient(180deg, #C4D1BB 0%, #F7F9F6 44%);
  826. border-radius: 0rpx 0rpx 0rpx 0rpx;
  827. //background-color: #FFFFFF;;
  828. padding: 0 20rpx 0;
  829. &-item {
  830. display: flex;
  831. flex-direction: column;
  832. justify-content: center;
  833. align-items: center;
  834. width: 20%;
  835. flex-shrink: 0;
  836. text-align: center;
  837. color: #1d161f;
  838. font-size: 26rpx;
  839. }
  840. }
  841. .biaoti {
  842. width: 100%;
  843. height: 186rpx;
  844. display: flex;
  845. justify-content: center;
  846. align-items: center
  847. }
  848. }
  849. </style>
  850. <style lang="scss">
  851. page {
  852. height: 100vh;
  853. }
  854. </style>