index.vue 22 KB

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