index.vue 35 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484
  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)" :style="[{'top': BarH + 'px','background':bgckgroundSearch}]">
  20. <view class="index-search-box box-border-box align-items-center bgc-f">
  21. <image class="wh27" src="@/static/img/index/ss.png" mode=""></image>
  22. <view class="fs-24 fc-a ml-10">搜索店铺名称或商品名称</view>
  23. <view class="fs-28 fc-f index-search-box-buttom">搜索</view>
  24. </view>
  25. </view>
  26. <view class="index-box-1">
  27. <!-- 轮播 -->
  28. <view class="box-border-box plr-24 mb-32">
  29. <uni-swiper-dot :info="bannerList" mode="dot" :dotsStyles="dotStyle" :current="current">
  30. <swiper class="swiper" @change="change" :autoplay='true' :circular='true' interval="4000">
  31. <swiper-item v-for="(item,i) in bannerList" :key="i">
  32. <image class="swiper-item" :src="item.image" mode="aspectFill" @click="bannerClock(item)">
  33. </image>
  34. </swiper-item>
  35. </swiper>
  36. </uni-swiper-dot>
  37. </view>
  38. <!-- 导航 -->
  39. <view class="box-border-box mb-22 plr-24">
  40. <view class="nav-list align-items-flex-end flex-wrap-wrap box-border-box pt-33 bgc-f b-rad-20">
  41. <view class="nav-list-item" v-for="(item,i) in navList" :key="i" @click="toUrl(item.type)"
  42. v-show="item.appletAudit == 0">
  43. <view class="flex-direction align-items-center title-img-box">
  44. <image class="title-img mb-16" :src="item.img" mode="scaleToFill"></image>
  45. <view class="fs-24 fc-0 text-align-center">{{item.name}}</view>
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. <!-- 通知 -->
  51. <view class="box-border-box plrb-24">
  52. <view class="msg-box align-items-center box-border-box">
  53. <image class="rb-bg" src="@/static/img/index/rb-bg.png" mode=""></image>
  54. <image class="xyrb-img mr-30 z-2" src="@/static/img/index/xyrb.png" mode=""></image>
  55. <view class="flex-direction flex-justify-space z-2 h-100">
  56. <view class="align-items-center" v-for="(item,i) in noticeList" :key="i"
  57. @click="toNoticeDet(item)">
  58. <view class="serial-num mr-10 fs-18 fc-f text-align-center"
  59. :class="i + 1 === 1?'bgc-F75C2B':i + 1 === 2?'bgc-FC8E17':'bgc-47B0F0'">
  60. {{ i + 1}}
  61. </view>
  62. <view class="fs-24 fc-0 text-overflow-ellipsis-one max-w-358">
  63. {{item.content}}
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. </view>
  69. <!-- 明星店铺 -->
  70. <view class="plr-30 box-border-box mb-20 align-items-center flex-justify-space">
  71. <view class="flex-1 mr-20 b-rad-20 mxdq-box box-border-box">
  72. <image class="tj-bg" src="@/static/img/index/tj-bg.png" mode=""></image>
  73. <image class="mxdp mb-24 z-2" src="@/static/img/index/mxdp.png" mode=""></image>
  74. <view class="align-items-center flex-wrap-wrap z-2">
  75. <image v-for="(item,index) in shopHomeData" class="tj-item mr-12 mb-12 b-rad-12"
  76. :src="item.shop_logo" mode="" @click="toShop(item)"></image>
  77. </view>
  78. </view>
  79. <image class="xzkn-img" src="@/static/img/index/xzkn.png" mode="" @click="toUrl(4)"></image>
  80. </view>
  81. <!-- 限时秒杀 -->
  82. <view class="spike-box box-border-box mb-20" v-if="seckillGoodsList.length > 0">
  83. <view class="xsms-box box-border-box">
  84. <image class="tj-bg" src="@/static/img/index/tj-bg.png" mode=""></image>
  85. <view class="align-items-center flex-justify-space z-2 mb-26 pr-24 box-border-box">
  86. <image class="xsms-img" src="@/static/img/index/xsms.png" mode=""></image>
  87. <view class="align-items-center" @click="goAllSeckill">
  88. <view class="fs-24 fc-9 mr-6">
  89. 更多
  90. </view>
  91. <uni-icons type="right" size="17" color="#999"></uni-icons>
  92. </view>
  93. </view>
  94. <swiper class="ms-swiper" circular :indicator-dots="false" :autoplay="true">
  95. <swiper-item>
  96. <view class="flex-wrap-wrap">
  97. <view class="w-31 mr-14 mb-32" v-for="(item,index) in seckillGoodsList" :key="index"
  98. @click="toShop(item)" v-show="index + 1 < 7">
  99. <view class="" v-if="index + 1 < 7">
  100. <image class="xsms-item-img mb-18 b-rad-12" :src="item.goods_image"
  101. mode="aspectFill"></image>
  102. <view class="max-w-200 fs-24 fc-0 text-overflow-ellipsis-one">
  103. {{item.goods_name}}
  104. </view>
  105. <view class="display-flex flex-justify-space">
  106. <view class="align-items-center">
  107. <view class="fs-24 fc-F43D04 mr-8">
  108. ¥ <text class="fs-28 fc-F43D04">{{item.seckill_money}}</text>
  109. </view>
  110. <view class="fs-20 fc-a text-line-through">
  111. ¥{{item.line_price}}
  112. </view>
  113. </view>
  114. <image class="b-img" src="@/static/img/index/b.png" mode=""></image>
  115. </view>
  116. </view>
  117. </view>
  118. </view>
  119. </swiper-item>
  120. <swiper-item>
  121. <view class="flex-wrap-wrap">
  122. <view class="w-31 mr-14 mb-32" v-for="(item,index) in seckillGoodsList" :key="index"
  123. @click="toShop(item)" v-show="index + 1 > 6">
  124. <view class="" v-if="index + 1 > 6">
  125. <image class="xsms-item-img mb-18 b-rad-12" :src="item.goods_image"
  126. mode="aspectFill"></image>
  127. <view class="max-w-200 fs-24 fc-0 text-overflow-ellipsis-one">
  128. {{item.goods_name}}
  129. </view>
  130. <view class="display-flex flex-justify-space">
  131. <view class="align-items-center">
  132. <view class="fs-24 fc-F43D04 mr-8">
  133. ¥ <text class="fs-28 fc-F43D04">{{item.seckill_money}}</text>
  134. </view>
  135. <view class="fs-20 fc-a text-line-through">
  136. ¥{{item.line_price}}
  137. </view>
  138. </view>
  139. <image class="b-img" src="@/static/img/index/b.png" mode=""></image>
  140. </view>
  141. </view>
  142. </view>
  143. </view>
  144. </swiper-item>
  145. </swiper>
  146. </view>
  147. </view>
  148. <!-- 全网最低/优质团购 -->
  149. <view class="spike-box box-border-box b-rad-20">
  150. <view class="yztg-box p-30 box-border-box">
  151. <image class="tj-bg" src="@/static/img/index/tj-bg.png" mode=""></image>
  152. <image class="qwzd-img z-2" src="@/static/img/index/qwzd.png" mode=""></image>
  153. <view class="z-2 ptp-24 b-b-F0 align-items-center flex-justify-space mb-12"
  154. v-for="(item,index) in group_goods_List" :key="index">
  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. if (data.inviteCode !== undefined) {
  489. uni.setStorageSync('inviteCode', data.inviteCode)
  490. }
  491. this.page = 1;
  492. this.goodsList = [];
  493. this.getGoodsList();
  494. this.shopHome()
  495. },
  496. mounted() {
  497. this.getHeight()
  498. },
  499. onPageScroll(e) {
  500. if (e.scrollTop > 1) {
  501. this.bgckgroundBox = '#fff';
  502. this.bgckgroundSearch = '#fff';
  503. if (e.scrollTop > 500) {
  504. this.bgckgroundType = '#fff';
  505. } else {
  506. this.bgckgroundType = '';
  507. }
  508. } else {
  509. this.bgckgroundBox = 'transparent';
  510. this.bgckgroundSearch = '';
  511. this.bgckgroundType = '';
  512. }
  513. },
  514. onReachBottom() {
  515. if (this.goodsList.length < this.total) {
  516. this.page += 1;
  517. this.getGoodsList();
  518. }
  519. },
  520. created() {
  521. uni.getSystemInfo({
  522. success: (e) => {
  523. let statusBarH = e.statusBarHeight + 10
  524. let custom = 0;
  525. custom = wx.getMenuButtonBoundingClientRect()
  526. let customBarH = custom.height;
  527. this.BarH = statusBarH + customBarH;
  528. }
  529. })
  530. },
  531. methods: {
  532. goFeedback() {
  533. // 问题反馈
  534. uni.navigateTo({
  535. url: '/pages-my/feedback'
  536. })
  537. },
  538. shopHome() {
  539. shopHome().then((res) => {
  540. if (res.code === 1) {
  541. this.shopHomeData = res.data
  542. }
  543. })
  544. },
  545. membeRmessage() {
  546. membeRmessage().then((res) => {
  547. if (res.code === 1) {
  548. if (res.data.msg_count > 0) {
  549. uni.showTabBarRedDot({
  550. index: 2
  551. })
  552. } else {
  553. uni.hideTabBarRedDot({
  554. index: 2
  555. })
  556. }
  557. setInterval(() => {
  558. membeRmessage()
  559. }, 60000)
  560. }
  561. })
  562. },
  563. commonPopNotice() {
  564. let operate_id = uni.getStorageSync('operate_id');
  565. let school_id = uni.getStorageSync('school_id');
  566. commonPopNotice({
  567. operate_id: operate_id,
  568. school_id: school_id
  569. }).then((res) => {
  570. const noticeId = uni.getStorageSync('notice_id');
  571. if (res.code === 1) {
  572. if (res.data.id) {
  573. if (noticeId === res.data.id) {
  574. this.popType = true
  575. this.couponHome()
  576. } else {
  577. uni.hideTabBar()
  578. this.pop_notice = res.data
  579. this.$refs.popupNotice.open()
  580. this.popType = false
  581. }
  582. } else {
  583. this.popType = true
  584. this.couponHome()
  585. }
  586. }
  587. })
  588. },
  589. gbNoticePop() {
  590. uni.showTabBar()
  591. this.$refs.popupNotice.close()
  592. this.popType = true
  593. this.couponHome()
  594. },
  595. goToNotice() {
  596. uni.setStorageSync('notice_id', this.pop_notice.id);
  597. uni.showTabBar()
  598. this.$refs.popupNotice.close()
  599. this.popType = true
  600. uni.navigateTo({
  601. url: '/pages-my/notice/info?id=' + this.pop_notice.id
  602. })
  603. },
  604. commonApplet() {
  605. commonApplet().then((res) => {
  606. if (res.code == 1) {
  607. this.navList.forEach((v, k) => {
  608. v.appletAudit = 0
  609. if (v.type == 8 || v.type == 9 || v.type == 10 || v.type == 11) {
  610. v.appletAudit = res.data
  611. }
  612. })
  613. }
  614. })
  615. },
  616. getHeight() {
  617. // 创建选择器对象
  618. const query = uni.createSelectorQuery().in(this);
  619. // 选择我们想要的元素
  620. query.select('.index-search').boundingClientRect(data => {
  621. // data是选中元素的大小及位置信息
  622. if (data) {
  623. // 元素的高度
  624. this.indexSearchHeight = data.height;
  625. console.log('元素的高度:', this.indexSearchHeight);
  626. }
  627. }).exec(); // 执行选择器查询
  628. },
  629. change(e) {
  630. this.current = e.detail.current
  631. },
  632. bannerClock(item) {
  633. if (item.type == 1) {
  634. // 外卖首页
  635. uni.navigateTo({
  636. url: '/pages-takeout/takeout'
  637. })
  638. } else if (item.type == 2) {
  639. if (item.to_id != 0) {
  640. // 外卖商家
  641. uni.navigateTo({
  642. url: '/pages-takeout/shop?shop_id=' + item.to_id
  643. })
  644. } else {
  645. // 外卖首页
  646. uni.navigateTo({
  647. url: '/pages-takeout/takeout'
  648. })
  649. }
  650. } else if (item.type == 3) {
  651. // 代取页
  652. uni.navigateTo({
  653. url: '/pages-takeout/replace-take'
  654. })
  655. } else if (item.type === 4) {
  656. // 团购页
  657. uni.navigateTo({
  658. url: '/pages-buy/group'
  659. })
  660. } else if (item.type === 5) {
  661. // 票务页
  662. uni.navigateTo({
  663. url: '/pages-buy/ticket'
  664. })
  665. } else if (item.type === 6) {
  666. // 干洗页
  667. uni.navigateTo({
  668. url: '/pages-buy/dry-clean'
  669. })
  670. } else if (item.type === 7) {
  671. // 校友圈
  672. uni.navigateTo({
  673. url: '/pages-school/school-circle'
  674. })
  675. } else if (item.type === 8) {
  676. // 骑手申请页
  677. uni.navigateTo({
  678. url: '/pages-my/rider-recruit'
  679. })
  680. }
  681. },
  682. goSchool() {
  683. uni.navigateTo({
  684. url: '/pages-school/school-circle'
  685. })
  686. },
  687. receive(item, index) {
  688. receiveCoupon({
  689. grant_id: item.grant_id,
  690. coupon_id: item.coupon_id
  691. }).then((res) => {
  692. if (res.code == 1) {
  693. tools.success(res.msg)
  694. this.couponData.splice(index, 1)
  695. if (this.couponData.length <= 0) {
  696. this.gbPOp()
  697. }
  698. } else {
  699. tools.error(res.msg)
  700. this.couponData.splice(index, 1)
  701. }
  702. })
  703. },
  704. couponHome() {
  705. let operate_id = uni.getStorageSync('operate_id');
  706. couponHome({
  707. operate_id: operate_id
  708. }).then((res) => {
  709. if (res.code == 1) {
  710. if (res.data.length > 0) {
  711. uni.hideTabBar()
  712. this.couponData = res.data
  713. this.$refs.popup.open()
  714. }
  715. }
  716. })
  717. },
  718. gbPOp() {
  719. uni.showTabBar()
  720. this.$refs.popup.close()
  721. },
  722. getBanner() {
  723. let operate_id = uni.getStorageSync('operate_id');
  724. let school_id = uni.getStorageSync('school_id');
  725. getBanner({
  726. operate_id: operate_id,
  727. school_id: school_id
  728. }).then((res) => {
  729. if (res.code === 1) {
  730. this.bannerList = res.data;
  731. }
  732. })
  733. },
  734. alumniHeatList() {
  735. let school_id = uni.getStorageSync('school_id');
  736. alumniHeatList({
  737. school_id: school_id
  738. }).then((res) => {
  739. if (res.code === 1) {
  740. this.noticeList = res.data;
  741. }
  742. })
  743. },
  744. getNotice() {
  745. let operate_id = uni.getStorageSync('operate_id');
  746. let school_id = uni.getStorageSync('school_id');
  747. getNotice({
  748. operate_id: operate_id,
  749. school_id: school_id
  750. }).then((res) => {
  751. if (res.code === 1) {
  752. this.noticeList = res.data;
  753. }
  754. })
  755. },
  756. getSeckillGoods() {
  757. let operate_id = uni.getStorageSync('operate_id');
  758. getSeckillGoods({
  759. operate_id: operate_id
  760. }).then((res) => {
  761. if (res.code === 1) {
  762. this.seckillGoodsList = res.data
  763. }
  764. })
  765. },
  766. seckillGroupGoods() {
  767. seckillGroupGoods().then((res) => {
  768. if (res.code === 1) {
  769. if (res.code === 1) {
  770. this.group_goods_List = res.data
  771. }
  772. }
  773. })
  774. },
  775. getTakeaway() {
  776. getTakeaway().then((res) => {
  777. if (res.code === 1) {
  778. this.typeList = res.data;
  779. this.typeList.unshift({
  780. name: "全部",
  781. id: 0
  782. })
  783. }
  784. })
  785. },
  786. getGoodsList() {
  787. let operate_id = uni.getStorageSync('operate_id');
  788. getGoodsList({
  789. page: this.page,
  790. operate_id: operate_id,
  791. category_id: this.category_id
  792. }).then((res) => {
  793. if (res.code === 1) {
  794. this.goodsList = [...this.goodsList, ...res.data.items];
  795. this.total = res.data.total;
  796. console.log(this.total, 'this.total');
  797. }
  798. })
  799. },
  800. selectType(id) {
  801. if (this.category_id != id) {
  802. this.category_id = id;
  803. this.page = 1;
  804. this.goodsList = [];
  805. this.getGoodsList();
  806. }
  807. },
  808. toUrl(type) {
  809. if (type === 1) {
  810. // 去搜索
  811. uni.navigateTo({
  812. url: '/pages/index/search-record'
  813. })
  814. } else if (type === 2) {
  815. // 去外卖
  816. uni.navigateTo({
  817. url: '/pages-takeout/takeout'
  818. })
  819. } else if (type === 3) {
  820. // 去代取
  821. uni.navigateTo({
  822. url: '/pages-takeout/replace-take'
  823. })
  824. } else if (type === 4) {
  825. // 君子帮选
  826. uni.navigateTo({
  827. url: '/pages-takeout/1212'
  828. })
  829. } else if (type === 5) {
  830. // 去团购
  831. uni.navigateTo({
  832. url: '/pages-buy/group'
  833. })
  834. } else if (type === 6) {
  835. // 领券中心
  836. uni.navigateTo({
  837. url: '/pages-my/ticket-centre'
  838. })
  839. } else if (type === 7) {
  840. // 去校友圈
  841. uni.navigateTo({
  842. url: '/pages-school/school-circle'
  843. })
  844. } else if (type === 8) {
  845. // 去实习岗位
  846. uni.navigateTo({
  847. url: '/pages-position/Internship-position'
  848. })
  849. } else if (type === 9) {
  850. // 平台客服
  851. } else {
  852. tools.error('暂未开放')
  853. }
  854. },
  855. toSelectSchool() {
  856. uni.navigateTo({
  857. url: '/pages-address/select-school?type=1'
  858. })
  859. },
  860. goTogrup() {
  861. uni.navigateTo({
  862. url: '/pages-takeout/group-goods'
  863. })
  864. },
  865. goAllSeckill() {
  866. uni.navigateTo({
  867. url: '/pages-takeout/seckill'
  868. })
  869. },
  870. toShop(item) {
  871. const operate_id = uni.getStorageSync('operate_id')
  872. shopInfo({
  873. operate_id: operate_id,
  874. shop_id: item.shop_id
  875. }).then((res) => {
  876. if (res.code == 1) {
  877. uni.navigateTo({
  878. url: '/pages-takeout/shop?shop_id=' + item.shop_id + '&category_id=' + item
  879. .category_id + '&goods_id=' + item.goods_id
  880. })
  881. } else {
  882. tools.error(res.msg)
  883. }
  884. })
  885. },
  886. toNoticeDet(item) {
  887. uni.navigateTo({
  888. url: '/pages-school/circle-info?news_id=' + item.news_id
  889. })
  890. },
  891. },
  892. }
  893. </script>
  894. <style lang="scss" scoped>
  895. .list-but {
  896. width: 140rpx;
  897. height: 48rpx;
  898. line-height: 48rpx;
  899. border-radius: 24rpx;
  900. }
  901. .sj-fff {
  902. width: 0;
  903. height: 0;
  904. border-top: 8rpx solid transparent;
  905. border-right: 8rpx solid transparent;
  906. border-left: 8rpx solid #fff;
  907. border-bottom: 8rpx solid transparent;
  908. }
  909. .bot-list-box {
  910. padding: 0 24rpx 24rpx;
  911. }
  912. .zk-box {
  913. width: 67rpx;
  914. height: 31rpx;
  915. line-height: 28rpx;
  916. position: relative;
  917. }
  918. .zk-img {
  919. width: 100%;
  920. height: 100%;
  921. position: absolute;
  922. left: 0;
  923. top: 0;
  924. }
  925. .pm-img {
  926. width: 31rpx;
  927. height: 43rpx;
  928. }
  929. .qwzd-img {
  930. width: 295rpx;
  931. height: 28rpx;
  932. }
  933. .yztg-box {
  934. width: 100%;
  935. height: auto;
  936. position: relative;
  937. }
  938. .b-img {
  939. width: 39rpx;
  940. height: 41rpx;
  941. }
  942. .w-31 {
  943. width: 31%;
  944. }
  945. .max-w-200 {
  946. max-width: 200rpx;
  947. }
  948. .xsms-item-img {
  949. width: 200rpx;
  950. height: 200rpx;
  951. }
  952. .xsms-box {
  953. width: 100%;
  954. height: 730rpx;
  955. padding: 25rpx 0rpx 1rpx 30rpx;
  956. position: relative;
  957. }
  958. .ms-swiper {
  959. width: 100%;
  960. height: 100%;
  961. }
  962. .xsms-img {
  963. width: 139rpx;
  964. height: 31rpx;
  965. }
  966. .tj-item {
  967. width: 108rpx;
  968. height: 108rpx;
  969. }
  970. .mxdp {
  971. width: 317rpx;
  972. height: 31rpx;
  973. }
  974. .mxdq-box {
  975. min-height: 342rpx;
  976. position: relative;
  977. padding: 25rpx 17rpx 18rpx 30rpx;
  978. }
  979. .tj-bg {
  980. position: absolute;
  981. left: 0;
  982. top: 0;
  983. width: 100%;
  984. height: 100%;
  985. }
  986. .xzkn-img {
  987. width: 139rpx;
  988. height: 343rpx;
  989. border-radius: 20rpx;
  990. }
  991. .h-100 {
  992. height: 100%;
  993. }
  994. .max-w-358 {
  995. max-width: 358rpx;
  996. }
  997. .serial-num {
  998. width: 25rpx;
  999. height: 22rpx;
  1000. line-height: 22rpx;
  1001. border-radius: 10rpx 2rpx 10rpx 2rpx;
  1002. }
  1003. .z-2 {
  1004. position: relative;
  1005. z-index: 2;
  1006. }
  1007. .w-10 {
  1008. width: 10rpx;
  1009. }
  1010. .rebang-box {
  1011. width: 160rpx;
  1012. height: 130rpx;
  1013. background: #53C4FD;
  1014. border-radius: 20rpx 0 0 20rpx;
  1015. padding: 0 10rpx 0 0;
  1016. position: relative;
  1017. }
  1018. .sj-box {
  1019. width: 0;
  1020. height: 0;
  1021. border-top: 20rpx solid transparent;
  1022. border-right: 20rpx solid #F3F3F3;
  1023. border-left: 20rpx solid transparent;
  1024. border-bottom: 20rpx solid transparent;
  1025. position: absolute;
  1026. right: -2rpx;
  1027. top: calc(50% - 20rpx);
  1028. }
  1029. .rebang {
  1030. width: 64rpx;
  1031. }
  1032. .h-60-vh {
  1033. max-height: 60vh;
  1034. }
  1035. .w-80-vw {
  1036. width: 80vw;
  1037. }
  1038. .plrb-24 {
  1039. padding: 0 24rpx 24rpx;
  1040. }
  1041. .spike-box {
  1042. padding: 0 24rpx;
  1043. }
  1044. .wh27 {
  1045. width: 27rpx;
  1046. height: 27rpx;
  1047. }
  1048. .nav-z {
  1049. position: relative;
  1050. z-index: 3 !important;
  1051. background: linear-gradient(-90deg, #3BB5FE, #62C4FF);
  1052. }
  1053. .wh-40 {
  1054. width: 40rpx;
  1055. height: 40rpx;
  1056. }
  1057. .item-box {
  1058. margin-bottom: 20rpx;
  1059. }
  1060. .item-box:last-child {
  1061. margin: 0;
  1062. }
  1063. .roll-pop {
  1064. position: relative;
  1065. width: 100vw;
  1066. // height: 1000rpx;
  1067. .tc-top {
  1068. width: 100%;
  1069. height: 202rpx;
  1070. }
  1071. .tc-bot {
  1072. width: 100%;
  1073. height: 178rpx;
  1074. }
  1075. .pop-gb {
  1076. width: 56rpx;
  1077. height: 56rpx;
  1078. position: absolute;
  1079. bottom: -65rpx;
  1080. left: calc((100% - 28rpx) / 2);
  1081. }
  1082. }
  1083. .coupon-box {
  1084. width: 100%;
  1085. // min-height: 590rpx;
  1086. padding: 0 82rpx 0 92rpx;
  1087. box-sizing: border-box;
  1088. position: relative;
  1089. .tc-content {
  1090. position: absolute;
  1091. left: 0;
  1092. top: 0;
  1093. width: 100%;
  1094. height: 100%;
  1095. }
  1096. }
  1097. .index-box {
  1098. .maxw-220 {
  1099. max-width: 220rpx;
  1100. }
  1101. position: relative;
  1102. .bg-img {
  1103. width: 100%;
  1104. height: 930rpx;
  1105. position: absolute;
  1106. top: 0;
  1107. left: 0;
  1108. z-index: -2;
  1109. }
  1110. .nav-icon {
  1111. width: 32rpx;
  1112. height: 32rpx;
  1113. }
  1114. .index-box-1 {
  1115. width: 100%;
  1116. // height: 3000rpx;
  1117. .swiper {
  1118. width: 702rpx;
  1119. height: 280rpx;
  1120. border-radius: 20rpx;
  1121. .swiper-item {
  1122. width: 702rpx;
  1123. height: 280rpx;
  1124. border-radius: 20rpx;
  1125. }
  1126. }
  1127. .nav-list {
  1128. // padding: 0 22rpx;
  1129. .nav-list-item {
  1130. width: 25%;
  1131. margin-bottom: 35rpx;
  1132. .title-img-box {
  1133. .title-img {
  1134. width: 80rpx;
  1135. height: 76rpx;
  1136. }
  1137. }
  1138. }
  1139. .nav-list-item:nth-child(3) {
  1140. .title-img-box {
  1141. .title-img {
  1142. width: 92rpx;
  1143. height: 82rpx;
  1144. }
  1145. }
  1146. }
  1147. .nav-list-item:nth-child(4) {
  1148. .title-img-box {
  1149. .title-img {
  1150. width: 82rpx;
  1151. height: 73rpx;
  1152. }
  1153. }
  1154. }
  1155. .nav-list-item:nth-child(5) {
  1156. .title-img-box {
  1157. .title-img {
  1158. width: 79rpx;
  1159. height: 86rpx;
  1160. }
  1161. }
  1162. }
  1163. .nav-list-item:nth-child(6) {
  1164. .title-img-box {
  1165. .title-img {
  1166. width: 93rpx;
  1167. height: 99rpx;
  1168. }
  1169. }
  1170. }
  1171. .nav-list-item:nth-child(7) {
  1172. .title-img-box {
  1173. .title-img {
  1174. width: 106rpx;
  1175. height: 84rpx;
  1176. }
  1177. }
  1178. }
  1179. .nav-list-item:nth-child(8) {
  1180. .title-img-box {
  1181. .title-img {
  1182. width: 81rpx;
  1183. height: 88rpx;
  1184. }
  1185. }
  1186. }
  1187. }
  1188. .msg-box {
  1189. width: 100%;
  1190. height: 180rpx;
  1191. border-radius: 12rpx;
  1192. padding: 30rpx 40rpx;
  1193. position: relative;
  1194. }
  1195. .rb-bg {
  1196. position: absolute;
  1197. left: 0;
  1198. bottom: 0;
  1199. width: 100%;
  1200. height: 100%;
  1201. }
  1202. .xyrb-img {
  1203. width: 108rpx;
  1204. height: 123rpx;
  1205. }
  1206. .type-list-box {
  1207. width: calc(100% - 24rpx);
  1208. position: sticky;
  1209. left: 0;
  1210. // top: calc(var(BarH)px + 93rpx);
  1211. // top: calc(86px + 93rpx);
  1212. padding: 24rpx;
  1213. overflow-x: scroll;
  1214. z-index: 50;
  1215. .type-item-box {
  1216. margin-right: 16rpx;
  1217. padding: 0 24rpx;
  1218. position: relative;
  1219. }
  1220. .type-item-box:last-child {
  1221. margin-right: 0;
  1222. }
  1223. .type-list-hr {
  1224. position: absolute;
  1225. left: 15%;
  1226. bottom: 0;
  1227. width: 70%;
  1228. height: 6rpx;
  1229. background: linear-gradient(-90deg, #ffffff, #3BB5FE);
  1230. border-radius: 3rpx;
  1231. }
  1232. }
  1233. .goos-list-box {
  1234. width: 100%;
  1235. min-height: 100rpx;
  1236. padding: 28rpx 30rpx 35rpx;
  1237. background: #FFFFFF;
  1238. box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(51, 51, 51, 0.1);
  1239. border-radius: 20rpx;
  1240. margin-bottom: 20rpx;
  1241. .goods-items-list {
  1242. width: 100%;
  1243. overflow-y: scroll;
  1244. .goods-items-list-box {
  1245. width: 33.3%;
  1246. margin-right: 13rpx;
  1247. position: relative;
  1248. .label-box {
  1249. position: absolute;
  1250. left: 0;
  1251. top: 0;
  1252. width: 66rpx;
  1253. height: 31rpx;
  1254. line-height: 31rpx;
  1255. border-radius: 10rpx 2rpx 10rpx 2rpx;
  1256. }
  1257. image {
  1258. width: 201rpx;
  1259. height: 200rpx;
  1260. border-radius: 10rpx
  1261. }
  1262. }
  1263. }
  1264. .left-img-box {
  1265. width: 120rpx;
  1266. height: 120rpx;
  1267. position: relative;
  1268. .left-img {
  1269. width: 120rpx;
  1270. height: 120rpx;
  1271. border-radius: 12rpx;
  1272. }
  1273. .status-box {
  1274. position: absolute;
  1275. bottom: 0;
  1276. left: 0;
  1277. width: 100%;
  1278. padding: 4rpx 0;
  1279. text-align: center;
  1280. background: rgba(0, 0, 0, 0.5);
  1281. font-size: 17rpx;
  1282. border-radius: 0 0 12rpx 12rpx;
  1283. }
  1284. }
  1285. .img-x {
  1286. width: 16rpx;
  1287. height: 16rpx;
  1288. }
  1289. .right-box-title {
  1290. width: 438rpx;
  1291. }
  1292. .right-box-title-img {
  1293. width: 32rpx;
  1294. height: 32rpx;
  1295. margin-left: auto;
  1296. }
  1297. .quan-list {
  1298. min-width: 88rpx;
  1299. height: 28rpx;
  1300. line-height: 28rpx;
  1301. .quan-list-1 {
  1302. width: 38rpx;
  1303. height: 28rpx;
  1304. }
  1305. }
  1306. }
  1307. }
  1308. .index-search {
  1309. position: sticky;
  1310. left: 0;
  1311. z-index: 10;
  1312. padding: 0 24rpx 20rpx 24rpx;
  1313. .index-search-box {
  1314. width: 100%;
  1315. height: 72rpx;
  1316. padding: 0 6rpx 0 24rpx;
  1317. border-radius: 200rpx;
  1318. .index-search-box-buttom {
  1319. width: 120rpx;
  1320. height: 60rpx;
  1321. background: linear-gradient(-90deg, #3BB5FE, #62C4FF);
  1322. border-radius: 200rpx;
  1323. margin-left: auto;
  1324. line-height: 60rpx;
  1325. text-align: center;
  1326. }
  1327. }
  1328. }
  1329. }
  1330. .item-hr {
  1331. width: 0px;
  1332. height: auto;
  1333. border-right: 1rpx dashed #FB7850;
  1334. }
  1335. .item-hr-two {
  1336. width: 0px;
  1337. height: auto;
  1338. border-right: 1rpx dashed #999;
  1339. }
  1340. .item-left {
  1341. width: 171rpx;
  1342. height: auto;
  1343. padding: 20rpx 18rpx;
  1344. box-sizing: border-box;
  1345. position: relative;
  1346. border-radius: 0 20rpx 20rpx 0;
  1347. }
  1348. .ball {
  1349. width: 24rpx;
  1350. height: 24rpx;
  1351. border-radius: 50%;
  1352. position: absolute;
  1353. top: -12rpx;
  1354. left: -12rpx;
  1355. background: #fff;
  1356. z-index: 2;
  1357. }
  1358. .ball-two {
  1359. width: 24rpx;
  1360. height: 24rpx;
  1361. border-radius: 50%;
  1362. position: absolute;
  1363. background: #fff;
  1364. z-index: 10;
  1365. bottom: -12rpx;
  1366. left: -12rpx;
  1367. }
  1368. .item-right {
  1369. padding: 24rpx;
  1370. box-sizing: border-box;
  1371. border-radius: 20rpx 0 0 20rpx;
  1372. position: relative;
  1373. }
  1374. .but-box {
  1375. width: 136rpx;
  1376. height: 48rpx;
  1377. line-height: 48rpx;
  1378. text-align: center;
  1379. background: linear-gradient(225deg, #FB3D03 0%, #FF6901 100%);
  1380. border-radius: 200rpx;
  1381. }
  1382. .but {
  1383. width: 100%;
  1384. height: 60rpx;
  1385. line-height: 60rpx;
  1386. }
  1387. .rd-img {
  1388. width: 40rpx;
  1389. height: 40rpx;
  1390. }
  1391. </style>