index copy.vue 71 KB

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