chargingPileDetailsFamily.vue 55 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525
  1. <template>
  2. <view>
  3. <!-- chargingPileDetailsFamily -->
  4. <u-popup v-model="carTempBl" @open="carTempBlInit" :closeable="true" mode="bottom">
  5. <view style="margin-top: 18px;">
  6. <view style="font-size: 48rpx;">临时车牌:{{form.carNum}}</view>
  7. <ucarkeyboard style="position: inherit !important;" ref="uKeyboard" mode="car"
  8. @confirm="car.carNum=form.carNum,carTempBl=false" @cancel="carTempBl=false" :showTips="true"
  9. :mask-close-able="false" @change="valChange" @backspace="backspace"></ucarkeyboard>
  10. </view>
  11. </u-popup>
  12. <view v-show="step==0">
  13. <ujp-navbar title="我的家桩充电详情" :startGz="false" :custom-back="customback">
  14. <view class="iconfont service" @click="openModal">
  15. &#xe60d;
  16. </view>
  17. </ujp-navbar>
  18. <!-- 未插枪提示 -->
  19. <!-- <u-alert-tips type="warning" v-if="!isInsert" :description="description" :show-icon="true"></u-alert-tips>
  20. -->
  21. <view class="main">
  22. <view class="main-head">
  23. <view class="text" v-if="haveLock&&lockStatus==1">
  24. <view class="text-1">
  25. 请下降地锁
  26. </view>
  27. <view class="text-2">
  28. 请在<span style="color:red">{{lockSafeStopTime}}秒</span>内停车入位,以免地锁抬升对您的爱车造成损伤。
  29. </view>
  30. </view>
  31. <view class="text" v-else>
  32. <view class="text-1" v-if="gun&&gun.workStatus==2">
  33. 充电中
  34. </view>
  35. <view class="text-1" v-else >
  36. {{isInsert?'可充电':'未插枪'}}
  37. </view>
  38. <view class="text-2" v-if="station.stationType==50">
  39. 可进行充电
  40. </view>
  41. <view class="text-2" v-else>
  42. <template v-if="gun&&gun.workStatus==2">
  43. </template>
  44. <template v-else>
  45. {{isInsert?'充电枪已连接,可进行充电':'未检测到充电枪,若已插枪,请拔出重插'}}
  46. </template>
  47. </view>
  48. </view>
  49. <view class="charge-img">
  50. <img src="@/assets/img/charge.png" alt="">
  51. </view>
  52. </view>
  53. <view class="charging-info">
  54. <view class="address">
  55. {{station.name}}
  56. <!-- <text class="explain" @click="step=1">费用说明</text> -->
  57. </view>
  58. <view class="name">
  59. <span style="font-weight: bold;color: #000;"
  60. v-if="station.stationType!=50&&gun.sortNo">{{gun.sortNo}}号/</span><span
  61. style="font-weight: bold;color: #000;">{{detail.name}}</span><span
  62. style="font-weight: bold;color: #000;"
  63. v-if="station.stationType!=50">枪{{channelNoShow(gun.channelNo,detail.manufacturer,gun.customNo)}}</span>
  64. <text class="free" v-if="gunDetail.chargingAppointment&&gunDetail.isMeAppoint">您已预约</text>
  65. <text class="free" v-else-if="gunDetail.chargingAppointment&&!gunDetail.isMeAppoint">已被预约</text>
  66. <text class="free " :class="'workStatusText'+gun.workStatus" v-else >{{gun.workStatusText}}</text>
  67. </view>
  68. <view v-if="gun.workStatus==6" @click="operating=true"
  69. style="margin-top: 10rpx;color: rgba(255, 56, 56, 1);font-size: 28rpx; display: flex; align-items: center;" >
  70. <span style="color: #fff;background: linear-gradient(93.02deg, rgba(255,56,56,1) 39.4%,rgba(255,124,112,1) 92.42%);
  71. border-radius: 4px;
  72. padding: 0rpx 10rpx;
  73. margin-right: 8rpx;
  74. font-size: 24rpx;
  75. line-height:40rpx;
  76. " >提醒</span>
  77. 点击查看恢复供电操作指示图
  78. <u-icon name="arrow-right"></u-icon>
  79. </view>
  80. <view class="price" v-if="detail.stationAddress">
  81. <text class="unit">{{detail.stationAddress}}</text>
  82. </view>
  83. <view v-if="price" class="priceListBlMain">
  84. </view>
  85. </view>
  86. <view class="charging-info">
  87. <view class="row" @click="startTypeShow=true">
  88. <view class="key">充电方式</view>
  89. <view class="value">{{startTypeList[startType].label}}<u-icon name="arrow-right"></u-icon></view>
  90. </view>
  91. <view class="row" v-show="startType==0" @click="startTypeTimeShow=true" >
  92. <view class="key">定时充电</view>
  93. <view class="value">{{startTypeTimeList[0][startTypeTimeValue1].label}}:{{startTypeTimeList[1][startTypeTimeValue2].label}}<u-icon name="arrow-right"></u-icon></view>
  94. </view>
  95. </view>
  96. </view>
  97. <u-select v-model="startTypeShow" @confirm="startTypeConfirm"
  98. :default-value="[startType]"
  99. :list="startTypeList"></u-select>
  100. <u-select v-model="startTypeTimeShow"
  101. title="时:分"
  102. mode="mutil-column"
  103. @confirm="startTypeTimeConfirm"
  104. :default-value="[startTypeTimeValue1,startTypeTimeValue2]"
  105. :list="startTypeTimeList"></u-select>
  106. <view class="carImg" v-if="personInfo&&personInfo.userType!=2">
  107. <img @click="gotoLogin" src="@/assets/img/gologin/img.png">
  108. </view>
  109. <view class="bottom">
  110. <!-- 解锁中 -->
  111. <!-- <u-button shape="circle" type="success" style="opacity: 0.4;">
  112. 解锁中<img style="margin-left: 4px;" src="@/assets/static/img/riLine-refresh-line.svg" alt="">
  113. </u-button> -->
  114. <!-- 刷新充电枪状态 如果改动 ,请添加 方法判断startCarCharging -->
  115. <u-button shape="circle" type="success" v-if="gun&&gun.workStatus==2">充电中</u-button>
  116. <u-button shape="circle" type="success" v-else-if="!openBool">仅内部员工可用</u-button>
  117. <!-- 刷新充电枪状态 如果改动 ,请添加 方法判断startCarCharging -->
  118. <u-button shape="circle" type="success" @click="getPile()"
  119. v-else-if="gunDetail.chargingAppointment&&!gunDetail.isMeAppoint">已被预约</u-button>
  120. <!-- 刷新充电枪状态 如果改动 ,请添加 方法判断startCarCharging -->
  121. <u-button shape="circle" v-else-if="haveLock&&lockStatus==1" @click="lockDown()"
  122. style="background-color:#009ED7" type="success">下降地锁</u-button>
  123. <u-button shape="circle" v-else-if="!isInsert" @click="getPile()" type="success">刷新充电枪状态</u-button>
  124. <!-- 刷新充电枪状态 如果改动 ,请添加 方法判断startCarCharging -->
  125. <!-- 开始充电 -->
  126. <u-button shape="circle" type="success" v-else @click="charge()">{{startType==0?'定时充电':''}}{{startType==1?'开始充电':''}}</u-button>
  127. <u-button shape="circle" type="success" v-if="0"
  128. @click="readyToTimingChargingApi()">测试</u-button>
  129. <view v-if="lastTiming&&lastTiming.startTime&&gunDetail.nextTiming" style="
  130. text-align: center;
  131. color: #FF9800;
  132. margin-top: 5px;
  133. " >
  134. <u-icon
  135. style=" margin-top: 2px;"
  136. size="30"
  137. name="info-circle"
  138. ></u-icon>
  139. 已设置{{lastTiming.startTime}}的定时充电,再次启动将会覆盖设置
  140. </view>
  141. </view>
  142. <!--提示 -->
  143. <view class="tips">
  144. <p class="p" @click="chargeTest" style="margin-top: 20rpx;">注意事项:</p>
  145. <!-- <view class="content" v-if="!isInsert">
  146. 点击降锁后,请稍等几十秒,待地锁完全下降后,再驶入车位。
  147. </view> -->
  148. <view class="content">
  149. 1.车停好,请熄火后再充电;<br />
  150. 2.请确保充电枪插接到位;<br />
  151. 3.车辆充电时,请关闭车内电源;<br />
  152. 4.充电完毕,请及时拔枪;<br />
  153. 5.填写车牌号,离场时可减免部分停车费。
  154. </view>
  155. </view>
  156. <!-- 弹窗 -->
  157. <view>
  158. <u-modal v-model="show" @confirm="confirmPhone" :confirm-text="confirmText" confirm-color="#606266"
  159. :show-cancel-button="true" ref="uModal" :asyncClose="true" :title="title" :content="consumerPhone"
  160. :content-style="{fontSize: '24px',color: '#101010'}"></u-modal>
  161. </view>
  162. </view>
  163. <u-modal v-model="show3" class="showOss" confirm-text="注册会员" cancel-text="先不注册" :show-title="false" width="650"
  164. border-radius="30" title="" :show-cancel-button="false" :show-confirm-button="false">
  165. <view class="slot-content">
  166. <!-- :show-title="false" -->
  167. <view>
  168. <img v-if="branchParameterBl('ud')" src="@/assets/img/gologin/nipic.png" style="width: 100%;"></img>
  169. <img v-else src="@/assets/img/Nipic_24385267_20191128181916139081.png" style="width: 100%;"></img>
  170. </view>
  171. <view>
  172. <table class="classtable">
  173. <tr>
  174. <td class="td1">
  175. <img src="@/assets/img/Nipic_vip.png" style="width: 24px;"></img>
  176. <p style="color: #FF9800;line-height: 10px;">会员</p>
  177. </td>
  178. <td class="td2">
  179. <p v-if="branchParameterBl()" ><span class="dian">·</span>充电最低<span style="color:#4aa461">0.66元</span>/度(含服务费)</p>
  180. <p><span class="dian">·</span>账户充值赠送代金券</p>
  181. <p><span class="dian">·</span>更有<span style="color:#4aa461">会员充电折扣、服务费包月会员资格</span>等超多福利
  182. </p>
  183. <p v-if="branchParameterBl('ud')"><span class="dian">·</span>与51充电联盟会员共享数据,包括账户余额、优惠卡券等</p>
  184. </td>
  185. </tr>
  186. <tr>
  187. <td style="color: #fff;line-height: 3px;">.</td>
  188. </tr>
  189. <tr>
  190. <td class="td1">
  191. <img src="@/assets/img/Nipic_youke.png" style="width: 24px;"></img>
  192. <p style="color: rgb(74, 164, 97);line-height: 10px;">游客</p>
  193. </td>
  194. <td class="td2">
  195. <p><span class="dian">·</span>临时车牌快速充电</p>
  196. <p><span class="dian">·</span>无需注册 先付后退</p>
  197. <p><span class="dian">·</span><span style="color:#F44336">不可使用</span>平台各类代金券</p>
  198. </td>
  199. </tr>
  200. </table>
  201. </view>
  202. <view class="btnview">
  203. <!-- <u-button shape="circle" @click="show3=false"
  204. style=" width: 200rpx; background-color: #fff !important; margin: 20rpx;float: left;margin-bottom: 20px; "
  205. szie="mini" type="success" plain>继续充电</u-button> -->
  206. <view class="btnview1">
  207. <u-button shape="circle" style=" float: left; width: 400rpx; margin: 20rpx; " szie="mini"
  208. type="success" @click="gotoUrl('pages/login/login')">注册会员</u-button>
  209. </view>
  210. <view class="btnview2" @click="show3=false,show4=true">暂不注册,先充电</view>
  211. </view>
  212. </view>
  213. </u-modal>
  214. <u-modal v-model="quickChargingBl" class="quickMain" confirm-text="注册会员" cancel-text="先不注册" :show-title="false" width="650"
  215. border-radius="30" title="" :show-cancel-button="false" :show-confirm-button="false">
  216. <view class="quickMain-slot-content">
  217. <!-- :show-title="false" -->
  218. <view class="quickMain-img">
  219. <img src="@/assets/img/member/10.png" ></img>
  220. </view>
  221. <view class="quickMain-bodyMain" >
  222. <view class="quickMain-body">
  223. <view class="quickMain-text1">快捷充电功能上线!</view>
  224. <view class="quickMain-text2">
  225. 恭喜您达到
  226. <img src="@/assets/img/9-4/白金会员.svg" ></img>
  227. <span style="color:#3F51B5;">白金会员</span>等级,您已获得<span style="color: #19be6b;">【快捷充电】</span>功能体验资格。
  228. </view>
  229. <view class="quickMain-text2">
  230. 当您插枪扫码后,在个人账户余额充足的情况下,自动帮您选择充满自停模式并开始充电。如需关闭此功能,可在“我的”-“设置”中修改。
  231. </view>
  232. </view>
  233. <view class="btnview">
  234. <!-- <u-button shape="circle" @click="show3=false"
  235. style=" width: 200rpx; background-color: #fff !important; margin: 20rpx;float: left;margin-bottom: 20px; "
  236. szie="mini" type="success" plain>继续充电</u-button> -->
  237. <view class="btnview1">
  238. <u-button shape="circle" style=" float: left; width: 400rpx; margin: 20rpx; " szie="mini"
  239. type="success" @click="checkedChange2(1)">同意并记住我的选择</u-button>
  240. </view>
  241. <view class="btnview2" @click="checkedChange2(0)">暂不启用</view>
  242. </view>
  243. </view>
  244. </view>
  245. </u-modal>
  246. <u-modal v-model="show1" @confirm="gotoGz" cancel-text="暂不关注" confirm-text="前往关注" :show-cancel-button="false"
  247. confirm-color="#53b56b" ref="uModal2" :asyncClose="true">
  248. <view style="padding: 15px;">请先关注<span style=" color: #53b56b;">{{projectName}}</span>公众号,然后进行车辆充电</view>
  249. </u-modal>
  250. <quickRegistration v-if="show4" @login="loginMethod" :carNum="car?car.carNum:''" ></quickRegistration>
  251. <u-popup v-model="operating" mode="center" >
  252. <view @click="operating=false"
  253. style="background-color: #53a849;
  254. text-align: center;
  255. width: 600rpx; ">
  256. <img style=" width: 400rpx;"
  257. src="@/assets/img/gologin/操作指引-tuya.png"></img>
  258. </view>
  259. </u-popup>
  260. </view>
  261. </template>
  262. <script>
  263. import * as API_index from '@/apis/index.js'
  264. import * as API from "@/apis/chargeProcess.js"
  265. import * as userApi from '@/apis/user.js'
  266. import * as newsApi from '@/apis/news.js'
  267. import ucarkeyboard from '@/components/Ucarkeyboard.vue'
  268. import * as API_weixin from '@/apis/weixin.js'
  269. import quickRegistration from '@/components/QuickRegistration.vue'
  270. import {
  271. newDate,
  272. hourDistanceArr,
  273. currentTimeStamp,
  274. parseUnixTime,
  275. daysDistance
  276. } from '@/utils'
  277. export default {
  278. components: {
  279. ucarkeyboard,quickRegistration
  280. },
  281. data() {
  282. return {
  283. show1: false,
  284. show2: false,
  285. show3: false,
  286. show4: false,
  287. operating:false,
  288. carImg3Bl:false,
  289. carImg4Bl:false,
  290. carImg3span1:0,
  291. carImg3span2:0,
  292. carImg3span3:0,
  293. pricesInfoCurrent: {},
  294. pricesInfoCurrent2: {},
  295. show3: false,
  296. temporaryCarNum: "",
  297. form: {
  298. carNum: '',
  299. defaultFlag: true,
  300. },
  301. priceListBl: false,
  302. pricesInfo: [],
  303. showNt: false,
  304. showNtStep: 0,
  305. showNtValue: 30,
  306. station: {},
  307. step: 0,
  308. bannerList: [],
  309. isInsert: false,
  310. isReady: false,
  311. onShowRole: false,
  312. id: "",
  313. car: {},
  314. isback: false,
  315. gun: {},
  316. prices: {},
  317. personInfo: {},
  318. price: {
  319. costPrice: 0,
  320. electricityPrice: 0,
  321. discountServicePrice: 0,
  322. servicePrice: 0,
  323. },
  324. gunDetail: {},
  325. haveLock: false,
  326. lockSafeStopTime: 0,
  327. lockStatus: '', // 1抬锁 2落锁
  328. carplateMust: false,
  329. detail: {
  330. no: '',
  331. interface: '',
  332. type: '',
  333. power: 0,
  334. price: [
  335. ]
  336. },
  337. consumerPhone: "",
  338. description: '充电前请确保您的车辆已与充电桩连接!并关闭车内电源。',
  339. show: false,
  340. title: '联系客服',
  341. showVin: false,
  342. confirmText: '拨打电话',
  343. content: '余额不足5,请先充值。',
  344. carDetText: '',
  345. userCard: null,
  346. canUse: false,
  347. openStatus: 0,
  348. isVip: false,
  349. openBoolShow: false,
  350. carTempBl: false,
  351. maxlength: 8,
  352. chatShowId: "",
  353. chatShow: false,
  354. startCarChargingBl:false,
  355. quickChargingBl:false,
  356. carplateMustModel:false,
  357. projectName: "",
  358. showrecharge:"",
  359. bannerListTop:[],
  360. getBannerInfoTopBl:true,
  361. showTop:false,
  362. showTopImg:"",
  363. showTopIndex: 0,
  364. startType:1,
  365. startTypeShow:false,
  366. startTypeTimeShow:false,
  367. startTypeTimeValue1:0,
  368. startTypeTimeValue2:0,
  369. lastTiming:{},
  370. startTypeTimeList:[
  371. [
  372. {
  373. label:"00",
  374. value:"00"
  375. },
  376. ],
  377. [
  378. {
  379. label:"00",
  380. value:"00"
  381. }
  382. ]
  383. ],
  384. startTypeStartTime:"",
  385. startTypeList:[
  386. {
  387. label:"设置定时",
  388. value:0
  389. },
  390. {
  391. label:"立即开始",
  392. value:1
  393. }
  394. ]
  395. }
  396. },
  397. computed: {
  398. checked(){
  399. return !this.startType
  400. },
  401. prevMonthKwhBL(){
  402. if(this.carImg3span1>=1000){
  403. return false
  404. }
  405. return true
  406. },
  407. openBool() {
  408. if (this.openStatus == '3') {
  409. return this.isVip
  410. }
  411. return true
  412. },
  413. userCardBool() {
  414. if (this.userCard) {
  415. var date = new Date().getTime()
  416. var reg = new RegExp('-', 'gi')
  417. var str = this.userCard.endTime;
  418. //console.log(str.replace(reg,'/'))
  419. var date2 = new Date(str.replace(reg, '/')).getTime();
  420. if (date < date2) {
  421. return true;
  422. }
  423. }
  424. return false
  425. },
  426. },
  427. onShow() {
  428. uni.hideToast();
  429. this.checkSubscribe()
  430. if (this.onShowRole) {
  431. this.getPile()
  432. }
  433. },
  434. onReady() {
  435. },
  436. onLoad(op) {
  437. //this.startCarCharging()
  438. this.init(op)
  439. },
  440. methods: {
  441. startTypeTimeConfirm(e){
  442. console.log(e)
  443. this.startTypeTimeValue1=this.startTypeTimeList[0].findIndex(item=>{
  444. return item.value==e[0].value
  445. })
  446. this.startTypeTimeValue2=this.startTypeTimeList[1].findIndex(item=>{
  447. return item.value==e[1].value
  448. })
  449. console.log(this.startTypeTimeValue2,this.startTypeTimeValue1)
  450. },
  451. // startTypeConfirm(e){
  452. // console.log(e);
  453. // this.startType=e?0:1
  454. // console.log(this.startType);
  455. // if(this.lastTiming==null){
  456. // this.startTypeTimeValue1=new Date().getHours()
  457. // this.startTypeTimeValue2=new Date().getMinutes()
  458. // }
  459. // },
  460. startTypeConfirm(e){
  461. console.log(e);
  462. this.startType=e[0].value
  463. if(this.lastTiming==null){
  464. this.startTypeTimeValue1=new Date().getHours()
  465. this.startTypeTimeValue2=new Date().getMinutes()
  466. }
  467. },
  468. onShowK() {
  469. uni.hideToast();
  470. this.checkSubscribe()
  471. if (this.onShowRole) {
  472. this.getPile()
  473. }
  474. },
  475. init(op){
  476. this.startTypeTimeList[0]=[]
  477. for(var i=0;i<24;i++){
  478. this.startTypeTimeList[0].push({
  479. label:i<10?"0"+i:i,
  480. value:i<10?"0"+i:i,
  481. })
  482. }
  483. this.startTypeTimeList[1]=[]
  484. for(var i=0;i<60;i++){
  485. this.startTypeTimeList[1].push({
  486. label:i<10?"0"+i:i,
  487. value:i<10?"0"+i:i,
  488. })
  489. }
  490. this.projectName = process.car.ProjectName;
  491. var consumerPhone = "400-8899-619"
  492. // img="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
  493. if (consumerPhone) {
  494. this.consumerPhone = consumerPhone
  495. }
  496. var carDetText = "填写车牌号,充电时可以减免部分停车费用"
  497. // img="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
  498. if (carDetText) {
  499. this.carDetText = carDetText
  500. }
  501. if( this.branchParameterBl('ud')){
  502. //this.getf5surprised()
  503. this.getBannerInfoTop("home-top2");
  504. }
  505. //this.startCarCharging()
  506. if (op.isback) {
  507. this.isback = true
  508. }
  509. if (op.id) {
  510. this.id = op.id
  511. var personInfo = this.carhelp.getPersonInfo()
  512. this.personInfo = personInfo
  513. var userInfo = this.carhelp.getPersonInfo();
  514. if (this.personInfo && this.personInfo.userType == "1") {
  515. this.show3 = true
  516. }else{
  517. }
  518. if (userInfo && userInfo.id) {
  519. } else {
  520. //this.getBannerInfoTop("home-top");
  521. }
  522. this.getPile()
  523. } else {
  524. uni.showToast({
  525. title: "请扫码充电"
  526. })
  527. }
  528. },
  529. loginMethod(){
  530. var personInfo = this.carhelp.getPersonInfo()
  531. this.personInfo = personInfo
  532. this.getPile()
  533. },
  534. cancelGz() {
  535. this.carhelp.setGzDate()
  536. },
  537. gotoGz() {
  538. this.carhelp.setGzDate()
  539. var url = process.car.gzUrl;
  540. window.location.href = url
  541. },
  542. checkSubscribe() {
  543. API_weixin.checkSubscribe({
  544. openId: this.carhelp.getOpenId()
  545. }).then((res) => {
  546. if (res.data == "0") {
  547. this.show1 = true
  548. } else {
  549. //this.init();
  550. this.show1 = false;
  551. this.show2 = true;
  552. //this.carhelp.setGzDate()
  553. }
  554. //setGzDate
  555. }).catch(error => {
  556. uni.showToast({
  557. title: error
  558. })
  559. })
  560. },
  561. checkedChange2(checked2) {
  562. uni.showLoading({
  563. title: "加载中",
  564. mask: true,
  565. })
  566. API_index.changeQuickCharging({qucikStatus: checked2}).then((res) => {
  567. var userInfo = this.carhelp.getPersonInfo();
  568. userInfo.quickCharging=checked2;
  569. this.carhelp.setPersonInfo(userInfo);
  570. this.quickChargingBl=false;
  571. uni.hideLoading();
  572. if(checked2){
  573. this.startCarCharging()
  574. }
  575. }).catch(error => {
  576. uni.showToast({
  577. title: error,
  578. icon: "none"
  579. })
  580. })
  581. },
  582. chatShowBtn(item) {
  583. if(this.chatShow == false){
  584. this.chatShow = true
  585. }else if(item.startTime!=this.pricesInfoCurrent2.startTime){
  586. this.chatShow = true
  587. }else{
  588. this.chatShow = false
  589. }
  590. this.pricesInfoCurrent2=item
  591. },
  592. clickBannerTopI(i) {
  593. var mod = this.bannerListTop[i];
  594. //this.showTop = false;
  595. this.clickBanner(0, true, mod)
  596. },
  597. clickBannerTop() {
  598. var mod = this.bannerListTop[this.showTopIndex];
  599. this.showTop = false;
  600. this.clickBanner(0, true, mod)
  601. },
  602. clickBanner(index, bl, modout) {
  603. var uurl = "";
  604. var mod = {}
  605. if (modout) {
  606. mod = modout;
  607. }else{
  608. mod =this.bannerList[index]
  609. }
  610. mod.clickUrl = mod.linkUrl
  611. if (mod.linkPicUrl && !bl) {
  612. this.showOss = true;
  613. this.showOssImg = mod.linkPicUrl;
  614. this.showOssIndex = index;
  615. } else if (mod.clickUrl == null) {
  616. } else if (mod.clickUrl.indexOf('http') == 0) {
  617. window.location = mod.clickUrl + uurl;
  618. } else if (mod.clickUrl.slice(-5) == 'login' && this.userId) {
  619. } else if (mod.clickUrl.indexOf('#/') == 0) {
  620. if (mod.clickUrl.indexOf("?") == -1) {
  621. mod.clickUrl += '?';
  622. }
  623. var url = mod.clickUrl.split("#")[1]
  624. //window.location = mod.clickUrl;
  625. uni.navigateTo({
  626. url: url + uurl
  627. })
  628. } else if (mod.clickUrl == '#' || mod.clickUrl == '') {
  629. } else {
  630. uni.navigateTo({
  631. url: mod.clickUrl + uurl
  632. })
  633. }
  634. },
  635. getBannerInfo(code) {
  636. uni.showLoading({
  637. title: "加载中",
  638. mask: true,
  639. })
  640. newsApi.getBannerInfo(code).then((res) => {
  641. uni.hideLoading();
  642. this.bannerList = res.data;
  643. // document.getElementsByClassName("uni-swiper-wrapper")[0].parentNode.style="background-color: rgb(255, 255, 255); height: 300px;"
  644. }).catch(error => {
  645. uni.showToast({
  646. title: error,
  647. icon: "none"
  648. })
  649. })
  650. },
  651. thisdaysDistance(endTime) {
  652. var date = new Date()
  653. var date2 = newDate(endTime);
  654. return daysDistance(date, date2)
  655. },
  656. thisendTime(endTime) {
  657. if (endTime) {
  658. var reg = new RegExp('-', 'gi')
  659. var str = endTime.substring(0, 10).replace(reg, '.')
  660. return str
  661. }
  662. return ''
  663. },
  664. thispercent(userCard) {
  665. var p = 0
  666. if (userCard && userCard.chargeDegreeLimit) {
  667. p = userCard.chargedDegree / userCard.chargeDegreeLimit * 100
  668. }
  669. if (p > 100) {
  670. p = 100
  671. }
  672. return p.toFixed(0)
  673. },
  674. carTempBlInit() {
  675. var aaa = this.$refs.uKeyboard.changeCarInputValue();
  676. console.log(aaa)
  677. if (this.form.carNum.length && !aaa) {
  678. var c = this.$refs.uKeyboard.changeCarInputMode();
  679. }
  680. },
  681. // 按键被点击(点击退格键不会触发此事件)
  682. // 按键被点击(点击退格键不会触发此事件)
  683. valChange(val) {
  684. if (this.form.carNum.length >= this.maxlength) {
  685. return
  686. }
  687. if (true) {
  688. this.form.carNum += val;
  689. } else {
  690. }
  691. // 将每次按键的值拼接到form.carNum变量中,注意+=写法
  692. //(this.form.carNum);
  693. var aaa = this.$refs.uKeyboard.changeCarInputValue();
  694. if ((this.form.carNum.length == 0) && aaa) {
  695. this.$refs.uKeyboard.changeCarInputMode();
  696. } else if (!aaa) {
  697. this.$refs.uKeyboard.changeCarInputMode();
  698. }
  699. },
  700. // 退格键被点击
  701. backspace() {
  702. // 删除form.carNum的最后一个字符
  703. if (this.form.carNum.length) {
  704. if (true) {
  705. this.form.carNum = this.form.carNum.substr(0, this.form.carNum.length - 1);
  706. } else {
  707. //this.selectIndex=-1;
  708. }
  709. }
  710. //(this.form.carNum);
  711. var aaa = this.$refs.uKeyboard.changeCarInputValue();
  712. if (this.form.carNum.length == 0 && aaa) {
  713. this.$refs.uKeyboard.changeCarInputMode();
  714. }
  715. },
  716. lockDown() {
  717. uni.showLoading({
  718. title: "加载中",
  719. mask: true,
  720. })
  721. API.lockDown({
  722. gunId: this.gun.id
  723. }).then((res) => {
  724. uni.hideLoading()
  725. this.lockStatus = res.data.lockStatus
  726. setTimeout(() => {
  727. this.getPile()
  728. }, 5 * 1000)
  729. }).catch(error2 => {
  730. uni.showToast({
  731. title: error2
  732. })
  733. })
  734. },
  735. workStatus2() {
  736. API_index.findChargeData().then((res) => {
  737. var list = res.data.chargingRecordList;
  738. var obj = null;
  739. for (var i = 0; i < list.length; i++) {
  740. if (list[i].deviceNo == this.detail.deviceNo && list[i].channelNo == this.gun.channelNo) {
  741. obj = list[i];
  742. break;
  743. }
  744. }
  745. if (obj) {
  746. uni.redirectTo({
  747. url: "/pages/searchPile/chargeProcess/dcCharging?id=" + obj.id
  748. })
  749. }
  750. }).catch(error => {
  751. uni.showToast({
  752. title: error,
  753. icon: "none"
  754. })
  755. })
  756. },
  757. priceDetail() {
  758. uni.navigateTo({
  759. url: 'chargePriceDetails?stationId=' + this.detail.stationId + "&type=" + this.detail.type +
  760. "&id=" + this.detail.id
  761. })
  762. },
  763. customback2() {
  764. this.step = 0;
  765. },
  766. customback() {
  767. if (this.isback) {
  768. if (this.$refs.ujpnavbar) {
  769. this.$refs.ujpnavbar.navberBack()
  770. } else {
  771. uni.navigateBack({
  772. })
  773. }
  774. } else {
  775. uni.reLaunch({
  776. url: "/pages/login/welcome"
  777. })
  778. }
  779. },
  780. gotoLogin() {
  781. this.onShowRole = true
  782. if (false) {
  783. } else {
  784. uni.navigateTo({
  785. url: "/pages/login/login?jpcode=jp_team51_charge_id:A_" + this.id
  786. })
  787. }
  788. },
  789. carTemp() {
  790. },
  791. carDet(t) {
  792. if(this.car){
  793. return
  794. }
  795. this.onShowRole = true
  796. var url="/pages/user/car/carDet?jpcode=jp_team51_charge_id:A_" + this.id
  797. if( this.car&& this.car.id){
  798. url+="&id="+this.car.id
  799. }
  800. uni.navigateTo({
  801. url: url
  802. })
  803. },
  804. openModal() {
  805. this.show = true;
  806. },
  807. confirmPhone() {
  808. this.show = false;
  809. uni.makePhoneCall({
  810. phoneNumber: this.consumerPhone //仅为示例
  811. });
  812. },
  813. role(bl) {
  814. if (bl) {
  815. return true;
  816. }
  817. if (this.carplateMust) {
  818. if (this.car && this.car.carNum) {
  819. } else {
  820. uni.showModal({
  821. title: "提示",
  822. content: "填写车牌号,离场时可减免部分停车费",
  823. confirmText: "填写车牌号",
  824. cancelText: "继续充电",
  825. success: res1 => {
  826. if (res1.confirm) {
  827. this.carDet()
  828. } else if (res1.cancel) {
  829. //('用户点击取消');
  830. this.charge(true)
  831. }
  832. }
  833. })
  834. return false;
  835. }
  836. }
  837. return true;
  838. },
  839. getChargeList(){
  840. var obj=this.carhelp.get("carhelp_getChargeList")
  841. var time=new Date( ).toLocaleString().substr(0,12).replace("T"," ");
  842. if(obj&&time==obj.time){
  843. var num1=parseInt(obj.electricQuantity);
  844. var num2=parseInt(obj.totalServiceMoney) ;
  845. this.carImg3span1=parseInt(num1/10000);
  846. this.carImg3span2=parseInt(num2*0.4) ;
  847. this.carImg3span3=parseInt(num2) ;
  848. if(num2*0.4>20||this.carImg3span1>=1000){
  849. this.carImg3Bl=true;
  850. }else{
  851. this.carImg4Bl=true;
  852. }
  853. console.log("carhelp_getChargeList",this.carImg3span1,this.carImg3span2)
  854. return
  855. }
  856. var date =new Date().getTime()-30*1000*60*60*24;
  857. var startDate =parseUnixTime(new Date(date),'{y}-{m}-{d}');
  858. API_index.chargingRecordData({
  859. pageIndex: 1,
  860. pageSize:999,
  861. startDate: startDate,
  862. // endDate: this.endDate
  863. }).then((res) => {
  864. var chargeList =res.data.data;
  865. var num1=0;
  866. var num2=0;
  867. for(var i in chargeList){
  868. var obj=chargeList[i]
  869. if(obj.status==2){
  870. num1+=obj.electricQuantity
  871. num2+=obj.totalServiceMoney
  872. }
  873. }
  874. console.log(num1,num2)
  875. this.carhelp.set("carhelp_getChargeList",{
  876. time: time,
  877. electricQuantity:num1,
  878. totalServiceMoney:num2
  879. })
  880. this.carImg3span1=parseInt(num1/10000);
  881. this.carImg3span2=parseInt(num2*0.4) ;
  882. this.carImg3span3=parseInt(num2) ;
  883. if(num2*0.4>20||this.carImg3span1>=1000){
  884. this.carImg3Bl=true;
  885. }else{
  886. this.carImg4Bl=true;
  887. }
  888. }).catch(error => {
  889. uni.showToast({
  890. title: error,
  891. icon: "none"
  892. })
  893. })
  894. },
  895. getUserCard() {
  896. },
  897. getH(item) {
  898. return item * 100 + 'px'
  899. },
  900. getW(item) {
  901. var t1 = item.endTime.substring(0, 2)
  902. var t2 = item.startTime.substring(0, 2)
  903. var k = parseInt(t1) - parseInt(t2);
  904. return 100 / 24 * k + "%"
  905. },
  906. getPile() {
  907. uni.showLoading({
  908. title: "加载中",
  909. mask: true,
  910. })
  911. API.chargingDeviceGunDetail({
  912. gunNo: this.id,
  913. jpcode: "jp_team51_charge_id:A_" + this.id
  914. }).then((res) => {
  915. uni.hideLoading()
  916. this.gunDetail = res.data;
  917. this.detail = res.data.device
  918. this.station = res.data.station
  919. this.carplateMust = this.station.carNumRequired;
  920. this.prices = res.data.prices
  921. this.pricesInfo = res.data.prices
  922. this.price = res.data.price
  923. this.lastTiming=res.data.lastTiming
  924. if(this.lastTiming){
  925. if(this.lastTiming.lastStartMode==4||this.gunDetail.nextTiming){
  926. this.startType=0
  927. }
  928. if(this.lastTiming.startTime){
  929. var sz=this.lastTiming.startTime.split(":")
  930. this.startTypeTimeConfirm([
  931. {
  932. value:sz[0],
  933. label:sz[0]
  934. },
  935. {
  936. value:sz[1],label:sz[1]
  937. }
  938. ])
  939. }
  940. }
  941. this.pricesInfoCurrent = {
  942. ...this.price
  943. }
  944. this.pricesInfoCurrent2 = {
  945. ...this.price
  946. }
  947. this.gun = res.data.gun
  948. if(this.gun &&this.gun.workStatus==6){
  949. this.operating=true;
  950. }
  951. this.car =res.data.car
  952. if (this.carplateMust && this.car && this.car.carNum) {
  953. //this.carplateMustModel=true;
  954. } else {
  955. }
  956. this.lockStatus = res.data.lockStatus;
  957. this.haveLock = res.data.haveLock;
  958. this.lockSafeStopTime = res.data.lockSafeStopTime
  959. this.isVip = res.data.isVip
  960. this.openStatus = res.data.station.openStatus
  961. this.isInsert = this.gun.insertStatus
  962. if (!this.openBool) {
  963. //this.openBoolShow=true;
  964. uni.showModal({
  965. title: "提示",
  966. content: "当前设备仅供内部使用,如有问题可联系客服",
  967. showCancel: false,
  968. success: () => {
  969. }
  970. })
  971. }
  972. if (this.gun.workStatus == 2) {
  973. this.workStatus2()
  974. }
  975. }).catch(error => {
  976. uni.hideLoading()
  977. uni.showModal({
  978. title: "提示",
  979. content: "设备扫码异常",
  980. confirmText: "前往首页",
  981. showCancel: false,
  982. success: () => {
  983. uni.reLaunch({
  984. url: "/pages/index/index"
  985. })
  986. }
  987. })
  988. // uni.showToast({
  989. // title: error
  990. // })
  991. })
  992. },
  993. chargeTest(bl) {
  994. if (process.env.NODE_ENV === "development" && process.car.SIMPLE_RUN) {
  995. var url = '/pages/searchPile/chargeProcess/charge?stationId=' + this.detail.stationId +
  996. '&deviceNo=' + this.detail.deviceNo + "&gun=" + this.gun.channelNo + "&carNumber=" + (
  997. this.car ? this.car.carNum : '');
  998. url+="&id="+this.id
  999. uni.navigateTo({
  1000. url: url
  1001. })
  1002. }
  1003. },
  1004. charge(bl) {
  1005. if (!this.role(bl)) {
  1006. return
  1007. }
  1008. // var url = '/pages/searchPile/chargeProcess/charge?stationId=' + this.detail.stationId +
  1009. // '&deviceNo=' + this.detail.deviceNo + "&gun=" + this.gun.channelNo + "&carNumber=" + (
  1010. // this.car ? this.car.carNum : '');
  1011. // if(this.isback){
  1012. // url+="&startMode=1"
  1013. // }
  1014. // url+="&id="+this.id
  1015. // uni.navigateTo({
  1016. // url: url
  1017. // })
  1018. if(this.startType==1){
  1019. this.startCarCharging()
  1020. }
  1021. if(this.startType==0){
  1022. this.readyToTimingCharging()
  1023. }
  1024. },
  1025. isInsertBtn() {
  1026. this.isInsert = true;
  1027. },
  1028. exchangeDetail(exchangeCode, code2) {
  1029. uni.showLoading({
  1030. title: "加载中",
  1031. mask: true,
  1032. })
  1033. userApi.exchangeDetail({
  1034. key: exchangeCode
  1035. }).then((res) => {
  1036. uni.hideLoading();
  1037. //
  1038. if (!res.data.enabled) {
  1039. if (res.data.code == 2) {
  1040. //未开始
  1041. } else {
  1042. //已经结束
  1043. }
  1044. //this.getBannerInfoTop("home-top");
  1045. } else if (res.data.status == 1) {
  1046. //this.getBannerInfoTop("home-top");
  1047. //已经兑换,
  1048. } else if (res.data.status == 2) {
  1049. if (code2) {
  1050. //试试另一张卷
  1051. var c = this.carhelp.get("newyear_activity2023")
  1052. if (c) {
  1053. this.carhelp.set("newyear_activity2023", {
  1054. nt: code2,
  1055. code: c.code == 0 ? 1 : 0,
  1056. status: 0
  1057. })
  1058. }
  1059. this.exchangeDetail(code2)
  1060. } else {
  1061. //this.getBannerInfoTop("home-top");
  1062. }
  1063. //不能兑换
  1064. } else {
  1065. this.showNt = true
  1066. this.showNtStep = 0;
  1067. this.showNtValue = res.data.totalDiscount
  1068. }
  1069. }).catch(error => {
  1070. this.showNt = false;
  1071. uni.showToast({
  1072. title: error,
  1073. icon: "none"
  1074. })
  1075. })
  1076. },
  1077. redeemNow(exchangeCode) {
  1078. uni.showLoading({
  1079. title: "加载中",
  1080. mask: true,
  1081. })
  1082. userApi.exchange({
  1083. key: exchangeCode
  1084. }).then((res) => {
  1085. uni.hideLoading();
  1086. this.showNtStep = 1
  1087. this.carhelp.set("newyear_activity2023", {
  1088. nt: exchangeCode,
  1089. status: 1
  1090. })
  1091. }).catch(error => {
  1092. this.showNt = false;
  1093. uni.showToast({
  1094. title: error,
  1095. icon: "none"
  1096. })
  1097. })
  1098. },
  1099. showNtStepClick() {
  1100. if (this.showNtStep == 0) {
  1101. var obj = this.carhelp.get("newyear_activity2023")
  1102. if (this.personInfo.userType != 1) {
  1103. this.redeemNow(obj.nt)
  1104. } else {
  1105. this.showNt = false;
  1106. uni.showModal({
  1107. title: "提示",
  1108. content: "游客无法兑换,请先注册为会员后再兑换",
  1109. confirmText: "前往注册",
  1110. success: res1 => {
  1111. if (res1.confirm) {
  1112. uni.navigateTo({
  1113. url: '/pages/login/login'
  1114. })
  1115. } else if (res1.cancel) {
  1116. //('用户点击取消');
  1117. }
  1118. }
  1119. })
  1120. }
  1121. } else if (this.showNtStep == 1 || this.showNtStep == 2 || this.showNtStep == 3 || this.showNtStep == 4) {
  1122. this.showNt = false;
  1123. uni.navigateTo({
  1124. url: "/pages/user/coupon/myCoupon"
  1125. })
  1126. }
  1127. },
  1128. getf5surprised() {
  1129. uni.showLoading({
  1130. title: "加载中",
  1131. mask: true,
  1132. })
  1133. userApi.exchangeGroupDetail2("周年红包").then((res) => {
  1134. uni.hideLoading();
  1135. var data=res.data;
  1136. this.key=""
  1137. this.couponList=[]
  1138. if(data.length){
  1139. this.couponList = res.data[0].couponList;
  1140. if(this.couponList&&this.couponList.length){
  1141. //this.getBannerInfoTop()
  1142. this.getBannerInfoTop("home-top2");
  1143. }
  1144. }
  1145. }).catch(error => {
  1146. uni.showToast({
  1147. title: error,
  1148. icon: "none"
  1149. })
  1150. })
  1151. },
  1152. getBannerInfoTop(code) {
  1153. if(!this.carhelp.getOpenId()){
  1154. return
  1155. }
  1156. var nowtime = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
  1157. var time = this.carhelp.get("bannerListTop");
  1158. if ((time && nowtime == time)) {
  1159. this.getBannerInfoTopBl = false;
  1160. }
  1161. //特殊活动不考虑
  1162. //this.getBannerInfoTopBl = true;
  1163. // uni.showLoading({
  1164. // title: "加载中",
  1165. // mask: true,
  1166. // })
  1167. newsApi.getBannerInfo(code).then((res) => {
  1168. this.bannerListTop = res.data;
  1169. if (this.bannerListTop.length) {
  1170. this.showTop = true;
  1171. this.showTopImg = this.bannerListTop[0].picUrl;
  1172. this.showTopIndex = 0;
  1173. }
  1174. this.carhelp.set("bannerListTop", nowtime);
  1175. //this.test()
  1176. var userInfo = this.carhelp.getPersonInfo();
  1177. if (userInfo && userInfo.id) {
  1178. //this.getf5surprised()
  1179. } else {}
  1180. //uni.hideLoading()
  1181. //document.getElementsByClassName("uni-swiper-wrapper")[0].parentNode.style="background-color: rgb(255, 255, 255); height: 120px;"
  1182. }).catch(error => {
  1183. uni.showToast({
  1184. title: error,
  1185. icon: "none"
  1186. })
  1187. })
  1188. },
  1189. readyToTimingCharging(){
  1190. if(this.gun&&this.gun.workStatus==2){
  1191. uni.showModal({
  1192. title: '提示',
  1193. showCancel:false,
  1194. content:"快捷充电失败:充电中",
  1195. })
  1196. }else if(!this.openBool){
  1197. uni.showModal({
  1198. title: '提示',
  1199. showCancel:false,
  1200. content:"快捷充电失败:仅内部员工可用"
  1201. })
  1202. }else if(this.gunDetail.chargingAppointment&&!this.gunDetail.isMeAppoint){
  1203. uni.showModal({
  1204. title: '提示',
  1205. showCancel:false,
  1206. content:"快捷充电失败:已被预约"
  1207. })
  1208. }else if(this.haveLock&&this.lockStatus==1){
  1209. uni.showModal({
  1210. title: '提示',
  1211. showCancel:false,
  1212. content:"快捷充电失败:下降地锁"
  1213. })
  1214. }else if(!this.isInsert){
  1215. uni.showModal({
  1216. title: '提示',
  1217. showCancel:false,
  1218. content:"快捷充电失败:未插枪"
  1219. })
  1220. }else {
  1221. this.readyToTimingChargingApi();
  1222. }
  1223. },
  1224. readyToTimingChargingApi(){
  1225. uni.showLoading({
  1226. title:"定时充电启动",
  1227. mask: true,
  1228. })
  1229. this.startTypeStartTime=
  1230. this.startTypeTimeList[0][this.startTypeTimeValue1].value+":"+this.startTypeTimeList[1][this.startTypeTimeValue2].value
  1231. var submitForm={
  1232. deviceNo:this.detail.deviceNo,
  1233. channelNo:this.gun.channelNo,
  1234. startTime:this.startTypeStartTime
  1235. }
  1236. API.readyToTimingCharging(submitForm).then((res) => {
  1237. uni.hideLoading()
  1238. uni.showModal({
  1239. title: '提示',
  1240. showCancel:false,
  1241. content:"设置完成"
  1242. })
  1243. this.getPile()
  1244. }).catch(error => {
  1245. uni.hideLoading()
  1246. uni.showModal({
  1247. title: '提示',
  1248. showCancel:false,
  1249. content:"充电失败:"+( error?error:'未知错误')
  1250. })
  1251. })
  1252. },
  1253. startCarCharging(){
  1254. if(this.gun&&this.gun.workStatus==2){
  1255. uni.showModal({
  1256. title: '提示',
  1257. showCancel:false,
  1258. content:"快捷充电失败:充电中",
  1259. })
  1260. }else if(!this.openBool){
  1261. uni.showModal({
  1262. title: '提示',
  1263. showCancel:false,
  1264. content:"快捷充电失败:仅内部员工可用"
  1265. })
  1266. }else if(this.gunDetail.chargingAppointment&&!this.gunDetail.isMeAppoint){
  1267. uni.showModal({
  1268. title: '提示',
  1269. showCancel:false,
  1270. content:"快捷充电失败:已被预约"
  1271. })
  1272. }else if(this.haveLock&&this.lockStatus==1){
  1273. uni.showModal({
  1274. title: '提示',
  1275. showCancel:false,
  1276. content:"快捷充电失败:下降地锁"
  1277. })
  1278. }else if(!this.isInsert){
  1279. uni.showModal({
  1280. title: '提示',
  1281. showCancel:false,
  1282. content:"快捷充电失败:未插枪"
  1283. })
  1284. }else {
  1285. this.startCarChargingApi();
  1286. }
  1287. },
  1288. startCarChargingApi(){
  1289. uni.showLoading({
  1290. title:"快捷充电启动",
  1291. mask: true,
  1292. })
  1293. this.startCarChargingBl=true;
  1294. var submitForm={
  1295. deviceNo:this.detail.deviceNo,
  1296. channelNo:this.gun.channelNo,
  1297. carNumber:this.car ? this.car.carNum : '',
  1298. chargeStrategy:0,
  1299. amount:0,
  1300. payType:2,
  1301. }
  1302. if(this.userCardBool){
  1303. submitForm.userCardId=this.userCard.id
  1304. }
  1305. API.startCarCharging(submitForm).then((res) => {
  1306. if (res.data.status == "5") {
  1307. var _this=this;
  1308. var recordId=res.data.recordId;
  1309. uni.showModal({
  1310. title: '启动充电失败',
  1311. confirmText:"充值",
  1312. cancelText:"暂不启用",
  1313. content:"个人账户余额不足10元,无法启动快捷充电",
  1314. success: function (res) {
  1315. if (res.confirm) {
  1316. console.log('用户点击确定');
  1317. _this.gotoUrl("pages/user/finance/recharge?recordId=" + recordId);
  1318. } else if (res.cancel) {
  1319. _this.checkedChange2(0);
  1320. console.log('用户点击取消');
  1321. }
  1322. }
  1323. })
  1324. uni.hideLoading()
  1325. }else{
  1326. this.gotoUrl("pages/searchPile/chargeProcess/dcCharging?id=" + res.data.recordId);
  1327. }
  1328. }).catch(error => {
  1329. uni.hideLoading()
  1330. if (error == '用户账户余额不足!') {
  1331. var _this=this;
  1332. uni.showModal({
  1333. title: '快捷充电失败',
  1334. confirmText:"充值",
  1335. content:"用户余额不足!",
  1336. success: function (res) {
  1337. if (res.confirm) {
  1338. console.log('用户点击确定');
  1339. _this.showrecharge=true
  1340. } else if (res.cancel) {
  1341. console.log('用户点击取消');
  1342. }
  1343. }
  1344. })
  1345. } else {
  1346. uni.showModal({
  1347. title: '提示',
  1348. showCancel:false,
  1349. content:"充电失败:"+( error?error:'未知错误')
  1350. })
  1351. }
  1352. })
  1353. }
  1354. },
  1355. }
  1356. </script>
  1357. <style lang="scss">
  1358. .priceListBlMain {
  1359. display: flex;
  1360. justify-content: space-between;
  1361. align-items: last baseline;
  1362. }
  1363. .discount-card {
  1364. box-shadow: 0px 0px 8px 0px rgba(0, 65, 30, 0.1);
  1365. border: 1px solid rgba(225, 236, 231, 1);
  1366. border-radius: 8px;
  1367. //background-color: rgba(55, 59, 80, 1);
  1368. padding: 24rpx;
  1369. margin-top: 24rpx;
  1370. .name {
  1371. //color: rgba(255, 255, 255, 1);
  1372. font-size: 32rpx;
  1373. }
  1374. .progress {
  1375. display: flex;
  1376. justify-content: space-between;
  1377. flex-wrap: wrap;
  1378. // color: rgba(219, 219, 219, 1);
  1379. font-size: 24rpx;
  1380. margin-bottom: 16rpx;
  1381. margin-top: 24rpx;
  1382. }
  1383. ::v-deep .u-active {
  1384. background: linear-gradient(84.49deg, rgba(59, 182, 254, 1) 4.25%, rgba(0, 185, 98, 1) 95.02%);
  1385. }
  1386. }
  1387. .discount-card-4 {
  1388. background: #da241e !important;
  1389. .unit{
  1390. color:#fff !important;
  1391. }
  1392. .u-progress{
  1393. background-color:#cf4c42 !important;
  1394. color: #fff;
  1395. }
  1396. .name{
  1397. color: #ffd695!important;
  1398. font-size: 36rpx;
  1399. font-family: "SimSun", Arial, sans-serif;
  1400. font-weight: 400;
  1401. text-shadow: 2px 1px 0px #800400 ;
  1402. }
  1403. .progress{
  1404. color: #fff;
  1405. }
  1406. }
  1407. .temporaryCarNum {
  1408. text-align: right;
  1409. margin-bottom: 10px;
  1410. margin: 0 40rpx;
  1411. span {
  1412. margin: 0 8rpx;
  1413. color: #19be6b;
  1414. }
  1415. }
  1416. .oldTextClassF {
  1417. .tips {
  1418. padding: 36rpx;
  1419. .p {
  1420. font-size: 42rpx !important;
  1421. }
  1422. .content {
  1423. font-size: 34rpx !important;
  1424. }
  1425. }
  1426. .bottom {
  1427. .u-btn {
  1428. font-size: 48rpx
  1429. }
  1430. }
  1431. .text-1 {
  1432. font-size: 56rpx !important;
  1433. }
  1434. .text-2 {
  1435. font-size: 38rpx !important;
  1436. }
  1437. .charging-info {
  1438. .name {
  1439. font-size: 36rpx !important;
  1440. .free {
  1441. font-weight: bold;
  1442. font-size: 36rpx !important;
  1443. }
  1444. }
  1445. .address {
  1446. font-size: 44rpx;
  1447. font-weight: bold;
  1448. }
  1449. .price {
  1450. font-weight: bold;
  1451. font-size: 60rpx !important;
  1452. .unit {
  1453. font-weight: normal;
  1454. font-size: 36rpx !important;
  1455. }
  1456. }
  1457. }
  1458. }
  1459. page {
  1460. background-color: #F6F8F8;
  1461. padding-bottom: 100px;
  1462. }
  1463. .service {
  1464. font-size: 24px;
  1465. color: #101010;
  1466. position: absolute;
  1467. right: 16px;
  1468. }
  1469. .main2 {
  1470. background-color: #fff;
  1471. padding-left: 16px;
  1472. .item {
  1473. border-bottom: 1px solid #e5e7ea;
  1474. padding: 16px 0;
  1475. .title {
  1476. line-height: 16px;
  1477. color: rgba(119, 119, 119, 100);
  1478. font-size: 16px;
  1479. .more {
  1480. font-size: 24px;
  1481. color: #b3b3b3;
  1482. float: right;
  1483. margin-right: 8px;
  1484. }
  1485. }
  1486. .content {
  1487. line-height: 24px;
  1488. color: rgba(16, 16, 16, 100);
  1489. font-size: 16px;
  1490. margin-top: 8px;
  1491. padding-right: 30px;
  1492. }
  1493. }
  1494. }
  1495. .main {
  1496. padding: 40rpx 40rpx 24rpx 40rpx;
  1497. background-image: linear-gradient(#D6EEDC, #F6F8F8);
  1498. .text-1 {
  1499. color: rgba(0, 170, 90, 100);
  1500. font-size: 48rpx;
  1501. line-height: 33px;
  1502. }
  1503. .text-2 {
  1504. color: rgba(102, 102, 102, 100);
  1505. font-size: 32rpx;
  1506. line-height: 22px;
  1507. }
  1508. .charging-info {
  1509. background-color: #fff;
  1510. margin: 20rpx auto;
  1511. border-radius: 12px;
  1512. padding: 20rpx 38rpx;
  1513. .row{
  1514. display: flex;
  1515. justify-content: space-between;
  1516. padding: 5px 0;
  1517. .key{
  1518. color:#777777;
  1519. font-size: 32rpx;
  1520. }
  1521. .value{
  1522. display: flex;
  1523. color: rgba(51, 51, 51, 1);
  1524. font-size: 32rpx;
  1525. }
  1526. }
  1527. .name {
  1528. margin-top: 8rpx;
  1529. color: #777777;
  1530. font-size: 32rpx;
  1531. .free {
  1532. display: inline-block;
  1533. //width: 72px;
  1534. padding:4rpx 24rpx ;
  1535. //height: 20px;
  1536. line-height: 20px;
  1537. border-radius: 50px;
  1538. background-color: rgba(208, 246, 228, 100);
  1539. color: rgba(0, 185, 98, 100);
  1540. font-size: 28rpx;
  1541. text-align: center;
  1542. margin-left: 12px;
  1543. }
  1544. .workStatusText6{
  1545. background-color: rgba(255, 214, 210, 1);
  1546. color: rgba(255, 56, 56, 1);
  1547. }
  1548. }
  1549. .price-3-card-view {
  1550. display: flex;
  1551. align-items: last baseline;
  1552. .price-3-card {
  1553. max-width: 240rpx;
  1554. min-width: 220rpx;
  1555. display: flex;
  1556. background: linear-gradient(93.02deg, rgba(59, 182, 254, 1) 39.4%, rgba(0, 185, 98, 1) 92.96%);
  1557. border-radius: 4px;
  1558. height: 32rpx;
  1559. min-height: 32rpx;
  1560. margin-left: 32rpx;
  1561. // align-items: center;
  1562. line-height: 32rpx;
  1563. .num1 {
  1564. img {
  1565. // width: 88rpx;
  1566. //width: 34px;
  1567. height: 32rpx;
  1568. }
  1569. ::v-deep .u-image {
  1570. min-height: 32rpx;
  1571. }
  1572. font-size: 22rpx;
  1573. background: rgb(48, 49, 51);
  1574. }
  1575. .num {
  1576. padding: 0 6rpx 0 6rpx;
  1577. color: rgba(255, 255, 255, 1);
  1578. font-size: 22rpx;
  1579. display: flex;
  1580. align-items: center;
  1581. }
  1582. }
  1583. .price-3-card-yue{
  1584. background: linear-gradient(88.81deg, rgba(219,199,167,1) 1.89%,rgba(194,154,93,1) 98%);
  1585. }
  1586. }
  1587. .price-2 {
  1588. display: flex;
  1589. align-items: baseline;
  1590. .price-4 {
  1591. color: rgba(0, 185, 98, 100);
  1592. font-size: 56rpx;
  1593. margin-top: 0rpx;
  1594. display: flex;
  1595. align-items: baseline;
  1596. .unit {
  1597. font-size: 32rpx;
  1598. color: #666666;
  1599. margin-left: 4px;
  1600. }
  1601. }
  1602. .price-3 {
  1603. font-size: 24rpx;
  1604. color: #fff;
  1605. margin-left: 8rpx;
  1606. padding-right: 9rpx;
  1607. background: #00B962;
  1608. border-radius: 8rpx;
  1609. .num1 {
  1610. padding-left: 12rpx;
  1611. border-radius: 8rpx 0 8rpx 8rpx;
  1612. padding-right: 18rpx;
  1613. background: #121212;
  1614. -webkit-clip-path: polygon(0 0, 93% 0, 84% 100%, 0% 100%);
  1615. clip-path: polygon(0 0, 93% 0, 84% 100%, 0% 100%);
  1616. }
  1617. }
  1618. }
  1619. .price {
  1620. color: rgba(0, 185, 98, 100);
  1621. //font-size: 56rpx;
  1622. margin: 8rpx 0;
  1623. .span {
  1624. font-size: 56rpx;
  1625. }
  1626. .unit {
  1627. font-size: 32rpx;
  1628. color: #666666;
  1629. margin-left: 4px;
  1630. }
  1631. }
  1632. .address {
  1633. color: #333333;
  1634. font-size: 40rpx;
  1635. .explain {
  1636. line-height: 22px;
  1637. color: rgba(22, 119, 255, 100);
  1638. font-size: 32rpx;
  1639. float: right;
  1640. }
  1641. }
  1642. }
  1643. }
  1644. .main-head {
  1645. display: flex;
  1646. justify-content: space-between;
  1647. }
  1648. .charge-img {
  1649. width: 80px;
  1650. overflow: hidden;
  1651. height: 80px;
  1652. // margin-right: 16rpx;
  1653. img {
  1654. width: 100%;
  1655. }
  1656. }
  1657. .cost-explainMain{
  1658. margin: 24rpx 40rpx 24rpx 40rpx;
  1659. padding: 30rpx 40rpx;
  1660. background-color: #fff;
  1661. // background-color: #fff;
  1662. // margin: 0 40rpx;
  1663. border-radius: 12px;
  1664. // padding: 38rpx 40rpx;
  1665. // display: flex;
  1666. font-size: 36rpx;
  1667. // 费用说明
  1668. .cost-explain {
  1669. margin-bottom: 12rpx;
  1670. border-radius: 12px;
  1671. display: flex;
  1672. justify-content: space-between;
  1673. align-items: center;
  1674. .car-number {
  1675. display: flex;
  1676. font-size: 32rpx;
  1677. }
  1678. img {
  1679. vertical-align: middle;
  1680. }
  1681. .text {
  1682. font-size: 36rpx;
  1683. color: #101010;
  1684. //width: 330rpx;
  1685. white-space: pre;
  1686. }
  1687. .iconfont {
  1688. color: #b3b3b3;
  1689. font-size: 48rpx
  1690. }
  1691. }
  1692. .cost-explain2{
  1693. .car-number{
  1694. font-size: 28rpx;
  1695. color: #FF3D00;
  1696. }
  1697. }
  1698. }
  1699. .tips {
  1700. background-color: #fff;
  1701. padding: 40rpx;
  1702. margin: 8rpx 40rpx 0 40rpx;
  1703. border-radius: 12px;
  1704. .p {
  1705. line-height: 25px;
  1706. color: #333333;
  1707. font-size: 32rpx;
  1708. font-weight: 550;
  1709. }
  1710. .content {
  1711. margin-top: 16rpx;
  1712. line-height: 22px;
  1713. color: #666666;
  1714. font-size: 28rpx;
  1715. }
  1716. }
  1717. .bottom {
  1718. width: 100%;
  1719. padding: 28rpx 0;
  1720. .u-btn {
  1721. margin: 0 40rpx;
  1722. line-height: 88rpx;
  1723. height: 88rpx;
  1724. font-size: 40rpx
  1725. }
  1726. }
  1727. ::v-deep .u-alert-desc {
  1728. color: rgba(255, 115, 0, 100);
  1729. font-size: 16px
  1730. }
  1731. // 入场车辆
  1732. .carp {
  1733. margin: 0 40rpx;
  1734. }
  1735. .carImg {
  1736. margin: 0 40rpx;
  1737. img {
  1738. width: 100%;
  1739. }
  1740. }
  1741. .carImg3 {
  1742. margin: 0 40rpx;
  1743. background: linear-gradient(32.4deg, rgba(59,182,254,1) 20.49%,rgba(0,185,98,1) 118.87%);
  1744. border-radius: 8px;
  1745. }
  1746. .carImg3-yue {
  1747. margin: 0 40rpx;
  1748. background: linear-gradient(88.81deg, rgba(219,199,167,1) 1.89%,rgba(194,154,93,1) 98%);
  1749. border-radius: 8px;
  1750. }
  1751. .carImg2-yue {
  1752. line-height: 20px;
  1753. color: rgba(255, 255, 255, 1);
  1754. font-size: 32rpx;
  1755. padding:40rpx;
  1756. //background: linear-gradient(88.81deg, rgba(219,199,167,1) 1.89%,rgba(194,154,93,1) 98%);
  1757. background: url('@/assets/img/9-4/antFill-crown.svg');
  1758. background-repeat: repeat-y;
  1759. background-position-x: 440rpx;
  1760. .carImg-2{
  1761. span{
  1762. font-size: 48rpx;
  1763. color:red;
  1764. margin: 0 4rpx;
  1765. font-weight: bold;
  1766. padding:0rpx 4rpx;
  1767. }
  1768. }
  1769. .carImg-3{
  1770. margin-top:8rpx ;
  1771. span{
  1772. padding:8rpx 16rpx;
  1773. border-radius: 12px;
  1774. background-color: rgba(255, 255, 255, 1);
  1775. text-align: center;
  1776. color: #795626 ;
  1777. font-size: 12px;
  1778. }
  1779. }
  1780. }
  1781. .carImg2 {
  1782. line-height: 20px;
  1783. color: rgba(255, 255, 255, 1);
  1784. font-size: 32rpx;
  1785. padding:40rpx;
  1786. background: url('@/assets/img/9-4/6show.png');
  1787. background-repeat: repeat-y;
  1788. background-position-x: 440rpx;
  1789. .carImg-2{
  1790. span{
  1791. font-size: 48rpx;
  1792. color:red;
  1793. margin: 0 4rpx;
  1794. font-weight: bold;
  1795. padding:0rpx 4rpx;
  1796. }
  1797. }
  1798. .carImg-3{
  1799. margin-top:8rpx ;
  1800. span{
  1801. padding:8rpx 16rpx;
  1802. border-radius: 12px;
  1803. background-color: rgba(255, 255, 255, 1);
  1804. text-align: center;
  1805. color: rgba(0, 130, 69, 1);
  1806. font-size: 12px;
  1807. }
  1808. }
  1809. }
  1810. .showOss2 {
  1811. ::v-deep .u-model,
  1812. ::v-deep .u-mode-center-box {
  1813. background-color: transparent;
  1814. }
  1815. }
  1816. .classtable {
  1817. margin: 0rpx 40rpx;
  1818. .td1 {
  1819. width: 50rpx;
  1820. padding: 12rpx 0;
  1821. text-align: center;
  1822. img {
  1823. width: 48rpx;
  1824. height: 48rpx;
  1825. }
  1826. font-size: 10px;
  1827. }
  1828. .td2 {
  1829. padding-left: 16rpx;
  1830. font-size: 12px;
  1831. line-height: 24px;
  1832. .dian {
  1833. padding: 0 10rpx
  1834. }
  1835. }
  1836. }
  1837. .btnview {
  1838. display: flex;
  1839. flex-direction: column;
  1840. align-items: center;
  1841. .btnview1 {}
  1842. .btnview2 {
  1843. color: #999999;
  1844. margin-top: 20rpx;
  1845. padding-bottom: 48rpx;
  1846. }
  1847. }
  1848. .sign-6 {
  1849. //background: linear-gradient(89.4deg, rgba(255,61,0,1) 2.8%,rgba(255,134,0,1) 98.02%);
  1850. background: linear-gradient(89.4deg, rgba(0, 164, 87, 1) 2.8%, rgba(0, 206, 141, 1) 98.02%);
  1851. color: rgba(255, 255, 255, 1);
  1852. padding: 0 10rpx;
  1853. }
  1854. .chat_hhh_time {
  1855. display: flex;
  1856. justify-content: space-between;
  1857. }
  1858. .chat_hhh {
  1859. .chatShow {
  1860. .showspan{
  1861. float: right;
  1862. color: #00b962;
  1863. }
  1864. margin-bottom: 280rpx;
  1865. //height: 160px;
  1866. visibility: hidden;
  1867. // width: 120px;
  1868. padding: 4rpx 16rpx;
  1869. text-align: initial;
  1870. /* 定位 */
  1871. position: absolute;
  1872. z-index: 1;
  1873. padding: 4rpx 16rpx;
  1874. background-color: #fff;
  1875. color: rgba(102, 102, 102, 1);
  1876. border-radius: 3px;
  1877. font-size: 24rpx;
  1878. box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.2);
  1879. }
  1880. .chatShowA {
  1881. margin-left: -60rpx;
  1882. }
  1883. .chatShowB {
  1884. margin-left: -160rpx;
  1885. }
  1886. .chatShowNo {
  1887. visibility: hidden;
  1888. }
  1889. .chatShowOk {
  1890. visibility: visible;
  1891. }
  1892. background: #f9f9f9;
  1893. text-align: center;
  1894. min-height: 160px;
  1895. display: flex;
  1896. font-size: 20rpx;
  1897. .current1 {
  1898. .chats2 {
  1899. //border: 1px solid red;
  1900. }
  1901. }
  1902. .current2 {
  1903. .chats1 {
  1904. border: 1px solid #333333;
  1905. border-bottom: 0px;
  1906. }
  1907. .chats2 {
  1908. border: 1px solid #333333;
  1909. background: #26FF6B !important;
  1910. border-top: 0px;
  1911. }
  1912. }
  1913. .chatTime {
  1914. min-width: 68rpx;
  1915. display: flex;
  1916. flex-direction: column;
  1917. justify-content: flex-end;
  1918. border: 1px solid #f9f9f9;
  1919. .chats0 {
  1920. // background-color: #ff8b17;
  1921. // color: #ffecdd;
  1922. display: flex;
  1923. justify-content: center;
  1924. flex-wrap: wrap;
  1925. flex-direction: column;
  1926. }
  1927. .chats9 {
  1928. opacity: 0;
  1929. display: flex;
  1930. justify-content: center;
  1931. flex-wrap: wrap;
  1932. flex-direction: column;
  1933. }
  1934. .chats1 {
  1935. background: #dcdcdc;
  1936. min-height: 30rpx
  1937. }
  1938. .chats2 {
  1939. background: #80e0a6;
  1940. display: flex;
  1941. flex-direction: column;
  1942. justify-content: space-between;
  1943. }
  1944. }
  1945. }
  1946. .quickMain{
  1947. ::v-deep .u-mode-center-box{
  1948. background-color: transparent;
  1949. }
  1950. ::v-deep .u-model{
  1951. background-color: transparent;
  1952. }
  1953. .quickMain-slot-content{
  1954. .quickMain-img{
  1955. position: relative;
  1956. top: 120rpx;
  1957. text-align: center;
  1958. img{
  1959. width: 160rpx;
  1960. height: 240rpx;
  1961. }
  1962. }
  1963. .quickMain-bodyMain{
  1964. background-color:#fff;
  1965. border-radius: 15px;
  1966. }
  1967. .quickMain-body{
  1968. margin:0 56rpx ;
  1969. color: rgba(51, 51, 51, 1);
  1970. .quickMain-text1{
  1971. font-size: 48rpx;
  1972. text-align: center;
  1973. padding: 132rpx 0 32rpx 0;
  1974. }
  1975. .quickMain-text2{
  1976. margin-bottom: 20rpx ;
  1977. //color: rgba(51, 51, 51, 1);
  1978. font-size: 32rpx;
  1979. img{
  1980. width: 40rpx;
  1981. //height: 120px;
  1982. }
  1983. }
  1984. }
  1985. }
  1986. }
  1987. .slogan-4 {
  1988. z-index: 2;
  1989. margin-top: 10px;
  1990. display: flex;
  1991. justify-content: center;
  1992. /* text-decoration: underline; */
  1993. text-align: center;
  1994. position: fixed;
  1995. /* top: 40px; */
  1996. bottom: 180px;
  1997. right: 20px;
  1998. height: 80rpx;
  1999. width: 80rpx;
  2000. line-height: 20px;
  2001. font-size: 16px;
  2002. background: linear-gradient(95deg, #FF9800, #FF5722);
  2003. box-shadow: 0 4rpx 24rpx 0 #FF5722;
  2004. //padding-top: 8px;
  2005. color: #fff;
  2006. border-radius: 25px;
  2007. }
  2008. .imageshake {
  2009. position: relative;
  2010. animation: shake 0.5s ease-in-out infinite;
  2011. }
  2012. @keyframes shake {
  2013. 0% {
  2014. transform: rotate(0deg);
  2015. }
  2016. 25% {
  2017. transform: rotate(8deg);
  2018. }
  2019. 50% {
  2020. transform: rotate(0deg);
  2021. }
  2022. 75% {
  2023. transform: rotate(-8deg);
  2024. }
  2025. 100% {
  2026. transform: rotate(0deg);
  2027. }
  2028. }
  2029. .showOssK {
  2030. ::v-deep .u-model,
  2031. ::v-deep .u-mode-center-box {
  2032. background-color: transparent;
  2033. }
  2034. }
  2035. // .showOss {
  2036. // ::v-deep .u-model,
  2037. // ::v-deep .u-mode-center-box {
  2038. // background-color: transparent;
  2039. // }
  2040. // }
  2041. .swiper {
  2042. height: 700rpx;
  2043. .swiperitem {
  2044. height: 700rpx;
  2045. }
  2046. }
  2047. .useFreeCoupon{
  2048. font-size: 24rpx;
  2049. color:#FF3D00;
  2050. }
  2051. .sign {
  2052. display: flex;
  2053. flex-wrap: wrap;
  2054. margin-top: 10px;
  2055. .sign-tag {
  2056. height: 36rpx;
  2057. line-height: 32rpx;
  2058. border-radius: 8rpx;
  2059. //background-color: rgba(255, 255, 255, 100);
  2060. //color: rgba(255, 139, 0, 100);
  2061. font-size: 10px;
  2062. text-align: center;
  2063. //border: 1px solid rgba(255, 139, 0, 100);
  2064. padding: 0 8rpx;
  2065. margin-right: 8rpx;
  2066. margin-bottom: 8rpx;
  2067. }
  2068. .sign-0 {
  2069. background: linear-gradient(89.4deg, rgba(129, 97, 255, 1) 2.8%, rgba(169, 147, 255, 1) 98.02%);
  2070. color: rgba(255, 255, 255, 1);
  2071. //padding: 0 10rpx;
  2072. //border: 1px solid rgba(255, 139, 0, 100);
  2073. }
  2074. .sign-5 {
  2075. background: linear-gradient(89.4deg, rgba(255, 61, 0, 1) 2.8%, rgba(255, 134, 0, 1) 98.02%);
  2076. color: rgba(255, 255, 255, 1);
  2077. //padding: 0 10rpx;
  2078. }
  2079. .sign-1 {
  2080. background-color: rgba(255, 255, 255, 100);
  2081. color: rgba(255, 139, 0, 100);
  2082. border: 1px solid rgba(255, 139, 0, 100);
  2083. }
  2084. .sign-2 {
  2085. background-color: rgba(255, 255, 255, 100);
  2086. color: rgba(153, 153, 153, 100);
  2087. border: 1px solid rgba(204, 204, 204, 100);
  2088. }
  2089. .sign-3 {
  2090. background-color: rgba(255, 255, 255, 100);
  2091. color: #8161FF;
  2092. border: 1px solid #8161FF;
  2093. }
  2094. .sign-4 {
  2095. background-color: rgba(255, 255, 255, 100);
  2096. color: #00B962;
  2097. border: 1px solid #00B962;
  2098. }
  2099. }
  2100. </style>