index.vue 23 KB

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