index.vue 73 KB

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