index.vue 35 KB

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