index.vue 76 KB

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