index.vue 36 KB

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