index.vue 36 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496
  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-20" @click="toUrl(1)"
  20. :style="[{'top': BarH + 'px','background':bgckgroundSearch}]">
  21. <view class="index-search-box box-border-box align-items-center bgc-f">
  22. <image class="wh27" src="@/static/img/index/ss.png" mode=""></image>
  23. <view class="fs-24 fc-a ml-10">搜索店铺名称或商品名称</view>
  24. <view class="fs-28 fc-f index-search-box-buttom">搜索</view>
  25. </view>
  26. </view>
  27. <view class="index-box-1">
  28. <!-- 轮播 -->
  29. <view class="box-border-box plr-24 mb-32">
  30. <uni-swiper-dot :info="bannerList" mode="dot" :dotsStyles="dotStyle" :current="current">
  31. <swiper class="swiper" @change="change" :autoplay='true' :circular='true' interval="4000">
  32. <swiper-item v-for="(item,i) in bannerList" :key="i">
  33. <image class="swiper-item" :src="item.image" mode="aspectFill" @click="bannerClock(item)">
  34. </image>
  35. </swiper-item>
  36. </swiper>
  37. </uni-swiper-dot>
  38. </view>
  39. <!-- 导航 -->
  40. <view class="box-border-box mb-22 plr-24">
  41. <view class="nav-list align-items-flex-end flex-wrap-wrap box-border-box pt-33 bgc-f b-rad-20">
  42. <view class="nav-list-item" v-for="(item,i) in navList" :key="i" @click="toUrl(item.type)"
  43. v-show="item.appletAudit == 0">
  44. <view class="flex-direction align-items-center title-img-box">
  45. <image class="title-img mb-16" :src="item.img" mode="scaleToFill"></image>
  46. <view class="fs-24 fc-0 text-align-center">{{item.name}}</view>
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. <!-- 通知 -->
  52. <view class="box-border-box plrb-24">
  53. <view class="msg-box align-items-center box-border-box">
  54. <image class="rb-bg" src="@/static/img/index/rb-bg.png" mode=""></image>
  55. <image class="xyrb-img mr-30 z-2" src="@/static/img/index/xyrb.png" mode=""></image>
  56. <view class="flex-direction flex-justify-space z-2 h-100">
  57. <view class="align-items-center" v-for="(item,i) in noticeList" :key="i"
  58. @click="toNoticeDet(item)">
  59. <view class="serial-num mr-10 fs-18 fc-f text-align-center"
  60. :class="i + 1 === 1?'bgc-F5541E':i + 1 === 2?'bgc-FF5555':'bgc-4db8ff'">
  61. {{ i + 1}}
  62. </view>
  63. <view class="fs-24 fc-0 text-overflow-ellipsis-one max-w-358">
  64. {{item.content}}
  65. </view>
  66. </view>
  67. </view>
  68. </view>
  69. </view>
  70. <!-- 明星店铺 -->
  71. <view class="plr-30 box-border-box mb-20 align-items-center flex-justify-space">
  72. <view class="flex-1 mr-20 b-rad-20 mxdq-box box-border-box">
  73. <image class="tj-bg" src="@/static/img/index/tj-bg.png" mode=""></image>
  74. <image class="mxdp mb-24 z-2" src="@/static/img/index/mxdp.png" mode=""></image>
  75. <view class="align-items-center flex-wrap-wrap z-2">
  76. <image v-for="(item,index) in shopHomeData" class="tj-item mr-12 mb-12 b-rad-12"
  77. :src="item.shop_logo" mode="" @click="toShop(item)"></image>
  78. </view>
  79. </view>
  80. <image class="xzkn-img" src="@/static/img/index/xzkn.png" mode="" @click="toUrl(4)"></image>
  81. </view>
  82. <!-- 限时秒杀 -->
  83. <view class="spike-box box-border-box mb-20" v-if="seckillGoodsList.length > 0">
  84. <view class="xsms-box box-border-box">
  85. <image class="tj-bg" src="@/static/img/index/tj-bg.png" mode=""></image>
  86. <view class="align-items-center flex-justify-space z-2 mb-26 pr-24 box-border-box">
  87. <image class="xsms-img" src="@/static/img/index/xsms.png" mode=""></image>
  88. <view class="align-items-center" @click="goAllSeckill">
  89. <view class="fs-24 fc-9 mr-6">
  90. 更多
  91. </view>
  92. <uni-icons type="right" size="17" color="#999"></uni-icons>
  93. </view>
  94. </view>
  95. <swiper class="ms-swiper" circular :indicator-dots="false" :autoplay="true">
  96. <swiper-item>
  97. <view class="flex-wrap-wrap">
  98. <view class="w-31 mr-14 mb-32" v-for="(item,index) in seckillGoodsList" :key="index"
  99. @click="toShop(item)" v-show="index + 1 < 7">
  100. <view class="" v-if="index + 1 < 7">
  101. <image class="xsms-item-img mb-18 b-rad-12" :src="item.goods_image"
  102. mode="aspectFill"></image>
  103. <view class="max-w-200 fs-24 fc-0 text-overflow-ellipsis-one">
  104. {{item.goods_name}}
  105. </view>
  106. <view class="display-flex flex-justify-space">
  107. <view class="align-items-center">
  108. <view class="fs-24 fc-F43D04 mr-8">
  109. ¥ <text class="fs-28 fc-F43D04">{{item.seckill_money}}</text>
  110. </view>
  111. <view class="fs-20 fc-a text-line-through">
  112. ¥{{item.line_price}}
  113. </view>
  114. </view>
  115. <image class="b-img" src="@/static/img/index/b.png" mode=""></image>
  116. </view>
  117. </view>
  118. </view>
  119. </view>
  120. </swiper-item>
  121. <swiper-item>
  122. <view class="flex-wrap-wrap">
  123. <view class="w-31 mr-14 mb-32" v-for="(item,index) in seckillGoodsList" :key="index"
  124. @click="toShop(item)" v-show="index + 1 > 6">
  125. <view class="" v-if="index + 1 > 6">
  126. <image class="xsms-item-img mb-18 b-rad-12" :src="item.goods_image"
  127. mode="aspectFill"></image>
  128. <view class="max-w-200 fs-24 fc-0 text-overflow-ellipsis-one">
  129. {{item.goods_name}}
  130. </view>
  131. <view class="display-flex flex-justify-space">
  132. <view class="align-items-center">
  133. <view class="fs-24 fc-F43D04 mr-8">
  134. ¥ <text class="fs-28 fc-F43D04">{{item.seckill_money}}</text>
  135. </view>
  136. <view class="fs-20 fc-a text-line-through">
  137. ¥{{item.line_price}}
  138. </view>
  139. </view>
  140. <image class="b-img" src="@/static/img/index/b.png" mode=""></image>
  141. </view>
  142. </view>
  143. </view>
  144. </view>
  145. </swiper-item>
  146. </swiper>
  147. </view>
  148. </view>
  149. <!-- 全网最低/优质团购 -->
  150. <view class="spike-box box-border-box b-rad-20">
  151. <view class="yztg-box p-30 box-border-box">
  152. <image class="tj-bg" src="@/static/img/index/tj-bg.png" mode=""></image>
  153. <image class="qwzd-img z-2" src="@/static/img/index/qwzd.png" mode=""></image>
  154. <view class="z-2 ptp-24 b-b-F0 align-items-center flex-justify-space mb-12" v-for="(item,index) in group_goods_List" :key="index" @click="goGroup(item)">
  155. <view class="align-items-center">
  156. <image v-show="index === 0" class="pm-img mr-20" src="@/static/img/index/1.png" mode="">
  157. </image>
  158. <image v-show="index === 1" class="pm-img mr-20" src="@/static/img/index/2.png" mode="">
  159. </image>
  160. <image v-show="index === 2" class="pm-img mr-20" src="@/static/img/index/3.png" mode="">
  161. </image>
  162. <view class="zk-box text-align-center mr-10">
  163. <image class="zk-img" src="@/static/img/index/zk-img.png" mode=""></image>
  164. <view class="fs-20 fc-f z-2">
  165. {{((Number(item.seckill_money)/Number(item.line_price))*10).toFixed(1)}}折
  166. </view>
  167. </view>
  168. <view class="fs-24 fc-0 max-w-252 text-overflow-ellipsis-one">
  169. {{item.title}}
  170. </view>
  171. </view>
  172. <view class="align-items-center">
  173. <view class="fs-24 fc-F43D04 fw-b mr-10">
  174. ¥ <text class="fs-28 fc-F43D04 fw-b">{{item.seckill_money}}</text>
  175. </view>
  176. <view class="fs-20 fc-a text-line-through">
  177. ¥{{item.line_price}}
  178. </view>
  179. </view>
  180. </view>
  181. <view class="text-align-center fs-24 fc-9 z-2" @click="goTogrup">
  182. 查看更多
  183. </view>
  184. </view>
  185. </view>
  186. <!-- 类型选择 -->
  187. <view class="type-list-box box-border-box display-flex" :style="{'top': (BarH+indexSearchHeight) + 'px'}">
  188. <view class="type-item-box view-nowrap" v-for="(item,i) in typeList" :key="i"
  189. @click="selectType(item.id)">
  190. <view class="" :class="category_id==item.id?'fs-32 fc-3BB5FE fw-b':'fc-94969A fs-28'">
  191. {{item.name}}
  192. </view>
  193. <view class="type-list-hr" v-show="category_id==item.id"></view>
  194. </view>
  195. </view>
  196. <!-- 商品列表 -->
  197. <view class="" v-if="goodsList.length<=0">
  198. <enBlankVue></enBlankVue>
  199. </view>
  200. <view class="bot-list-box box-border-box" v-else>
  201. <view class="goos-list-box box-border-box" v-for="(item,i) in goodsList" :key="i" @click="toShop(item)">
  202. <view class="display-flex p-b-20 mb-26 b-b-EFF2F5">
  203. <view class="left-img-box mr-24">
  204. <image class="left-img" :src="item.shop_logo" mode="aspectFill"></image>
  205. <view class="status-box fc-f" v-if="item.status != 1">
  206. 休息中
  207. </view>
  208. </view>
  209. <view class="flex-1">
  210. <view class="align-items-center mb-8">
  211. <view class="right-box-title fs-28 fw-b text-overflow-ellipsis-one">{{item.shop_name}}
  212. </view>
  213. <image class="right-box-title-img" src="@/static/img/toRight.png" mode=""></image>
  214. </view>
  215. <view class="align-items-center mb-12">
  216. <image class="img-x mr-8" src="@/static/img/index/index-x.png" mode=""></image>
  217. <view class="fs-24 fw-600 fc-FD5D05 mr-18">{{item.shop_score}}</view>
  218. <view class="fc-0 fs-24 mr-12">预计{{item.delivery_time}}分钟 | </view>
  219. <view class="fc-0 fs-24 mr-12">{{item.shop_sales}}人购买</view>
  220. </view>
  221. <view class="align-items-center flex-wrap-wrap">
  222. <view class="quan-list b-F5541E box-border-box bgc-f align-items-center b-rad-5 mr-10"
  223. v-for="(info1,index1) in item.coupon" :key="index1">
  224. <image class="quan-list-1" src="@/static/img/index/q.png" mode=""></image>
  225. <view class="quan-list-2 fs-24 fc-F5531E">{{info1.money}}元</view>
  226. </view>
  227. </view>
  228. </view>
  229. </view>
  230. <view class="goods-items-list display-flex">
  231. <view class="goods-items-list-box" v-for="(info2,index2) in item.goods" :key="index2">
  232. <view v-show="info2.label === 3" class="label-box text-align-center bgc-F5811E fs-24 fc-f">
  233. 推荐</view>
  234. <view v-show="info2.label === 2" class="label-box text-align-center bgc-FF5555 fs-24 fc-f">
  235. 新品</view>
  236. <view v-show="info2.label === 1" class="label-box text-align-center bgc-48D3C5 fs-24 fc-f">
  237. 折扣</view>
  238. <view v-show="info2.label === 4" class="label-box text-align-center bgc-4db8ff fs-24 fc-f">
  239. 招牌</view>
  240. <image class="mb-18" :src="info2.goods_image" mode="aspectFill"></image>
  241. <view class="mb-12 fw-600 text-overflow-ellipsis-one fs-24">{{info2.goods_name}}</view>
  242. <view class="">
  243. <span class="fs-24 fc-FD5D05 fw-b">¥</span>
  244. <span class="fs-32 fc-FD5D05 fw-b">{{info2.price}}</span>
  245. </view>
  246. </view>
  247. </view>
  248. </view>
  249. <view class="pt-40 flex-direction align-items-center" v-if="goodsList.length === total">
  250. <view class="fs-32 fc-0 fw-b">
  251. 小主都到这里了
  252. </view>
  253. <view class="fs-32 fc-0 fw-b mb-26">
  254. 还没有找到满意的店铺吗?
  255. </view>
  256. <view class="fs-24 fc-0 mb-32">
  257. 可以提交你意见与反馈哟。我们一定尽快努力达成!
  258. </view>
  259. <view class="list-but align-items-center flex-justify-center bgc-5CC2FF" @click="goFeedback">
  260. <view class="fs-28 fc-f mr-10">
  261. 去提交
  262. </view>
  263. <view class="sj-fff"></view>
  264. </view>
  265. </view>
  266. </view>
  267. </view>
  268. <uni-popup ref="popup" type="center" border-radius="10px 10px 10px 10px" :is-mask-click="false">
  269. <view class="roll-pop">
  270. <!-- <image class="lq-bg" src="@/static/img/index/lq-bg.png" mode=""></image> -->
  271. <image class="tc-top" src="@/static/img/index/tc-top.png" mode=""></image>
  272. <view class="coupon-box">
  273. <image class="tc-content" src="@/static/img/index/tc-content.png" mode=""></image>
  274. <view class="item-box display-flex" v-for="(item,index) in couponData" :key="index">
  275. <view class="item-right flex-direction flex-justify-center flex-1 bgc-FCE7E2">
  276. <view class="fs-28 mb-12 ticket-name text-overflow-ellipsis fc-3 fw-600">
  277. {{item.name}}
  278. </view>
  279. <view class="fs-22 fc-6 mb-12">
  280. 有效时间:{{item.time_type_str}}
  281. </view>
  282. <view class="fs-22 fc-6">
  283. 券类型:{{item.scene == 1?'外卖卷':'代取卷'}}
  284. </view>
  285. </view>
  286. <view class="item-hr"></view>
  287. <view class="item-left flex-direction align-items-center flex-justify-center bgc-FCE7E2">
  288. <view class="align-items-center">
  289. <view class="fs-24 fw-600 fc-FB3D03">¥</view>
  290. <view class="fs-48 fw-600 fc-FB3D03">{{item.money}}</view>
  291. </view>
  292. <view class="fs-22 fc-6 mb-4">
  293. 需满{{item.full_money}}元
  294. </view>
  295. <view class="but-box fs-26 fc-f" @click="receive(item,index)">立即领取</view>
  296. <view class="ball"></view>
  297. <view class="ball-two"></view>
  298. </view>
  299. </view>
  300. </view>
  301. <image class="tc-bot" src="@/static/img/index/tc-bot.png" mode=""></image>
  302. <uni-icons @click="gbPOp" class="pop-gb" color='#fff' type="close" size="30"></uni-icons>
  303. </view>
  304. </uni-popup>
  305. <uni-popup ref="popupNotice" type="center" border-radius="10px 10px 10px 10px" :is-mask-click="false">
  306. <view class="p-20 box-sizing-border bgc-f b-rad-20 w-80-vw h-60-vh flex-direction">
  307. <view class="text-align-center fw-600 fs-30 mb-20">
  308. 公告通知
  309. </view>
  310. <scroll-view :scroll-y="true" class="scroll-view-css mb-24" @scrolltolower="scrolltolower">
  311. <view class="fs-28" v-html="pop_notice.content"></view>
  312. </scroll-view>
  313. <view class="align-items-center">
  314. <view class="flex-1 but mr-24 fs-30 fc-f b-rad-200 text-align-center bgc-41ABF5"
  315. @click="goToNotice">
  316. 查看详情
  317. </view>
  318. <view class="flex-1 but fs-30 fc-3 b-rad-200 text-align-center b-r-ccc" @click="gbNoticePop">
  319. 我知道了
  320. </view>
  321. </view>
  322. </view>
  323. </uni-popup>
  324. </view>
  325. </template>
  326. <script>
  327. import {
  328. alumniHeatList
  329. } from '@/api/alumni.js'
  330. import enBlankVue from "@/components/en-utils/en-blank/en-blank.vue";
  331. import tools from "@/service/tools";
  332. import {
  333. getNotice,
  334. getBanner,
  335. commonApplet,
  336. commonPopNotice
  337. } from '@/api/common.js';
  338. import {
  339. getSeckillGoods,
  340. seckillGroupGoods
  341. } from '@/api/seckill.js'
  342. import {
  343. getTakeaway
  344. } from '@/api/category.js';
  345. import {
  346. getGoodsList
  347. } from '@/api/goods.js';
  348. import {
  349. couponHome,
  350. receiveCoupon
  351. } from '@/api/coupon.js'
  352. import {
  353. shopInfo,
  354. shopHome
  355. } from "@/api/shop.js"
  356. import {
  357. membeRmessage
  358. } from "@/api/member.js"
  359. export default {
  360. components: {
  361. enBlankVue
  362. },
  363. data() {
  364. return {
  365. BarH: 0,
  366. bgckgroundBox: 'transparent',
  367. bgckgroundSearch: '',
  368. bgckgroundType: '',
  369. navList: [{
  370. name: "外卖",
  371. img: require('@/static/img/index/index-wm.png'),
  372. type: 2
  373. },
  374. {
  375. name: "快递代取",
  376. img: require('@/static/img/index/index-dq.png'),
  377. type: 3
  378. },
  379. {
  380. name: "校友圈",
  381. img: require('@/static/img/index/index-xyq.png'),
  382. type: 7
  383. },
  384. {
  385. name: "特价团购",
  386. img: require('@/static/img/index/index-tg.png'),
  387. type: 5
  388. },
  389. {
  390. name: "领券中心",
  391. img: require('@/static/img/index/index-lqzx.png'),
  392. type: 6
  393. },
  394. {
  395. name: "跑腿代拿",
  396. img: require('@/static/img/index/index-ptdn.png'),
  397. type: 7
  398. },
  399. {
  400. name: "实习岗位",
  401. img: require('@/static/img/index/index-sxgw.png'),
  402. type: 8
  403. },
  404. {
  405. name: "平台客服",
  406. img: require('@/static/img/index/index-ptkf.png'),
  407. type: 9
  408. },
  409. ],
  410. schoolData: {
  411. school_name: '',
  412. },
  413. noticeList: [],
  414. bannerList: [],
  415. seckillGoodsList: [], // 秒杀商品
  416. group_goods_List: [], //团购秒杀
  417. typeList: [], //分类数组
  418. category_id: 0, //分类id
  419. goodsList: [],
  420. total: 0,
  421. page: 1,
  422. couponData: [],
  423. indexSearchHeight: '',
  424. dotStyle: {
  425. width: 6,
  426. bottom: 6,
  427. backgroundColor: 'rgba(51, 51, 51,0.3)',
  428. border: '1px rgba(0,0,0,0) solid',
  429. color: '#fff',
  430. selectedBackgroundColor: 'rgba(79, 179, 239,0.9)',
  431. selectedBorder: '1px rgba(0,0,0,0) solid'
  432. },
  433. current: 0,
  434. pop_notice: {
  435. content: '' // 公告通知
  436. },
  437. popType: true,
  438. shopHomeData: {}
  439. }
  440. },
  441. onShow() {
  442. let lon = uni.getStorageSync('lon');
  443. let lat = uni.getStorageSync('lat');
  444. if (!lon || !lat) {
  445. uni.getLocation({
  446. type: "gcj02",
  447. success: (res) => {
  448. if (res.errMsg === 'getLocation:ok') {
  449. uni.setStorageSync('lon', res.longitude);
  450. uni.setStorageSync('lat', res.latitude);
  451. } else {
  452. tools.error('位置授权失败,请检查是否开始授权')
  453. }
  454. },
  455. fail: (res) => {
  456. tools.error('位置授权失败,请检查是否开始授权')
  457. },
  458. })
  459. }
  460. let school_id = uni.getStorageSync('school_id');
  461. let operate_id = uni.getStorageSync('operate_id');
  462. let school_name = uni.getStorageSync('school_name');
  463. if (!school_id || !operate_id) {
  464. setTimeout(() => {
  465. uni.reLaunch({
  466. url: '/pages-address/select-school?type=1'
  467. })
  468. }, 1000)
  469. } else {
  470. this.schoolData.school_name = school_name;
  471. }
  472. this.commonApplet()
  473. this.getBanner();
  474. // this.getNotice();
  475. this.alumniHeatList()
  476. this.getSeckillGoods();
  477. this.seckillGroupGoods()
  478. this.getTakeaway();
  479. let userToken = uni.getStorageSync('token')
  480. if (userToken) {
  481. this.commonPopNotice()
  482. this.membeRmessage()
  483. // this.couponHome()
  484. }
  485. uni.removeStorageSync('orderInfoType')
  486. },
  487. onLoad(data) {
  488. // scene 需要使用 decodeURIComponent 才能获取到生成二维码时传入的 scene
  489. let scene = decodeURIComponent(data.scene)
  490. scene = scene.split('&')
  491. scene.forEach(item => {
  492. let arr = item.split('=')
  493. if (arr.length === 2) {
  494. uni.setStorageSync(arr[0], arr[1])
  495. }
  496. })
  497. this.page = 1;
  498. this.goodsList = [];
  499. this.getGoodsList();
  500. this.shopHome()
  501. },
  502. mounted() {
  503. this.getHeight()
  504. },
  505. onPageScroll(e) {
  506. if (e.scrollTop > 1) {
  507. this.bgckgroundBox = '#fff';
  508. this.bgckgroundSearch = '#fff';
  509. if (e.scrollTop > 500) {
  510. this.bgckgroundType = '#fff';
  511. } else {
  512. this.bgckgroundType = '';
  513. }
  514. } else {
  515. this.bgckgroundBox = 'transparent';
  516. this.bgckgroundSearch = '';
  517. this.bgckgroundType = '';
  518. }
  519. },
  520. onReachBottom() {
  521. if (this.goodsList.length < this.total) {
  522. this.page += 1;
  523. this.getGoodsList();
  524. }
  525. },
  526. created() {
  527. uni.getSystemInfo({
  528. success: (e) => {
  529. let statusBarH = e.statusBarHeight + 10
  530. let custom = 0;
  531. custom = wx.getMenuButtonBoundingClientRect()
  532. let customBarH = custom.height;
  533. this.BarH = statusBarH + customBarH;
  534. }
  535. })
  536. },
  537. methods: {
  538. goGroup(item) {
  539. uni.navigateTo({
  540. url: '/pages-buy/group-goods-info?shop_id=' + item.shop_id + '&goods_id=' + item.goods_id +
  541. '&shop_name=' + item.shop_name
  542. });
  543. },
  544. goFeedback() {
  545. // 问题反馈
  546. uni.navigateTo({
  547. url: '/pages-my/feedback'
  548. })
  549. },
  550. shopHome() {
  551. shopHome().then((res) => {
  552. if (res.code === 1) {
  553. this.shopHomeData = res.data
  554. }
  555. })
  556. },
  557. membeRmessage() {
  558. membeRmessage().then((res) => {
  559. if (res.code === 1) {
  560. if (res.data.msg_count > 0) {
  561. uni.showTabBarRedDot({
  562. index: 2
  563. })
  564. } else {
  565. uni.hideTabBarRedDot({
  566. index: 2
  567. })
  568. }
  569. setInterval(() => {
  570. membeRmessage()
  571. }, 60000)
  572. }
  573. })
  574. },
  575. commonPopNotice() {
  576. let operate_id = uni.getStorageSync('operate_id');
  577. let school_id = uni.getStorageSync('school_id');
  578. commonPopNotice({
  579. operate_id: operate_id,
  580. school_id: school_id
  581. }).then((res) => {
  582. const noticeId = uni.getStorageSync('notice_id');
  583. if (res.code === 1) {
  584. if (res.data.id) {
  585. if (noticeId === res.data.id) {
  586. this.popType = true
  587. this.couponHome()
  588. } else {
  589. uni.hideTabBar()
  590. this.pop_notice = res.data
  591. this.$refs.popupNotice.open()
  592. this.popType = false
  593. }
  594. } else {
  595. this.popType = true
  596. this.couponHome()
  597. }
  598. }
  599. })
  600. },
  601. gbNoticePop() {
  602. uni.showTabBar()
  603. this.$refs.popupNotice.close()
  604. this.popType = true
  605. this.couponHome()
  606. },
  607. goToNotice() {
  608. uni.setStorageSync('notice_id', this.pop_notice.id);
  609. uni.showTabBar()
  610. this.$refs.popupNotice.close()
  611. this.popType = true
  612. uni.navigateTo({
  613. url: '/pages-my/notice/info?id=' + this.pop_notice.id
  614. })
  615. },
  616. commonApplet() {
  617. commonApplet().then((res) => {
  618. if (res.code == 1) {
  619. this.navList.forEach((v, k) => {
  620. v.appletAudit = 0
  621. if (v.type == 8 || v.type == 9 || v.type == 10 || v.type == 11) {
  622. v.appletAudit = res.data
  623. }
  624. })
  625. }
  626. })
  627. },
  628. getHeight() {
  629. // 创建选择器对象
  630. const query = uni.createSelectorQuery().in(this);
  631. // 选择我们想要的元素
  632. query.select('.index-search').boundingClientRect(data => {
  633. // data是选中元素的大小及位置信息
  634. if (data) {
  635. // 元素的高度
  636. this.indexSearchHeight = data.height;
  637. console.log('元素的高度:', this.indexSearchHeight);
  638. }
  639. }).exec(); // 执行选择器查询
  640. },
  641. change(e) {
  642. this.current = e.detail.current
  643. },
  644. bannerClock(item) {
  645. if (item.type == 1) {
  646. // 外卖首页
  647. uni.navigateTo({
  648. url: '/pages-takeout/takeout'
  649. })
  650. } else if (item.type == 2) {
  651. if (item.to_id != 0) {
  652. // 外卖商家
  653. uni.navigateTo({
  654. url: '/pages-takeout/shop?shop_id=' + item.to_id
  655. })
  656. } else {
  657. // 外卖首页
  658. uni.navigateTo({
  659. url: '/pages-takeout/takeout'
  660. })
  661. }
  662. } else if (item.type == 3) {
  663. // 代取页
  664. uni.navigateTo({
  665. url: '/pages-takeout/replace-take'
  666. })
  667. } else if (item.type === 4) {
  668. // 团购页
  669. uni.navigateTo({
  670. url: '/pages-buy/group'
  671. })
  672. } else if (item.type === 5) {
  673. // 票务页
  674. uni.navigateTo({
  675. url: '/pages-buy/ticket'
  676. })
  677. } else if (item.type === 6) {
  678. // 干洗页
  679. uni.navigateTo({
  680. url: '/pages-buy/dry-clean'
  681. })
  682. } else if (item.type === 7) {
  683. // 校友圈
  684. uni.navigateTo({
  685. url: '/pages-school/school-circle'
  686. })
  687. } else if (item.type === 8) {
  688. // 骑手申请页
  689. uni.navigateTo({
  690. url: '/pages-my/rider-recruit'
  691. })
  692. }
  693. },
  694. goSchool() {
  695. uni.navigateTo({
  696. url: '/pages-school/school-circle'
  697. })
  698. },
  699. receive(item, index) {
  700. receiveCoupon({
  701. grant_id: item.grant_id,
  702. coupon_id: item.coupon_id
  703. }).then((res) => {
  704. if (res.code == 1) {
  705. tools.success(res.msg)
  706. this.couponData.splice(index, 1)
  707. if (this.couponData.length <= 0) {
  708. this.gbPOp()
  709. }
  710. } else {
  711. tools.error(res.msg)
  712. this.couponData.splice(index, 1)
  713. }
  714. })
  715. },
  716. couponHome() {
  717. let operate_id = uni.getStorageSync('operate_id');
  718. couponHome({
  719. operate_id: operate_id
  720. }).then((res) => {
  721. if (res.code == 1) {
  722. if (res.data.length > 0) {
  723. uni.hideTabBar()
  724. this.couponData = res.data
  725. this.$refs.popup.open()
  726. }
  727. }
  728. })
  729. },
  730. gbPOp() {
  731. uni.showTabBar()
  732. this.$refs.popup.close()
  733. },
  734. getBanner() {
  735. let operate_id = uni.getStorageSync('operate_id');
  736. let school_id = uni.getStorageSync('school_id');
  737. getBanner({
  738. operate_id: operate_id,
  739. school_id: school_id
  740. }).then((res) => {
  741. if (res.code === 1) {
  742. this.bannerList = res.data;
  743. }
  744. })
  745. },
  746. alumniHeatList() {
  747. let school_id = uni.getStorageSync('school_id');
  748. alumniHeatList({
  749. school_id: school_id
  750. }).then((res) => {
  751. if (res.code === 1) {
  752. this.noticeList = res.data;
  753. }
  754. })
  755. },
  756. getNotice() {
  757. let operate_id = uni.getStorageSync('operate_id');
  758. let school_id = uni.getStorageSync('school_id');
  759. getNotice({
  760. operate_id: operate_id,
  761. school_id: school_id
  762. }).then((res) => {
  763. if (res.code === 1) {
  764. this.noticeList = res.data;
  765. }
  766. })
  767. },
  768. getSeckillGoods() {
  769. let operate_id = uni.getStorageSync('operate_id');
  770. getSeckillGoods({
  771. operate_id: operate_id
  772. }).then((res) => {
  773. if (res.code === 1) {
  774. this.seckillGoodsList = res.data
  775. }
  776. })
  777. },
  778. seckillGroupGoods() {
  779. seckillGroupGoods().then((res) => {
  780. if (res.code === 1) {
  781. if (res.code === 1) {
  782. this.group_goods_List = res.data
  783. }
  784. }
  785. })
  786. },
  787. getTakeaway() {
  788. getTakeaway().then((res) => {
  789. if (res.code === 1) {
  790. this.typeList = res.data;
  791. this.typeList.unshift({
  792. name: "全部",
  793. id: 0
  794. })
  795. }
  796. })
  797. },
  798. getGoodsList() {
  799. let operate_id = uni.getStorageSync('operate_id');
  800. getGoodsList({
  801. page: this.page,
  802. operate_id: operate_id,
  803. category_id: this.category_id
  804. }).then((res) => {
  805. if (res.code === 1) {
  806. this.goodsList = [...this.goodsList, ...res.data.items];
  807. this.total = res.data.total;
  808. console.log(this.total, 'this.total');
  809. }
  810. })
  811. },
  812. selectType(id) {
  813. if (this.category_id != id) {
  814. this.category_id = id;
  815. this.page = 1;
  816. this.goodsList = [];
  817. this.getGoodsList();
  818. }
  819. },
  820. toUrl(type) {
  821. if (type === 1) {
  822. // 去搜索
  823. uni.navigateTo({
  824. url: '/pages/index/search-record'
  825. })
  826. } else if (type === 2) {
  827. // 去外卖
  828. uni.navigateTo({
  829. url: '/pages-takeout/takeout'
  830. })
  831. } else if (type === 3) {
  832. // 去代取
  833. uni.navigateTo({
  834. url: '/pages-takeout/replace-take'
  835. })
  836. } else if (type === 4) {
  837. // 君子帮选
  838. uni.navigateTo({
  839. url: '/pages-takeout/1212'
  840. })
  841. } else if (type === 5) {
  842. // 去团购
  843. uni.navigateTo({
  844. url: '/pages-buy/group'
  845. })
  846. } else if (type === 6) {
  847. // 领券中心
  848. uni.navigateTo({
  849. url: '/pages-my/ticket-centre'
  850. })
  851. } else if (type === 7) {
  852. // 去校友圈
  853. uni.navigateTo({
  854. url: '/pages-school/school-circle'
  855. })
  856. } else if (type === 8) {
  857. // 去实习岗位
  858. uni.navigateTo({
  859. url: '/pages-position/Internship-position'
  860. })
  861. } else if (type === 9) {
  862. // 平台客服
  863. } else {
  864. tools.error('暂未开放')
  865. }
  866. },
  867. toSelectSchool() {
  868. uni.navigateTo({
  869. url: '/pages-address/select-school?type=1'
  870. })
  871. },
  872. goTogrup() {
  873. uni.navigateTo({
  874. url: '/pages-takeout/group-goods'
  875. })
  876. },
  877. goAllSeckill() {
  878. uni.navigateTo({
  879. url: '/pages-takeout/seckill'
  880. })
  881. },
  882. toShop(item) {
  883. const operate_id = uni.getStorageSync('operate_id')
  884. shopInfo({
  885. operate_id: operate_id,
  886. shop_id: item.shop_id
  887. }).then((res) => {
  888. if (res.code == 1) {
  889. uni.navigateTo({
  890. url: '/pages-takeout/shop?shop_id=' + item.shop_id + '&category_id=' + item
  891. .category_id + '&goods_id=' + item.goods_id
  892. })
  893. } else {
  894. tools.error(res.msg)
  895. }
  896. })
  897. },
  898. toNoticeDet(item) {
  899. uni.navigateTo({
  900. url: '/pages-school/circle-info?news_id=' + item.news_id
  901. })
  902. },
  903. },
  904. }
  905. </script>
  906. <style lang="scss" scoped>
  907. .list-but {
  908. width: 140rpx;
  909. height: 48rpx;
  910. line-height: 48rpx;
  911. border-radius: 24rpx;
  912. }
  913. .sj-fff {
  914. width: 0;
  915. height: 0;
  916. border-top: 8rpx solid transparent;
  917. border-right: 8rpx solid transparent;
  918. border-left: 8rpx solid #fff;
  919. border-bottom: 8rpx solid transparent;
  920. }
  921. .bot-list-box {
  922. padding: 0 24rpx 24rpx;
  923. }
  924. .zk-box {
  925. width: 67rpx;
  926. height: 31rpx;
  927. line-height: 28rpx;
  928. position: relative;
  929. }
  930. .zk-img {
  931. width: 100%;
  932. height: 100%;
  933. position: absolute;
  934. left: 0;
  935. top: 0;
  936. }
  937. .pm-img {
  938. width: 31rpx;
  939. height: 43rpx;
  940. }
  941. .qwzd-img {
  942. width: 295rpx;
  943. height: 28rpx;
  944. }
  945. .yztg-box {
  946. width: 100%;
  947. height: auto;
  948. position: relative;
  949. }
  950. .b-img {
  951. width: 39rpx;
  952. height: 41rpx;
  953. }
  954. .w-31 {
  955. width: 31%;
  956. }
  957. .max-w-200 {
  958. max-width: 200rpx;
  959. }
  960. .xsms-item-img {
  961. width: 200rpx;
  962. height: 200rpx;
  963. }
  964. .xsms-box {
  965. width: 100%;
  966. height: 730rpx;
  967. padding: 25rpx 0rpx 1rpx 30rpx;
  968. position: relative;
  969. }
  970. .ms-swiper {
  971. width: 100%;
  972. height: 100%;
  973. }
  974. .xsms-img {
  975. width: 139rpx;
  976. height: 31rpx;
  977. }
  978. .tj-item {
  979. width: 108rpx;
  980. height: 108rpx;
  981. }
  982. .mxdp {
  983. width: 317rpx;
  984. height: 31rpx;
  985. }
  986. .mxdq-box {
  987. min-height: 342rpx;
  988. position: relative;
  989. padding: 25rpx 17rpx 18rpx 30rpx;
  990. }
  991. .tj-bg {
  992. position: absolute;
  993. left: 0;
  994. top: 0;
  995. width: 100%;
  996. height: 100%;
  997. }
  998. .xzkn-img {
  999. width: 139rpx;
  1000. height: 343rpx;
  1001. border-radius: 20rpx;
  1002. }
  1003. .h-100 {
  1004. height: 100%;
  1005. }
  1006. .max-w-358 {
  1007. max-width: 358rpx;
  1008. }
  1009. .serial-num {
  1010. width: 25rpx;
  1011. height: 22rpx;
  1012. line-height: 22rpx;
  1013. border-radius: 10rpx 2rpx 10rpx 2rpx;
  1014. }
  1015. .z-2 {
  1016. position: relative;
  1017. z-index: 2;
  1018. }
  1019. .w-10 {
  1020. width: 10rpx;
  1021. }
  1022. .rebang-box {
  1023. width: 160rpx;
  1024. height: 130rpx;
  1025. background: #53C4FD;
  1026. border-radius: 20rpx 0 0 20rpx;
  1027. padding: 0 10rpx 0 0;
  1028. position: relative;
  1029. }
  1030. .sj-box {
  1031. width: 0;
  1032. height: 0;
  1033. border-top: 20rpx solid transparent;
  1034. border-right: 20rpx solid #F3F3F3;
  1035. border-left: 20rpx solid transparent;
  1036. border-bottom: 20rpx solid transparent;
  1037. position: absolute;
  1038. right: -2rpx;
  1039. top: calc(50% - 20rpx);
  1040. }
  1041. .rebang {
  1042. width: 64rpx;
  1043. }
  1044. .h-60-vh {
  1045. max-height: 60vh;
  1046. }
  1047. .w-80-vw {
  1048. width: 80vw;
  1049. }
  1050. .plrb-24 {
  1051. padding: 0 24rpx 24rpx;
  1052. }
  1053. .spike-box {
  1054. padding: 0 24rpx;
  1055. }
  1056. .wh27 {
  1057. width: 27rpx;
  1058. height: 27rpx;
  1059. }
  1060. .nav-z {
  1061. position: relative;
  1062. z-index: 3 !important;
  1063. background: linear-gradient(-90deg, #3BB5FE, #62C4FF);
  1064. }
  1065. .wh-40 {
  1066. width: 40rpx;
  1067. height: 40rpx;
  1068. }
  1069. .item-box {
  1070. margin-bottom: 20rpx;
  1071. }
  1072. .item-box:last-child {
  1073. margin: 0;
  1074. }
  1075. .roll-pop {
  1076. position: relative;
  1077. width: 100vw;
  1078. // height: 1000rpx;
  1079. .tc-top {
  1080. width: 100%;
  1081. height: 202rpx;
  1082. }
  1083. .tc-bot {
  1084. width: 100%;
  1085. height: 178rpx;
  1086. }
  1087. .pop-gb {
  1088. width: 56rpx;
  1089. height: 56rpx;
  1090. position: absolute;
  1091. bottom: -65rpx;
  1092. left: calc((100% - 28rpx) / 2);
  1093. }
  1094. }
  1095. .coupon-box {
  1096. width: 100%;
  1097. // min-height: 590rpx;
  1098. padding: 0 82rpx 0 92rpx;
  1099. box-sizing: border-box;
  1100. position: relative;
  1101. .tc-content {
  1102. position: absolute;
  1103. left: 0;
  1104. top: 0;
  1105. width: 100%;
  1106. height: 100%;
  1107. }
  1108. }
  1109. .index-box {
  1110. .maxw-220 {
  1111. max-width: 220rpx;
  1112. }
  1113. position: relative;
  1114. .bg-img {
  1115. width: 100%;
  1116. height: 930rpx;
  1117. position: absolute;
  1118. top: 0;
  1119. left: 0;
  1120. z-index: -2;
  1121. }
  1122. .nav-icon {
  1123. width: 32rpx;
  1124. height: 32rpx;
  1125. }
  1126. .index-box-1 {
  1127. width: 100%;
  1128. // height: 3000rpx;
  1129. .swiper {
  1130. width: 702rpx;
  1131. height: 280rpx;
  1132. border-radius: 20rpx;
  1133. .swiper-item {
  1134. width: 702rpx;
  1135. height: 280rpx;
  1136. border-radius: 20rpx;
  1137. }
  1138. }
  1139. .nav-list {
  1140. // padding: 0 22rpx;
  1141. .nav-list-item {
  1142. width: 25%;
  1143. margin-bottom: 35rpx;
  1144. .title-img-box {
  1145. .title-img {
  1146. width: 80rpx;
  1147. height: 76rpx;
  1148. }
  1149. }
  1150. }
  1151. .nav-list-item:nth-child(3) {
  1152. .title-img-box {
  1153. .title-img {
  1154. width: 92rpx;
  1155. height: 82rpx;
  1156. }
  1157. }
  1158. }
  1159. .nav-list-item:nth-child(4) {
  1160. .title-img-box {
  1161. .title-img {
  1162. width: 82rpx;
  1163. height: 73rpx;
  1164. }
  1165. }
  1166. }
  1167. .nav-list-item:nth-child(5) {
  1168. .title-img-box {
  1169. .title-img {
  1170. width: 79rpx;
  1171. height: 86rpx;
  1172. }
  1173. }
  1174. }
  1175. .nav-list-item:nth-child(6) {
  1176. .title-img-box {
  1177. .title-img {
  1178. width: 93rpx;
  1179. height: 99rpx;
  1180. }
  1181. }
  1182. }
  1183. .nav-list-item:nth-child(7) {
  1184. .title-img-box {
  1185. .title-img {
  1186. width: 106rpx;
  1187. height: 84rpx;
  1188. }
  1189. }
  1190. }
  1191. .nav-list-item:nth-child(8) {
  1192. .title-img-box {
  1193. .title-img {
  1194. width: 81rpx;
  1195. height: 88rpx;
  1196. }
  1197. }
  1198. }
  1199. }
  1200. .msg-box {
  1201. width: 100%;
  1202. height: 180rpx;
  1203. border-radius: 12rpx;
  1204. padding: 30rpx 40rpx;
  1205. position: relative;
  1206. }
  1207. .rb-bg {
  1208. position: absolute;
  1209. left: 0;
  1210. bottom: 0;
  1211. width: 100%;
  1212. height: 100%;
  1213. }
  1214. .xyrb-img {
  1215. width: 108rpx;
  1216. height: 123rpx;
  1217. }
  1218. .type-list-box {
  1219. width: calc(100% - 24rpx);
  1220. position: sticky;
  1221. left: 0;
  1222. // top: calc(var(BarH)px + 93rpx);
  1223. // top: calc(86px + 93rpx);
  1224. padding: 24rpx;
  1225. overflow-x: scroll;
  1226. z-index: 50;
  1227. .type-item-box {
  1228. margin-right: 16rpx;
  1229. padding: 0 24rpx;
  1230. position: relative;
  1231. }
  1232. .type-item-box:last-child {
  1233. margin-right: 0;
  1234. }
  1235. .type-list-hr {
  1236. position: absolute;
  1237. left: 15%;
  1238. bottom: 0;
  1239. width: 70%;
  1240. height: 6rpx;
  1241. background: linear-gradient(-90deg, #ffffff, #3BB5FE);
  1242. border-radius: 3rpx;
  1243. }
  1244. }
  1245. .goos-list-box {
  1246. width: 100%;
  1247. min-height: 100rpx;
  1248. padding: 28rpx 30rpx 35rpx;
  1249. background: #FFFFFF;
  1250. box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(51, 51, 51, 0.1);
  1251. border-radius: 20rpx;
  1252. margin-bottom: 20rpx;
  1253. .goods-items-list {
  1254. width: 100%;
  1255. overflow-y: scroll;
  1256. .goods-items-list-box {
  1257. width: 33.3%;
  1258. margin-right: 13rpx;
  1259. position: relative;
  1260. .label-box {
  1261. position: absolute;
  1262. left: 0;
  1263. top: 0;
  1264. width: 66rpx;
  1265. height: 31rpx;
  1266. line-height: 31rpx;
  1267. border-radius: 10rpx 2rpx 10rpx 2rpx;
  1268. }
  1269. image {
  1270. width: 201rpx;
  1271. height: 200rpx;
  1272. border-radius: 10rpx
  1273. }
  1274. }
  1275. }
  1276. .left-img-box {
  1277. width: 120rpx;
  1278. height: 120rpx;
  1279. position: relative;
  1280. .left-img {
  1281. width: 120rpx;
  1282. height: 120rpx;
  1283. border-radius: 12rpx;
  1284. }
  1285. .status-box {
  1286. position: absolute;
  1287. bottom: 0;
  1288. left: 0;
  1289. width: 100%;
  1290. padding: 4rpx 0;
  1291. text-align: center;
  1292. background: rgba(0, 0, 0, 0.5);
  1293. font-size: 17rpx;
  1294. border-radius: 0 0 12rpx 12rpx;
  1295. }
  1296. }
  1297. .img-x {
  1298. width: 16rpx;
  1299. height: 16rpx;
  1300. }
  1301. .right-box-title {
  1302. width: 438rpx;
  1303. }
  1304. .right-box-title-img {
  1305. width: 32rpx;
  1306. height: 32rpx;
  1307. margin-left: auto;
  1308. }
  1309. .quan-list {
  1310. min-width: 88rpx;
  1311. height: 28rpx;
  1312. line-height: 28rpx;
  1313. .quan-list-1 {
  1314. width: 38rpx;
  1315. height: 28rpx;
  1316. }
  1317. }
  1318. }
  1319. }
  1320. .index-search {
  1321. position: sticky;
  1322. left: 0;
  1323. z-index: 10;
  1324. padding: 0 24rpx 20rpx 24rpx;
  1325. .index-search-box {
  1326. width: 100%;
  1327. height: 72rpx;
  1328. padding: 0 6rpx 0 24rpx;
  1329. border-radius: 200rpx;
  1330. .index-search-box-buttom {
  1331. width: 120rpx;
  1332. height: 60rpx;
  1333. background: linear-gradient(-90deg, #3BB5FE, #62C4FF);
  1334. border-radius: 200rpx;
  1335. margin-left: auto;
  1336. line-height: 60rpx;
  1337. text-align: center;
  1338. }
  1339. }
  1340. }
  1341. }
  1342. .item-hr {
  1343. width: 0px;
  1344. height: auto;
  1345. border-right: 1rpx dashed #FB7850;
  1346. }
  1347. .item-hr-two {
  1348. width: 0px;
  1349. height: auto;
  1350. border-right: 1rpx dashed #999;
  1351. }
  1352. .item-left {
  1353. width: 171rpx;
  1354. height: auto;
  1355. padding: 20rpx 18rpx;
  1356. box-sizing: border-box;
  1357. position: relative;
  1358. border-radius: 0 20rpx 20rpx 0;
  1359. }
  1360. .ball {
  1361. width: 24rpx;
  1362. height: 24rpx;
  1363. border-radius: 50%;
  1364. position: absolute;
  1365. top: -12rpx;
  1366. left: -12rpx;
  1367. background: #fff;
  1368. z-index: 2;
  1369. }
  1370. .ball-two {
  1371. width: 24rpx;
  1372. height: 24rpx;
  1373. border-radius: 50%;
  1374. position: absolute;
  1375. background: #fff;
  1376. z-index: 10;
  1377. bottom: -12rpx;
  1378. left: -12rpx;
  1379. }
  1380. .item-right {
  1381. padding: 24rpx;
  1382. box-sizing: border-box;
  1383. border-radius: 20rpx 0 0 20rpx;
  1384. position: relative;
  1385. }
  1386. .but-box {
  1387. width: 136rpx;
  1388. height: 48rpx;
  1389. line-height: 48rpx;
  1390. text-align: center;
  1391. background: linear-gradient(225deg, #FB3D03 0%, #FF6901 100%);
  1392. border-radius: 200rpx;
  1393. }
  1394. .but {
  1395. width: 100%;
  1396. height: 60rpx;
  1397. line-height: 60rpx;
  1398. }
  1399. .rd-img {
  1400. width: 40rpx;
  1401. height: 40rpx;
  1402. }
  1403. </style>