details.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874
  1. <template>
  2. <view class="time-head">
  3. <ujp-navbar title="充电详情">
  4. <view slot="right" style="margin-right: 10px;" @click="openModalBl=true">
  5. <view class="iconfont qr-code">
  6. &#xe60d;
  7. </view>
  8. </view>
  9. </ujp-navbar>
  10. <view class="slogan-4 " v-for="(item,i) in bannerListYXJ" :key="i" v-if="i==0">
  11. <u-icon name="close-circle-fill" color="#989898" @click="bannerListYXJ=[]"></u-icon>
  12. <img :src="item.picUrl" @click="gotoUrl2(item.linkUrl)" >
  13. </view>
  14. <u-modal v-model="openModalBl" @confirm="confirmPhoneBl" confirm-text="拨打电话" confirm-color="#606266"
  15. :show-cancel-button="true" ref="uModal" :asyncClose="true" title="客服电话" :content="consumerPhone"
  16. :content-style="{fontSize: '24px',color: '#101010'}"></u-modal>
  17. <view class="details-time">
  18. <view class="time">
  19. <view class="time1">
  20. <view class="time13" v-if="chargeDetail.deviceType==1&&chargeDetail.endSoc">
  21. 启动: {{chargeDetail.startSoc}}%
  22. </view>
  23. <view class="time12">{{geth1(chargeDetail.startTime?chargeDetail.startTime:chargeDetail.createTime)}}
  24. </view>
  25. <view class="time11">
  26. {{getday(chargeDetail.startTime?chargeDetail.startTime:chargeDetail.createTime)}}</view>
  27. </view>
  28. <view class="time2">
  29. <view class="time21">
  30. {{ getPercent(chargeDetail)}}
  31. </view>
  32. <view class="time22"></view>
  33. <view class="time21" style="color: #fff;">-</view>
  34. </view>
  35. <view class="time1" style=" text-align: end;">
  36. <view class="time13" v-if="chargeDetail.deviceType==1&&chargeDetail.endSoc">
  37. 停止: {{chargeDetail.endSoc}}%
  38. </view>
  39. <view class="time12">{{geth1(chargeDetail.endTime)}}</view>
  40. <view class="time11">{{getday(chargeDetail.endTime)}}</view>
  41. </view>
  42. </view>
  43. <view class="oldTextjp18px" v-if="false">
  44. <view class="details-row">
  45. <p>充电时长</p>
  46. <span>{{chargeDetail.chargingMinute != null ? getPercent(chargeDetail.chargingMinute) : '0秒'}}</span>
  47. </view>
  48. <view class="details-row" >
  49. <p>实付款</p>
  50. <span>{{chargeDetail.actualFee != null ? chargeDetail.actualFee.toFixed(2) : '0.00'}}元</span>
  51. </view>
  52. <view class="details-row" v-if="chargeDetail.deviceType==1" >
  53. <p>充电SOC</p>
  54. <span>
  55. {{chargeDetail.startSoc}}%>{{chargeDetail.endSoc}}%
  56. </span>
  57. </view>
  58. <view class="details-row" v-if="false">
  59. <p>充电度数</p>
  60. <span>{{chargeDetail.electricQuantity != null ? chargeDetail.electricQuantity/10000 : '0.000'}}度</span>
  61. </view>
  62. </view>
  63. </view>
  64. <view class="details">
  65. <view class="details-title">
  66. <h4 class="oldTextjp20px" oldstyle="font-size: 20px;">费用信息</h4>
  67. </view>
  68. <view class="oldTextjp18px" oldstyle="font-size: 18px;">
  69. <view class="details-row">
  70. <p>订单总额</p><span>{{chargeDetail.dueFee != null ? chargeDetail.dueFee.toFixed(2) : '0.00'}}元</span>
  71. </view>
  72. <view class="details-row">
  73. <p>电费</p>
  74. <span>{{chargeDetail.totalElecMoney != null ? chargeDetail.totalElecMoney.toFixed(2) : '0.00'}}元</span>
  75. </view>
  76. <view class="details-row">
  77. <p>服务费</p>
  78. <span>{{chargeDetail.totalServiceMoney != null ? chargeDetail.totalServiceMoney.toFixed(2) : '0.00'}}元</span>
  79. </view>
  80. <view class="details-row"
  81. v-if="chargeDetail.serviceDiscountRatio&&chargeDetail.serviceDiscountRatio!=100">
  82. <p>折前服务费</p>
  83. <span>{{(chargeDetail.dueServiceMoney?chargeDetail.dueServiceMoney:0).toFixed(2)}}元</span>
  84. </view>
  85. <view class="details-row"
  86. v-if="chargeDetail.realityServiceDiscountRatio&&chargeDetail.realityServiceDiscountRatio!=100">
  87. <p>服务费折扣</p><span style="color:#ef7041">{{discountRatio10(chargeDetail.realityServiceDiscountRatio)}}折</span>
  88. </view>
  89. <view class="details-row"
  90. v-else-if="chargeDetail.serviceDiscountRatio&&chargeDetail.serviceDiscountRatio!=100">
  91. <p>服务费折扣</p><span style="color:#ef7041">{{discountRatio10(chargeDetail.serviceDiscountRatio)}}折</span>
  92. </view>
  93. <view class="details-row">
  94. <p>优惠券抵扣</p><span style="color:#ef7041">
  95. {{userCouponObj&&userCouponObj.useText?(userCouponObj.useText=='服务费0折'?'免服务费':userCouponObj.useText):'未使用'}}
  96. </span>
  97. </view>
  98. <view class="details-row" v-if="chargeDetail.userCardId">
  99. <p>会员活动</p><span style="color:#ef7041">折扣卡</span>
  100. </view>
  101. <view class="details-row" v-if="chargeDetail.discountAmount">
  102. <p>实际减免</p><span style="color:#ef7041">-{{chargeDetail.discountAmount.toFixed(2)}}元</span>
  103. </view>
  104. <view class="details-row">
  105. <p>实付款</p>
  106. <span style="color:#ef7041;font-size: 20px;" ><b>{{chargeDetail.actualFee != null ? chargeDetail.actualFee.toFixed(2) : '0.00'}}元</b></span>
  107. </view>
  108. <view class="details-row">
  109. <p>支付方式</p>
  110. <span ><b>{{chargeDetail.payTypeText}}</b></span>
  111. </view>
  112. <view class="details-row" v-if="chargeDetail.payType==1">
  113. <p>预付款</p>
  114. <span ><b>{{chargeDetail.estimateFee != null ? chargeDetail. estimateFee.toFixed(2) : '0.00'}}元</b></span>
  115. </view>
  116. <view class="details-row" v-if="chargeDetail.payType==1">
  117. <p>预付款自动退款</p>
  118. <span ><b>{{chargeDetail.estimateFee != null ? (chargeDetail.estimateFee -chargeDetail. actualFee).toFixed(2) : '0.00'}}元</b></span>
  119. </view>
  120. <view class="details-row" v-if="chargeDetail.payType==2||chargeDetail.payType==3">
  121. <p>余额</p>
  122. <span ><b>{{chargeDetail. balance != null ? chargeDetail. balance.toFixed(2) : '0.00'}}元</b></span>
  123. </view>
  124. </view>
  125. </view>
  126. <view class="piccBanner"
  127. v-for="(itemJNT,index ) in bannerListJNT" v-show="index==0"
  128. @click="gotoUrl2(itemJNT.linkUrl)" :key="index"
  129. style="
  130. text-align: center;
  131. padding: 0px 16px;">
  132. <image :src="itemJNT.picUrl" style="height: 204rpx;width: 100%;border-radius: 10px;" ></image>
  133. </view>
  134. <view class="details" :style="(!electricRecordListBl?'margin-bottom: 60px;':'')+(!remarkBl?'padding: 40rpx 40rpx 0 40rpx;':'')">
  135. <view class="details-title">
  136. <h4 class="oldTextjp20px" @click="remarkBl=!remarkBl" >充电信息
  137. <span style="float: right;">
  138. <u-icon name="arrow-up" v-show="remarkBl" ></u-icon>
  139. <u-icon name="arrow-down" v-show="!remarkBl" ></u-icon>
  140. </span>
  141. </h4>
  142. </view>
  143. <view class="oldTextjp18px" v-show="remarkBl">
  144. <view class="details-row">
  145. <p>结束原因</p><span>{{chargeDetail.remark}}</span>
  146. </view>
  147. <view class="details-row">
  148. <p>订单状态</p><span>{{chargeDetail.statusText}}</span>
  149. </view>
  150. <view class="details-row" v-if="false">
  151. <p>更新时间</p><span>{{chargeDetail.updateTime}}</span>
  152. </view>
  153. <view class="details-row">
  154. <p>充电站点</p><span>{{chargeDetail.stationName}}</span>
  155. </view>
  156. <view class="details-row">
  157. <p>充电桩编号</p><span>{{chargeDetail.deviceName}}</span>
  158. </view>
  159. <view class="details-row">
  160. <p>充电车辆</p><span>{{chargeDetail.carNumber}}</span>
  161. </view>
  162. </view>
  163. <view v-show="remarkBl" style=" border-top: dashed 1px #777; margin-top: 10px;">
  164. <view class="details-row"><p>开始时间</p><span style="color:#777777">{{chargeDetail.startTime}}</span></view>
  165. <view class="details-row"><p>结束时间</p><span style="color:#777777">{{chargeDetail.endTime}}</span></view>
  166. </view>
  167. <view class="chargeDetailsClass" v-show="remarkBl" style=" border-top: dashed 1px #777; margin-top: 10px;" v-if="chargeDetails.length">
  168. <view v-for="(item,i) in chargeDetails" :key="i" >
  169. <view class="details-row" style=" margin-top: 18px;" >
  170. <p>区间充电量({{item.startTime}}-{{item.endTime}})</p>
  171. <span v-if="item.fixKwh&&item.kwh" >{{(item.kwh+item.fixKwh).toFixed(2) }}度</span>
  172. <span v-else >{{item.kwh }}度</span>
  173. </view>
  174. <view class="details-row" style="display: block;" >
  175. <p>
  176. <span style=" color: #37393c;">区间定价</span>
  177. <span style="float: right; color: #333;font-weight: normal;" v-if="item.discountServicePrice||item.discountServicePrice==0" >{{((item.electricityPrice*100+item.discountServicePrice*100)/100).toFixed(2)}}元/度 <span style="text-decoration:line-through;margin-left: 3px;">{{((item.electricityPrice*100+item.servicePrice*100)/100).toFixed(2)}}元/度</span></span>
  178. <span style="float: right; color: #333;font-weight: normal;" v-else >{{((item.electricityPrice*100+item.servicePrice*100)/100).toFixed(2)}}元/度</span>
  179. </p>
  180. <view class="details-row-grey">
  181. <view class="details-row-grey-row">
  182. <span>电费</span>
  183. <span class="details-row-grey-span" >{{item.electricityPrice.toFixed(2)}}元/度</span>
  184. </view>
  185. <template v-if="item.discountServicePrice||item.discountServicePrice==0" >
  186. <view class="details-row-grey-row">
  187. <span>充电服务费</span>
  188. <span class="details-row-grey-span" >{{item.discountServicePrice.toFixed(2)}}元/度</span>
  189. </view>
  190. <view class="details-row-grey-row">
  191. <span>折前服务费</span>
  192. <span class="details-row-grey-span details-row-grey-span2" >{{item.servicePrice.toFixed(2)}}元/度</span>
  193. </view>
  194. </template>
  195. <template v-else >
  196. <view class="details-row-grey-row">
  197. <span>充电服务费</span>
  198. <span class="details-row-grey-span" >{{item.servicePrice.toFixed(2)}}元/度</span>
  199. </view>
  200. </template>
  201. </view>
  202. <!-- <span class="details-row-sum" style="float:none" v-if="item.discountServicePrice||item.discountServicePrice==0" >电费{{item.electricityPrice.toFixed(2)}}元/度|服务费{{item.discountServicePrice.toFixed(2)}}元/度(折前{{item.servicePrice.toFixed(2)}}元/度) </span>
  203. <span class="details-row-sum" v-else >{{item.electricityPrice.toFixed(2)}}元/度(电费)+{{item.servicePrice.toFixed(2)}}元/度(服务费) </span>
  204. -->
  205. </view>
  206. </view>
  207. </view>
  208. </view>
  209. <view class="details" style="padding: 20rpx;margin-bottom: 60px;" v-show="electricRecordListBl">
  210. <view id="pieEcharts" style="min-height:180px;">
  211. </view>
  212. <view style="color:#9e9e9e;margin-top: 4px;">注:充电时间每5分钟获取一次数据</view>
  213. </view>
  214. <view class="buttonClass" >
  215. <u-button size="medium" class="detailsBtn-btn " :customStyle="customStyle" type="info" shape="circle"
  216. @click="openModalBl=true">
  217. <view class="iconfont ">
  218. &#xe60d;
  219. </view>
  220. 联系客服</u-button>
  221. <u-button class="detailsBtn-btn " size="medium" type="success" shape="circle"
  222. @click="gotoUrl('pages/user/message')">填写反馈意见</u-button>
  223. </view>
  224. </view>
  225. </template>
  226. <script>
  227. import * as API from '@/apis/index.js'
  228. import * as echarts from "echarts";
  229. import * as newsApi from '@/apis/news.js'
  230. import {
  231. newDate,
  232. currentTimeStamp,
  233. parseUnixTime,
  234. secondsDistance,
  235. } from '@/utils'
  236. export default {
  237. data() {
  238. return {
  239. id: '',
  240. remarkBl:false,
  241. myChart: null,
  242. electricRecordList: [],
  243. chargeDetail: {},
  244. chargeDetails:[],
  245. bannerListJNT:[],
  246. bannerListYXJ:[],
  247. userCouponObj: {},
  248. electricRecordListBl: true,
  249. elderStatus: false,
  250. consumerPhone: "",
  251. openModalBl: false,
  252. customStyle:{
  253. color: '#00B962'
  254. },
  255. payList: [{},
  256. {
  257. name: "先付后退",
  258. tips: "游客不享受平台优惠活动",
  259. value: "1",
  260. select: false,
  261. }, {
  262. name: "个人账户支付",
  263. tips: "可使用折扣卡、优惠券、折扣卷等",
  264. value: "2",
  265. select: false,
  266. }, {
  267. name: "单位账户支付",
  268. tips: "账户余额:99999元",
  269. value: "3",
  270. select: false,
  271. }, {
  272. name: "充电金",
  273. tips: "账户余额:99999元",
  274. value: "4",
  275. select: false,
  276. }, {
  277. name: "充电金",
  278. tips: "账户余额:99999元",
  279. value: "4",
  280. select: false,
  281. }],
  282. }
  283. },
  284. onLoad(op) {
  285. if (op.id) {
  286. this.id = op.id;
  287. this.getchargingDetail();
  288. }
  289. if (this.carhelp.get("getElderModeClass") == "长辈模式") {
  290. this.elderStatus = true;
  291. } else {
  292. this.elderStatus = false;
  293. }
  294. var consumerPhone = "400-8899-619"
  295. // img="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
  296. if (consumerPhone) {
  297. this.consumerPhone = consumerPhone
  298. }
  299. this.getBannerInfo("JNT-list-end","bannerListJNT");
  300. this.getBannerInfo("YXJ-list-end","bannerListYXJ");
  301. },
  302. methods: {
  303. getBannerInfo(code,list) {
  304. newsApi.getBannerInfo(code).then((res) => {
  305. if(list){
  306. this[list] = res.data;
  307. }else{
  308. this.bannerList = res.data;
  309. }
  310. //uni.hideLoading()
  311. //document.getElementsByClassName("uni-swiper-wrapper")[0].parentNode.style="background-color: rgb(255, 255, 255); height: 120px;"
  312. }).catch(error => {
  313. uni.showToast({
  314. title: error,
  315. icon: "none"
  316. })
  317. })
  318. },
  319. confirmPhoneBl() {
  320. this.openModalBl = false;
  321. uni.makePhoneCall({
  322. phoneNumber: this.consumerPhone //仅为示例
  323. });
  324. },
  325. getday(time) {
  326. if(time){
  327. return time.substring(0, 10);
  328. }else {
  329. return ''
  330. }
  331. },
  332. geth1(time) {
  333. if (time) {
  334. return time.substring(11)
  335. } else
  336. return ''
  337. },
  338. geth(time) {
  339. if (time) {
  340. return time.substring(11, 16)
  341. } else
  342. return ''
  343. },
  344. getPercent(chargingRecord) {
  345. if (!chargingRecord.startTime) {
  346. return '00:00:00'
  347. }
  348. var Hour = 0;
  349. var Fen = 0;
  350. var S = 0;
  351. var now = newDate(chargingRecord.startTime).getTime();
  352. var date = newDate(chargingRecord.endTime).getTime();
  353. var seconds = parseInt(( date-now ) / 1000);
  354. var ms = seconds;
  355. Hour = parseInt(Math.floor(ms / (60 * 60)));
  356. Fen = parseInt(Math.floor(ms % (60 * 60) / 60));
  357. S = parseInt(Math.floor(ms % (60)));
  358. var obj = (Hour > 9 ? "" : "0") + Hour + ":" + (Fen > 9 ? "" : "0") + Fen + ":" + (S > 9 ? "" : "0") + S
  359. return obj;
  360. },
  361. toHome() {
  362. uni.navigateTo({
  363. url: '/pages/index/index'
  364. })
  365. },
  366. getPie(data) {
  367. if (!this.myChart) {
  368. this.myChart = echarts.init(document.getElementById('pieEcharts'));
  369. // this.myChart.on("dataZoom", (res) => {
  370. // showkey = "";
  371. // this.headitemby = "";
  372. // });
  373. }
  374. var timeList = []
  375. var seriesList1 = []
  376. var seriesList2 = []
  377. var seriesList3 = []
  378. //var sz2 = ['soc', 'power', 'ampere', 'voltage','temperature'];
  379. console.log(data)
  380. var dataInterval = [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100]
  381. for (var i in data) {
  382. var item = data[i]
  383. timeList.push(this.geth(item.recordTime));
  384. seriesList1.push(item.soc ? item.soc : '')
  385. seriesList2.push(item.power ? (item.power / 1000).toFixed(1) : '')
  386. //seriesList3.push(item.temperature?item.temperature:0)
  387. seriesList3.push(item.temperature ? item.temperature : '')
  388. }
  389. var spaceNum = 5
  390. let maxA = Math.max(...seriesList2); // 最大值A
  391. let maxint = Math.ceil(maxA / spaceNum); //最大平均值(向上取整)= 最大值A / 间隔数
  392. let maxB = maxint * spaceNum; // 最大值B = 最大平均值 * 间隔数 (注:最大值B>最大值A)
  393. var max = Math.max(maxB, 10); // 为了防止maxB数据为0时,Y轴不显示,给个默认最大值10
  394. var interval = max / spaceNum;
  395. const colors = ['#ea9832', '#429fc8', '#b13331'];
  396. var option = {
  397. color: colors,
  398. tooltip: {
  399. formatter: (value) => {
  400. console.log(value)
  401. var name = value[0].axisValue;
  402. var style = "float: right;margin-left: 3px;"
  403. var text1 = ""
  404. var ulist = ['%', 'kW', '℃', '', '', '']
  405. for (var i in value) {
  406. var u = ulist[i];
  407. if (value[i].data == '') {
  408. continue
  409. }
  410. text1 += "<p>" + value[i].marker + value[i].seriesName + '<span style="' + style +
  411. '">' + value[i].data + u + '</span></p>';
  412. }
  413. return `<p>${name}</p>` + text1
  414. },
  415. trigger: 'axis',
  416. },
  417. grid: {
  418. top:'24%',
  419. left: '8%',
  420. right: '10%',
  421. bottom: '10%',
  422. // containLabel: true
  423. },
  424. legend: {
  425. data: ['SOC', '功率', '温度']
  426. },
  427. xAxis: [{
  428. type: 'category',
  429. axisTick: {
  430. alignWithLabel: true
  431. },
  432. splitNumber: 2,
  433. // prettier-ignore
  434. data: timeList
  435. }],
  436. yAxis: [{
  437. type: 'value',
  438. name: '℃/SOC',
  439. //data: [0,10,20,30,40,50,60,70,80,90,100],
  440. max: 100,
  441. min: 0,
  442. minInterval: 10,
  443. position: 'right',
  444. alignTicks: true,
  445. axisLine: {
  446. show: true,
  447. lineStyle: {
  448. color: colors[0]
  449. }
  450. },
  451. axisLabel: {
  452. formatter: '{value}'
  453. }
  454. },
  455. {
  456. type: 'value',
  457. name: 'kW',
  458. position: 'left',
  459. alignTicks: true,
  460. interval: interval,
  461. max: max,
  462. min: 0,
  463. axisLine: {
  464. show: true,
  465. lineStyle: {
  466. color: colors[1]
  467. }
  468. },
  469. axisLabel: {
  470. formatter: '{value}'
  471. }
  472. }
  473. ],
  474. series: [{
  475. name: 'SOC',
  476. type: 'line',
  477. symbolSize: 3,
  478. data: seriesList1
  479. },
  480. {
  481. name: '功率',
  482. type: 'line',
  483. symbolSize: 3,
  484. yAxisIndex: 1,
  485. data: seriesList2
  486. },
  487. {
  488. name: '温度',
  489. type: 'line',
  490. symbolSize: 3,
  491. yAxisIndex: 0,
  492. data: seriesList3
  493. }
  494. ]
  495. };
  496. console.log(option)
  497. this.myChart.setOption(option);
  498. },
  499. getchargingDetail() {
  500. uni.showLoading({
  501. title: "加载中",
  502. mask: true,
  503. })
  504. API.chargingDetail(this.id).then((res) => {
  505. uni.hideLoading();
  506. this.chargeDetail = res.data.chargingRecord;
  507. if(this.chargeDetail.chargeDetails){
  508. this.chargeDetails=JSON.parse(this.chargeDetail.chargeDetails)
  509. }
  510. this.userCouponObj = res.data.userCoupon;
  511. this.electricRecordList = res.data.electricRecordList
  512. if (res.data.electricRecordList && res.data.electricRecordList.length) {
  513. this.getPie(res.data.electricRecordList);
  514. } else {
  515. this.electricRecordListBl = false
  516. }
  517. }).catch(error => {
  518. uni.showToast({
  519. title: error,
  520. icon: "none"
  521. })
  522. })
  523. }
  524. }
  525. }
  526. </script>
  527. <style>
  528. page {
  529. background-color: #F7F7F7;
  530. }
  531. </style>
  532. <style lang="scss" scoped>
  533. .details-row-grey{
  534. background-color: rgba(245, 245, 245, 1);
  535. border-radius: 8px;
  536. padding: 20rpx 36rpx;
  537. margin-top:16rpx ;
  538. .details-row-grey-row{
  539. margin-top:4rpx ;
  540. .details-row-grey-span{
  541. float: right;
  542. }
  543. .details-row-grey-span2{
  544. text-decoration: line-through;
  545. }
  546. }
  547. }
  548. .slogan-4 {
  549. margin-top: 10px;
  550. display: flex;
  551. /* text-decoration: underline; */
  552. z-index: 999;
  553. text-align: center;
  554. position: fixed;
  555. /* top: 40px; */
  556. bottom: 180px;
  557. right: 20px;
  558. line-height: 20px;
  559. font-size: 16px;
  560. //background: linear-gradient(95deg, #FF9800, #FF5722);
  561. //box-shadow: 0 4rpx 24rpx 0 #FF5722;
  562. //padding-top: 8px;
  563. color: #fff;
  564. border-radius: 25px;
  565. flex-direction: column;
  566. align-items: flex-end;
  567. img{
  568. //height: 160rpx;
  569. width: 144rpx;
  570. }
  571. }
  572. .time-head {
  573. background: linear-gradient(180deg, rgba(0, 185, 98, 1) 0%, rgba(246, 248, 248, 1) 240px);
  574. padding-bottom: 20px;
  575. }
  576. .details-time {
  577. background: linear-gradient(180deg, #b7ebcf 0%, rgba(255, 255, 255, 1) 33%);
  578. .time {
  579. display: flex;
  580. justify-content: space-between;
  581. //border-bottom: 1px solid #E8E8E8;
  582. white-space: pre;
  583. .time1 {
  584. .time13 {
  585. font-size: 28rpx;
  586. font-weight: bold;
  587. }
  588. .time11 {
  589. font-size: 24rpx;
  590. }
  591. .time12 {
  592. font-size: 36rpx;
  593. color: rgba(0, 185, 98, 1);
  594. margin: 4rpx 0;
  595. font-weight: bold;
  596. text-align: center;
  597. }
  598. }
  599. .time2 {
  600. color: #B8B8B8;
  601. width: 90%;
  602. // align-items: center;
  603. // display: flex;
  604. // justify-content: space-between;
  605. display: flex;
  606. flex-direction: column;
  607. justify-content: center;
  608. align-items: center;
  609. .time21 {
  610. //border: 1px solid #B8B8B8;
  611. //border-radius: 100rpx;
  612. // line-height: 46rpx;
  613. // height: 48rpx;
  614. // width: 48rpx;
  615. color: rgba(51, 51, 51, 1);
  616. font-size: 28rpx;
  617. text-align: center;
  618. }
  619. .time22 {
  620. width: 80%;
  621. border-top: 1px solid #CFCFCF;
  622. }
  623. }
  624. }
  625. }
  626. .oldTextClassF {
  627. .oldTextjp18px {
  628. font-size: 36rpx !important;
  629. }
  630. .oldTextjp20px {
  631. font-size: 40rpx !important;
  632. }
  633. }
  634. .detailsBtn {
  635. margin: 16px;
  636. .detailsBtn-btn {
  637. border-color: #00B962 !important;
  638. border-radius: 8px !important;
  639. background: none !important;
  640. color: #00B962 !important;
  641. }
  642. }
  643. .details-title {
  644. margin-bottom: 16px;
  645. h4 {
  646. font-weight: bold;
  647. font-size: 16px;
  648. position: relative;
  649. padding-left: 10px;
  650. &::after {
  651. content: '';
  652. position: absolute;
  653. height: 12px;
  654. width: 4px;
  655. background-color: #27B148;
  656. left: 0;
  657. top: 5px;
  658. }
  659. }
  660. }
  661. .details-row {
  662. display: flex;
  663. justify-content: space-between;
  664. align-items: center;
  665. margin-top: 10px;
  666. p {
  667. color: #333;
  668. //width: 180rpx;
  669. min-width: 80px;
  670. }
  671. span {
  672. color: #101010;
  673. font-weight: bold;
  674. }
  675. }
  676. .chargeDetailsClass{
  677. span {
  678. color: rgb(51, 51, 51);
  679. font-weight: normal;
  680. }
  681. .details-row-sum{
  682. float: right;
  683. color: #888;
  684. font-size: 24rpx;
  685. }
  686. }
  687. .details,
  688. .details-time {
  689. margin: 32rpx;
  690. padding: 40rpx;
  691. background-color: #fff;
  692. border-radius: 8px;
  693. box-shadow: 0px 2px 6px 0px #00b96226;
  694. border: 1px solid rgba(255, 255, 255, 1);
  695. .details-head {
  696. display: flex;
  697. align-items: center;
  698. justify-content: center;
  699. h4 {
  700. font-size: 18px;
  701. font-weight: normal;
  702. margin-left: 4px;
  703. }
  704. }
  705. .details-price {
  706. margin-top: 28px;
  707. display: flex;
  708. align-items: flex-end;
  709. justify-content: center;
  710. h3 {
  711. font-size: 36px;
  712. color: #FF6200;
  713. line-height: 36px;
  714. margin: 0 4px;
  715. font-weight: normal;
  716. }
  717. span {
  718. font-size: 20px;
  719. color: #FF6200;
  720. }
  721. }
  722. .details-main {
  723. text-align: center;
  724. margin-bottom: 20px;
  725. p {
  726. color: #777;
  727. margin-top: 4px;
  728. }
  729. }
  730. }
  731. .qr-code {
  732. font-size: 24px;
  733. color: #666666;
  734. // position: absolute;
  735. right: 16px;
  736. }
  737. .buttonClass{
  738. display: flex;
  739. text-align: center;
  740. position: fixed;
  741. bottom: 0px;
  742. width: 100%;
  743. background: #fff;
  744. padding: 10px 0;
  745. .detailsBtn-btn{
  746. // margin:0 32rpx;
  747. }
  748. }
  749. </style>