index-0130.vue 72 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109
  1. <template>
  2. <view>
  3. <ujp-navbar title="折扣卡购买" :show="false"></ujp-navbar>
  4. <!-- 头部图片 -->
  5. <view class="background">
  6. <!-- 新闻 -->
  7. <view class=" options-item" v-show="flag&&newsList.length > 0">
  8. <!-- ////@click="toNewsArticleDetails" -->
  9. <ujp-notice-bar @click="toNewsArticleDetails" color="#FF3D00" bg-color="#fff"
  10. :list="newsList"></ujp-notice-bar>
  11. </view>
  12. <view class="u-navbar-placeholder" style="width: 100%; height: 64rpx;"></view>
  13. <view class="banner">
  14. <u-swiper bg-color="#fff" :img-mode="'scaleToFill'" :list="bannerList" @click="clickBanner"
  15. :name="'picUrl'">
  16. </u-swiper>
  17. </view>
  18. <!-- 选项列表 -->
  19. <view class="option-list" >
  20. <view class="list-item" @click="getScanCode">
  21. <view class="icon iconfont" style="background: linear-gradient(45deg,#00B962,#5FE4A6);">
  22. &#xe61a;
  23. </view>
  24. <view class="text " >
  25. 扫码充电
  26. </view>
  27. </view>
  28. <view class="list-item" @click="fastRecharge">
  29. <view class="icon iconfont" style="background: linear-gradient(45deg,#23AD9B,#4BD2C0);">
  30. &#xe629;
  31. </view>
  32. <view class="text " >
  33. 快速充值
  34. </view>
  35. </view>
  36. <view class="list-item" @click="chargingRecord">
  37. <view class="icon iconfont" style="background: linear-gradient(45deg,#407DE4,#6FA5FF );">
  38. &#xe625;
  39. </view>
  40. <view class="text " oldstyle="font-size: 18px;">
  41. 充电记录
  42. </view>
  43. </view>
  44. <view class="list-item" @click="toSearchPile">
  45. <view class="icon iconfont" style="background: linear-gradient(45deg,#6366FF,#9D9FFF);">
  46. &#xe622;
  47. </view>
  48. <view class="text " oldstyle="font-size: 18px;">
  49. 附近站点
  50. </view>
  51. </view>
  52. </view>
  53. <!-- 充值活动 -->
  54. <view class=" top-up" v-if="activityList.length > 0 && !activityListShow">
  55. <view class="card-box">
  56. <view class="card" v-for="(item,index) in activityList" :key="item.id"
  57. @click="rechargeActivity(item)">
  58. <img :src="item.picUrl" alt="">
  59. </view>
  60. </view>
  61. </view>
  62. <u-modal v-model="showOss" class="showOss" :show-title="false" :show-confirm-button="false">
  63. <view class="slot-content">
  64. <u-image width="250px" style="margin: auto;min-height: 250px;" mode="widthFix"
  65. @click="clickBanner(showOssIndex,true)" :src="showOssImg">
  66. <view slot="loading" style="height: 200px;">
  67. <u-loading mode="flower" size="186">
  68. </u-loading>
  69. </view>
  70. </u-image>
  71. <u-image width="36px" style="margin: auto;" mode="widthFix" @click="showOss=false"
  72. src="../../assets/img/if-close-line-circled.png"></u-image>
  73. </view>
  74. </u-modal>
  75. <!-- 专享优惠券 -->
  76. <!--
  77. <view class="couponmain" v-if="false&&bannerListTop[showTopIndex].topmodel=='coupon'">
  78. <view class="main">
  79. <view class="exclusive">
  80. <p class="exclusive1">恭喜你</p>
  81. <p class="exclusive2">获得{{bannerListTop[showTopIndex].value}}元月卡卷</p>
  82. <view class="img">
  83. <img src="../../assets/img/Frame915.png" alt="">
  84. <view class="num">
  85. {{bannerListTop[showTopIndex].value}}<span class="unit">元</span>
  86. </view>
  87. <view class="unit2">月卡优惠券</view>
  88. <view class="ticket-info">
  89. <view class="ticket-name">
  90. {{bannerListTop[showTopIndex].text}}
  91. </view>
  92. </view>
  93. </view>
  94. <view class="exclusive-text"> 持月卡在指定站点充电,充电服务费全免</view>
  95. <button class="exclusive-btn" @click="clickBannerTop()" shape="circle">立即开通</button>
  96. </view>
  97. </view>
  98. </view> -->
  99. <u-modal v-model="showTop" v-if="getBannerInfoTopBl" class="showOss" :show-title="false"
  100. :show-confirm-button="false">
  101. <view class="slot-content">
  102. <swiper class="swiper" circular :indicator-dots="true" :autoplay="true" :interval="2500"
  103. :duration="500">
  104. <swiper-item class="swiperitem" v-if="showNt">
  105. <u-image width="600" style="margin: auto;min-height: 250px;" mode="widthFix"
  106. v-show="showNtStep==0" src="@/assets/img/nt/f5surprised-1.png">
  107. <view slot="loading" style="height: 200px;">
  108. <u-loading mode="flower" size="186">
  109. </u-loading>
  110. </view>
  111. </u-image>
  112. <view style="color: #ecc07d;
  113. font-size: 64rpx;
  114. position: relative;
  115. top: -220rpx;
  116. right: -100rpx; width: 400rpx;" @click="showNtStepClick" v-show="showNtStep==0">
  117. <span>.</span>
  118. </view>
  119. <u-image width="600" height="700" style="margin: auto;;min-height: 250px;"
  120. mode="scaleToFill" v-show="showNtStep==1" src="@/assets/img/nt/f5surprised-2.png">
  121. </u-image>
  122. <u-image width="600" style="margin: auto;min-height: 250px;" mode="widthFix"
  123. v-show="showNtStep==2" src="@/assets/img/nt/nt-activity-3.png">
  124. </u-image>
  125. <u-image width="500" style="color: #FFFFFF;
  126. font-size: 64rpx;
  127. position: relative;
  128. top: -540rpx;
  129. right: -60rpx;height: 0;
  130. " mode="widthFix" v-show="showNtStep==2" src="@/assets/img/nt/f5surprised-3.png">
  131. </u-image>
  132. <view style="color: #ecc07d;
  133. font-size: 72rpx;
  134. position: relative;
  135. top: -180rpx;
  136. right: -144rpx; width: 310rpx;" @click="showNtStepClick" v-show="showNtStep==2">
  137. <span>.</span>
  138. </view>
  139. <view style="color: #FFFFFF;
  140. font-size: 64rpx;
  141. position: relative;
  142. top: -528rpx;
  143. right: -80rpx;" :style="{
  144. right:showNtValue>99?'-80rpx':(showNtValue>9?'-95rpx':'-110rpx')
  145. }" v-show="showNtStep==1"><b>{{showNtValue}}</b>
  146. <span style="font-size: 28rpx;">元</span>
  147. </view>
  148. <view style="color: #ecc07d;
  149. font-size: 72rpx;
  150. position: relative;
  151. top: -270rpx;
  152. right: -144rpx; width: 310rpx;" @click="showNtStepClick" v-show="showNtStep==1">
  153. <span>.</span>
  154. </view>
  155. </swiper-item>
  156. <swiper-item class="swiperitem" v-for="(item,i) in bannerListTop" :key="i">
  157. <u-image width="500" height="500" bgColor="#ff000000"
  158. style="margin: auto;min-height: 250px;" mode="widthFix" @click="clickBannerTopI(i)"
  159. :src="item.picUrl">
  160. <view slot="loading" style="height: 200px;">
  161. <u-loading mode="flower" size="186">
  162. </u-loading>
  163. </view>
  164. </u-image>
  165. </swiper-item>
  166. </swiper>
  167. <u-image width="36px" style="margin: auto; margin-top: 10px;" mode="widthFix" @click="showTop=false"
  168. src="../../assets/img/if-close-line-circled.png"></u-image>
  169. </view>
  170. </u-modal>
  171. <!-- 模式选择 -->
  172. <u-mask :show="show">
  173. <view class="wrap">
  174. <view class="shema" @tap.stop>
  175. <view class="title">
  176. 设置浏览模式
  177. </view>
  178. <view class="">
  179. <u-radio-group v-model="value">
  180. <u-radio v-for="(item, index) in list" :key="index" :name="item.name"
  181. :disabled="item.disabled" active-color="#00B962">
  182. {{item.name}}
  183. <p v-if="item.name == '长辈模式'">字体更大 看的清楚</p>
  184. <p v-if="item.name == '标准模式'">信息丰富 功能全面</p>
  185. </u-radio>
  186. </u-radio-group>
  187. </view>
  188. <view class="hint">可在 {{""}}我的-设置 {{""}}页面中切换</view>
  189. <view class="btn-box">
  190. <u-button class="choice-btn" type="success" shape="circle"
  191. @click="elderClick">我选好了</u-button>
  192. </view>
  193. </view>
  194. </view>
  195. </u-mask>
  196. <!-- <view class="top-up-title oldTextjp" oldstyle="font-size:20px;"><text class="line"></text>最新活动</view>
  197. <view class="img-box">
  198. <view class="img-1" v-for="(item,index) in activityList" :key="item.id"
  199. @click="rechargeActivity(item)">
  200. <img :src="item.picUrl" alt="">
  201. </view>
  202. </view> -->
  203. </view>
  204. <!-- 最新活动 -->
  205. <view class=" top-up" v-if="activityList.length > 0 && activityListShow">
  206. <view class="top-up-title oldTextjp" oldstyle="font-size:20px;"><text class="line"></text>最新活动</view>
  207. <view class="img-box2">
  208. <view class="left-image" :style="{backgroundImage: 'url(' + activityDateList.picUrl + ')'}"
  209. @click="rechargeActivity(activityDateList)">
  210. <p>{{activityDateList.name}}</p>
  211. <view class="time-activities">
  212. 距活动结束仅剩 <text class="time">{{description}}</text>
  213. </view>
  214. </view>
  215. <view class="right-image">
  216. <img class="margin-bottom" v-for="(item,index) in activityList" :key="item.id"
  217. @click="rechargeActivity(item)" :src="item.narrowUrl" alt="">
  218. <!-- <img class="margin-bottom" src="../../assets/img/topup2.png" alt="" @click="rechargeActivity(0)">
  219. <img class="margin-bottom" src="../../assets/img/topup3.png" alt="" @click="rechargeActivity(1)"> -->
  220. </view>
  221. </view>
  222. </view>
  223. <template v-if="message == 'getLocation:ok' && stationList.length != 0 && chargeList.length == 0">
  224. <view class=" top-up">
  225. <view class="top-up-title oldTextjp" oldstyle="font-size:20px;"><text class="line"></text>附近站点
  226. <view class="pack-up" v-show="!listShow" @click="listShow=true">
  227. 收起<text class="iconfont">&#xe607;</text>
  228. </view>
  229. <view class="pack-up" v-if="listShow" @click="listShow=false">
  230. 展开<text class="iconfont">&#xe62c;</text>
  231. </view>
  232. </view>
  233. </view>
  234. <!-- 附近站点 -->
  235. <template v-for="(stationData,i) in stationList">
  236. <view class="station" :key="i+'abc'" v-show="!listShow||i==0"
  237. @click="gotoUrl('pages/searchPile/stationAndPile/stationDetails?id=' + stationData.id)">
  238. <view class="head">
  239. <view class="title oldTextjp" oldstyle="font-size: 20px;">
  240. {{stationData.name}}
  241. </view>
  242. <view class="distance ">
  243. <text class="iconfont"
  244. style="color:#666666">&#xe615;</text>{{stationData.distance!=null&&stationData.distance>0.1 ? stationData.distance.toFixed(1)+'公里':'小于100米'}}
  245. </view>
  246. </view>
  247. <view class="sign" v-if="stationData.stationType==50">
  248. <view class="sign-tag sign-0" v-if="stationData.isRecommend">推荐</view>
  249. <view class="sign-tag sign-5" v-if="stationData.isAlways">常用</view>
  250. <view class="sign-tag sign-6" v-if="stationData.isSpecial">特价</view>
  251. {{stationData.address}}
  252. </view>
  253. <view class="sign" v-else>
  254. <view class="sign-tag sign-0" v-if="stationData.isRecommend">推荐</view>
  255. <view class="sign-tag sign-5" v-if="stationData.isAlways">常用</view>
  256. <view class="sign-tag sign-6" v-if="stationData.isSpecial">特价</view>
  257. <!-- -->
  258. <view class="sign-1"
  259. v-if="stationData.giveDiscount&&stationData.discountRatio&&stationData.discountRatio!=100">
  260. 会员{{discountRatio10(stationData.discountRatio)}}折</view>
  261. <view class="sign-3" v-if="stationData.category=='超充'">160kW超充站</view>
  262. <view class="sign-4" v-if="stationData.nightLowPriceEnabled">
  263. 夜间超低价</view>
  264. <view class="sign-2" v-if="stationData.platformType==1">自营站</view>
  265. <view class="sign-2" v-if="stationData.tagList.length != 0"
  266. v-for="(tagName,tagIndex) in stationData.tagList" :key="tagIndex">{{tagName}}</view>
  267. </view>
  268. <view class="price-free oldTextClass">
  269. <view class="price" v-if="personInfo&&personInfo.userType==2">
  270. <view class="price-1">
  271. <text class="num">
  272. {{!stationData.giveDiscount ? (stationData.electricityPrice+stationData.servicePrice).toFixed(2)
  273. : (stationData.electricityPrice+stationData.discountServicePrice).toFixed(2)}}</text>
  274. <text class="unit " oldstyle="font-size: 48rpx;">元/度</text>
  275. </view>
  276. <view class="price-2 " oldstyle="font-size: 48rpx;" v-if="stationData.giveDiscount">
  277. <text
  278. class="num">{{(stationData.electricityPrice+stationData.servicePrice).toFixed(2)}}</text>
  279. <text class="unit ">元/度</text>
  280. </view>
  281. </view>
  282. <!-- 游客价格-->
  283. <view class="price" v-else>
  284. <view class="price-1">
  285. <text class="num">
  286. {{(stationData.electricityPrice+stationData.servicePrice).toFixed(2)}}</text>
  287. <text class="unit " oldstyle="font-size: 48rpx;">元/度</text>
  288. </view>
  289. <view class="price-3 " oldstyle="font-size: 48rpx;" v-if="stationData.giveDiscount">
  290. <text class="num1">会员</text>
  291. <text
  292. class="num">{{ (stationData.electricityPrice+stationData.discountServicePrice).toFixed(2)}}</text>
  293. <text class="unit ">元/度</text>
  294. </view>
  295. </view>
  296. <view class="free">
  297. <view class="fast" v-if="stationData.fastNum">
  298. <view class="fast-font">
  299. </view>
  300. <view class="num">
  301. {{stationData.fastAvailableNum}}
  302. </view>
  303. <view class="num1">
  304. /{{stationData.fastNum}}
  305. </view>
  306. </view>
  307. <view class="slow oldTextjp2" oldstyle="margin-left: 1px;" v-if="stationData.slowNum">
  308. <view class="slow-font">
  309. </view>
  310. <view class="num">
  311. {{stationData.slowAvailableNum}}
  312. </view>
  313. <view class="num1">
  314. /{{stationData.slowNum}}
  315. </view>
  316. </view>
  317. </view>
  318. </view>
  319. </view>
  320. <view class="piccBanner" v-for="(itemJNT,index ) in bannerListJNT" @click="gotoUrl2(itemJNT.linkUrl)"
  321. :key="i+'_'+index" style="
  322. text-align: center;
  323. padding: 4px 16px;
  324. margin-top: 8px; " v-show="index==0"
  325. v-if="(stationList.length<=2&&stationList.length-1==i)||(stationList.length>2&&i==1)">
  326. <image :src="itemJNT.picUrl" style="height: 204rpx;width: 100%;"></image>
  327. </view>
  328. </template>
  329. <view class="bottom" @click="searchStationData(true)" v-if="recordsTotal2!=stationList.length">
  330. <view class="bot">
  331. <view class="bot-line"></view>
  332. <view class="bot-text " style="color: #00B962;">点击查看更多站点</view>
  333. <view class="bot-line"></view>
  334. </view>
  335. </view>
  336. <view class="bottom" v-else>
  337. <view class="bot">
  338. <view class="bot-line"></view>
  339. <view class="bot-text " style="color: #00B962;">已经到底了</view>
  340. <view class="bot-line"></view>
  341. </view>
  342. </view>
  343. </template>
  344. <template v-if="loading&&message == 'getLocation:ok' && stationList.length == 0 && chargeList.length == 0">
  345. <view class="location-box">
  346. <view class="location">
  347. <view class="location-text">
  348. <view class="text-1 oldTextjp" oldstyle="font-size: 20px;">
  349. {{loading?'查询失败':'加载中'}}
  350. </view>
  351. <view class="text-2 oldTextjp2" oldstyle="font-size: 16px;">
  352. {{loading?'未查询到可用的站点':'正在为你查找附近的站点'}}
  353. </view>
  354. <view class="text-3 oldTextjp2" v-if="loading" oldstyle="font-size: 16px;"
  355. @click="toSearchPile">
  356. 去找桩
  357. </view>
  358. </view>
  359. <view class="img-box">
  360. <img src="@/assets/static/img/暂无网络信号-缺省页 1.png">
  361. </view>
  362. </view>
  363. </view>
  364. </template>
  365. <!-- 定位 -->
  366. <view class="location-box"
  367. v-if="message != 'getLocation:ok' && stationList.length == 0 && chargeList.length == 0">
  368. <view class="location">
  369. <view class="location-text">
  370. <view class="text-1 oldTextjp" oldstyle="font-size: 20px;">
  371. 定位中...
  372. </view>
  373. <view class="text-2 oldTextjp2" oldstyle="font-size: 16px;">
  374. 授权定位后可查询附近充电站
  375. </view>
  376. <view class="text-3 oldTextjp2" oldstyle="font-size: 16px;" @click="getPoint()">
  377. 重新定位
  378. </view>
  379. </view>
  380. <view class="img-box">
  381. <img src="@/assets/static/img/暂无网络信号-缺省页 1.png">
  382. </view>
  383. </view>
  384. </view>
  385. <!-- 附近站点 -->
  386. <view class="station" v-for="(stationData,i) in defaultStation" :key="i"
  387. v-if="stationList.length == 0 && chargeList.length == 0"
  388. @click="gotoUrl('pages/searchPile/stationAndPile/stationDetails?id=' + stationData.id)">
  389. <view class="head">
  390. <view class="title oldTextjp" oldstyle="font-size: 20px;">
  391. {{stationData.name}}
  392. </view>
  393. <view class="distance " v-if="false">
  394. <text class="iconfont"
  395. style="color:#666666">&#xe615;</text>{{stationData.distance!=null&&stationData.distance>0.1 ? stationData.distance.toFixed(1)+'公里':'小于100米'}}
  396. </view>
  397. </view>
  398. <view class="sign">
  399. <view class="sign-tag sign-0">推荐</view>
  400. <!-- -->
  401. <view class="sign-1"
  402. v-if="stationData.giveDiscount&&stationData.discountRatio&&stationData.discountRatio!=100">
  403. 会员{{discountRatio10(stationData.discountRatio)}}折</view>
  404. <view class="sign-3" v-if="stationData.category=='超充'">160kW超充站</view>
  405. <view class="sign-4" v-if="stationData.nightLowPriceEnabled">
  406. 夜间超低价</view>
  407. <view class="sign-2" v-if="stationData.platformType==1">自营站</view>
  408. <view class="sign-2" v-if="stationData.tagList.length != 0"
  409. v-for="(tagName,tagIndex) in stationData.tagList" :key="tagIndex">{{tagName}}</view>
  410. </view>
  411. <view class="price-free oldTextClass">
  412. <view class="price" v-if="personInfo&&personInfo.userType==2">
  413. <view class="price-1 ">
  414. <text class="num">
  415. {{!stationData.giveDiscount ? (stationData.electricityPrice+stationData.servicePrice).toFixed(2)
  416. : (stationData.electricityPrice+stationData.discountServicePrice).toFixed(2)}}</text>
  417. <text class="unit " oldstyle="font-size: 48rpx;">元/度</text>
  418. </view>
  419. <view class="price-2 " oldstyle="font-size: 48rpx;" v-if="stationData.giveDiscount">
  420. <text class="num">{{(stationData.electricityPrice+stationData.servicePrice).toFixed(2)}}</text>
  421. <text class="unit ">元/度</text>
  422. </view>
  423. </view>
  424. <!-- 游客价格-->
  425. <view class="price" v-else>
  426. <view class="price-1">
  427. <text class="num">
  428. {{(stationData.electricityPrice+stationData.servicePrice).toFixed(2)}}</text>
  429. <text class="unit " oldstyle="font-size: 48rpx;">元/度</text>
  430. </view>
  431. <view class="price-3 " oldstyle="font-size: 48rpx;" v-if="stationData.giveDiscount">
  432. <text class="num1">会员</text>
  433. <text
  434. class="num">{{ (stationData.electricityPrice+stationData.discountServicePrice).toFixed(2)}}</text>
  435. <text class="unit ">元/度</text>
  436. </view>
  437. </view>
  438. <view class="free">
  439. <view class="fast" v-if="stationData.fastNum">
  440. <view class="fast-font">
  441. </view>
  442. <view class="num">
  443. {{stationData.fastAvailableNum}}
  444. </view>
  445. <view class="num">
  446. /{{stationData.fastNum}}
  447. </view>
  448. </view>
  449. <view class="slow oldTextjp2" oldstyle="margin-left: 1px;" v-if="stationData.slowNum">
  450. <view class="slow-font">
  451. </view>
  452. <view class="num">
  453. {{stationData.slowAvailableNum}}
  454. </view>
  455. <view class="num1">
  456. /{{stationData.slowNum}}
  457. </view>
  458. </view>
  459. </view>
  460. </view>
  461. </view>
  462. <view class="piccBanner" v-for="(itemJNT,index ) in bannerListJNT" :key="'a_'+index" v-show="index==0"
  463. v-if="stationList.length == 0 && chargeList.length == 0" @click="gotoUrl2(itemJNT.linkUrl)" style="
  464. text-align: center;
  465. padding: 4px 16px;
  466. margin-top: 8px; ">
  467. <image :src="itemJNT.picUrl" style="height: 204rpx;width: 100%;"></image>
  468. </view>
  469. <!-- 新闻 -->
  470. <view class="news-title news-title2" v-if="chargeList.length > 0">
  471. <view class="news-title-left oldTextjp" oldstyle="font-size:20px;">
  472. <view class="line" style="margin-top:4px;"></view>充电车辆
  473. <view class="lineBox" v-if="chargeList.length > 1">{{chargeList.length }}</view>
  474. </view>
  475. <view class="more oldTextjp2" oldstyle="font-size:16px;" v-if="chargeList.length > 3" @click="toAll">查看全部
  476. <view class="more-icon iconfont"> &#xe600;</view>
  477. </view>
  478. </view>
  479. <!-- 充电状态 -->
  480. <view class="state1 state" v-if="chargeList.length > 0" v-for="(item,index) in chargeList" v-show="index<3"
  481. :key="item.id" @click="gotoUrl('pages/searchPile/chargeProcess/dcCharging?id=' + item.id)">
  482. <view class="state-text">
  483. <view class="text-1 " oldstyle="font-size: 20px;">
  484. <span v-if="item.carNumber">{{item.carNumber}}</span>
  485. {{item.statusText}}...
  486. </view>
  487. <view v-if="item.status == '0'" class="text-2 " oldstyle="font-size: 16px;">
  488. 启动中
  489. </view>
  490. <view v-if="item.status == '1'" class="text-2 " oldstyle="font-size: 16px;">
  491. 已充
  492. <span
  493. class="text-21">{{item.electricQuantity?(item.electricQuantity/10000).toFixed(1):'0.0'}}度</span>
  494. 合计<span class="text-22">{{item.dueFee != null ? item.dueFee.toFixed(2) : '0.00'}}元</span>
  495. <view style="display: initial;" v-if="item.endSoc">电量<span class="text-21">{{item.endSoc}}%</span>
  496. </view>
  497. </view>
  498. <!-- <view v-if="item.status == '2'" class="text-2" style="color: red;">
  499. 超出时间将收取占位费
  500. </view> -->
  501. <view v-if="item.status == '4'" class="text-2 oldTextjp2" oldstyle="font-size: 16px;">
  502. <span v-if="item.waitNum==1">请耐心等待</span>
  503. <span v-else>前方等待{{item.waitNum-1}}位</span>
  504. </view>
  505. <view class="text-3 " oldstyle="font-size: 16px;">
  506. <p style=" width: 160%;">
  507. {{item.deviceName}}枪{{channelNoShow(item.channelNo,item.manufacturer)}}/{{item.stationName}}<br />当前电价{{item.chargingCostPrice.toFixed(2)}}元/度
  508. </p>
  509. </view>
  510. </view>
  511. <view class="img-box4">
  512. <img v-if="item.status == '0'" src="@/assets/static/img/等待中-缺省页.png">
  513. <img v-if="item.status == '1'" src="@/assets/static/img/充电中-缺省页.png">
  514. <img v-if="item.status == '2'" src="@/assets/static/img/已充满-缺省页.png">
  515. <img v-if="item.status == '4'" src="@/assets/static/img/等待中-缺省页.png">
  516. <view class="img-view">
  517. <view class="more-icon iconfont">查看 &#xe600;</view>
  518. </view>
  519. </view>
  520. </view>
  521. <view class="bottom" v-if="chargeList.length > 3" @click="toAll()">
  522. <view class="bot">
  523. <view class="bot-line"></view>
  524. <view class="bot-text " style="color: #00B962;">点击查看全部充电车辆</view>
  525. <view class="bot-line"></view>
  526. </view>
  527. </view>
  528. <!-- 新闻 -->
  529. <view id="options-item" class="news-title" v-if="newsList.length > 0">
  530. <ujp-notice-bar @click="toNewsArticleDetails" color="#FF3D00" bg-color="#fff"
  531. :list="newsList"></ujp-notice-bar>
  532. </view>
  533. <view class="news-title news-title2" v-if="mallList.length">
  534. <view class="news-title-left oldTextjp" oldstyle="font-size:20px;">
  535. <view class="line" style="margin-top:4px;"></view>{{mallTitle}}
  536. </view>
  537. <view class="more oldTextjp2" oldstyle="font-size:16px;" @click="bhz">
  538. 进入商城<u-icon name="arrow-right"></u-icon>
  539. </view>
  540. </view>
  541. <!-- <view class="shopList" @click="bhz" >
  542. <view class="shopItem" v-for="(item,i) in shopList" :key="i">
  543. <view class="shopItemImg">
  544. <img :src="item.img" >
  545. </view>
  546. <view class="shopItemName" >
  547. <img v-if="item.iszy" style="width:52px; height:16px; vertical-align: middle;" src="@/assets/img/buy/ptzy.png">
  548. {{item.name}}</view>
  549. <view class="shopItemPrice" >
  550. <view class="shopItemPrice1" v-if="personInfo&&personInfo.userType==2&&personInfo.memberLevel&&item.prices" >
  551. <text>¥</text>{{item.prices[personInfo.memberLevel]?item.prices[personInfo.memberLevel]:item.price+"&&"}}</view>
  552. <view class="shopItemPrice1" v-else ><text>¥</text>{{item.price}}</view>
  553. <view class="shopItemPrice2">
  554. <u-icon name="shopping-cart" size="40"></u-icon>
  555. </view>
  556. </view>
  557. </view>
  558. </view> -->
  559. <view class="shopList">
  560. <view class="shopItem" v-for="(item,i) in mallList"
  561. @click="gotoUrl('pages/store/commodityDetails?id='+item.id)" :key="i">
  562. <view class="shopItemImg">
  563. <u-image v-if="item.pic"
  564. width="308"
  565. height="308"
  566. :src="item.pic" mode="scaleToFill" ></u-image>
  567. <u-image v-else
  568. width="308"
  569. height="308"
  570. src="@/assets/img/chargesite_default.png" ></u-image>
  571. </view>
  572. <view class="shopItemNameView">
  573. <view class="shopItemName">
  574. <img v-if="item.own" style="width:52px; height:16px; vertical-align: middle;"
  575. src="@/assets/img/buy/ptzy.png">
  576. {{item.name}}
  577. </view>
  578. <view class="shopItemPrice">
  579. <view class="shopItemPrice1">¥{{item.price}}</view>
  580. <view class="shopItemPrice2">
  581. <u-icon name="shopping-cart" size="40"></u-icon>
  582. </view>
  583. </view>
  584. </view>
  585. </view>
  586. </view>
  587. <view class="bottom">
  588. <view class="bot">
  589. <view class="bot-line"></view>
  590. <view class="bot-text oldTextjp2" oldstyle="font-size: 14px;">已经到底了</view>
  591. <view class="bot-line"></view>
  592. </view>
  593. </view>
  594. <!-- 导航栏 -->
  595. <view class="navigation">
  596. <view class="login-prompt" v-if="!userId">
  597. 登录显示更多会员服务
  598. <text class="button" @click="toLogin">登录/注册</text>
  599. </view>
  600. </view>
  601. <view class="slogan-4 " v-show="couponList.length||bannerListTop.length"
  602. @click="showTop=true,getBannerInfoTopBl=true">
  603. <u-icon :class="{
  604. imageshake :couponList.length&&showNtStep==0
  605. }" size="45" name="gift"></u-icon>
  606. </view>
  607. <Tabbar :current="0" ref="tabbarMain" :elderStatus="elderStatus"></Tabbar>
  608. </view>
  609. </template>
  610. <script>
  611. import * as API from '@/apis/index.js'
  612. import * as newsApi from '@/apis/news.js'
  613. import * as WxJsApi from '@/utils/wxJsApi.js'
  614. import * as siteApi from '@/apis/site.js'
  615. import * as loginApi from '@/apis/login.js'
  616. import * as userApi from '@/apis/user.js'
  617. import * as mallApi from '@/apis/mall.js'
  618. import MapLoader from '@/utils/AMap'
  619. import Tabbar from '@/components/Tabbar.vue'
  620. import {
  621. newDate,
  622. currentTimeStamp,
  623. parseUnixTime,
  624. secondsDistance,
  625. hourDistanceArr
  626. } from '@/utils'
  627. export default {
  628. components: {
  629. Tabbar
  630. },
  631. data() {
  632. return {
  633. listShow: false,
  634. stationList: [],
  635. bannerList: [],
  636. bannerListTop: [],
  637. bannerListJNT: [],
  638. timeOut: false,
  639. pointTimeOut: true,
  640. mallList: [],
  641. chargeList: [],
  642. activityList: [],
  643. userId: '',
  644. newsList: [],
  645. pageIndex: 1,
  646. recordsTotal: 0,
  647. longitude: '',
  648. latitude: '',
  649. message: '',
  650. indexLogo: '',
  651. showOss: false,
  652. showOssImg: '',
  653. showOssIndex: '',
  654. loading: false,
  655. showTop: false,
  656. showTopImg: '',
  657. showTopIndex: 0,
  658. mallTitle:"",
  659. getBannerInfoTopBl: true,
  660. newsListData: [],
  661. show: false,
  662. list: [{
  663. name: '长辈模式',
  664. disabled: false
  665. },
  666. {
  667. name: '标准模式',
  668. disabled: false
  669. },
  670. ],
  671. // u-radio-group的v-model绑定的值如果设置为某个radio的name,就会被默认选中
  672. value: '长辈模式',
  673. elderStatus: false,
  674. fontMode: '',
  675. description: '00:00:00',
  676. activityDate: '',
  677. activityDateList: {},
  678. activityListShow: false,
  679. personInfo: {},
  680. showNt: false,
  681. showNtStep: 0,
  682. showNtValue: 30,
  683. couponList: [],
  684. couponSelect: {},
  685. pageIndex2: 1,
  686. recordsTotal2: 0,
  687. defaultStation: [],
  688. flag: true,
  689. windowHeight: 300,
  690. }
  691. },
  692. onLoad(op) {
  693. this.mallTitle=process.car.branchParameter=="youdian"?'优电商城':'51商城'
  694. if (op.jpcode) {
  695. var k = API.codeOperation(op.jpcode)
  696. if (k) {
  697. uni.navigateTo({
  698. url: k
  699. })
  700. }
  701. }
  702. },
  703. onUnload() {
  704. this.timeOut = false;
  705. this.pointTimeOut = false;
  706. },
  707. onHide() {
  708. this.timeOut = false;
  709. this.pointTimeOut = false;
  710. },
  711. onReachBottom() {
  712. // if (this.newsList.length < this.recordsTotal) {
  713. // this.myLoadmore();
  714. // }
  715. },
  716. onShow() {
  717. if (this.$refs.tabbarMain) {
  718. this.$refs.tabbarMain.setcount(0);
  719. }
  720. if (!this.pointTimeOut) {
  721. this.pointTimeOut = true
  722. this.getPointTimeOut();
  723. }
  724. this.getUserInfo();
  725. },
  726. onReady() {
  727. WxJsApi.getWxConfig(['getLocation', 'addEventListener', 'scanQRCode']).then((res) => {
  728. // //(res)
  729. }).catch(error => {
  730. //(res)
  731. })
  732. this.getBannerInfo("homepage");
  733. this.getBannerInfoTop("home-top");
  734. this.getBannerInfo("JNT", "bannerListJNT");
  735. //this.getBannerInfoTop("home-top");
  736. this.getPointTimeOut();
  737. this.getNewsList();
  738. this.getActivityInfoList();
  739. this.getChargingStationDetail()
  740. this.getMallList()
  741. var _this = this
  742. uni.getSystemInfo({
  743. success: function(res) {
  744. _this.windowHeight = res.windowHeight
  745. }
  746. });
  747. },
  748. onPageScroll(e) {
  749. this.onPageScrollMethod()
  750. },
  751. updated() {
  752. this.onPageScrollMethod()
  753. },
  754. methods: {
  755. gotoArticleDetails(item) {
  756. if (item.linkType == "2") {
  757. this.gotoUrl2(item.externalUrl)
  758. } else {
  759. this.gotoUrl('pages/article/articleDetails?id=' + item.id)
  760. }
  761. },
  762. getMallList() {
  763. mallApi.mallList({
  764. pageIndex: 1,
  765. pageSize: 4,
  766. }).then((res) => {
  767. this.mallList = res.data.data;
  768. //uni.hideLoading();
  769. }).catch(error => {
  770. uni.showToast({
  771. title: error,
  772. icon: "none"
  773. })
  774. })
  775. },
  776. onPageScrollMethod() {
  777. const query = uni.createSelectorQuery().in(this);
  778. query.select('#options-item').boundingClientRect(data => {
  779. // console.log("节点离页面顶部的距离为" + data.top);
  780. //console.log(this.windowHeight,e.scrollTop ,data.top)
  781. if (data) {
  782. if (this.windowHeight >= data.top + 80) {
  783. this.flag = false;
  784. } else {
  785. this.flag = true;
  786. }
  787. }
  788. }).exec();
  789. },
  790. getChargingStationDetail() {
  791. var defaultStation = process.car.defaultStation
  792. for (var item in defaultStation) {
  793. siteApi.getChargingStationDetail({
  794. stationId: defaultStation[item]
  795. }).then((res) => {
  796. var station = res.data.station
  797. //this.MapLoaderthen(station)
  798. this.defaultStation.push(station)
  799. }).catch(error => {
  800. uni.showToast({
  801. title: error,
  802. icon: "none"
  803. })
  804. })
  805. }
  806. },
  807. getf5surprised() {
  808. userApi.exchangeGroupDetail("逢5红包").then((res) => {
  809. var message = res.message;
  810. this.couponList = res.data;
  811. if (this.couponList.length) {
  812. var list = res.data;
  813. var x = 0;
  814. for (var i in list) {
  815. var obj = list[i]
  816. if (!obj.probability) {
  817. continue;
  818. }
  819. var end = x + obj.probability;
  820. obj.start = x;
  821. obj.end = end;
  822. x = end;
  823. }
  824. var code = parseInt(Math.random() * x)
  825. // console.log(code)
  826. // console.log(list)
  827. var selectObj = null;
  828. for (var i in list) {
  829. var obj = list[i]
  830. if (!obj.probability) {
  831. continue;
  832. }
  833. if (code >= obj.start && code < obj.end) {
  834. selectObj = obj;
  835. this.couponSelect = selectObj;
  836. break
  837. }
  838. }
  839. if (selectObj) {
  840. this.showNt = true
  841. this.showTop = true;
  842. this.showNtStep = 0;
  843. this.showNtValue = this.couponSelect.totalDiscount
  844. } else {
  845. //this.getBannerInfoTop("home-top");
  846. }
  847. //console.log(selectObj)
  848. // this.exchangeDetailF5(selectObj.key);
  849. } else if (message == '1001') { //
  850. //周五,但是因为手里有卷, 所以不能抽
  851. var nowtime = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
  852. var time = this.carhelp.get("getf5surprised-time");
  853. if ((time && nowtime == time)) {
  854. //this.getBannerInfoTop("home-top");
  855. } else {
  856. this.carhelp.set("getf5surprised-time", nowtime);
  857. }
  858. this.showNt = true
  859. this.showTop = true;
  860. this.showNtStep = 2;
  861. } else {
  862. //this.getBannerInfoTop("home-top");
  863. }
  864. }).catch(error => {
  865. uni.showToast({
  866. title: error,
  867. icon: "none"
  868. })
  869. })
  870. },
  871. getNewYear() {
  872. //var obj=this.carhelp.get("newyear_activity2023-2-15")
  873. //
  874. var sz = ["1615623336912621591", "1615623336912621590"];
  875. var code = parseInt(Math.random() * 2)
  876. this.carhelp.set("newyear_activity2023-2-15", {
  877. nt: sz[code],
  878. code: code,
  879. status: 0
  880. })
  881. //先查询另一个领取过没
  882. userApi.exchangeDetail({
  883. key: sz[code == 0 ? 1 : 0]
  884. }).then((res) => {
  885. if (!res.data.enabled) {
  886. if (res.data.code == 2) {
  887. //未开始
  888. } else {
  889. //已经结束
  890. }
  891. //this.getBannerInfoTop("home-top");
  892. } else if (res.data.status == 1) {
  893. //this.getBannerInfoTop("home-top");
  894. //已经兑换,或者不能兑换
  895. } else if (res.data.status == 2) {
  896. // this.showNtValue=res.data.totalDiscount
  897. this.exchangeDetail(sz[code]);
  898. } else {
  899. //res.data.status==0
  900. //this.showNtValue=res.data.totalDiscount
  901. this.exchangeDetail(sz[code], sz[code == 0 ? 1 : 0]);
  902. }
  903. }).catch(error => {
  904. //this.showNt = false;
  905. uni.showToast({
  906. title: error,
  907. icon: "none"
  908. })
  909. })
  910. },
  911. exchangeDetail(exchangeCode, code2) {
  912. uni.showLoading({
  913. title: "加载中",
  914. mask: true,
  915. })
  916. userApi.exchangeDetail({
  917. key: exchangeCode
  918. }).then((res) => {
  919. uni.hideLoading();
  920. //
  921. if (!res.data.enabled) {
  922. if (res.data.code == 2) {
  923. //未开始
  924. } else {
  925. //已经结束
  926. }
  927. //this.getBannerInfoTop("home-top");
  928. } else if (res.data.status == 1) {
  929. //this.getBannerInfoTop("home-top");
  930. //已经兑换,
  931. } else if (res.data.status == 2) {
  932. if (code2) {
  933. //试试另一张卷
  934. var c = this.carhelp.get("newyear_activity2023-2-15")
  935. if (c) {
  936. this.carhelp.set("newyear_activity2023-2-15", {
  937. nt: code2,
  938. code: c.code == 0 ? 1 : 0,
  939. status: 0
  940. })
  941. }
  942. this.exchangeDetail(code2)
  943. } else {
  944. //this.getBannerInfoTop("home-top");
  945. }
  946. //不能兑换
  947. } else {
  948. this.showNt = true
  949. this.showTop = true;
  950. this.showNtStep = 0;
  951. this.showNtValue = res.data.totalDiscount
  952. }
  953. }).catch(error => {
  954. //this.showNt = false;
  955. uni.showToast({
  956. title: error,
  957. icon: "none"
  958. })
  959. })
  960. },
  961. redeemF5(exchangeCode) {
  962. uni.showLoading({
  963. title: "加载中",
  964. mask: true,
  965. })
  966. userApi.exchangeByGroupFive({
  967. key: exchangeCode
  968. }).then((res) => {
  969. uni.hideLoading();
  970. this.showNtStep = 1
  971. var nowtime = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
  972. this.carhelp.set("getf5surprised-time", nowtime);
  973. }).catch(error => {
  974. //this.showNt = false;
  975. uni.showToast({
  976. title: error,
  977. icon: "none"
  978. })
  979. })
  980. },
  981. redeemNow(exchangeCode) {
  982. uni.showLoading({
  983. title: "加载中",
  984. mask: true,
  985. })
  986. userApi.exchange({
  987. key: exchangeCode
  988. }).then((res) => {
  989. uni.hideLoading();
  990. this.showNtStep = 1
  991. this.carhelp.set("newyear_activity2023-2-15", {
  992. nt: exchangeCode,
  993. status: 1
  994. })
  995. }).catch(error => {
  996. //this.showNt = false;
  997. uni.showToast({
  998. title: error,
  999. icon: "none"
  1000. })
  1001. })
  1002. },
  1003. showNtStepClick() {
  1004. if (this.showNtStep == 0) {
  1005. if (this.personInfo.userType == 1) {
  1006. this.showTop = false;
  1007. //this.showNt = false;
  1008. uni.showModal({
  1009. title: "提示",
  1010. content: "游客无法兑换,请先注册为会员后再兑换",
  1011. confirmText: "前往注册",
  1012. success: res1 => {
  1013. if (res1.confirm) {
  1014. uni.navigateTo({
  1015. url: '/pages/login/login'
  1016. })
  1017. } else if (res1.cancel) {
  1018. //('用户点击取消');
  1019. }
  1020. }
  1021. })
  1022. } else if (!this.personInfo.carLicense) {
  1023. this.showTop = false;
  1024. uni.showModal({
  1025. title: "提示",
  1026. content: "请先车辆认证后再兑换",
  1027. confirmText: "车辆信息",
  1028. success: res1 => {
  1029. if (res1.confirm) {
  1030. uni.navigateTo({
  1031. url: '/pages/user/car/carDet'
  1032. })
  1033. } else if (res1.cancel) {
  1034. //('用户点击取消');
  1035. }
  1036. }
  1037. })
  1038. } else {
  1039. this.redeemF5(this.couponSelect.key);
  1040. }
  1041. } else if (this.showNtStep == 1 || this.showNtStep == 2 || this.showNtStep == 3 || this.showNtStep == 4) {
  1042. //this.showNt = false;
  1043. uni.navigateTo({
  1044. url: "/pages/user/coupon/myCoupon"
  1045. })
  1046. }
  1047. },
  1048. test() {
  1049. if (process.env.NODE_ENV === "development") {
  1050. }
  1051. },
  1052. goSearch() {
  1053. this.$refs.tabbarMain.beforeSwitch(1)
  1054. },
  1055. nextTop(index) {
  1056. this.showTopImg = this.bannerListTop[index + 1].picUrl;
  1057. this.showTopIndex = index + 1;
  1058. },
  1059. getDescriptionTime() {
  1060. var date = this.activityDate;
  1061. var dateMonth1 = new Date().getMonth() + 1;
  1062. var dateDay1 = new Date().getDate();
  1063. var dateMonth2 = parseInt(date.slice(5, 7));
  1064. var dateDay2 = parseInt(date.slice(8, 10));
  1065. if (dateMonth1 < dateMonth2) {
  1066. var days = new Date(new Date().getFullYear(), dateMonth1, 0).getDate();
  1067. dateDay2 = dateDay2 + days;
  1068. console.log(dateDay2)
  1069. }
  1070. if (dateDay1 < dateDay2 - 2) {
  1071. this.description = dateDay2 - dateDay1 + '天'
  1072. } else {
  1073. var dateTime2 = new Date(date).getTime()
  1074. var c = hourDistanceArr(new Date(), new Date(dateTime2))
  1075. if (c[0] < 10) {
  1076. c[0] = '0' + c[0];
  1077. }
  1078. if (c[1] < 10) {
  1079. c[1] = '0' + c[1];
  1080. }
  1081. if (c[2] < 10) {
  1082. c[2] = '0' + c[2];
  1083. }
  1084. this.description = c[0] + ':' + c[1] + ':' + c[2];
  1085. if (this.description == '00:00:00') {
  1086. this.activityListShow = false;
  1087. }
  1088. setTimeout(() => {
  1089. this.getDescriptionTime();
  1090. }, 1000)
  1091. }
  1092. },
  1093. getUserInfo() {
  1094. uni.showLoading({
  1095. title: "加载中",
  1096. mask: true,
  1097. })
  1098. loginApi.findByOpenId({
  1099. openId: this.carhelp.getOpenId(),
  1100. noerror: true,
  1101. }).then((res) => {
  1102. uni.hideLoading();
  1103. if (res.code == 200 && res.result) {
  1104. this.personInfo = res.data.regUser;
  1105. var token = res ? res.data.token : '';
  1106. this.carhelp.setPersonInfo(res.data.regUser);
  1107. this.carhelp.setToken(token);
  1108. this.carhelp.setPersonInfoPlus(res.data);
  1109. }
  1110. if (res.data && res.data.regUser) {
  1111. // if (res.data.regUser.fontMode == null) {
  1112. // this.show = true;
  1113. // } else {
  1114. // this.show = false;
  1115. // this.fontMode = res.data.regUser.fontMode;
  1116. // if (this.fontMode == '1') {
  1117. // this.carhelp.set("getElderModeClass", "长辈模式");
  1118. // } else {
  1119. // this.carhelp.set("getElderModeClass", "标准模式");
  1120. // }
  1121. // }
  1122. this.userId = res.data.regUser.id;
  1123. this.getFindChargeData();
  1124. if (res.data.regUser.fontMode == "1") {
  1125. this.checked = true;
  1126. this.carhelp.set("getElderModeClass", "长辈模式")
  1127. }
  1128. if (this.carhelp.get("getElderModeClass")) {
  1129. if (this.carhelp.get("getElderModeClass") == "长辈模式") {
  1130. this.elderStatus = true;
  1131. } else {
  1132. this.elderStatus = false;
  1133. }
  1134. } else {
  1135. this.carhelp.set("getElderModeClass", "标准模式");
  1136. this.elderStatus = false;
  1137. }
  1138. } else {
  1139. if (!this.carhelp.get("getElderModeClass")) {
  1140. this.carhelp.set("getElderModeClass", "标准模式");
  1141. }
  1142. this.elderStatus = true;
  1143. var obj = this.carhelp.get("friends_invitation")
  1144. // this.carhelp.set("friends_invitation",{
  1145. // op:op,
  1146. // date:new Date().getTime()
  1147. // })
  1148. if (obj && false) {
  1149. if (obj.date + 1000 * 60 * 60 * 24 > new Date().getTime()) {
  1150. this.friendsInvitation(obj)
  1151. }
  1152. }
  1153. }
  1154. }).catch(error => {
  1155. uni.showToast({
  1156. title: error,
  1157. icon: "none"
  1158. })
  1159. })
  1160. },
  1161. friendsInvitation(obj) {
  1162. uni.showLoading({
  1163. title: "加载中",
  1164. mask: true,
  1165. })
  1166. API.findActivity({
  1167. id: obj.op.id,
  1168. code: obj.op.icode
  1169. }).then((res) => {
  1170. uni.hideLoading()
  1171. obj.activityInfo = res.data.activityInfo;
  1172. var name = res.data.activityInfo.name;
  1173. var title = "参与活动"
  1174. var okbtn = "前往注册"
  1175. var endTime = res.data.activityInfo.endTime;
  1176. if (endTime && secondsDistance(newDate(endTime)) > 0) {
  1177. name = "活动已结束"
  1178. okbtn = "继续注册"
  1179. title = "提示"
  1180. obj = null
  1181. }
  1182. this.carhelp.set("friends_invitation", obj)
  1183. uni.showModal({
  1184. title: title,
  1185. content: name,
  1186. confirmText: okbtn,
  1187. success: res1 => {
  1188. if (res1.confirm) {
  1189. uni.navigateTo({
  1190. url: '/pages/login/login'
  1191. })
  1192. } else if (res1.cancel) {
  1193. //('用户点击取消');
  1194. }
  1195. }
  1196. })
  1197. }).catch(error => {
  1198. uni.showToast({
  1199. title: error,
  1200. icon: "none"
  1201. })
  1202. })
  1203. },
  1204. clickBannerTopI(i) {
  1205. var mod = this.bannerListTop[i];
  1206. //this.showTop = false;
  1207. this.clickBanner(0, true, mod)
  1208. },
  1209. clickBannerTop() {
  1210. var mod = this.bannerListTop[this.showTopIndex];
  1211. this.showTop = false;
  1212. this.clickBanner(0, true, mod)
  1213. },
  1214. clickBanner(index, bl, modout) {
  1215. var uurl = "";
  1216. var mod = this.bannerList[index]
  1217. if (modout) {
  1218. mod = modout;
  1219. }
  1220. mod.clickUrl = mod.linkUrl
  1221. if (mod.linkPicUrl && !bl) {
  1222. this.showOss = true;
  1223. this.showOssImg = mod.linkPicUrl;
  1224. this.showOssIndex = index;
  1225. } else if (mod.clickUrl == null) {
  1226. } else if (mod.clickUrl.indexOf('http') == 0) {
  1227. window.location = mod.clickUrl + uurl;
  1228. } else if (mod.clickUrl.slice(-5) == 'login' && this.userId) {
  1229. } else if (mod.clickUrl.indexOf('#/') == 0) {
  1230. if (mod.clickUrl.indexOf("?") == -1) {
  1231. mod.clickUrl += '?';
  1232. }
  1233. var url = mod.clickUrl.split("#")[1]
  1234. //window.location = mod.clickUrl;
  1235. uni.navigateTo({
  1236. url: url + uurl
  1237. })
  1238. } else if (mod.clickUrl == '#' || mod.clickUrl == '') {
  1239. } else {
  1240. uni.navigateTo({
  1241. url: mod.clickUrl + uurl
  1242. })
  1243. }
  1244. },
  1245. getBannerInfoTop(code) {
  1246. var nowtime = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
  1247. var time = this.carhelp.get("bannerListTop");
  1248. if ((time && nowtime == time)) {
  1249. this.getBannerInfoTopBl = false;
  1250. }
  1251. // uni.showLoading({
  1252. // title: "加载中",
  1253. // mask: true,
  1254. // })
  1255. newsApi.getBannerInfo(code).then((res) => {
  1256. this.bannerListTop = res.data;
  1257. if (this.bannerListTop.length) {
  1258. this.showTop = true;
  1259. this.showTopImg = this.bannerListTop[0].picUrl;
  1260. this.showTopIndex = 0;
  1261. }
  1262. this.carhelp.set("bannerListTop", nowtime);
  1263. //this.test()
  1264. var userInfo = this.carhelp.getPersonInfo();
  1265. if (userInfo && userInfo.id) {
  1266. this.getf5surprised()
  1267. } else {}
  1268. //uni.hideLoading()
  1269. //document.getElementsByClassName("uni-swiper-wrapper")[0].parentNode.style="background-color: rgb(255, 255, 255); height: 120px;"
  1270. }).catch(error => {
  1271. uni.showToast({
  1272. title: error,
  1273. icon: "none"
  1274. })
  1275. })
  1276. },
  1277. getBannerInfo(code, list) {
  1278. newsApi.getBannerInfo(code).then((res) => {
  1279. if (list) {
  1280. this[list] = res.data;
  1281. } else {
  1282. this.bannerList = res.data;
  1283. }
  1284. //uni.hideLoading()
  1285. //document.getElementsByClassName("uni-swiper-wrapper")[0].parentNode.style="background-color: rgb(255, 255, 255); height: 120px;"
  1286. }).catch(error => {
  1287. uni.showToast({
  1288. title: error,
  1289. icon: "none"
  1290. })
  1291. })
  1292. },
  1293. elderClick() {
  1294. if (this.value == "长辈模式") {
  1295. this.elderStatus = true;
  1296. this.carhelp.set("getElderModeClass", "长辈模式");
  1297. this.fontMode = '1';
  1298. } else {
  1299. this.elderStatus = false;
  1300. this.carhelp.set("getElderModeClass", "标准模式");
  1301. this.fontMode = '0';
  1302. }
  1303. API.changeFont({
  1304. fontMode: this.fontMode
  1305. }).then((res) => {
  1306. this.show = false;
  1307. }).catch(error => {
  1308. uni.showToast({
  1309. title: error,
  1310. icon: "none"
  1311. })
  1312. })
  1313. },
  1314. bhz() {
  1315. // uni.showToast({
  1316. // title: "备货中,敬请期待",
  1317. // icon: "none"
  1318. // })
  1319. uni.navigateTo({
  1320. url: "/pages/store/51store"
  1321. })
  1322. },
  1323. getPointTimeOut() {
  1324. setTimeout(() => {
  1325. if (this.pointTimeOut) {
  1326. this.getPoint();
  1327. }
  1328. }, 1000)
  1329. },
  1330. getFindChargeData() {
  1331. API.findChargeData().then((res) => {
  1332. //this.onPageScrollMethod()
  1333. this.chargeList = res.data.chargingRecordList;
  1334. var list = res.data.chargingRecordList;
  1335. for (var i = 0; i < list.length; i++) {
  1336. if (list[i].status == '1' || list[i].status == '4') {
  1337. this.timeOut = true;
  1338. }
  1339. }
  1340. if (this.timeOut && this.pointTimeOut) {
  1341. setTimeout(() => {
  1342. this.getFindChargeData();
  1343. }, 5000)
  1344. }
  1345. }).catch(error => {
  1346. uni.showToast({
  1347. title: error,
  1348. icon: "none"
  1349. })
  1350. })
  1351. },
  1352. toAll() {
  1353. uni.navigateTo({
  1354. url: '/pages/index/all'
  1355. })
  1356. },
  1357. toSearchPile() {
  1358. uni.navigateTo({
  1359. url: '/pages/searchPile/searchPile'
  1360. })
  1361. },
  1362. toLogin() {
  1363. uni.navigateTo({
  1364. url: '/pages/login/login'
  1365. })
  1366. },
  1367. toNewsNotice() {
  1368. // uni.navigateTo({
  1369. // url: '/pages/article/newsNotice'
  1370. // })
  1371. uni.navigateTo({
  1372. url: '/pages/index/activity'
  1373. })
  1374. },
  1375. toNewsArticleDetails(e) {
  1376. // uni.navigateTo({
  1377. // url: '/pages/article/newsNotice'
  1378. // })
  1379. if (e == undefined) {
  1380. console.log("toNewsArticleDetails1", e)
  1381. } else {
  1382. console.log("toNewsArticleDetails1", e)
  1383. var item = this.newsListData[e]
  1384. this.gotoArticleDetails(item)
  1385. }
  1386. // console.log("toNewsArticleDetails2",e)
  1387. //var item=this.newsListData[e]
  1388. //this.gotoArticleDetails(item)
  1389. },
  1390. //微信扫二维码
  1391. getScanCode() {
  1392. if (this.userId) {
  1393. WxJsApi.scanQRCode(1).then(res => {
  1394. //("scanQRCode------" + res)
  1395. if (res) {
  1396. API.scanCode(res).then((response) => {
  1397. }).catch(error => {
  1398. uni.showToast({
  1399. title: error,
  1400. icon: "none"
  1401. })
  1402. })
  1403. }
  1404. }).catch(error => {
  1405. })
  1406. } else {
  1407. uni.navigateTo({
  1408. url: '/pages/login/login'
  1409. })
  1410. }
  1411. },
  1412. fastRecharge() {
  1413. if (this.userId) {
  1414. if (this.personInfo.userType == 1) {
  1415. uni.showToast({
  1416. title: "游客模式只支持“先付后退”"
  1417. })
  1418. } else {
  1419. uni.navigateTo({
  1420. url: '/pages/user/finance/recharge'
  1421. })
  1422. }
  1423. } else {
  1424. uni.navigateTo({
  1425. url: '/pages/login/login'
  1426. })
  1427. }
  1428. },
  1429. chargingRecord() {
  1430. if (this.userId) {
  1431. uni.navigateTo({
  1432. url: '/pages/record/index'
  1433. })
  1434. } else {
  1435. uni.navigateTo({
  1436. url: '/pages/login/login'
  1437. })
  1438. }
  1439. },
  1440. rechargeActivity(item) {
  1441. if (this.userId) {
  1442. var uurl = "&uid=" + this.userId;
  1443. var mod = item
  1444. if (mod.clickUrl == null) {
  1445. } else if (mod.clickUrl.indexOf('http') == 0) {
  1446. window.location = mod.clickUrl + uurl;
  1447. } else if (mod.clickUrl.indexOf('#/') == 0) {
  1448. if (mod.clickUrl.indexOf("?") == -1) {
  1449. mod.clickUrl += '?';
  1450. }
  1451. var url = mod.clickUrl.split("#")[1]
  1452. //window.location = mod.clickUrl;
  1453. uni.navigateTo({
  1454. url: url + uurl
  1455. })
  1456. } else if (mod.clickUrl == '#' || mod.clickUrl == '') {
  1457. } else {
  1458. uni.navigateTo({
  1459. url: mod.clickUrl + uurl
  1460. })
  1461. }
  1462. } else {
  1463. uni.navigateTo({
  1464. url: '/pages/login/login'
  1465. })
  1466. }
  1467. },
  1468. getActivityInfoList() {
  1469. uni.showLoading({
  1470. title: "加载中",
  1471. mask: true,
  1472. })
  1473. API.activityInfoList({
  1474. pageIndex: 1,
  1475. pageSize: 10
  1476. }).then((res) => {
  1477. uni.hideLoading()
  1478. var list = res.data.data;
  1479. for (let i = 0; i < list.length; i++) {
  1480. if (list[i].type == 2 && list[i].endTime != null) {
  1481. this.activityListShow = true;
  1482. var reg = new RegExp('-', 'gi');
  1483. this.activityDate = list[i].endTime.replace(reg, '/');
  1484. console.log(this.activityDate)
  1485. this.activityDateList = list[i];
  1486. list.splice(i, 1);
  1487. this.getDescriptionTime();
  1488. }
  1489. }
  1490. this.activityList = list;
  1491. }).catch(error => {
  1492. uni.showToast({
  1493. title: error,
  1494. icon: "none"
  1495. })
  1496. })
  1497. },
  1498. searchStationData(bl) {
  1499. if (bl) {
  1500. this.pageIndex2++;
  1501. }
  1502. var data = {
  1503. longitude: this.longitude,
  1504. latitude: this.latitude,
  1505. pageIndex: this.pageIndex2,
  1506. pageSize: 3
  1507. }
  1508. if (this.carhelp.getPersonInfo()) {
  1509. data.openId = this.carhelp.getOpenId()
  1510. }
  1511. this.loading = false
  1512. siteApi.searchStationData(data).then((response) => {
  1513. //this.onPageScrollMethod()
  1514. if (this.pageIndex2 == 1) {
  1515. this.stationList = response.data.data;
  1516. // this.listForm.totalPage = response.data.totalPage;
  1517. } else {
  1518. this.stationList = [
  1519. ...this.stationList,
  1520. ...response.data.data
  1521. ];
  1522. }
  1523. this.recordsTotal2 = response.data.recordsTotal;
  1524. this.loading = true
  1525. if (false && response.data.data.length && false) {
  1526. var stationDataList = response.data.data;
  1527. MapLoader().then(AMap1 => {
  1528. for (var i in stationDataList) {
  1529. var item = stationDataList[i]
  1530. var lnglat = new AMap.LngLat(this.longitude, this.latitude);
  1531. var myDistance = lnglat.distance([item.longitude, item.latitude]);
  1532. item.distance = myDistance / 1000;
  1533. console.log(item.distance)
  1534. }
  1535. })
  1536. //this.stationData = stationDataList;
  1537. }
  1538. }).catch(error => {
  1539. console.log(error, "123")
  1540. uni.showToast({
  1541. title: error,
  1542. icon: "none"
  1543. })
  1544. })
  1545. },
  1546. getPoint() {
  1547. if (this.stationList.length != 0) {
  1548. return
  1549. }
  1550. WxJsApi.getLocation().then((res) => {
  1551. this.latitude = parseFloat(res.latitude);
  1552. this.longitude = parseFloat(res.longitude);
  1553. this.message = res.errMsg;
  1554. if (res.errMsg != 'getLocation:ok') {
  1555. uni.showToast({
  1556. title: res
  1557. })
  1558. } else {
  1559. this.searchStationData()
  1560. }
  1561. }).catch(error => {
  1562. uni.showToast({
  1563. title: error,
  1564. icon: "none"
  1565. })
  1566. })
  1567. },
  1568. getNewsList(bl) {
  1569. uni.showLoading({
  1570. title: "加载中",
  1571. mask: true,
  1572. })
  1573. newsApi.newsInfoList({
  1574. pageIndex: 1,
  1575. pageSize: 5,
  1576. shortName: 'GDXW',
  1577. //shortName:'TZGG'
  1578. }).then((res) => {
  1579. uni.hideLoading()
  1580. var data1 = res.data.data;
  1581. var data2 = [];
  1582. if (data1.length == 1) {
  1583. data2 = [
  1584. ...data1,
  1585. ...data1
  1586. ]
  1587. } else {
  1588. data2 = [
  1589. ...data1
  1590. ]
  1591. }
  1592. this.newsListData = data2
  1593. this.newsList = data2.map(item => {
  1594. return item.title
  1595. })
  1596. }).catch(error => {
  1597. uni.showToast({
  1598. title: error,
  1599. icon: "none"
  1600. })
  1601. })
  1602. },
  1603. myLoadmore() {
  1604. //this.pageIndex += 1;
  1605. //this.getNewsList()
  1606. },
  1607. }
  1608. }
  1609. </script>
  1610. <style lang="scss" scoped>
  1611. .swiper {
  1612. height: 700rpx;
  1613. .swiperitem {
  1614. height: 700rpx;
  1615. }
  1616. }
  1617. .couponmain {
  1618. .main {
  1619. margin: 100px auto 0;
  1620. position: relative;
  1621. .content {
  1622. padding: 24px;
  1623. padding-top: 50px;
  1624. background-color: #fff;
  1625. box-shadow: 0px 0px 0px 1px rgba(254, 229, 147, 100);
  1626. border: 2px solid rgba(253, 217, 141, 100);
  1627. border-radius: 8px;
  1628. .img {
  1629. width: 44vw;
  1630. height: 134px;
  1631. position: absolute;
  1632. top: -88px;
  1633. right: 0px;
  1634. img {
  1635. width: 100%;
  1636. height: 100%;
  1637. }
  1638. }
  1639. .title {
  1640. font-size: 16px;
  1641. color: rgba(84, 45, 45, 100);
  1642. margin-bottom: 13px;
  1643. }
  1644. .text {
  1645. line-height: 24px;
  1646. color: rgba(84, 45, 45, 100);
  1647. font-size: 16px;
  1648. text-align: justify;
  1649. text-decoration: underline;
  1650. text-decoration-color: #ECE3BA;
  1651. text-indent: 32px;
  1652. }
  1653. .sign {
  1654. text-align: right;
  1655. margin-top: 8px;
  1656. font-size: 16px;
  1657. }
  1658. }
  1659. // 专享优惠券
  1660. .exclusive {
  1661. background-color: #F5E4C8;
  1662. margin-top: 20px;
  1663. padding: 32rpx 32rpx 32rpx 32rpx;
  1664. box-shadow: 0px 0px 0px 1px rgba(254, 229, 147, 100);
  1665. border: 2px solid rgba(253, 217, 141, 100);
  1666. border-radius: 8px;
  1667. .exclusive1 {
  1668. font-size: 48rpx;
  1669. color: rgba(51, 51, 51, 1);
  1670. font-family: SourceHanSerif-bold;
  1671. }
  1672. .exclusive2 {
  1673. font-family: PingFangSC-regular;
  1674. color: rgba(51, 51, 51, 1);
  1675. font-size: 36rpx;
  1676. }
  1677. p {
  1678. width: 100%;
  1679. text-align: center;
  1680. //color: rgba(255, 73, 75, 100);
  1681. //font-size: 20px;
  1682. }
  1683. .img {
  1684. // width: 74.4vw;
  1685. // height: 84px;
  1686. margin-top: 16px;
  1687. position: relative;
  1688. img {
  1689. width: 100%;
  1690. height: 100%;
  1691. }
  1692. }
  1693. .num {
  1694. font-size: 54rpx;
  1695. color: rgba(252, 237, 179, 100);
  1696. position: absolute;
  1697. top: 10px;
  1698. left: 8vw;
  1699. font-weight: 600;
  1700. .unit {
  1701. font-size: 24rpx;
  1702. color: rgba(252, 237, 179, 100);
  1703. }
  1704. }
  1705. .unit2 {
  1706. font-size: 12px;
  1707. color: #FFF;
  1708. position: absolute;
  1709. top: 90rpx;
  1710. left: 24rpx;
  1711. }
  1712. .exclusive-text {
  1713. color: #333333;
  1714. font-size: 16rpx;
  1715. }
  1716. .exclusive-btn {
  1717. width: 80%;
  1718. margin-top: 48rpx;
  1719. border-radius: 50px;
  1720. background: linear-gradient(90.58deg, rgba(225, 208, 165, 1) 0.05%, rgba(228, 190, 132, 1) 98.67%);
  1721. color: rgba(51, 51, 51, 1);
  1722. font-size: 36rpx;
  1723. text-align: center;
  1724. box-shadow: 0px 8rpx 20rpx 0px rgba(184, 155, 103, 40);
  1725. font-family: -apple-system;
  1726. // width: 87.4%;
  1727. // margin-top: 20px;
  1728. // background-image: linear-gradient(#ffff00, #ff9600);
  1729. // color: #521e00;
  1730. // font-size: 20px;
  1731. // border-radius: 50px;
  1732. }
  1733. .ticket-info {
  1734. width: 40vw;
  1735. text-align: center;
  1736. position: absolute;
  1737. top: 18px;
  1738. right: 16rpx;
  1739. .ticket-name {
  1740. line-height: 40rpx;
  1741. color: rgba(16, 16, 16, 100);
  1742. font-size: 16rpx;
  1743. }
  1744. .condition {
  1745. line-height: 22px;
  1746. color: #8a6f6f;
  1747. font-size: 12px;
  1748. }
  1749. }
  1750. }
  1751. }
  1752. }
  1753. .oldTextClassF {
  1754. .text-2 {
  1755. font-size: 36rpx !important;
  1756. }
  1757. .text-3 {
  1758. font-size: 34rpx !important;
  1759. }
  1760. .station .price-free .price-1 .num {
  1761. font-size: 48rpx !important;
  1762. line-height: 40rpx;
  1763. font-weight: bold;
  1764. }
  1765. }
  1766. /deep/.u-image__loading {
  1767. background: #ff000000;
  1768. }
  1769. // 头部图片
  1770. img {
  1771. width: 100%;
  1772. // height: 100%;
  1773. }
  1774. .background {
  1775. background: linear-gradient(#D6EEDC, #F3F4F4);
  1776. padding-top: 16px;
  1777. }
  1778. .banner {
  1779. width: 91.4%;
  1780. margin: 0 auto;
  1781. border-radius: 12px;
  1782. height: 100px;
  1783. overflow: hidden;
  1784. /deep/uni-swiper {
  1785. height: 100px !important;
  1786. }
  1787. }
  1788. // 选项列表
  1789. .option-list {
  1790. padding-top: 30rpx;
  1791. line-height: 40rpx;
  1792. border-radius: 8px;
  1793. text-align: center;
  1794. margin: auto;
  1795. display: flex;
  1796. justify-content: space-around;
  1797. .list-item {
  1798. // 图标
  1799. .icon {
  1800. width: 80rpx;
  1801. height: 80rpx;
  1802. border-radius: 99px;
  1803. line-height: 80rpx;
  1804. font-size: 48rpx;
  1805. text-align: center;
  1806. margin: auto;
  1807. color: #ffffff;
  1808. }
  1809. .text {
  1810. margin-top: 8rpx;
  1811. }
  1812. }
  1813. }
  1814. .flex {
  1815. display: flex;
  1816. }
  1817. // 站点
  1818. .pack-up {
  1819. float: right;
  1820. font-size: 16px;
  1821. color: rgba(119, 119, 119, 100);
  1822. }
  1823. .station,
  1824. .location,
  1825. .state1 {
  1826. box-shadow: 0px 4rpx 12rpx 0px #008c4a33;
  1827. }
  1828. // 附近站点改版
  1829. .station {
  1830. width: 91.4%;
  1831. border-radius: 8px;
  1832. padding: 12px 12px 12px 11px;
  1833. background-color: #fff;
  1834. margin: 8px auto 0;
  1835. .head {
  1836. display: flex;
  1837. justify-content: space-between;
  1838. align-items: center;
  1839. .title {
  1840. color: rgba(16, 16, 16, 100);
  1841. font-size: 32rpx;
  1842. font-weight: 550;
  1843. width: 440rpx;
  1844. text-overflow: ellipsis;
  1845. overflow: hidden;
  1846. white-space: nowrap;
  1847. }
  1848. .distance {
  1849. width: 180rpx;
  1850. color: rgba(102, 102, 102, 100);
  1851. font-size: 32rpx;
  1852. text-align: end;
  1853. .iconfont {
  1854. font-size: 24rpx;
  1855. margin-right: 4rpx;
  1856. }
  1857. }
  1858. }
  1859. .sign {
  1860. display: flex;
  1861. flex-wrap: wrap;
  1862. margin-top: 16rpx;
  1863. height: 46rpx;
  1864. overflow: hidden;
  1865. .sign-tag {
  1866. line-height: 40rpx;
  1867. border-radius: 8rpx;
  1868. //background-color: rgba(255, 255, 255, 100);
  1869. //color: rgba(255, 139, 0, 100);
  1870. font-size: 24rpx;
  1871. text-align: center;
  1872. //border: 1px solid rgba(255, 139, 0, 100);
  1873. padding: 0 8rpx 14rpx 8rpx;
  1874. margin-right: 16rpx;
  1875. margin-bottom: 8rpx;
  1876. }
  1877. .sign-0 {
  1878. background: linear-gradient(89.4deg, rgba(129, 97, 255, 1) 2.8%, rgba(169, 147, 255, 1) 98.02%);
  1879. color: rgba(255, 255, 255, 1);
  1880. padding: 0 10rpx;
  1881. //border: 1px solid rgba(255, 139, 0, 100);
  1882. }
  1883. .sign-5 {
  1884. background: linear-gradient(89.4deg, rgba(255, 61, 0, 1) 2.8%, rgba(255, 134, 0, 1) 98.02%);
  1885. color: rgba(255, 255, 255, 1);
  1886. padding: 0 10rpx;
  1887. }
  1888. .sign-6 {
  1889. //background: linear-gradient(89.4deg, rgba(255,61,0,1) 2.8%,rgba(255,134,0,1) 98.02%);
  1890. background: linear-gradient(89.4deg, rgba(0, 164, 87, 1) 2.8%, rgba(0, 206, 141, 1) 98.02%);
  1891. color: rgba(255, 255, 255, 1);
  1892. padding: 0 10rpx;
  1893. }
  1894. .sign-1 {
  1895. line-height: 40rpx;
  1896. border-radius: 8rpx;
  1897. background-color: rgba(255, 255, 255, 100);
  1898. color: rgba(255, 139, 0, 100);
  1899. font-size: 24rpx;
  1900. text-align: center;
  1901. border: 1px solid rgba(255, 139, 0, 100);
  1902. padding: 0 8rpx;
  1903. margin-right: 16rpx;
  1904. margin-bottom: 8rpx;
  1905. }
  1906. .sign-2 {
  1907. line-height: 40rpx;
  1908. border-radius: 8rpx;
  1909. background-color: rgba(255, 255, 255, 100);
  1910. color: rgba(153, 153, 153, 100);
  1911. font-size: 24rpx;
  1912. text-align: center;
  1913. border: 1px solid rgba(204, 204, 204, 100);
  1914. padding: 0 8rpx;
  1915. margin-right: 16rpx;
  1916. margin-bottom: 8rpx;
  1917. }
  1918. .sign-3 {
  1919. line-height: 40rpx;
  1920. border-radius: 8rpx;
  1921. background-color: rgba(255, 255, 255, 100);
  1922. color: #8161FF;
  1923. font-size: 24rpx;
  1924. text-align: center;
  1925. border: 1px solid #8161FF;
  1926. padding: 0 8rpx;
  1927. margin-right: 16rpx;
  1928. margin-bottom: 8rpx;
  1929. }
  1930. .sign-4 {
  1931. line-height: 40rpx;
  1932. border-radius: 8rpx;
  1933. background-color: rgba(255, 255, 255, 100);
  1934. color: #00B962;
  1935. font-size: 24rpx;
  1936. text-align: center;
  1937. border: 1px solid #00B962;
  1938. padding: 0 8rpx;
  1939. margin-right: 16rpx;
  1940. margin-bottom: 8rpx;
  1941. }
  1942. }
  1943. .price-free {
  1944. display: flex;
  1945. justify-content: space-between;
  1946. margin-top: 8rpx;
  1947. .price {
  1948. display: flex;
  1949. align-items: baseline;
  1950. }
  1951. .price-1 {
  1952. .num {
  1953. color: rgba(255, 98, 0, 100);
  1954. font-size: 44rpx;
  1955. }
  1956. .unit {
  1957. font-size: 12px;
  1958. color: rgba(153, 153, 153, 100);
  1959. }
  1960. }
  1961. .price-2 {
  1962. font-size: 24rpx;
  1963. margin-left: 8rpx;
  1964. color: #999999;
  1965. text-decoration: line-through;
  1966. }
  1967. .price-3 {
  1968. font-size: 24rpx;
  1969. color: #fff;
  1970. margin-left: 8rpx;
  1971. padding-right: 9rpx;
  1972. background: #00B962;
  1973. border-radius: 8rpx;
  1974. .num1 {
  1975. padding-left: 12rpx;
  1976. border-radius: 8rpx 0 8rpx 8rpx;
  1977. padding-right: 18rpx;
  1978. background: #121212;
  1979. -webkit-clip-path: polygon(0 0, 93% 0, 84% 100%, 0% 100%);
  1980. clip-path: polygon(0 0, 93% 0, 84% 100%, 0% 100%);
  1981. }
  1982. }
  1983. }
  1984. .free {
  1985. display: flex;
  1986. align-items: center;
  1987. .slow,
  1988. .fast {
  1989. display: flex;
  1990. .sp-font {
  1991. width: 40rpx;
  1992. height: 40rpx;
  1993. line-height: 40rpx;
  1994. border-radius: 4px;
  1995. background-color: #7a68f6;
  1996. color: #fff;
  1997. font-size: 28rpx;
  1998. text-align: center;
  1999. margin-right: 2rpx;
  2000. }
  2001. .fast-font {
  2002. width: 40rpx;
  2003. height: 40rpx;
  2004. line-height: 40rpx;
  2005. border-radius: 8rpx;
  2006. // background-color: rgba(186, 240, 215, 100);
  2007. // color: rgba(0, 130, 69, 100);
  2008. background-color: #1677FF;
  2009. color: rgba(255, 255, 255, 1);
  2010. font-size: 28rpx;
  2011. text-align: center;
  2012. margin-right: 8rpx;
  2013. }
  2014. .slow-font {
  2015. width: 40rpx;
  2016. height: 40rpx;
  2017. line-height: 40rpx;
  2018. border-radius: 8rpx;
  2019. // background-color: rgba(226, 226, 226, 100);
  2020. // color: rgba(128, 128, 128, 100);
  2021. background-color: #00B962;
  2022. color: rgba(255, 255, 255, 1);
  2023. font-size: 28rpx;
  2024. text-align: center;
  2025. margin-right: 8rpx;
  2026. }
  2027. .num {
  2028. font-size: 32rpx;
  2029. color: #666;
  2030. line-height: 40rpx;
  2031. }
  2032. .num1 {
  2033. font-size: 32rpx;
  2034. color: #bbb;
  2035. line-height: 40rpx;
  2036. }
  2037. }
  2038. .slow {
  2039. margin-left: 24rpx;
  2040. }
  2041. }
  2042. }
  2043. //定位
  2044. .location {
  2045. width: 91.4%;
  2046. background-color: #ffffff;
  2047. height: 120px;
  2048. display: flex;
  2049. justify-content: space-between;
  2050. margin: 20px auto 0;
  2051. border-radius: 8px;
  2052. border: #F2F4F4 1px;
  2053. .location-text {
  2054. padding: 24px 0 0 28px;
  2055. .text-1 {
  2056. height: 16px;
  2057. line-height: 16px;
  2058. color: rgba(16, 16, 16, 100);
  2059. font-size: 16px;
  2060. text-align: left;
  2061. }
  2062. .text-2 {
  2063. height: 17px;
  2064. line-height: 17px;
  2065. color: rgba(102, 102, 102, 100);
  2066. font-size: 12px;
  2067. text-align: left;
  2068. margin-top: 4px;
  2069. white-space: nowrap; //强制不换行
  2070. text-overflow: ellipsis; //文本超出出现省略号
  2071. overflow: hidden;
  2072. }
  2073. .text-3 {
  2074. width: 80px;
  2075. height: 24px;
  2076. line-height: 22px;
  2077. border-radius: 50px;
  2078. color: rgba(0, 185, 98, 100);
  2079. font-size: 12px;
  2080. text-align: center;
  2081. border: 1px solid rgba(0, 185, 98, 100);
  2082. margin-top: 11px;
  2083. }
  2084. }
  2085. .img-box {
  2086. width: 120px;
  2087. height: 120px;
  2088. margin-right: 20px;
  2089. }
  2090. }
  2091. .img-box4 {
  2092. padding-top: 5px;
  2093. height: 260rpx;
  2094. img {
  2095. max-width: 100px;
  2096. }
  2097. .img-view {
  2098. color: #0293f0;
  2099. float: right;
  2100. font-size: 10px;
  2101. margin-top: 3px;
  2102. position: relative;
  2103. bottom: 30rpx;
  2104. left: -15px;
  2105. .iconfont {
  2106. font-size: 14px;
  2107. }
  2108. }
  2109. }
  2110. .state {
  2111. width: 91.4%;
  2112. background-color: #ffffff;
  2113. height: 260rpx;
  2114. min-height: 120px;
  2115. max-height: 130px;
  2116. display: flex;
  2117. margin: 20rpx auto 0;
  2118. border-radius: 8px;
  2119. border: #F2F4F4 1px;
  2120. .state-text {
  2121. min-width: 70%;
  2122. padding: 48rpx 0 0 24rpx;
  2123. Z-INDEX: 99;
  2124. .text-1 {
  2125. height: 16px;
  2126. line-height: 16px;
  2127. color: rgba(0, 185, 98, 1);
  2128. font-size: 16px;
  2129. text-align: left;
  2130. font-weight: bold;
  2131. span {
  2132. color: rgba(16, 16, 16, 1);
  2133. margin-right: 12rpx;
  2134. }
  2135. }
  2136. .text-2 {
  2137. width: 160%;
  2138. height: 17px;
  2139. line-height: 17px;
  2140. color: #101010;
  2141. text-align: left;
  2142. margin-top: 12px;
  2143. span {
  2144. font-weight: bold;
  2145. margin-right: 6rpx;
  2146. margin-left: 6rpx;
  2147. }
  2148. .text-21 {
  2149. color: rgba(0, 185, 98, 1);
  2150. }
  2151. .text-22 {
  2152. color: #ed7847;
  2153. }
  2154. }
  2155. .text-3 {
  2156. font-size: 14px;
  2157. line-height: 20px;
  2158. margin-top: 6px;
  2159. color: #999999;
  2160. }
  2161. }
  2162. .img-box {
  2163. width: 120px;
  2164. height: 120px;
  2165. margin-right: 20px;
  2166. }
  2167. }
  2168. //充值
  2169. .top-up {
  2170. width: 91.4%;
  2171. margin: 24rpx auto 0;
  2172. .top-up-title {
  2173. color: rgba(16, 16, 16, 100);
  2174. font-size: 16px;
  2175. }
  2176. .card-box {
  2177. display: flex;
  2178. justify-content: space-between;
  2179. //padding: 0 0 16px 0;
  2180. .card {
  2181. width: 48.3%;
  2182. height: 65px;
  2183. img {
  2184. width: 100%;
  2185. height: 100%;
  2186. }
  2187. }
  2188. }
  2189. .img-box2 {
  2190. margin-top: 12px;
  2191. display: flex;
  2192. justify-content: space-between;
  2193. img {
  2194. width: 100%;
  2195. height: 100%;
  2196. }
  2197. .left-image {
  2198. width: 48.3%;
  2199. height: 166px;
  2200. padding: 8px 0 0 12px;
  2201. // background: url(@/assets/img/topup1.png);
  2202. background-repeat: no-repeat;
  2203. background-position: 30% 10%;
  2204. background-size: cover;
  2205. p {
  2206. color: rgba(56, 47, 33, 100);
  2207. font-size: 24px;
  2208. line-height: 28px;
  2209. font-weight: 600;
  2210. }
  2211. .time-activities {
  2212. color: rgba(56, 39, 14, 100);
  2213. font-size: 16px;
  2214. line-height: 22px;
  2215. margin-top: 4px;
  2216. .time {
  2217. margin-left: 4px;
  2218. color: #fa3534;
  2219. font-weight: bold;
  2220. }
  2221. }
  2222. }
  2223. .right-image {
  2224. width: 48.3%;
  2225. display: flex;
  2226. flex-direction: column;
  2227. justify-content: space-between;
  2228. .margin-top {
  2229. margin-top: 12px;
  2230. }
  2231. img {
  2232. height: 77px;
  2233. }
  2234. }
  2235. ;
  2236. }
  2237. }
  2238. .lineBox {
  2239. background-color: rgba(0, 145, 67, 100);
  2240. padding: 0px 3px;
  2241. background-color: rgba(0, 185, 98, 1);
  2242. color: rgba(255, 255, 255, 1);
  2243. margin-left: 6px;
  2244. border-radius: 3px;
  2245. }
  2246. // 小竖线
  2247. .line {
  2248. display: inline-block;
  2249. width: 3px;
  2250. height: 12px;
  2251. margin-right: 7px;
  2252. background-color: rgba(0, 145, 67, 100);
  2253. }
  2254. // 新闻公告
  2255. .news-title2 {
  2256. display: flex;
  2257. }
  2258. // 新闻公告
  2259. .news-title {
  2260. padding: 0 16px;
  2261. margin-top: 12px;
  2262. color: rgba(16, 16, 16, 100);
  2263. font-size: 16px;
  2264. //display: flex;
  2265. justify-content: space-between;
  2266. background-color: #F2F4F4;
  2267. .news-title-left {
  2268. display: flex;
  2269. }
  2270. .more {
  2271. font-size: 14px;
  2272. color: #777777;
  2273. display: flex;
  2274. line-height: 20px;
  2275. align-items: center;
  2276. .more-icon {
  2277. font-size: 24px
  2278. }
  2279. }
  2280. }
  2281. .news {
  2282. background-color: #fff;
  2283. width: 91.4%;
  2284. margin: 12px auto 0;
  2285. border-radius: 8px;
  2286. .news-content {
  2287. display: flex;
  2288. justify-content: space-between;
  2289. padding: 12px;
  2290. .content-text {
  2291. width: 56.2%;
  2292. height: 100%;
  2293. line-height: 21px;
  2294. color: #101010;
  2295. text-align: left;
  2296. font-size: 14px;
  2297. }
  2298. .content-title {
  2299. width: 100%;
  2300. overflow: hidden;
  2301. text-overflow: ellipsis;
  2302. display: -webkit-box;
  2303. -webkit-box-orient: vertical;
  2304. -webkit-line-clamp: 3;
  2305. }
  2306. .content-img {
  2307. width: 40.57%;
  2308. height: 100%;
  2309. border-radius: 4px;
  2310. overflow: hidden;
  2311. img {
  2312. width: 100%;
  2313. height: 80%;
  2314. }
  2315. }
  2316. .news-time {
  2317. margin-top: 5%;
  2318. color: #999999;
  2319. width: 80px;
  2320. height: 20px;
  2321. font-size: 14px;
  2322. }
  2323. }
  2324. }
  2325. .bottom {
  2326. width: 100%;
  2327. height: 60px;
  2328. .bot {
  2329. width: 100%;
  2330. margin: 0 auto;
  2331. padding: 0 17.3%;
  2332. justify-content: space-between;
  2333. display: flex;
  2334. .bot-line {
  2335. margin-top: 20px;
  2336. width: 21.3%;
  2337. height: 0px;
  2338. border: 1px solid rgba(207, 210, 213, 100);
  2339. }
  2340. .bot-text {
  2341. white-space: nowrap;
  2342. height: 17px;
  2343. margin-top: 13px;
  2344. margin-left: 12px;
  2345. margin-right: 12px;
  2346. font-size: 12px;
  2347. text-align: center;
  2348. color: rgba(182, 189, 195, 100);
  2349. }
  2350. }
  2351. }
  2352. // 导航栏
  2353. .navigation {
  2354. width: 100%;
  2355. // height: 40px;
  2356. padding: 10px 0;
  2357. background-color: #fff;
  2358. position: fixed;
  2359. bottom: 0;
  2360. left: 0;
  2361. display: flex;
  2362. justify-content: space-around;
  2363. text-align: center;
  2364. color: #999999;
  2365. .nav-icon {
  2366. width: 54px;
  2367. font-size: 24px
  2368. }
  2369. .nav-text {
  2370. font-size: 14px;
  2371. }
  2372. }
  2373. .shema {
  2374. width: 70%;
  2375. padding-bottom: 20px;
  2376. border-radius: 16px;
  2377. background-color: #fff;
  2378. position: fixed;
  2379. top: 100px;
  2380. left: 0;
  2381. right: 0;
  2382. margin: 0 auto;
  2383. z-index: 9999;
  2384. .title {
  2385. height: 33px;
  2386. color: rgba(16, 16, 16, 100);
  2387. font-size: 24px;
  2388. text-align: center;
  2389. padding: 16px 0;
  2390. }
  2391. .u-radio-group {
  2392. margin: 16px 5vw;
  2393. }
  2394. /deep/.u-radio {
  2395. width: 60vw !important;
  2396. padding: 24px 24px 40px;
  2397. line-height: 20px;
  2398. border-radius: 16px;
  2399. text-align: center;
  2400. border: #101010 1px solid;
  2401. margin-top: 12px;
  2402. }
  2403. /deep/ .u-radio__label {
  2404. text-align: left;
  2405. height: 24px;
  2406. // color: rgba(0, 185, 98, 100);
  2407. font-size: 24px;
  2408. }
  2409. p {
  2410. height: 22px;
  2411. color: rgba(102, 102, 102, 100);
  2412. font-size: 14px;
  2413. margin-top: 12px;
  2414. white-space: nowrap
  2415. }
  2416. .hint {
  2417. text-align: center;
  2418. }
  2419. .btn-box {
  2420. margin-top: 20px;
  2421. .choice-btn {
  2422. width: 80%;
  2423. }
  2424. }
  2425. }
  2426. .wrap {
  2427. display: flex;
  2428. align-items: center;
  2429. justify-content: center;
  2430. height: 100%;
  2431. }
  2432. // 登录提示
  2433. .login-prompt {
  2434. width: 91.4%;
  2435. height: 40px;
  2436. line-height: 40px;
  2437. border-radius: 50px;
  2438. text-align: left;
  2439. padding-left: 16px;
  2440. padding-right: 4px;
  2441. background-color: rgba(0, 0, 0, 0.6);
  2442. position: fixed;
  2443. bottom: 75px;
  2444. color: #ffffff;
  2445. .button {
  2446. width: 88px;
  2447. height: 32px;
  2448. line-height: 32px;
  2449. border-radius: 50px;
  2450. background-color: rgba(0, 185, 98, 100);
  2451. text-align: center;
  2452. float: right;
  2453. margin-top: 4px;
  2454. }
  2455. }
  2456. .showOss {
  2457. /deep/.u-model,
  2458. /deep/.u-mode-center-box {
  2459. background-color: transparent;
  2460. }
  2461. }
  2462. .carNone {
  2463. display: flex;
  2464. flex-direction: column;
  2465. justify-content: center;
  2466. align-items: center;
  2467. img {
  2468. width: 100%;
  2469. height: 100%;
  2470. }
  2471. p {
  2472. margin-top: -60px;
  2473. }
  2474. }
  2475. .shopItemName {
  2476. min-height: 30px;
  2477. }
  2478. .shopItemPrice2 {
  2479. border-radius: 25px;
  2480. width: 64rpx;
  2481. height: 64rpx;
  2482. display: flex;
  2483. justify-content: center;
  2484. /* text-decoration: underline; */
  2485. color: #fff;
  2486. text-align: center;
  2487. background: linear-gradient(180deg, rgba(255, 98, 0, 1) 0%, rgba(255, 40, 0, 1) 100%);
  2488. }
  2489. .slogan-4 {
  2490. margin-top: 10px;
  2491. display: flex;
  2492. justify-content: center;
  2493. /* text-decoration: underline; */
  2494. text-align: center;
  2495. position: fixed;
  2496. /* top: 40px; */
  2497. bottom: 180px;
  2498. right: 20px;
  2499. height: 80rpx;
  2500. width: 80rpx;
  2501. line-height: 20px;
  2502. font-size: 16px;
  2503. background: linear-gradient(95deg, #FF9800, #FF5722);
  2504. box-shadow: 0 4rpx 24rpx 0 #FF5722;
  2505. //padding-top: 8px;
  2506. color: #fff;
  2507. border-radius: 25px;
  2508. }
  2509. .imageshake {
  2510. position: relative;
  2511. animation: shake 0.5s ease-in-out infinite;
  2512. }
  2513. @keyframes shake {
  2514. 0% {
  2515. transform: rotate(0deg);
  2516. }
  2517. 25% {
  2518. transform: rotate(8deg);
  2519. }
  2520. 50% {
  2521. transform: rotate(0deg);
  2522. }
  2523. 75% {
  2524. transform: rotate(-8deg);
  2525. }
  2526. 100% {
  2527. transform: rotate(0deg);
  2528. }
  2529. }
  2530. .shopList {
  2531. width: 91.4%;
  2532. margin: 8px auto 0;
  2533. border-radius: 8px;
  2534. padding: 12px 12px 12px 11px;
  2535. background-color: #fff;
  2536. display: flex;
  2537. justify-content: space-between;
  2538. flex-wrap: wrap;
  2539. .shopItem {
  2540. width: 45%;
  2541. margin: 3px;
  2542. margin-bottom: 32rpx;
  2543. .shopItemImg{
  2544. // width: 288rpx;
  2545. // height:288rpx ;
  2546. }
  2547. .shopItemPrice {
  2548. display: flex;
  2549. justify-content: space-between;
  2550. align-items: flex-end;
  2551. .shopItemPrice1 {
  2552. color: rgba(255, 40, 0, 1);
  2553. font-size: 40rpx;
  2554. text {
  2555. font-size: 24rpx
  2556. }
  2557. }
  2558. }
  2559. }
  2560. }
  2561. .options-item {
  2562. width: 100%;
  2563. // display: flex;
  2564. // justify-content: center;
  2565. background: rgb(255, 255, 255);
  2566. position: relative;
  2567. position: fixed;
  2568. left: 0;
  2569. right: 0;
  2570. top: 0;
  2571. z-index: 991;
  2572. }
  2573. .news-text {
  2574. width: 100%;
  2575. white-space: nowrap;
  2576. overflow: hidden;
  2577. text-overflow: ellipsis;
  2578. }
  2579. .rotate-animation {
  2580. animation: rotate 3s linear infinite;
  2581. }
  2582. @keyframes rotate {
  2583. from {
  2584. transform: rotate(0deg);
  2585. }
  2586. to {
  2587. transform: rotate(360deg);
  2588. }
  2589. }
  2590. </style>