index.vue 35 KB

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