index.vue 24 KB

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