index.vue 76 KB

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