index.vue 28 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018
  1. <template>
  2. <view class="index-box">
  3. <image class="bg-img" src="@/static/img/index/index-bg.png" mode="scaleToFill"></image>
  4. <view class="nav-z">
  5. <Nav class="" :leftShow='false' :customNav='true' :bgckgroundBox='bgckgroundBox'>
  6. <template>
  7. <view slot="custom" class="align-items-center" @click="toSelectSchool()">
  8. <!-- <uni-icons type="location-filled" size="20"></uni-icons> -->
  9. <image class="wh-40" src="@/static/img/index/dw.png" mode=""></image>
  10. <view class="fs-32 maxw-220 fw-600 ml-10 text-overflow-ellipsis-one">
  11. {{schoolData.school_name||''}}
  12. </view>
  13. <image class="nav-icon ml-10" src="@/static/img/index/index-right.png" mode="aspectFit"></image>
  14. </view>
  15. </template>
  16. </Nav>
  17. </view>
  18. <!-- 搜索 -->
  19. <view class="index-search box-border-box mt-4" @click="toUrl(1)"
  20. :style="[{'top': BarH + 'px','background':bgckgroundSearch}]">
  21. <view class="index-search-box box-border-box align-items-center">
  22. <!-- <uni-icons type="search" size="20" color="#000"></uni-icons> -->
  23. <image class="wh32" src="@/static/img/index/ss.png" mode=""></image>
  24. <view class="fs-28 fc-9 ml-10">搜索店铺名称或者商品名称</view>
  25. <view class="fs-28 fc-f index-search-box-buttom">搜索</view>
  26. </view>
  27. </view>
  28. <view class="index-box-1 ">
  29. <!-- 轮播 -->
  30. <view class="box-border-box plr-24 mb-32">
  31. <uni-swiper-dot :info="bannerList" mode="dot" :dotsStyles="dotStyle" :current="current">
  32. <swiper class="swiper" @change="change">
  33. <swiper-item v-for="(item,i) in bannerList" :key="i">
  34. <image class="swiper-item" :src="item.image" mode="aspectFill" @click="bannerClock(item)">
  35. </image>
  36. </swiper-item>
  37. </swiper>
  38. </uni-swiper-dot>
  39. </view>
  40. <!-- 导航 -->
  41. <view class="box-border-box plr-24">
  42. <view class="nav-list flex-wrap-wrap box-border-box mb-22">
  43. <view class="nav-list-item" v-for="(item,i) in navList" :key="i" @click="toUrl(item.type)">
  44. <image :src="item.img" mode="scaleToFill"></image>
  45. <view class="fs-26 fc-3 text-align-center">{{item.name}}</view>
  46. </view>
  47. </view>
  48. </view>
  49. <!-- 通知 -->
  50. <view class="box-border-box plr-24">
  51. <view class="msg-box align-items-center box-border-box">
  52. <image class="image-1" src="@/static/img/index/index-tz.png" mode="scaleToFill"></image>
  53. <view class="box-1 fs-20 fc-41ABF5">公告</view>
  54. <swiper class="tz-swiper" :vertical="true" circular :autoplay="true" :interval="3000" :duration="500">
  55. <swiper-item v-for="(item,i) in noticeList" :key="i" @click="toNoticeDet(item)">
  56. <view class="tz-swiper-item">{{item.title}}</view>
  57. </swiper-item>
  58. </swiper>
  59. <!-- <image class="image-2" src="@/static/img/toRight.png" mode="scaleToFill"></image> -->
  60. </view>
  61. </view>
  62. <!-- 限时秒杀 -->
  63. <view class="spike-box box-border-box" v-if="seckillGoodsList.length > 0">
  64. <view class="xsms-box mb-32">
  65. <image class="image-title" src="@/static/img/index/index-xsms.png" mode="scaleToFill"></image>
  66. <view class="xsms-box-list-f box-border-box plr-12">
  67. <scroll-view class="xsms-box-list display-flex" scroll-x="true">
  68. <view class="xsms-box-list-item box-border-box p-8" v-for="(item,i) in seckillGoodsList" :key="i"
  69. @click="toShop(item)">
  70. <image class="xsms-box-list-item-img-1 mb-4" :src="item.goods_image" mode="aspectFill">
  71. </image>
  72. <view class="text-overflow-ellipsis-one fs-26 mb-4">{{item.goods_name}}</view>
  73. <view class="mb-4">
  74. <span class="fs-20 fw-b fc-FB3D03">¥</span><span
  75. class="fs-32 fw-b fc-FB3D03">{{item.seckill_money}}</span>
  76. </view>
  77. <view class="fs-20 fc-9 text-line-through">¥{{item.line_price}}</view>
  78. <image class="xsms-box-list-item-img-2" src="@/static/img/index/index-q.png" mode="scaleToFill"></image>
  79. </view>
  80. </scroll-view>
  81. </view>
  82. </view>
  83. </view>
  84. <!-- 类型选择 -->
  85. <view class="type-list-box display-flex bgc-F5F4F9" :style="[{'background':bgckgroundType}]">
  86. <view class="type-item-box view-nowrap" :class="category_id==item.id?'s-type':'n-type'"
  87. v-for="(item,i) in typeList" :key="i" @click="selectType(item.id)">{{item.name}}</view>
  88. </view>
  89. <!-- 商品列表 -->
  90. <view class="" v-if="goodsList.length<=0">
  91. <enBlankVue></enBlankVue>
  92. </view>
  93. <view class="box-border-box plr-24" v-else>
  94. <view class="goos-list-box box-border-box p-24 display-flex" v-for="(item,i) in goodsList" :key="i"
  95. @click="toShop(item)">
  96. <view class="left-img-box">
  97. <image class="left-img" :src="item.shop_logo" mode="aspectFill"></image>
  98. <view class="status-box fc-f" v-if="item.status != 1">
  99. 休息中
  100. </view>
  101. </view>
  102. <view class="flex-1">
  103. <view class="align-items-center mb-8">
  104. <view class="right-box-title fs-32 fw-600 text-overflow-ellipsis-one">{{item.shop_name}}
  105. </view>
  106. <image class="right-box-title-img" src="@/static/img/toRight.png" mode=""></image>
  107. </view>
  108. <view class="align-items-center mb-12">
  109. <image class="img-x mr-12" src="@/static/img/index/index-x.png" mode=""></image>
  110. <view class="fs-26 fw-600 fc-FF7F00 mr-12">{{item.shop_score}}分</view>
  111. <view class="fc-6 fs-24 mr-12">| 预计{{item.delivery_time}}分钟 |</view>
  112. <view class="fc-6 fs-24 mr-12">{{item.shop_sales}}人购买</view>
  113. </view>
  114. <view class="align-items-center flex-wrap-wrap">
  115. <view class="quan-list align-items-center mr-12 mb-16" v-for="(info1,index1) in item.coupon"
  116. :key="index1">
  117. <view class="quan-list-1 fs-24 fc-f">券</view>
  118. <view class="quan-list-2 fs-24 fc-FB3D03">{{info1.money}}元</view>
  119. </view>
  120. </view>
  121. <view class="goods-items-list display-flex">
  122. <view class="goods-items-list-box" v-for="(info2,index2) in item.goods" :key="index2">
  123. <image class="mb-12" :src="info2.goods_image" mode="aspectFill"></image>
  124. <view class="mb-8 fw-600 text-overflow-ellipsis-one fs-26">{{info2.goods_name}}</view>
  125. <view class="">
  126. <span class="fs-24 fc-FB3D03">¥</span>
  127. <span class="fs-32 fc-FB3D03 fw-b">{{info2.price}}</span>
  128. </view>
  129. </view>
  130. </view>
  131. </view>
  132. </view>
  133. </view>
  134. </view>
  135. <uni-popup ref="popup" type="center" border-radius="10px 10px 10px 10px" :is-mask-click="false">
  136. <view class="roll-pop">
  137. <!-- <image class="lq-bg" src="@/static/img/index/lq-bg.png" mode=""></image> -->
  138. <image class="tc-top" src="@/static/img/index/tc-top.png" mode=""></image>
  139. <view class="coupon-box">
  140. <image class="tc-content" src="@/static/img/index/tc-content.png" mode=""></image>
  141. <view class="item-box display-flex" v-for="(item,index) in couponData" :key="index">
  142. <view class="item-right flex-direction flex-justify-center flex-1 bgc-FCE7E2">
  143. <view class="fs-28 mb-12 ticket-name text-overflow-ellipsis fc-3 fw-600">
  144. {{item.name}}
  145. </view>
  146. <view class="fs-22 fc-6 mb-12">
  147. 有效时间:{{item.time_type_str}}
  148. </view>
  149. <view class="fs-22 fc-6">
  150. 券类型:{{item.scene == 1?'外卖卷':'代取卷'}}
  151. </view>
  152. </view>
  153. <view class="item-hr"></view>
  154. <view class="item-left flex-direction align-items-center flex-justify-center bgc-FCE7E2">
  155. <view class="align-items-center">
  156. <view class="fs-24 fw-600 fc-FB3D03">¥</view>
  157. <view class="fs-48 fw-600 fc-FB3D03">{{item.money}}</view>
  158. </view>
  159. <view class="fs-22 fc-6 mb-4">
  160. 需满{{item.full_money}}元
  161. </view>
  162. <view class="but-box fs-26 fc-f" @click="receive(item,index)">立即领取</view>
  163. <view class="ball"></view>
  164. <view class="ball-two"></view>
  165. </view>
  166. </view>
  167. </view>
  168. <image class="tc-bot" src="@/static/img/index/tc-bot.png" mode=""></image>
  169. <uni-icons @click="gbPOp" class="pop-gb" color='#fff' type="close" size="30"></uni-icons>
  170. </view>
  171. </uni-popup>
  172. </view>
  173. </template>
  174. <script>
  175. import enBlankVue from "@/components/en-utils/en-blank/en-blank.vue";
  176. import tools from "@/service/tools";
  177. import {
  178. getNotice,
  179. getBanner,
  180. } from '@/api/common.js';
  181. import {
  182. getSeckillGoods
  183. } from '@/api/seckill.js'
  184. import {
  185. getTakeaway
  186. } from '@/api/category.js';
  187. import {
  188. getGoodsList
  189. } from '@/api/goods.js';
  190. import {
  191. couponHome,
  192. receiveCoupon
  193. } from '@/api/coupon.js'
  194. import {
  195. shopInfo
  196. } from "@/api/shop.js"
  197. export default {
  198. components: {
  199. enBlankVue
  200. },
  201. data() {
  202. return {
  203. BarH: 0,
  204. bgckgroundBox: 'transparent',
  205. bgckgroundSearch: '',
  206. bgckgroundType: '',
  207. navList: [{
  208. name: "外卖",
  209. img: require('@/static/img/index/index-wm.png'),
  210. type: 2
  211. },
  212. {
  213. name: "代取",
  214. img: require('@/static/img/index/index-dq.png'),
  215. type: 3
  216. },
  217. {
  218. name: "校友圈",
  219. img: require('@/static/img/index/index-xyq.png'),
  220. type: 7
  221. },
  222. {
  223. name: "团购",
  224. img: require('@/static/img/index/index-tg.png'),
  225. type: 5
  226. },
  227. {
  228. name: "票务",
  229. img: require('@/static/img/index/index-pw.png'),
  230. type: 4
  231. },
  232. {
  233. name: "干洗",
  234. img: require('@/static/img/index/index-gx.png'),
  235. type: 6
  236. },
  237. {
  238. name: "租凭",
  239. img: require('@/static/img/index/index-zp.png'),
  240. },
  241. {
  242. name: "二手市场",
  243. img: require('@/static/img/index/index-esss.png'),
  244. },
  245. {
  246. name: "回收",
  247. img: require('@/static/img/index/index-hs.png'),
  248. },
  249. {
  250. name: "实习岗位",
  251. img: require('@/static/img/index/index-sxgw.png'),
  252. type: 8
  253. },
  254. ],
  255. schoolData: {
  256. school_name: '',
  257. },
  258. noticeList: [],
  259. bannerList: [],
  260. seckillGoodsList: [],
  261. typeList: [], //分类数组
  262. category_id: 0, //分类id
  263. goodsList: [],
  264. total: 0,
  265. page: 1,
  266. couponData: [],
  267. dotStyle: {
  268. width: 6,
  269. bottom: 6,
  270. backgroundColor: 'rgba(51, 51, 51,0.3)',
  271. border: '1px rgba(51, 51, 51,0.3) solid',
  272. color: '#fff',
  273. selectedBackgroundColor: 'rgba(79, 179, 239,0.9)',
  274. selectedBorder: '1px rgba(0,0,0,0) solid'
  275. },
  276. current: 0
  277. }
  278. },
  279. onShow() {
  280. // let lon = uni.getStorageSync('lon');
  281. // let lat = uni.getStorageSync('lat');
  282. // if (!lon || !lat) {
  283. // uni.getLocation({
  284. // type: "gcj02",
  285. // success: (res) => {
  286. // if (res.errMsg === 'getLocation:ok') {
  287. // uni.setStorageSync('lon', res.longitude);
  288. // uni.setStorageSync('lat', res.latitude);
  289. // } else {
  290. // tools.error('位置授权失败,请检查是否开始授权')
  291. // }
  292. // },
  293. // fail: (res) => {
  294. // tools.error('位置授权失败,请检查是否开始授权')
  295. // },
  296. // })
  297. // }
  298. let school_id = uni.getStorageSync('school_id');
  299. let operate_id = uni.getStorageSync('operate_id');
  300. let school_name = uni.getStorageSync('school_name');
  301. if (!school_id || !operate_id) {
  302. setTimeout(() => {
  303. uni.reLaunch({
  304. url: '/pages-address/select-school?type=1'
  305. })
  306. }, 1000)
  307. } else {
  308. this.schoolData.school_name = school_name;
  309. }
  310. this.getBanner();
  311. this.getNotice();
  312. this.getSeckillGoods();
  313. this.getTakeaway();
  314. let userToken = uni.getStorageSync('token')
  315. if (userToken) {
  316. this.couponHome()
  317. }
  318. },
  319. onLoad() {
  320. this.page = 1;
  321. this.goodsList = [];
  322. this.getGoodsList();
  323. },
  324. mounted() {
  325. },
  326. onPageScroll(e) {
  327. if (e.scrollTop > 1) {
  328. this.bgckgroundBox = '#fff';
  329. this.bgckgroundSearch = '#fff';
  330. if (e.scrollTop > 500) {
  331. this.bgckgroundType = '#fff';
  332. } else {
  333. this.bgckgroundType = '';
  334. }
  335. } else {
  336. this.bgckgroundBox = 'transparent';
  337. this.bgckgroundSearch = '';
  338. this.bgckgroundType = '';
  339. }
  340. },
  341. onReachBottom() {
  342. if (this.goodsList.length < this.total) {
  343. this.page += 1;
  344. this.getGoodsList();
  345. }
  346. },
  347. created() {
  348. uni.getSystemInfo({
  349. success: (e) => {
  350. let statusBarH = e.statusBarHeight + 10
  351. let custom = 0;
  352. custom = wx.getMenuButtonBoundingClientRect()
  353. let customBarH = custom.height;
  354. this.BarH = statusBarH + customBarH;
  355. }
  356. })
  357. },
  358. methods: {
  359. change(e) {
  360. this.current = e.detail.current
  361. },
  362. bannerClock(item) {
  363. if (item.type == 1) {
  364. // 外卖首页
  365. uni.navigateTo({
  366. url: '/pages-takeout/takeout'
  367. })
  368. } else if (item.type == 2) {
  369. if (item.to_id != 0) {
  370. // 外卖商家
  371. uni.navigateTo({
  372. url: '/pages-takeout/shop?shop_id=' + item.to_id
  373. })
  374. } else {
  375. // 外卖首页
  376. uni.navigateTo({
  377. url: '/pages-takeout/takeout'
  378. })
  379. }
  380. } else if (item.type == 3) {
  381. // 代取页
  382. uni.navigateTo({
  383. url: '/pages-takeout/replace-take'
  384. })
  385. } else if (item.type === 4) {
  386. // 团购页
  387. uni.navigateTo({
  388. url: '/pages-buy/group'
  389. })
  390. } else if (item.type === 5) {
  391. // 票务页
  392. uni.navigateTo({
  393. url: '/pages-buy/ticket'
  394. })
  395. } else if (item.type === 6) {
  396. // 干洗页
  397. uni.navigateTo({
  398. url: '/pages-buy/dry-clean'
  399. })
  400. } else if (item.type === 7) {
  401. // 校友圈
  402. uni.navigateTo({
  403. url: '/pages-school/school-circle'
  404. })
  405. } else if (item.type === 8) {
  406. // 骑手申请页
  407. uni.navigateTo({
  408. url: '/pages-my/rider-recruit'
  409. })
  410. }
  411. },
  412. receive(item, index) {
  413. receiveCoupon({
  414. grant_id: item.grant_id,
  415. coupon_id: item.coupon_id
  416. }).then((res) => {
  417. if (res.code == 1) {
  418. tools.success(res.msg)
  419. this.couponData.splice(index, 1)
  420. if (this.couponData.length <= 0) {
  421. this.gbPOp()
  422. }
  423. } else {
  424. tools.error(res.msg)
  425. }
  426. })
  427. },
  428. couponHome() {
  429. let operate_id = uni.getStorageSync('operate_id');
  430. couponHome({
  431. operate_id: operate_id
  432. }).then((res) => {
  433. if (res.code == 1) {
  434. if (res.data.length > 0) {
  435. uni.hideTabBar()
  436. this.couponData = res.data
  437. this.$refs.popup.open()
  438. }
  439. }
  440. })
  441. },
  442. gbPOp() {
  443. uni.showTabBar()
  444. this.$refs.popup.close()
  445. },
  446. getBanner() {
  447. getBanner().then((res) => {
  448. if (res.code === 1) {
  449. this.bannerList = res.data;
  450. }
  451. })
  452. },
  453. getNotice() {
  454. getNotice().then((res) => {
  455. if (res.code === 1) {
  456. this.noticeList = res.data;
  457. }
  458. })
  459. },
  460. getSeckillGoods() {
  461. let operate_id = uni.getStorageSync('operate_id');
  462. getSeckillGoods({
  463. operate_id: operate_id
  464. }).then((res) => {
  465. if (res.code === 1) {
  466. this.seckillGoodsList = res.data
  467. }
  468. })
  469. },
  470. getTakeaway() {
  471. getTakeaway().then((res) => {
  472. if (res.code === 1) {
  473. this.typeList = res.data;
  474. this.typeList.unshift({
  475. name: "全部",
  476. id: 0
  477. })
  478. }
  479. })
  480. },
  481. getGoodsList() {
  482. let operate_id = uni.getStorageSync('operate_id');
  483. getGoodsList({
  484. page: this.page,
  485. operate_id: operate_id,
  486. category_id: this.category_id
  487. }).then((res) => {
  488. if (res.code === 1) {
  489. this.goodsList = [...this.goodsList, ...res.data.items];
  490. this.total = res.data.total;
  491. }
  492. })
  493. },
  494. selectType(id) {
  495. if (this.category_id != id) {
  496. this.category_id = id;
  497. this.page = 1;
  498. this.goodsList = [];
  499. this.getGoodsList();
  500. }
  501. },
  502. toUrl(type) {
  503. if (type === 1) {
  504. // 去搜索
  505. uni.navigateTo({
  506. url: '/pages/index/search-record'
  507. })
  508. } else if (type === 2) {
  509. // 去外卖
  510. uni.navigateTo({
  511. url: '/pages-takeout/takeout'
  512. })
  513. } else if (type === 3) {
  514. // 去代取
  515. uni.navigateTo({
  516. url: '/pages-takeout/replace-take'
  517. })
  518. } else if (type === 4) {
  519. // 去票务
  520. uni.navigateTo({
  521. url: '/pages-buy/ticket'
  522. })
  523. } else if (type === 5) {
  524. // 去团购
  525. uni.navigateTo({
  526. url: '/pages-buy/group'
  527. })
  528. } else if (type === 6) {
  529. // 去干洗
  530. uni.navigateTo({
  531. url: '/pages-buy/dry-clean'
  532. })
  533. } else if (type === 7) {
  534. // 去校友圈
  535. uni.navigateTo({
  536. url: '/pages-school/school-circle'
  537. })
  538. } else if (type === 8) {
  539. // 去实习岗位
  540. uni.navigateTo({
  541. url: '/pages-position/Internship-position'
  542. })
  543. } else {
  544. tools.error('暂未开放')
  545. }
  546. },
  547. toSelectSchool() {
  548. uni.navigateTo({
  549. url: '/pages-address/select-school?type=1'
  550. })
  551. },
  552. toShop(item) {
  553. const operate_id = uni.getStorageSync('operate_id')
  554. shopInfo({
  555. operate_id: operate_id,
  556. shop_id: item.shop_id
  557. }).then((res) => {
  558. if (res.code == 1) {
  559. uni.navigateTo({
  560. url: '/pages-takeout/shop?shop_id=' + item.shop_id
  561. })
  562. } else {
  563. tools.error(res.msg)
  564. }
  565. })
  566. },
  567. toNoticeDet(item) {
  568. uni.navigateTo({
  569. url: '/pages-my/notice/info?id=' + item.id
  570. })
  571. },
  572. },
  573. }
  574. </script>
  575. <style lang="scss" scoped>
  576. .spike-box {
  577. padding: 24rpx 24rpx 0;
  578. }
  579. .wh32 {
  580. width: 32rpx;
  581. height: 32rpx;
  582. }
  583. .nav-z {
  584. position: relative;
  585. z-index: 1 !important;
  586. }
  587. .wh-40 {
  588. width: 40rpx;
  589. height: 40rpx;
  590. }
  591. .item-box {
  592. margin-bottom: 20rpx;
  593. }
  594. .item-box:last-child {
  595. margin: 0;
  596. }
  597. .roll-pop {
  598. position: relative;
  599. width: 100vw;
  600. // height: 1000rpx;
  601. .tc-top {
  602. width: 100%;
  603. height: 202rpx;
  604. }
  605. .tc-bot {
  606. width: 100%;
  607. height: 178rpx;
  608. }
  609. .pop-gb {
  610. width: 56rpx;
  611. height: 56rpx;
  612. position: absolute;
  613. bottom: -65rpx;
  614. left: calc((100% - 28rpx) / 2);
  615. }
  616. }
  617. .coupon-box {
  618. width: 100%;
  619. // min-height: 590rpx;
  620. padding: 0 82rpx 0 92rpx;
  621. box-sizing: border-box;
  622. position: relative;
  623. .tc-content {
  624. position: absolute;
  625. left: 0;
  626. top: 0;
  627. width: 100%;
  628. height: 100%;
  629. }
  630. }
  631. .index-box {
  632. .maxw-220 {
  633. max-width: 220rpx;
  634. }
  635. position: relative;
  636. .bg-img {
  637. width: 100%;
  638. height: 930rpx;
  639. position: absolute;
  640. top: 0;
  641. left: 0;
  642. z-index: -2;
  643. }
  644. .nav-icon {
  645. width: 32rpx;
  646. height: 32rpx;
  647. }
  648. .index-box-1 {
  649. width: 100%;
  650. // height: 3000rpx;
  651. .swiper {
  652. width: 702rpx;
  653. height: 220rpx;
  654. border-radius: 20rpx;
  655. .swiper-item {
  656. width: 702rpx;
  657. height: 220rpx;
  658. border-radius: 20rpx;
  659. }
  660. }
  661. .nav-list {
  662. padding: 0 22rpx;
  663. .nav-list-item {
  664. margin-right: 52rpx;
  665. margin-bottom: 16rpx;
  666. image {
  667. width: 88rpx;
  668. height: 88rpx;
  669. margin: 0 auto;
  670. }
  671. }
  672. .nav-list-item:nth-child(7) {
  673. margin-right: 42rpx !important;
  674. }
  675. .nav-list-item:nth-child(8) {
  676. margin-right: 46rpx !important;
  677. }
  678. .nav-list-item:nth-child(9) {
  679. margin-right: 44rpx !important;
  680. }
  681. .nav-list-item:nth-child(5),
  682. .nav-list-item:nth-child(10) {
  683. margin-right: 0;
  684. }
  685. }
  686. .msg-box {
  687. width: 100%;
  688. height: 66rpx;
  689. background: #F7F8FC;
  690. border-radius: 12rpx;
  691. padding: 0 14rpx;
  692. .image-1 {
  693. width: 72rpx;
  694. height: 32rpx;
  695. margin-right: 10rpx;
  696. }
  697. .image-2 {
  698. width: 40rpx;
  699. height: 40rpx;
  700. margin-left: auto;
  701. }
  702. .box-1 {
  703. width: 50rpx;
  704. height: 26rpx;
  705. border-radius: 2rpx;
  706. border: 2rpx solid #41ABF5;
  707. text-align: center;
  708. line-height: 26rpx;
  709. margin-right: 10rpx;
  710. }
  711. .tz-swiper {
  712. width: 444rpx;
  713. height: 66rpx;
  714. .tz-swiper-item {
  715. width: 444rpx;
  716. height: 66rpx;
  717. line-height: 66rpx;
  718. color: #666;
  719. font-size: 30rpx;
  720. }
  721. }
  722. }
  723. .xsms-box {
  724. .image-title {
  725. width: 100%;
  726. height: 92rpx;
  727. }
  728. .xsms-box-list-f {
  729. width: 100%;
  730. height: 310rpx;
  731. background: linear-gradient(180deg, #ABDEFE 4%, #C9EAFF 30%, #C9EAFF 100%);
  732. border-radius: 0rpx 0rpx 20rpx 20rpx;
  733. }
  734. .xsms-box-list {
  735. white-space: nowrap;
  736. .xsms-box-list-item:last-child {
  737. margin-right: 0;
  738. }
  739. .xsms-box-list-item {
  740. width: 180rpx;
  741. height: 300rpx;
  742. background: #FFFFFF;
  743. border-radius: 8rpx;
  744. margin-right: 8rpx;
  745. position: relative;
  746. display: inline-block;
  747. .xsms-box-list-item-img-1 {
  748. width: 164rpx;
  749. height: 175rpx;
  750. border-radius: 9rpx;
  751. }
  752. .xsms-box-list-item-img-2 {
  753. position: absolute;
  754. width: 62rpx;
  755. height: 36rpx;
  756. right: 0;
  757. bottom: 8rpx;
  758. }
  759. }
  760. }
  761. }
  762. .type-list-box {
  763. position: sticky;
  764. left: 0;
  765. // top: calc(var(BarH)px + 93rpx);
  766. top: calc(86px + 93rpx);
  767. padding: 24rpx;
  768. overflow-x: scroll;
  769. z-index: 666;
  770. .type-item-box {
  771. margin-right: 16rpx;
  772. padding: 0 24rpx;
  773. // min-width: 300rpx;
  774. height: 56rpx;
  775. line-height: 56rpx;
  776. border-radius: 200rpx;
  777. text-align: center;
  778. font-size: 28rpx;
  779. }
  780. .type-item-box:last-child {
  781. margin-right: 0;
  782. }
  783. .s-type {
  784. color: #fff;
  785. font-weight: 600;
  786. background: linear-gradient(280deg, #44B1F7 0%, #96D6F4 100%);
  787. }
  788. .n-type {
  789. color: #666;
  790. background-color: #fff;
  791. }
  792. }
  793. .goos-list-box {
  794. width: 100%;
  795. min-height: 100rpx;
  796. background: #FFFFFF;
  797. box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(51, 51, 51, 0.1);
  798. border-radius: 20rpx;
  799. margin-bottom: 20rpx;
  800. .goods-items-list {
  801. width: 530rpx;
  802. overflow-y: scroll;
  803. .goods-items-list-box {
  804. width: 140rpx;
  805. margin-right: 16rpx;
  806. image {
  807. width: 140rpx;
  808. height: 140rpx;
  809. border-radius: 12rpx
  810. }
  811. }
  812. }
  813. .left-img-box {
  814. width: 100rpx;
  815. height: 100rpx;
  816. margin-right: 16rpx;
  817. position: relative;
  818. .left-img {
  819. width: 100rpx;
  820. height: 100rpx;
  821. border-radius: 12rpx;
  822. }
  823. .status-box {
  824. position: absolute;
  825. bottom: 0;
  826. left: 0;
  827. width: 100%;
  828. padding: 4rpx 0;
  829. text-align: center;
  830. background: rgba(0, 0, 0, 0.5);
  831. font-size: 17rpx;
  832. border-radius: 0 0 12rpx 12rpx;
  833. }
  834. }
  835. .img-x {
  836. width: 24rpx;
  837. height: 24rpx;
  838. }
  839. .right-box-title {
  840. width: 438rpx;
  841. }
  842. .right-box-title-img {
  843. width: 32rpx;
  844. height: 32rpx;
  845. margin-left: auto;
  846. }
  847. .quan-list {
  848. .quan-list-1 {
  849. width: 32rpx;
  850. height: 34rpx;
  851. background: #FB3D03;
  852. border-radius: 5rpx 0rpx 0rpx 5rpx;
  853. text-align: center;
  854. line-height: 34rpx;
  855. }
  856. .quan-list-2 {
  857. box-sizing: border-box;
  858. height: 34rpx;
  859. line-height: 34rpx;
  860. padding: 0 4rpx;
  861. border-radius: 0 5rpx 5rpx 0;
  862. border: 1rpx solid #FB3D03;
  863. text-align: center;
  864. }
  865. }
  866. }
  867. }
  868. .index-search {
  869. position: sticky;
  870. left: 0;
  871. z-index: 10;
  872. padding: 0 24rpx 20rpx 24rpx;
  873. .index-search-box {
  874. width: 100%;
  875. height: 72rpx;
  876. padding: 0 6rpx 0 24rpx;
  877. border-radius: 200rpx;
  878. border: 2rpx solid #4FB3EF;
  879. .index-search-box-buttom {
  880. width: 120rpx;
  881. height: 60rpx;
  882. background: linear-gradient(90deg, #57CAFF 0%, #41ABF5 100%);
  883. border-radius: 200rpx;
  884. margin-left: auto;
  885. line-height: 60rpx;
  886. text-align: center;
  887. }
  888. }
  889. }
  890. }
  891. .item-hr {
  892. width: 0px;
  893. height: auto;
  894. border-right: 1rpx dashed #FB7850;
  895. }
  896. .item-hr-two {
  897. width: 0px;
  898. height: auto;
  899. border-right: 1rpx dashed #999;
  900. }
  901. .item-left {
  902. width: 171rpx;
  903. height: auto;
  904. padding: 20rpx 18rpx;
  905. box-sizing: border-box;
  906. position: relative;
  907. border-radius: 0 20rpx 20rpx 0;
  908. }
  909. .ball {
  910. width: 24rpx;
  911. height: 24rpx;
  912. border-radius: 50%;
  913. position: absolute;
  914. top: -12rpx;
  915. left: -12rpx;
  916. background: #fff;
  917. z-index: 2;
  918. }
  919. .ball-two {
  920. width: 24rpx;
  921. height: 24rpx;
  922. border-radius: 50%;
  923. position: absolute;
  924. background: #fff;
  925. z-index: 10;
  926. bottom: -12rpx;
  927. left: -12rpx;
  928. }
  929. .item-right {
  930. padding: 24rpx;
  931. box-sizing: border-box;
  932. border-radius: 20rpx 0 0 20rpx;
  933. position: relative;
  934. }
  935. .but-box {
  936. width: 136rpx;
  937. height: 48rpx;
  938. line-height: 48rpx;
  939. text-align: center;
  940. background: linear-gradient(225deg, #FB3D03 0%, #FF6901 100%);
  941. border-radius: 200rpx;
  942. }
  943. </style>