index.vue 20 KB

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