index.vue 25 KB

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