index.vue 37 KB

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