index.vue 21 KB

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