index.vue 21 KB

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