index.vue 36 KB

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