index.vue 34 KB

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