dcCharging.vue 37 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609
  1. <template>
  2. <view>
  3. <view v-if="chargingRecord.status==2" style="background-color: #fff; " >
  4. <ujp-navbar title="充电结束">
  5. </ujp-navbar>
  6. <view class="progress-bar2">
  7. <u-circle-progress width="300" active-color="green" duration='20' :percent="100" border-width="20">
  8. <view class="u-progress-content">
  9. <text class='u-progress-info' v-if="chargingGun.gunType==1">
  10. <p style="text-align: center;">{{chargingRecord.endSoc}}%</p>
  11. <p class="progress-text">当前电量</p>
  12. </text>
  13. <text class='u-progress-info' v-if="chargingGun.gunType==2">
  14. <p style="text-align: center;" >{{chargingRecord.electricQuantity?(chargingRecord.electricQuantity/10000).toFixed(2):0}}</p>
  15. <p class="progress-text">已充电量(度)</p>
  16. </text>
  17. </view>
  18. </u-circle-progress>
  19. </view>
  20. <!-- 充电信息 -->
  21. <!-- <view class="charge-infos">
  22. <view class="item">
  23. <view class="title">
  24. 充电金额
  25. </view>
  26. <view class="content">
  27. 50.00
  28. </view>
  29. </view>
  30. <view class="item">
  31. <view class="title">
  32. 充电时长
  33. </view>
  34. <view class="content">
  35. 00.00.00
  36. </view>
  37. </view>
  38. <view class="item">
  39. <view class="title">
  40. 优惠金额
  41. </view>
  42. <view class="content discounts">
  43. -6.00元
  44. </view>
  45. </view>
  46. <view class="item">
  47. <view class="title">
  48. 会员活动
  49. </view>
  50. <view class="content">
  51. 充电月卡
  52. </view>
  53. </view>
  54. </view> -->
  55. <view class="info" >
  56. <view class="info-name">
  57. 充电时长
  58. </view>
  59. <view class="info-text">
  60. {{getPercent2()}}
  61. </view>
  62. </view>
  63. <view class="info" >
  64. <view class="info-name">
  65. 充电金额
  66. </view>
  67. <view class="info-text" >
  68. {{chargingRecord.actualFee?chargingRecord.actualFee.toFixed(2):0}}元
  69. </view>
  70. </view>
  71. <view class="info" v-if="chargingRecord.discountAmount">
  72. <view class="info-name">
  73. 优惠金额
  74. </view>
  75. <view class="info-text" style="color:red">
  76. {{chargingRecord.discountAmount.toFixed(2)}}元
  77. </view>
  78. </view>
  79. <view class="info" v-if="chargingRecord.remark">
  80. <view class="info-name" style="width: 80px;">
  81. 结束原因
  82. </view>
  83. <view class="info-text" style="color: red;" >
  84. {{chargingRecord.remark}}
  85. </view>
  86. </view>
  87. <!--
  88. <view
  89. style="
  90. margin-top: 20px;
  91. text-align: center;
  92. padding: 0 45px;
  93. padding-bottom: 40px;
  94. color:#9e9e9e;
  95. ">
  96. <span style="color: red;">*</span>实际充电金额与所选金额会略有出入,最终结算金额将以实际充入电量为准。
  97. </view> -->
  98. <view class="bottom">
  99. <u-button size="default" style="background-color:#53b56b"
  100. shape="circle" @click="gotoMain(0)" >返回首页</u-button>
  101. <u-button style="background-color:#53b56b"
  102. size="default" shape="circle" @click="gotoMain(1)">查看订单详情</u-button>
  103. </view>
  104. <u-line color="#E6E6E6 100%" length="81%" margin="auto"/>
  105. <!-- 反馈 -->
  106. <view class="feedback">
  107. <view class="title-1">
  108. 您对本次充电服务还满意吗?
  109. </view>
  110. <view class="title-2">
  111. 请在下方描述您所遇到的问题,或填写您的反馈意见。我们将对优质内容的反馈者发放奖励!
  112. </view>
  113. <textarea value="" v-model="message" placeholder="请填写反馈内容" />
  114. <u-button class="submit" type="success" @click="submitMessage()">提交</u-button>
  115. </view>
  116. <u-line color="#E6E6E6 100%" length="81%" margin="auto"/>
  117. <view class="info" >
  118. <view class="info-name">
  119. 优惠券
  120. </view>
  121. <view class="info-text" style="color:red">
  122. {{couponObj&&couponObj.status=='1'?couponObj.text:'未使用'}}
  123. </view>
  124. </view>
  125. <view class="info" v-if="userCardBool" >
  126. <view class="info-name">
  127. 会员活动
  128. </view>
  129. <view class="info-text">
  130. 充电月卡
  131. </view>
  132. </view>
  133. <u-divider color="#B6BDC3" style="margin-bottom:20px;" bg-color="#ffffff">已经到底了</u-divider>
  134. <view>
  135. <u-toast ref="uToast" />
  136. </view>
  137. </view>
  138. <view style="background-color: #f7f8f8; padding-bottom: 0px;"
  139. class="progress-bar-main" v-else>
  140. <u-modal v-model="descriptionShow2do"
  141. confirm-text="知道了"
  142. title="【充电SOC限制】" >
  143. <view style="padding: 10px;font-size: 14px;">
  144. 为保障充电安全,并积极响应主管部门对新能源汽车充电安全工作,从即日起,该站充电设施SOC上限阈值为{{chargingStation.maxSoc}}%,即充电量达到满充电量{{chargingStation.maxSoc}}%时,充电设施将自动结束充电。
  145. </view>
  146. </u-modal>
  147. <u-modal v-model="showVin" class="showOss" @cancel="confirm()"
  148. confirm-text="继续充电" cancel-text="结束充电"
  149. :show-title="false" :show-cancel-button="true" >
  150. <view class="slot-content">
  151. <u-image width="120px" style="margin: auto;"
  152. mode="widthFix"
  153. src="@/static/img/充电中-缺省页.png"></u-image>
  154. <view style="padding:0 40px;font-size: 36rpx;">
  155. 系统检测出当前充电车辆与月卡所绑定的车辆不一致,该车辆可以正常充电,但无法享受月卡免服务费优惠。
  156. </view>
  157. </view>
  158. </u-modal>
  159. <view>
  160. <ujp-navbar :title="navbartitle">
  161. <view class="to-recharge"
  162. v-if="chargingRecord.payType==2"
  163. @click="gotoUrl('pages/user/finance/recharge')">
  164. 去充值
  165. </view>
  166. </ujp-navbar>
  167. <u-alert-tips type="warning"
  168. v-if="chargingGun.gunType==1&&chargingStation.maxSoc&&chargingStation.maxSoc!=100"
  169. :descStyle="{
  170. fontSize: '28rpx',
  171. color: '#ef7a30',
  172. }" @click="alerttipsCk2"
  173. :show-icon="true" :description="'【充电SOC限制】充电量达到满充电量'+chargingStation.maxSoc+'%时,充电设施将自动结束充电。点击查看详情>'"></u-alert-tips>
  174. <!-- 充电状态 -->
  175. <view class="charge-state">
  176. <view class="progress-bar">
  177. <u-circle-progress width="400" active-color="#53b56b" :percent="percent?percent:percentValue" border-width="35">
  178. <view class="u-progress-content" v-if="chargingRecord.status==4">
  179. <text class='u-progress-info' v-if="waitNum==1">排队中</text>
  180. <text class='u-progress-info' v-else >前方等待{{waitNum-1}}位</text>
  181. </view>
  182. <view class="u-progress-content" v-else>
  183. <text class='u-progress-info' >
  184. <view v-if="chargingGun.gunType==1" style="
  185. font-size: 80rpx;
  186. font-weight: bold;
  187. color: #009B52 ;
  188. " >{{percent}}<span style="font-size: 16px;">%</span></view>
  189. <view v-if="chargingGun.gunType==2"
  190. style="
  191. font-size: 60rpx;
  192. font-weight: bold;
  193. color: #009B52 ;
  194. "
  195. >{{chargingRecord.statusText}}</view>
  196. <view
  197. style="
  198. font-size: 32rpx;
  199. font-weight: bold;
  200. " >预计费用{{chargingRecord.dueFee?chargingRecord.dueFee.toFixed(2):'0.00'}}元</view>
  201. </text>
  202. </view>
  203. <view class="bot"></view>
  204. </u-circle-progress>
  205. </view>
  206. <!-- <view class="img">
  207. <img src="../../../assets/img/Group (2).png" alt="">
  208. </view>
  209. <view class="state-infos">
  210. <view class="state">
  211. <text><img src="../../../assets/img/if-flash.svg" alt=""></text>充电中...
  212. </view>
  213. <view class="electric-quantity">
  214. <p>当前电量</p>
  215. <view class="percent">
  216. 60<text>%</text>
  217. </view>
  218. </view>
  219. <view class="charge-time">
  220. <p>充电时长</p>
  221. <view class="time">
  222. 00:24:01
  223. </view>
  224. </view>
  225. </view> -->
  226. </view>
  227. <!-- 充电信息 -->
  228. <view class="charge-info">
  229. <view class="info-item">
  230. <view class="content">
  231. {{timer}}
  232. </view>
  233. <view class="name">
  234. 充电时长
  235. </view>
  236. </view>
  237. <view class="info-item">
  238. <view class="content" >
  239. {{chargingRecord.electricQuantity?(chargingRecord.electricQuantity/10000).toFixed(2):0}}
  240. </view>
  241. <view class="name">
  242. 已充电量(度)
  243. </view>
  244. </view>
  245. <view class="info-item" v-if="chargingRecord.payType==1">
  246. <view class="content" v-if="chargingRecord.estimateFee">
  247. {{chargingRecord.estimateFee.toFixed(2)}}
  248. </view>
  249. <view class="name">
  250. 预充金额(元)
  251. </view>
  252. </view>
  253. <view class="info-item" v-else>
  254. <view class="content" v-if="detail.balance>0||detail.balance==0">
  255. {{detail.balance>0&&chargingRecord.dueFee?((detail.balance*1000-chargingRecord.dueFee*1000)/1000).toFixed(2):detail.balance.toFixed(2)}}
  256. </view>
  257. <view class="name">
  258. {{chargingRecord.payType==3?'企业':'账户'}}余额(元)
  259. </view>
  260. </view>
  261. <view class="info-item" v-if="infoShow">
  262. <view class="content">
  263. {{chargingRecord.chargeVoltage?chargingRecord.chargeVoltage:0}}V
  264. </view>
  265. <view class="name">
  266. 电压
  267. <u-icon name="error-circle" v-if="chargingGun.gunType==1"
  268. @click="voltageShow=true"
  269. size="28"></u-icon>
  270. </view>
  271. </view>
  272. <view class="info-item" v-if="infoShow">
  273. <view class="content">
  274. {{chargingRecord.chargingPower?(chargingRecord.chargingPower/1000).toFixed(2):0}}kW
  275. </view>
  276. <view class="name">
  277. 功率
  278. </view>
  279. </view>
  280. <view class="info-item" v-if="infoShow">
  281. <view class="content">
  282. {{chargingRecord.chargeAmpere?chargingRecord.chargeAmpere:0}}A
  283. </view>
  284. <view class="name">
  285. 电流
  286. </view>
  287. </view>
  288. <view class="spread" @tap="spreadInfo">
  289. <view class="" v-if="this.infoShow==false">
  290. 全部信息<text class="iconfont">&#xe62b;</text>
  291. </view>
  292. <view class="pack-up" v-if="this.infoShow==true">
  293. 收起<text class="iconfont">&#xe605;</text>
  294. </view>
  295. </view>
  296. </view>
  297. <!-- 其他信息 -->
  298. <view class="else-infos">
  299. <u-modal v-model="voltageShow" :titleStyle="{
  300. 'font-size': '22px'
  301. }"
  302. title="更多充电信息" confirm-text="关闭"
  303. >
  304. <view style="padding: 15px;" class="voltageShow">
  305. <view>最高允许单体电压<span>{{voltageShowNum(chargingGun.maxAllowSingleVoltage)}}V</span>
  306. </view>
  307. <view>最高单体电压<span>{{voltageShowNum(chargingGun.singleMaxVoltage)}}V</span>
  308. </view>
  309. <view>最低单体电压<span>{{voltageShowNum(chargingGun.singleMinVoltage)}}V</span>
  310. </view>
  311. <view>最高允许单体温度<span>{{voltageShowNum(chargingGun.maxAllowTemperature)}}℃</span>
  312. </view>
  313. <view>最高单体温度<span>{{voltageShowNum(chargingGun.singleMaxTemperature)}}℃</span>
  314. </view>
  315. <view>充电枪温度<span>{{voltageShowNum(chargingGun.gunTemperature)}}℃</span>
  316. </view>
  317. </view>
  318. </u-modal>
  319. <u-modal v-model="parkingTips"
  320. title="新能源汽车停车费说明"
  321. confirm-text="知道了" confirm-color="#53b56b" >
  322. <view style="padding: 15px;"
  323. v-html="chargingStation.parkingSimpleDescription"
  324. ></view>
  325. </u-modal>
  326. <view class="item" v-if="chargingStation.parkingSimpleDescription">
  327. <view class="title" style="
  328. width: 100%;
  329. " @click="parkingTips=true">
  330. 停车费说明 <u-icon name="arrow-right" style="
  331. float: right;margin-top: 6px;" size="28"></u-icon>
  332. </view>
  333. </view>
  334. <view class="item" v-if="false">
  335. <view class="title">
  336. 充电车辆
  337. </view>
  338. <view class="detail">
  339. {{chargingRecord.carNumber?chargingRecord.carNumber:'未绑定'}}
  340. </view>
  341. </view>
  342. <view class="item" v-if="price.costPrice">
  343. <view class="title">
  344. <p class="price">当前价格</p>
  345. <p class="time">{{price.startTime}}-{{price.endTime}}</p>
  346. </view>
  347. <view class="detail">
  348. <p class="electrovalence">
  349. <text class="num" v-if="chargingRecord.userCardId">{{price.electricityPrice.toFixed(2)}}</text>
  350. <text class="num" v-else>
  351. <template v-if="(personInfo&&personInfo.userType==2)&&(chargingStation.giveDiscount||price.discountServicePrice)">
  352. <span >{{(price.electricityPrice+price.discountServicePrice).toFixed(2)}}</span>
  353. </template>
  354. <template v-else>
  355. {{(price.electricityPrice+price.servicePrice).toFixed(2)}}
  356. </template>
  357. </text>
  358. 元/度</p>
  359. <p class="electrovalence-monthlyCard">电价:{{price.electricityPrice}} | 服务费:
  360. <template v-if="chargingRecord.userCardId">
  361. 0(月卡)
  362. </template>
  363. <template v-else>
  364. <template v-if="(personInfo&&personInfo.userType==2)&&(chargingStation.giveDiscount||price.discountServicePrice)">
  365. <span style=" text-decoration: line-through;">{{price.servicePrice}}</span>折后{{price.discountServicePrice}}
  366. </template>
  367. <template v-else>
  368. {{price.servicePrice}}
  369. </template>
  370. </template>
  371. </p>
  372. </view>
  373. </view>
  374. <view class="item">
  375. <view class="title">
  376. {{chargingRecord.chargeStrategy==0?'充电模式':''}}
  377. {{chargingRecord.chargeStrategy==2?'充电金额':''}}
  378. </view>
  379. <view class="detail">
  380. {{chargingRecord.chargeStrategy==0?'充满自停':''}}
  381. {{chargingRecord.chargeStrategy==2?chargingRecord.estimateFee.toFixed(2)+'元':''}}
  382. </view>
  383. </view>
  384. <view class="itemTips" v-show="showChargingTag">
  385. <view class="itemTips1">
  386. <img src="@/assets/img/riFill-lightbulb-flash-fill.svg">
  387. 充电小贴士:
  388. </view>
  389. <view class="itemTips2" v-html="chargingTag">
  390. </view>
  391. <view class="itemTips3">
  392. <u-button type="success" @click="gotoBtn()"
  393. class="itemTips3Btn"
  394. shape="circle" >{{chargingTagUrl=='/pages/login/login'?'前往登录':'前往了解'}}</u-button>
  395. </view>
  396. </view>
  397. <view class="item">
  398. <view class="title">
  399. 优惠券
  400. </view>
  401. <view class="detail">
  402. {{couponObj&&couponObj.useText?couponObj.useText:'未使用优惠券'}}
  403. </view>
  404. </view>
  405. <view class="item" v-if="userCardBool" >
  406. <view class="title">
  407. 会员活动
  408. </view>
  409. <view class="detail">
  410. 充电月卡
  411. </view>
  412. </view>
  413. <view class="item">
  414. <view class="title">
  415. 充电站点
  416. </view>
  417. <view class="detail">
  418. {{chargingRecord.stationName}}
  419. <br/>{{chargingRecord.deviceName}}
  420. </view>
  421. </view>
  422. <view class="item" v-if="false" >
  423. <view class="title" style="width: 100%;" @click="gotoUrl('pages/searchPile/stationAndPile/chargePriceDetails?stationId='+chargingGun.stationId+'&deviceNo='+chargingGun.deviceNo)" >
  424. 充电价格详情
  425. <u-icon name="arrow-right" style="
  426. float: right;margin-top: 6px;" size="28"></u-icon>
  427. </view>
  428. </view>
  429. </view>
  430. <view class="bottom">
  431. <view class="img-box" @click="show = true">
  432. <img src="../../../assets/img/customer-service-2-line.svg" alt="">
  433. </view>
  434. <button
  435. :style="(chargingRecord.status=='0'||chargingRecord.status=='1'||chargingRecord.status=='4')?'':'background-color: #b3abab;'"
  436. style="width: 80%;"
  437. @click="submit" >结束充电</button>
  438. <view class="img-box" v-if="false">
  439. <img src="../../../assets/img/tools-fill.svg" alt="">
  440. </view>
  441. </view>
  442. <u-modal v-model="show" @confirm="confirmPhone"
  443. :confirm-text="confirmText" confirm-color="#606266"
  444. :show-cancel-button="true" ref="uModal" :asyncClose="true" :title="title" :content="consumerPhone">
  445. </u-modal>
  446. <u-modal v-model="show2" @confirm="gotoGz"
  447. cancel-text="暂不关注" @cancel="cancelGz"
  448. confirm-text="前往关注"
  449. confirm-color="#53b56b"
  450. :show-cancel-button="true"
  451. ref="uModal2" :asyncClose="true"
  452. >
  453. <view style="padding: 15px;"
  454. >请关注<span style=" color: #53b56b;">{{projectName}}</span>公众号,以便第一时间收到充电结束消息提醒</view>
  455. </u-modal>
  456. </view>
  457. <view v-if="false">
  458. </view>
  459. </view>
  460. </view>
  461. </template>
  462. <script>
  463. var formatNum=function(num) {
  464. let res = Number(num);
  465. return res < 10 ? '0' + res : res;
  466. };
  467. import * as api from "@/apis/site.js"
  468. import * as API from '@/apis/chargeProcess.js'
  469. import * as API_weixin from '@/apis/weixin.js'
  470. import * as userAPI from '@/apis/user.js'
  471. import {
  472. newDate,
  473. secondsDistance,
  474. hourDistanceArr
  475. } from '@/utils'
  476. export default {
  477. data() {
  478. return {
  479. message: '',
  480. elderMode:false,
  481. timer:'',
  482. title: '联系客服',
  483. content: '0716-8123456',
  484. confirmText: '拨打电话',
  485. detail:{},
  486. navbartitle:"充电中",
  487. percent: 0,
  488. percentValue: 0,
  489. show3:false,
  490. consumerPhone: "",
  491. id: "",
  492. chargingGun: {},
  493. chargingRecord: {},
  494. couponObj:{},
  495. show: false,
  496. show2: false,
  497. isReady:true,
  498. waitNum:'',
  499. projectName:"",
  500. userCard:null,
  501. price:{},
  502. prices:[],
  503. chargingStation:{},
  504. parkingTips:false,
  505. showVin:false,
  506. showVinBl:false,
  507. descriptionShow2do:false,
  508. infoShow:false,
  509. voltageShow:false,
  510. showChargingTag:false,
  511. chargingTagUrl:false,
  512. chargingTag:false,
  513. personInfo:null,
  514. }
  515. },
  516. onLoad(op) {
  517. this.projectName=process.car.ProjectName;
  518. var plus=this.carhelp.getPersonInfoPlus()
  519. this.personInfo=this.carhelp.getPersonInfo()
  520. if(plus){
  521. this.userCard=plus.userCard;
  522. }
  523. if (op.id) {
  524. this.id = op.id;
  525. this.init()
  526. this.getInfo()
  527. }
  528. var consumerPhone = this.carhelp.getConfig().consumerPhone
  529. // img="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
  530. if (consumerPhone) {
  531. this.consumerPhone = consumerPhone
  532. }
  533. },
  534. onShow() {
  535. if(!this.isReady){
  536. this.isReady=true;
  537. this.addpercent();
  538. this.getInfo()
  539. }
  540. },
  541. onHide() {
  542. this.isReady=false;
  543. console.log("onHide")
  544. },
  545. onUnload() {
  546. console.log("onUnload")
  547. this.isReady=false;
  548. },
  549. onReady() {
  550. this.elderMode = this.carhelp.get('getElderModeClass') == '长辈模式';
  551. if(this.elderMode)
  552. this.theme('elder')
  553. else
  554. this.theme('standard')
  555. this.addpercent()
  556. },
  557. computed:{
  558. userCardBool(){
  559. if(this.chargingRecord&&this.chargingRecord.userCardId&&!this.showVinBl){
  560. return true;
  561. }
  562. return false
  563. }
  564. },
  565. methods: {
  566. gotoBtn(){
  567. uni.navigateTo({
  568. url:this.chargingTagUrl
  569. })
  570. },
  571. voltageShowNum(num){
  572. if(num){
  573. if(num<0){
  574. return 0
  575. }
  576. return num
  577. }else{
  578. return 0
  579. }
  580. },
  581. spreadInfo(){
  582. this.infoShow=!this.infoShow
  583. },
  584. alerttipsCk2(){
  585. this.descriptionShow2do=true;
  586. },
  587. vinCk(){
  588. if(this.userCard&&this.userCard.vin&&this.chargingGun&&this.chargingGun.vin){
  589. if(this.userCard.vin==this.chargingGun.vin){
  590. return true
  591. }else{
  592. return false
  593. }
  594. }else{
  595. return true
  596. }
  597. },
  598. forPrice(){
  599. if(this.prices&&this.prices.length){
  600. let date = new Date();
  601. let hours = date.getHours();
  602. let minutes = date.getMinutes();
  603. let seconds = date.getSeconds();
  604. let date_str = formatNum(hours)+ ':'+ formatNum(minutes);//+ ' ' +formatWeek;
  605. for(var i in this.prices[0].priceList){
  606. var item=this.prices[0].priceList[i];
  607. if(date_str>=item.startTime && date_str<= item.endTime)
  608. {
  609. this.price= item
  610. }
  611. }
  612. }
  613. },
  614. getChargingStationPrice(id){
  615. if(this.prices&&this.prices.length){
  616. this.forPrice()
  617. return
  618. }
  619. if(!id||id==undefined){
  620. return
  621. }
  622. //id='e012f9fe-90a8-4a47-bb64-26ea139c3c05'
  623. api.getChargingStationPrice2({
  624. stationId:id,
  625. payType:this.chargingRecord.payType,
  626. recordId:this.chargingRecord.id
  627. }).then((res)=>{
  628. this.prices=res.data.prices
  629. this.chargingStation=res.data.chargingStation;
  630. this.forPrice()
  631. }).catch(error => {
  632. uni.showToast({
  633. title: error
  634. })
  635. })
  636. },
  637. showToast() {
  638. this.$refs.uToast.show({
  639. title: '提交成功',
  640. type: 'success'
  641. })
  642. },
  643. submitMessage() {
  644. if(!this.message) {
  645. uni.showToast({
  646. title: "请填写反馈内容",
  647. icon: "none"
  648. })
  649. return
  650. }
  651. uni.showLoading({
  652. title: "加载中",
  653. mask: true,
  654. })
  655. userAPI.feedback({content: this.message}).then(response => {
  656. uni.hideLoading()
  657. this.message = '';
  658. this.showToast();
  659. }).catch(error => {
  660. uni.showToast({
  661. title: error
  662. })
  663. })
  664. },
  665. theme(type) {
  666. if(type == 'elder')
  667. {
  668. document.getElementsByTagName('body')[0].setAttribute('data-theme',type);
  669. }
  670. else
  671. {
  672. document.getElementsByTagName('body')[0].setAttribute('data-theme',type);
  673. }
  674. },
  675. cancelGz(){
  676. this.carhelp.setGzDate()
  677. },
  678. gotoGz(){
  679. this.carhelp.setGzDate()
  680. var url="https://mp.weixin.qq.com/s/mCHz1nNvg0xAICiBeIyKRQ";
  681. window.location.href=url
  682. },
  683. gotoMain(i){
  684. if(i==0){
  685. uni.reLaunch({
  686. url:"/pages/index/index"
  687. })
  688. }
  689. if(i==1){
  690. uni.navigateTo({
  691. url:"/pages/record/details?id="+this.id
  692. })
  693. }
  694. },
  695. addpercent(){
  696. this.timer=this.getPercent()
  697. if(this.isReady){
  698. setTimeout(()=>{
  699. this.percentValue++;
  700. if(this.percentValue>=100){
  701. this.percentValue=0;
  702. }
  703. this.addpercent()
  704. },100)
  705. }
  706. },
  707. getPercent2() {
  708. var ms=this.chargingRecord.chargingMinute*60;
  709. var Hour = parseInt(Math.floor(ms / (60 * 60)));
  710. var Fen = parseInt(Math.floor(ms % (60 * 60) / 60));
  711. var S = parseInt(Math.floor(ms % (60) ));
  712. var obj = (Hour > 9 ? "" : "0") + Hour + ":" + (Fen > 9 ? "" : "0") + Fen+ ":" + (S > 9 ? "" : "0") + S
  713. return obj;
  714. },
  715. getPercent() {
  716. if(!this.chargingRecord.startTime){
  717. return '00:00:00'
  718. }
  719. var Hour=0;
  720. var Fen=0;
  721. var S=0;
  722. if (this.chargingRecord.status == 1) {
  723. var second = secondsDistance(newDate(this.chargingRecord.startTime));
  724. var ms=second;
  725. Hour = parseInt(Math.floor(ms / (60 * 60)));
  726. Fen = parseInt(Math.floor(ms % (60 * 60) / 60));
  727. S = parseInt(Math.floor(ms % (60) ));
  728. }
  729. var obj = (Hour > 9 ? "" : "0") + Hour + ":" + (Fen > 9 ? "" : "0") + Fen+ ":" + (S > 9 ? "" : "0") + S
  730. return obj;
  731. },
  732. init() {
  733. API.personalCenter().then((res) => {
  734. this.detail = res.data
  735. if(this.chargingRecord.payType==3&&this.chargingRecord.entAccountId){
  736. for(var i in this.detail.entRegList){
  737. var item=this.detail.entRegList[i];
  738. if(item.enterpriseAccount.id==this.chargingRecord.entAccountId){
  739. this.detail.balance=item.enterpriseAccount.totalAmount
  740. }
  741. }
  742. }
  743. }).catch(error => {
  744. uni.showToast({
  745. title: error
  746. })
  747. })
  748. },
  749. checkSubscribe(){
  750. API_weixin.checkSubscribe({
  751. openId: this.carhelp.getOpenId()
  752. }).then((res) => {
  753. if(res.data=="0"){
  754. this.show2=true;
  755. }else{
  756. this.carhelp.setGzDate()
  757. }
  758. //setGzDate
  759. }).catch(error => {
  760. uni.showToast({
  761. title: error
  762. })
  763. })
  764. },
  765. confirmPhone() {
  766. this.show = false;
  767. uni.makePhoneCall({
  768. phoneNumber: this.consumerPhone //仅为示例
  769. });
  770. },
  771. getInfo() {
  772. // uni.showLoading({
  773. // title: "加载中",
  774. // mask: true,
  775. // })
  776. API.chargingDetail({
  777. id: this.id
  778. }).then((res) => {
  779. this.showChargingTag=res.data.showChargingTag
  780. this.chargingTagUrl=res.data.chargingTagUrl
  781. this.chargingTag=res.data.chargingTag
  782. this.chargingRecord = res.data.chargingRecord
  783. if(this.chargingRecord.carNumber){
  784. this.navbartitle=this.chargingRecord.carNumber;
  785. }
  786. //(this.chargingRecord)
  787. this.couponObj= res.data.coupon
  788. this.chargingGun = res.data.chargingGun
  789. this.waitNum=res.data.chargingRecord.waitNum;
  790. this.getChargingStationPrice(this.chargingGun.stationId )
  791. //this.isReady = true;
  792. //直流
  793. if(this.chargingGun.gunType==1){
  794. if (this.chargingRecord.status == 1) {
  795. this.percent=this.chargingGun.soc
  796. if(this.userCardBool&&!this.showVinBl&&!this.vinCk()){
  797. this.showVin=true;
  798. this.showVinBl=true;//只提示1次
  799. }
  800. }
  801. }else if(this.chargingGun.gunType==2){
  802. //交流
  803. }
  804. if (this.chargingRecord.status == 1) {
  805. if(this.carhelp.getGzDate()&&!this.show2){
  806. this.checkSubscribe()
  807. }
  808. }
  809. if(this.isReady&&this.chargingRecord.status!=2){
  810. var time=1000;
  811. if(this.chargingRecord.status==0){
  812. }else{
  813. time=3000;
  814. this.init();
  815. }
  816. console.log(time)
  817. setTimeout(()=>{
  818. this.getInfo();
  819. },time)
  820. }
  821. uni.hideLoading()
  822. }).catch(error => {
  823. uni.showToast({
  824. title: error
  825. })
  826. })
  827. },
  828. submit() {
  829. if(this.chargingRecord.status==0||this.chargingRecord.status==1||this.chargingRecord.status==4){
  830. }else{
  831. return
  832. }
  833. uni.showModal({
  834. title: '提示',
  835. content: '确认结束充电?',
  836. success: res => {
  837. if (res.confirm) {
  838. //付钱 改为组件
  839. this.confirm()
  840. } else if (res.cancel) {
  841. //('用户点击取消');
  842. }
  843. }
  844. });
  845. },
  846. confirm() {
  847. ////(JSON.stringify(this.submitForm))
  848. uni.showLoading({
  849. title: "加载中",
  850. mask: true,
  851. })
  852. //this.submitForm.deviceNo = this.detail.deviceNo;
  853. API.stopCarCharging({
  854. chargingRecordId:this.chargingRecord.id
  855. }).then((res) => {
  856. this.getInfo()
  857. }).catch(error => {
  858. uni.showToast({
  859. title: error
  860. })
  861. })
  862. },
  863. }
  864. }
  865. </script>
  866. <style>
  867. page {
  868. background: #fff;
  869. padding-bottom: 50px;
  870. }
  871. </style>
  872. <style lang="scss" scoped>
  873. .voltageShow{
  874. color: rgba(119, 119, 119, 100);
  875. font-size: 18px;
  876. span{
  877. float: right;
  878. color: rgba(51, 51, 51, 100);
  879. font-size: 18px;
  880. // font-family: AlibabaPuHui-bold;
  881. font-weight: 550;
  882. }
  883. }
  884. .spread{
  885. width: 100%;
  886. background-color: rgba(244, 249, 247, 100);
  887. text-align: center;
  888. border: 1px solid rgba(206, 226, 217, 100);
  889. color: rgba(153, 153, 153, 100);
  890. line-height: 20px;
  891. border-radius: 0px 0px 12px 12px;
  892. padding: 4px 0;
  893. .iconfont{
  894. // font-size: 16px !important
  895. }
  896. }
  897. .progress-bar-main{
  898. .info-name2{
  899. color: #777777 ;
  900. font-size:14px;
  901. }
  902. .info-name{
  903. font-weight:bold;
  904. font-size: 20px;
  905. }
  906. }
  907. @import "@/_theme.scss";
  908. .tittle-font {
  909. @include themeify{
  910. font-size: themed('font-size7');
  911. }
  912. /* font-size: 24px;*/
  913. position: fixed;
  914. top: 12px;
  915. right: 16px;
  916. z-index: 99999;
  917. }
  918. .bot {
  919. width:100%;
  920. height:0;
  921. padding-top: 100%;
  922. border: 2px #00b962 dotted;
  923. border-radius:100%;
  924. box-sizing: border-box;
  925. position: absolute;
  926. top: 0px;
  927. left: 0px;
  928. right: 0px;
  929. margin: auto;
  930. }
  931. .progress-bar {
  932. text-align: center;
  933. // margin-top: 20px;
  934. /deep/.u-circle-progress {
  935. background-color:#f7f8f8 !important;
  936. position: relative;
  937. // min-width:220px;
  938. // min-height: 220px;
  939. }
  940. .u-progress-content {
  941. display: flex;
  942. align-items: center;
  943. justify-content: center;
  944. }
  945. .u-progress-dot {
  946. width: 16rpx;
  947. height: 16rpx;
  948. border-radius: 50%;
  949. background-color: #fb9126;
  950. }
  951. .u-progress-info {
  952. @include themeify{
  953. font-size: themed('font-size6');
  954. }
  955. /* font-size: 22px;*/
  956. padding-left: 16rpx;
  957. letter-spacing: 2rpx;
  958. color: rgba(51, 51, 51, 100);
  959. }
  960. /deep/.u-progress-dot[data-v-05b104e0] {
  961. display: none;
  962. }
  963. /deep/.u-circle-progress[data-v-cab6fc66] {
  964. margin: 40rpx;
  965. }
  966. }
  967. .starting {
  968. /* height: 22px;*/
  969. color: rgba(0, 185, 98, 100);
  970. @include themeify{
  971. font-size: themed('font-size3');
  972. height:themed('font-size6');
  973. }
  974. /* font-size: 16px;*/
  975. text-align: center;
  976. margin-top: 10px;
  977. }
  978. .timer {
  979. height: 43px;
  980. color: rgba(51, 51, 51, 100);
  981. @include themeify{
  982. font-size: themed('font-size13');
  983. }
  984. /* font-size: 36px;*/
  985. text-align: center;
  986. margin-top: 40px;
  987. }
  988. .charged {
  989. /* height: 20px;*/
  990. color: rgba(153, 153, 153, 100);
  991. @include themeify{
  992. font-size: themed('font-size2');
  993. height:themed('font-size5')
  994. }
  995. /* font-size: 14px;*/
  996. text-align: center;
  997. margin-top: 4px;
  998. }
  999. .cost {
  1000. // width: 50%;
  1001. padding: 0 50px;
  1002. margin-top: 16px;
  1003. margin: auto;
  1004. width: 280px;
  1005. display: flex;
  1006. justify-content: space-between;
  1007. .cost-top {
  1008. line-height: 33px;
  1009. text-align: center;
  1010. @include themeify{
  1011. font-size: themed('font-size7');
  1012. }
  1013. /* font-size: 24px;*/
  1014. position: relative;
  1015. .cost-font {
  1016. position: absolute;
  1017. top: 0;
  1018. right: -25px;
  1019. color: #ff6200;
  1020. @include themeify{
  1021. font-size: themed('font-size7');
  1022. }
  1023. /* font-size: 24px*/
  1024. }
  1025. }
  1026. .cost-bottom {
  1027. @include themeify{
  1028. line-height: themed('font-size5');
  1029. }
  1030. /* line-height: 20px;*/
  1031. color: #999999;
  1032. text-align: center;
  1033. }
  1034. }
  1035. .line {
  1036. width: 0;
  1037. height: 36px;
  1038. border: 1px solid rgba(237, 237, 237, 100);
  1039. margin-top: 10px;
  1040. background-color: #ededed;
  1041. }
  1042. .power {
  1043. display: flex;
  1044. justify-content: space-around;
  1045. padding: 0 55px;
  1046. margin-top: 40px;
  1047. .power-num {
  1048. /* height: 27px;*/
  1049. color: rgba(51, 51, 51, 100);
  1050. @include themeify{
  1051. font-size: themed('font-size5');
  1052. height: themed('font-size9');
  1053. }
  1054. /* font-size: 20px;*/
  1055. text-align: center;
  1056. }
  1057. .power-text {
  1058. /* height: 20px;*/
  1059. color: rgba(153, 153, 153, 100);
  1060. @include themeify{
  1061. font-size: themed('font-size2');
  1062. height: themed('font-size5');
  1063. }
  1064. /* font-size: 14px;*/
  1065. text-align: center;
  1066. }
  1067. }
  1068. .info {
  1069. display: flex;
  1070. justify-content: space-between;
  1071. margin: 0 80rpx;
  1072. // height: 48px;
  1073. line-height: 88rpx;
  1074. background-color: rgba(255, 255, 255, 100);
  1075. color: rgba(16, 16, 16, 100);
  1076. border-bottom: 1px solid #ededed;
  1077. .info-text {
  1078. line-height: 48rpx;
  1079. padding: 26rpx 0 26rpx;
  1080. //width: 200px;
  1081. text-align: right;
  1082. }
  1083. }
  1084. .charge-infos{
  1085. padding: 20px 36px;
  1086. margin: 0 auto;
  1087. .item{
  1088. display: flex;
  1089. justify-content: space-between;
  1090. color: rgba(102, 102, 102, 100);
  1091. font-size: 18px;
  1092. margin-bottom: 12px;
  1093. .discounts{
  1094. color:red
  1095. }
  1096. }
  1097. }
  1098. .bottom2 {
  1099. padding: 12px 20px;
  1100. background-color: #fff;
  1101. position: fixed;
  1102. bottom: 0;
  1103. left: 0;
  1104. right: 0;
  1105. margin: auto;
  1106. }
  1107. .progress-bar2 {
  1108. text-align: center;
  1109. /deep/.u-circle-progress {
  1110. // margin-left: 23.3% !important;
  1111. position: relative;
  1112. }
  1113. .u-progress-content {
  1114. display: flex;
  1115. align-items: center;
  1116. justify-content: center;
  1117. }
  1118. .u-progress-dot {
  1119. width: 16rpx;
  1120. height: 16rpx;
  1121. border-radius: 50%;
  1122. background-color: #fb9126;
  1123. }
  1124. .u-progress-info {
  1125. display: block;
  1126. @include themeify{
  1127. font-size: themed('font-size11');
  1128. }
  1129. /* font-size: 32px;*/
  1130. padding-left: 16rpx;
  1131. letter-spacing: 2rpx;
  1132. color: rgba(51, 51, 51, 100);
  1133. .progress-text {
  1134. @include themeify{
  1135. font-size: themed('font-size2');
  1136. }
  1137. /* font-size: 14px;*/
  1138. text-align: center;
  1139. color: #666666;
  1140. }
  1141. }
  1142. /deep/.u-progress-dot[data-v-05b104e0] {
  1143. display: none;
  1144. }
  1145. /deep/.u-circle-progress[data-v-cab6fc66] {
  1146. margin: 40rpx;
  1147. }
  1148. }
  1149. .time-price {
  1150. display: flex;
  1151. justify-content: space-between;
  1152. padding: 0 65px;
  1153. .item-num {
  1154. /* height: 33px;*/
  1155. color: rgba(51, 51, 51, 100);
  1156. @include themeify{
  1157. font-size: themed('font-size7');
  1158. height:themed('font-size12')
  1159. }
  1160. /* font-size: 24px;*/
  1161. text-align: center;
  1162. }
  1163. .item-text {
  1164. eight: 20px;
  1165. color: rgba(153, 153, 153, 100);
  1166. @include themeify{
  1167. font-size: themed('font-size2');
  1168. }
  1169. /* font-size: 14px;*/
  1170. text-align: center;
  1171. }
  1172. }
  1173. // .bottom {
  1174. // background-color: #fff;
  1175. // display: flex;
  1176. // width: 91.4%;
  1177. // padding: 0 16px;
  1178. // margin:0 auto 40px;
  1179. // .u-size-default {
  1180. // border: 1px solid rgba(0, 185, 98, 100);
  1181. // color: #00b962;
  1182. // width: 44%;
  1183. // }
  1184. // }
  1185. // 反馈
  1186. .feedback{
  1187. padding: 40rpx 72rpx ;
  1188. .title-1{
  1189. color: rgba(16, 16, 16, 100);
  1190. font-size: 36rpx;
  1191. }
  1192. .title-2{
  1193. color: rgba(102, 102, 102, 100);
  1194. margin-top: 8px;
  1195. line-height: 20px;
  1196. }
  1197. textarea{
  1198. margin-top: 16px;
  1199. width: 93.5%;
  1200. height: 100px;
  1201. background-color: rgba(228, 228, 228, 100);
  1202. color: rgba(153, 153, 153, 100);
  1203. font-size: 16px;
  1204. border-radius: 12px;
  1205. padding: 12px;
  1206. line-height: 23px;
  1207. }
  1208. .submit{
  1209. height: 80rpx;
  1210. line-height: 26px;
  1211. border-radius: 50px;
  1212. background-color: rgba(0, 185, 98, 100);
  1213. color: rgba(255, 255, 255, 100);
  1214. font-size: 36rpx;
  1215. margin-top: 16px;
  1216. }
  1217. }
  1218. </style>
  1219. <style lang="scss" scoped>
  1220. .oldTextClassF{
  1221. .electrovalence-monthlyCard{
  1222. }
  1223. }
  1224. page {
  1225. background-color: #f6f8f8;
  1226. padding-bottom: 60px;
  1227. }
  1228. .to-recharge{
  1229. position: absolute;
  1230. right: 22px;
  1231. color: #333333
  1232. }
  1233. // 充电状态
  1234. .charge-state {
  1235. width: 100%;
  1236. }
  1237. // 充电信息
  1238. .charge-info {
  1239. background-color: #ffffff;
  1240. padding: 40rpx 0px 0px 0px;
  1241. margin: 40rpx 40rpx 0;
  1242. box-shadow: 0px 2px 8px 0px #1A095A34;
  1243. border-radius: 12px;
  1244. display: flex;
  1245. flex-wrap: wrap;
  1246. justify-content: space-between;
  1247. .info-item {
  1248. width: 33%;
  1249. text-align: center;
  1250. margin-bottom: 14px;
  1251. .content {
  1252. line-height: 33px;
  1253. color: rgba(51, 51, 51, 100);
  1254. font-size: 22px;
  1255. font-weight: 550;
  1256. }
  1257. .name {
  1258. line-height: 44rpx;
  1259. color: rgba(119, 119, 119, 100);
  1260. font-size: 32rpx;
  1261. }
  1262. }
  1263. }
  1264. //其他信息
  1265. .else-infos {
  1266. padding: 0 24rpx 48rpx 24rpx;
  1267. background-color: #ffffff;
  1268. // width: 88.2%;
  1269. box-shadow: 0px 2px 8px 0px #1A095A34;
  1270. margin: 32rpx 40rpx 40rpx 40rpx;
  1271. border-radius: 12px;
  1272. .itemTips{
  1273. border: 1px solid rgba(0, 185, 98, 1);
  1274. background-color: rgba(235, 255, 246, 1);
  1275. color: rgba(16, 16, 16, 1);
  1276. padding:24rpx 10rpx;
  1277. /deep/.chargingTag{
  1278. color:#ff3d00;
  1279. font-weight: bold;
  1280. margin: 0 6rpx;
  1281. }
  1282. /deep/.chargingTag2{
  1283. color:#00b962
  1284. }
  1285. .itemTips1{
  1286. font-weight: bold;
  1287. display: flex;
  1288. align-items: center;
  1289. padding:0 20rpx;
  1290. color: rgba(0, 185, 98, 1);
  1291. font-size: 32rpx;
  1292. img{
  1293. height: 32rpx;
  1294. width: 32rpx;
  1295. }
  1296. }
  1297. .itemTips2{
  1298. line-height: 40rpx;
  1299. margin: 10rpx 0 20rpx 0;
  1300. padding:0 40rpx;
  1301. }
  1302. .itemTips3{
  1303. padding:0 40rpx;
  1304. margin-bottom: 10rpx;
  1305. .itemTips3Btn{
  1306. height: 62rpx;
  1307. }
  1308. }
  1309. }
  1310. .item{
  1311. display: flex;
  1312. justify-content: space-between;
  1313. line-height: 23px;
  1314. padding: 10px 0 10px 0;
  1315. border-bottom: 1px solid #E9EBEE;
  1316. .title{
  1317. // width: 100px;
  1318. width: 26.6vw;
  1319. color: rgba(16, 16, 16, 100);
  1320. font-size: 18px;
  1321. font-weight: 550;
  1322. .time{
  1323. font-size: 13px;
  1324. color: #666666 100%;
  1325. font-weight: normal;
  1326. }
  1327. }
  1328. .detail{
  1329. // width: 197px;
  1330. //width: 52.5vw;
  1331. color: rgba(16, 16, 16, 100);
  1332. font-size: 16px;
  1333. text-align: right;
  1334. .electrovalence{
  1335. .num{
  1336. color: rgba(255, 61, 0, 100);
  1337. margin-right: 4px;
  1338. }
  1339. }
  1340. .electrovalence-monthlyCard{
  1341. font-size: 28rpx;
  1342. color: #959595;
  1343. }
  1344. }
  1345. }
  1346. }
  1347. // 底部按钮
  1348. .bottom{
  1349. background:white ;
  1350. position: fixed;
  1351. bottom: 0;
  1352. left: 0;
  1353. right: 0;
  1354. display: flex;
  1355. padding: 12px 24px;
  1356. padding-bottom: 12px;
  1357. z-index: 999;
  1358. .img-box{
  1359. width: 96rpx;
  1360. height: 96rpx;
  1361. padding: 24rpx 0;
  1362. background-color: rgba(210, 215, 213, 100);
  1363. text-align: center;
  1364. border-radius: 999px;
  1365. img{
  1366. }
  1367. }
  1368. button{
  1369. width: 45.8%;
  1370. background-color: black;
  1371. color: #fff;
  1372. height: 80rpx;
  1373. border-radius: 50px;
  1374. font-size: 32rpx;
  1375. }
  1376. }
  1377. </style>