charge.vue 45 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107
  1. <template>
  2. <view>
  3. <ujp-navbar title="开始充电" :is-back="isback">
  4. <view class="exchange " slot="right" @click="showmodal2=true">充电说明</view>
  5. </ujp-navbar>
  6. <view class="carImg" v-if="personInfo&&personInfo.userType!=2">
  7. <img @click="gotoLogin" src="@/assets/img/gologin/img.png">
  8. </view>
  9. <view v-else>
  10. <!-- 优惠 -->
  11. <view class="discounts" style="padding:0 36rpx;" v-if="bannerList.length">
  12. <u-swiper bg-color="#fff" mode="none" :img-mode="'scaleToFill'" height="160" :list="bannerList"
  13. @click="clickBanner" :name="'picUrl'">
  14. </u-swiper>
  15. </view>
  16. </view>
  17. <view class="recharge">
  18. <view class="title">
  19. <view class="left lefttitle">
  20. 请选择支付方式和充电金额
  21. </view>
  22. <!-- <view class="to-recharge" @click="show=true,recordId='',otherNum_f='',fee=0">
  23. 去充值
  24. </view> -->
  25. </view>
  26. <view class="card" @click="payValue=0" :class="{
  27. cardselect:payValue==0,
  28. cardno:payValue!=0
  29. }">
  30. <view class="cardgo">
  31. <view class="cardinfo">
  32. <img src="@/assets/img/riFill-check-fill.svg" alt="">
  33. </view>
  34. </view>
  35. <view class="title">先付后退</view>
  36. <p>充电结束后,余额自动退还;不享受<span style="color:#ff3d00;">会员充电折扣、平台各类优惠券</span>等福利</p>
  37. <view class="rechargeMain" v-show="payValue==0">
  38. <view class="recharge-item" @click="moneyActiveClass_n=(item.id)"
  39. :class="moneyActiveClass_n == item.id ? 'active' : ''" v-for="(item,index) in moneyListN"
  40. :key="item.id">
  41. {{item.name}}
  42. </view>
  43. </view>
  44. </view>
  45. <view class="card" @click="paySelectMethod(paySelectMethodValue)" :class="{
  46. cardselect:payValue==1||payValue==4,
  47. cardno:!(payValue==1||payValue==4)
  48. }">
  49. <view class="cardgo">
  50. <view class="cardinfo">
  51. <img src="@/assets/img/riFill-check-fill.svg" alt="">
  52. </view>
  53. </view>
  54. <view class="title">会员账户余额充电</view>
  55. <p v-show="!chargingFundsBl&&!(payValue==1||payValue==4)">当前余额{{user.balance>0?user.balance.toFixed(2):'0.00'}}元
  56. <span @click="paySelectShow()" style="color:#00B962;margin-left: 20px; ">去充值></span>
  57. </p>
  58. <p v-show="(payValue==1||payValue==4)">优先使用付款方式
  59. <span @click="paySelectShow()" style="color:#00B962;margin-left: 20px; ">去充值></span>
  60. </p>
  61. <view class="rechargeBalance" v-if="chargingFundsBl" >
  62. <view class="rechargeBalanceItem">账户余额{{user.balance>0?user.balance.toFixed(2):'0.00'}}元</view>
  63. <view class="rechargeBalanceItem" v-if="chargingFundsBl">|</view>
  64. <view class="rechargeBalanceItem" v-if="chargingFundsBl" >充电金{{user.chargingFunds>0?user.chargingFunds.toFixed(2):'0.00'}}元</view>
  65. </view>
  66. <view class="rechargeMain" v-if="chargingFundsBl" v-show="payValue==1||payValue==4">
  67. <view
  68. class=" recharge-item " @click="paySelectMethodValue=1" :class="payValue == 1? 'active' : ''" >
  69. 账户余额
  70. </view>
  71. <view
  72. class=" recharge-item " @click="paySelectMethodValue=4" :class="payValue == 4? 'active' : ''">
  73. 充电金
  74. </view>
  75. </view>
  76. <p v-if="chargingFundsBl" v-show="(payValue==1||payValue==4)" >充电时长</p>
  77. <view class="rechargeMain" v-show="payValue==1||payValue==4">
  78. <view @click="moneyClick(-1)" :class="!otherNum&&moneyActiveClass == -1? 'active' : ''"
  79. class=" recharge-item ">
  80. 充满自停
  81. </view>
  82. <view class="recharge-item" @click="moneyClick(item.id)"
  83. :class="!otherNum&&moneyActiveClass == item.id ? 'active' : ''"
  84. v-for="(item,index) in moneyList" :key="item.id">
  85. {{item.name}}元
  86. </view>
  87. <view class="recharge-item recharge-item2" :class="otherNum ? 'active' : ''" style="
  88. padding: 1px 0px;">
  89. <ujp-input v-model="otherNum" @input="ckInput" @focus="focus" type="digit" placeholder="其他金额" />
  90. </view>
  91. </view>
  92. </view>
  93. <view class="card" v-for="(companyItem,i) in companyList" :key="i" @click="paySelectMethod(2,companyItem)"
  94. :class="{
  95. cardselect:(payValue==2&&companyItem.enterpriseAccount.id==companyPaySelect.enterpriseAccount.id),
  96. cardno:!(payValue==2&&companyItem.enterpriseAccount.id==companyPaySelect.enterpriseAccount.id)
  97. }">
  98. <view class="cardgo">
  99. <view class="cardinfo">
  100. <img src="@/assets/img/riFill-check-fill.svg" alt="">
  101. </view>
  102. </view>
  103. <view class="title">{{companyItem.enterpriseAccount.entName}}账户余额充电</view>
  104. <p>余额{{companyItem.enterpriseAccount.totalAmount>0?companyItem.enterpriseAccount.totalAmount.toFixed(2):'0.00'}}元
  105. <span
  106. v-show="(payValue==2&&companyItem.enterpriseAccount.id==companyPaySelect.enterpriseAccount.id)"
  107. @click="companyCarSelectBl=true"
  108. style="color:#00B962;margin-left: 40rpx; ">{{companyPaySelect.car?companyPaySelect.car+'(更换)':'选择充电车辆>'}}</span>
  109. <span style="margin-left: 40rpx; "
  110. v-show="(payValue==2&&companyItem.enterpriseAccount.id==companyPaySelect.enterpriseAccount.id)"></span>
  111. </p>
  112. <view class="rechargeMain"
  113. v-show="(payValue==2&&companyItem.enterpriseAccount.id==companyPaySelect.enterpriseAccount.id)">
  114. <view @click="moneyClick(-1)" :class="!otherNum&&moneyActiveClass == -1? 'active' : ''"
  115. class=" recharge-item ">
  116. 充满自停
  117. </view>
  118. <view class="recharge-item recharge-item2" :class="otherNum ? 'active' : ''" style="
  119. padding: 1px 0px;">
  120. <ujp-input v-model="otherNum" @input="ckInput" @focus="focus" type="digit" placeholder="其他金额" />
  121. </view>
  122. </view>
  123. </view>
  124. <!-- 优惠券2 -->
  125. <view v-if="personInfo.userType == '1'&&0" class="greyTips" >
  126. 车主注册会员可享受至少5%优惠,并可快速进入会员注册页面
  127. </view>
  128. <!-- 入场车辆 -->
  129. <view class="member" :class="{
  130. 'cost-explain2':!submitForm.carNumber
  131. }">
  132. <view class="actively ">
  133. 入场车辆
  134. </view>
  135. <view class="type" @click="carDet()" >
  136. {{submitForm.carNumber?submitForm.carNumber:'填车牌号可减免部分停车费用'}}
  137. <img v-if="!submitForm.carNumber" src="@/assets/static/img/riLine-edit-box-line2.svg" alt="">
  138. </view>
  139. </view>
  140. <view class="member">
  141. <view class="actively">
  142. 优惠券
  143. </view>
  144. <view class="right" v-if="payValue=='0'">
  145. 先付后退不享受会员优惠活动
  146. </view>
  147. <view class="right" v-else-if="payValue=='2'">
  148. 企业单位用户不可使用优惠券
  149. </view>
  150. <view class="right" @click="chooseCoupons" v-else-if="selectObj.id">
  151. {{selectObj.threshold == 0 ? '无门槛' : '满'+selectObj.threshold.toFixed(2)+'元可用'}},
  152. <span class="price"
  153. v-if="selectObj.classify == '1'||selectObj.classify == '3'">抵扣{{selectObj.value.toFixed(2)}}元</span>
  154. <span class="price" v-if="selectObj.classify == '2'">
  155. <template v-if="selectObj.value==0">
  156. 服务费全免
  157. </template>
  158. <template v-else>
  159. 服务费{{selectObj.value}}折
  160. </template>
  161. </span>
  162. <view class="iconfont">&#xe600;</view>
  163. </view>
  164. <view class="right" @click="chooseCoupons" v-else-if="listlength">
  165. 未选择,剩余{{listlength}}张优惠券
  166. <view class="iconfont">&#xe600;</view>
  167. </view>
  168. <view class="right" @click="chooseCoupons" v-else>
  169. 无优惠券
  170. <view class="iconfont">&#xe600;</view>
  171. </view>
  172. </view>
  173. <!-- 会员活动 -->
  174. <view class="member">
  175. <view class="actively ">
  176. 会员活动
  177. </view>
  178. <view class="type" v-if="payValue=='0'">
  179. 先付后退不享受会员优惠活动
  180. </view>
  181. <view class="type" v-else-if="payValue=='2'">
  182. 企业单位用户不享受会员优惠活动
  183. </view>
  184. <template v-else-if="userCardBool">
  185. <view class="type" v-if="!vin" style="color: red;">
  186. vin码不一致
  187. </view>
  188. <view class="type" v-else-if="canUse">
  189. <template v-if="userCard.cardType==4">
  190. {{userCard.cardName}}
  191. {{userCard.monthlyRentName}}
  192. </template>
  193. <template v-else>
  194. {{userCard.classify==1?'折扣卡':''}}
  195. {{userCard.classify==2?'服务费'+(userCard.serviceFeeDiscountRate/10)+'折卡':''}}
  196. </template>
  197. </view>
  198. <view class="type" style="color: red;" v-else>
  199. 此充电站不支持折扣卡
  200. </view>
  201. </template>
  202. <template v-else>
  203. <view class="type" style="color:#999999" @click="gotoUrl('pages/discountCard/productDetails')">
  204. 未使用服务费6折卡<view class="iconfont">&#xe600;</view>
  205. </view>
  206. </template>
  207. </view>
  208. <view v-if="(cardList.length||userCard)&&(payValue=='1'||payValue=='4')" class="cardListView">
  209. <view class="cardListItemTitle" v-if="cardList.length>1" >点击切换其他卡</view>
  210. <view class="cardListItem card" v-for="(item,i) in cardList"
  211. :key="i" :class="{
  212. cardselect:userCard&&userCard.id==item.id,
  213. cardno:(!userCard||userCard.id!=item.id)
  214. }" @click="userCardBtn(item)" >
  215. <view class="cardgo">
  216. <view class="cardinfo">
  217. <img src="@/assets/img/riFill-check-fill.svg" alt="">
  218. </view>
  219. </view>
  220. <view class="cardListName" >
  221. {{item.cardName}}
  222. </view>
  223. <view class="cardListText" v-if="item.classify==1" >
  224. <view>充电服务费全免</view>
  225. <view>
  226. {{thisendTime(item.endTime)}}到期
  227. </view>
  228. </view>
  229. <view class="cardListText" v-if="item.classify==2" >
  230. <view>
  231. 已用{{item.chargedDegree?item.chargedDegree.toFixed(0):0.00}}度 / 共{{item.chargeDegreeLimit}}度
  232. </view>
  233. <view>
  234. {{thisendTime(item.endTime)}}到期
  235. </view>
  236. </view>
  237. </view>
  238. <p>点击可<span style="color:red">取消</span>使用<span style="color:#00b962">“服务费折扣卡”</span></p>
  239. </view>
  240. </view>
  241. <view class="botton">
  242. <view style=" display: flex;
  243. justify-content: center;">
  244. <u-checkbox-group >
  245. <u-checkbox
  246. active-color="green" shape="circle"
  247. v-model="contractSignTime"
  248. >我已阅读并同意</u-checkbox><span style="color: rgba(0, 185, 98, 1);" @click="gotoUrl('pages/article/details?code=YHXY')">《优电联盟用户使用协议》</span>
  249. </u-checkbox-group>
  250. </view>
  251. <button class="bottonBtn" @click="submit">开始充电</button>
  252. </view>
  253. <u-modal v-model="showmodal2" confirm-text="知道了" title="充电说明">
  254. <view style="padding: 10px;font-size: 32rpx;">
  255. 1.最终结算金额将以实际充入电量为准;<br />
  256. 2.充满自停模式需要您的余额不低于10元才可充电;<br />
  257. 3.充电金额请输入1元~500元的整数。实际充电金额与所选金额会略有出入(一般误差约几分钱);<br />
  258. 4.完成充电后,在满足条件的情况下,优惠券自动抵扣;提前结束充电则不使用优惠券并返还至您的卡包。<br />
  259. 5.先付后退模式,无法享受平台会员的服务费折扣、优惠券等优惠活动。<br />
  260. </view>
  261. </u-modal>
  262. <!-- <view class="but-box" style="margin-bottom: 20px;">
  263. <u-button
  264. style=" background-color: rgba(0, 185, 98, 100);
  265. color: rgba(255, 255, 255, 100);
  266. font-size: 16px;
  267. text-align: center;"
  268. @click="submit" shape="circle">开始充电</u-button>
  269. </view> -->
  270. <u-modal v-model="showmodal" :show-cancel-button="true" title="余额不足" confirm-text="前往充值"
  271. content="账户余额不足,充值成功后开始充电" @confirm="show=true"></u-modal>
  272. <u-popup v-model="companyCarSelectBl" :closeable="true" mode="bottom" border-radius="30">
  273. <view class="indexData5content">
  274. <view class="contentTitle">
  275. 选择充电车辆
  276. </view>
  277. <view
  278. v-if="companyPaySelect&&(companyPaySelect.carList&&companyPaySelect.carList.length==0||companyPaySelect.carList==null)"
  279. style=" text-align: center;">
  280. <img src="@/assets/static/img/暂无数据-缺省页.png" alt="">
  281. <p class="oldTextjp2">未分配车辆,请联系管理员</p>
  282. </view>
  283. <scroll-view v-else scroll-y="true" style="height: 520rpx;">
  284. <view style="padding-bottom: 30rpx;">
  285. <u-radio-group v-model="companyPaySelect.car" size="42">
  286. <view class="contentbody">
  287. <view v-for="(item,index) in companyPaySelect.carList"
  288. @click="companyPaySelect.car=(item.carNum),companyCarSelectBl = false;"
  289. class="contentItem" :key="index">
  290. <view class="span1">{{item.carNum}}</view>
  291. <view class="span2">
  292. <span v-show="!item.vin" style="color:#fff">aaa</span>
  293. <img v-show="item.vin" style="vertical-align: bottom;" width="20"
  294. src="@/assets/img/riLine-link-m.png" />
  295. <span v-show="item.vin" style="color:#999999 ">已关联Vin码</span>
  296. </view>
  297. <view class="span3">
  298. <u-radio style=" overflow: inherit;"
  299. @change="companyPaySelect.car=(item.carNum),companyCarSelectBl = false;"
  300. :name="item.carNum">
  301. <span style="color:#fff">.</span>
  302. </u-radio>
  303. </view>
  304. </view>
  305. </view>
  306. </u-radio-group>
  307. </view>
  308. </scroll-view>
  309. </view>
  310. </u-popup>
  311. <!-- 弹窗2 -->
  312. <!-- 弹窗 -->
  313. <template>
  314. <view>
  315. <u-popup v-model="show" mode="bottom">
  316. <view class="recharge" style="padding-bottom: 0;">
  317. <view class="title lefttitle ">选择充值金额
  318. <span class=" rightspan">当前余额
  319. <span style="color: red;">{{user.balance>0?user.balance.toFixed(2):'0.00'}}元</span>
  320. </span>
  321. </view>
  322. <p style="color: red; font-size: 28rpx;" v-show="selectItem.amountRemark">
  323. {{selectItem.amountRemark}}代金券,退余额时将扣除已使用的优惠券金额
  324. </p>
  325. <view class="rechargeMain">
  326. <view class="recharge-item"
  327. :class="!otherNum_f&&moneyActiveClass_f == item.id ? 'active' : ''"
  328. v-for="(item,index) in moneyList_f" :key="item.id" @click="moneyClick_f(item.id,item)">
  329. {{item.amountDesc?item.amountDesc:item.rechargeAmount+'元'}}
  330. <view class="amount" v-if="item.amountRemark">{{item.amountRemark}}</view>
  331. </view>
  332. </view>
  333. <p class="oldTextjp2" oldstyle="font-size:16px">其他充值金额</p>
  334. <view style="margin-bottom: 32px;">
  335. <view :class="otherNum_f? 'active' : ''" class="recharge-input self-stop"
  336. style="height: 100%;width: 100%;margin-bottom: 8px;">
  337. <ujp-input v-model="otherNum_f" @input="ckInput_f" @focus="focus" type="digit"
  338. :border="true" />
  339. </view>
  340. <view style="color: rgba(153, 153, 153, 100);
  341. font-size: 12px;
  342. text-align: left;
  343. font-family: AlibabaPuHui-regular;"><span style="color:red">*</span>金额范围为1元-500元</view>
  344. </view>
  345. <view class="recharge-btn transactionClass" style="margin-top: 60px;">
  346. <view>
  347. <u-checkbox-group>
  348. <u-checkbox
  349. active-color="green" v-model="checked" shape="circle"></u-checkbox>
  350. </u-checkbox-group>
  351. 我已阅读并同意<span @click="gotoUrl('pages/article/details?code=CZXY')"
  352. style="color:#00B962">《充值协议》</span>
  353. </view>
  354. <u-button class="success-btn" shape="circle" type="success" @click="rechargeNow"
  355. style="margin-top: 12px;margin-bottom: 16px;">
  356. <span>微信充值</span>
  357. </u-button>
  358. </view>
  359. </view>
  360. </u-popup>
  361. </view>
  362. </template>
  363. <u-modal v-model="contractSignTimeBl"
  364. :show-confirm-button="true" :show-title="false" :show-cancel-button="true" confirm-color="rgba(0, 185, 98, 1)"
  365. cancel-text="放弃充电" confirm-text="同意并充电" @confirm="contractSignTimeSubmit()"
  366. >
  367. <view class="slot-content" style="padding:40rpx; text-align: center;margin-top: 10rpx;">
  368. 我已阅读并同意<br/>
  369. <span style="color: rgba(0, 185, 98, 1);" @click="gotoUrl('pages/article/details?code=YHXY')">《优电联盟用户使用协议》</span>
  370. </view>
  371. </u-modal>
  372. <uMessage ref="uMessage" :stationId="stationId" :deviceNo="submitForm.deviceNo" :channelNo="submitForm.channelNo" ></uMessage>
  373. <quickRegistration v-if="personInfo.userType == '1'" @login="loginMethod" :carNum="carNumber" ></quickRegistration>
  374. </view>
  375. </template>
  376. <script>
  377. import uMessage from '@/components/UMessage.vue'
  378. import * as API from '@/apis/chargeProcess.js'
  379. import * as API_index from '@/apis/index.js'
  380. import * as userApi from '@/apis/user.js'
  381. import * as newsApi from '@/apis/news.js'
  382. import * as API_finance from '@/apis/finance.js'
  383. import {
  384. wxPayJs
  385. } from '@/utils/wxpay'
  386. import {
  387. newDate,daysDistance
  388. } from '@/utils'
  389. import * as Pay from '@/apis/weixin.js'
  390. // import { contentStore } from 'core/core.model'
  391. import quickRegistration from '@/components/QuickRegistration.vue'
  392. export default {
  393. components: {
  394. quickRegistration,uMessage
  395. },
  396. data() {
  397. return {
  398. fee: 0,
  399. recordId: "",
  400. show2: false,
  401. stationId: "",
  402. elderMode: false,
  403. isback: true,
  404. show: false,
  405. moneyActiveClass_n: "50",
  406. moneyActiveClass: "-1",
  407. moneyActiveClass_f: "-1",
  408. contractSignTime:"",
  409. contractSignTimeBl:false,
  410. detail: {},
  411. couponsuse: '',
  412. showmodal: false,
  413. showmodal2: false,
  414. //提交信息
  415. //提交信息
  416. submitForm_f: {
  417. //paytype:'YE',
  418. },
  419. submitForm: {
  420. deviceNo: '',
  421. channelNo: '',
  422. carNumber: '',
  423. chargeStrategy: 2,
  424. amount: 0
  425. //paytype:'YE',
  426. },
  427. uuid: 0,
  428. user: {},
  429. companyCarSelectBl: false,
  430. companyList: [
  431. ],
  432. companyPaySelect: {
  433. id: "",
  434. car: "aaa"
  435. },
  436. otherNum_f: '',
  437. otherNum: '',
  438. moneyList_f: [],
  439. paySelect: true,
  440. payName: "",
  441. payValueTemp: 0,
  442. payValue: 0,
  443. payList: [{
  444. name: "先付后退",
  445. tips: "游客不享受平台优惠活动",
  446. value: "1",
  447. select: false,
  448. }, {
  449. name: "个人账户支付",
  450. tips: "可使用折扣卡、优惠券、折扣卷等",
  451. value: "2",
  452. select: false,
  453. }, {
  454. name: "单位账户支付",
  455. tips: "账户余额:99999元",
  456. value: "3",
  457. select: false,
  458. }, {
  459. name: "充电金",
  460. tips: "账户余额:99999元",
  461. value: "4",
  462. select: false,
  463. }, {
  464. name: "充电金",
  465. tips: "账户余额:99999元",
  466. value: "4",
  467. select: false,
  468. }],
  469. moneyList: [
  470. {
  471. id: '10',
  472. name: '10'
  473. },
  474. {
  475. id: '20',
  476. name: '20'
  477. },
  478. {
  479. id: '50',
  480. name: '50'
  481. },
  482. {
  483. id: '100',
  484. name: '100'
  485. },
  486. ],
  487. moneyListN: [{
  488. id: '10',
  489. name: '10元'
  490. },
  491. {
  492. id: '20',
  493. name: '20元'
  494. },
  495. {
  496. id: '50',
  497. name: '50元'
  498. }
  499. ],
  500. userCard: null,
  501. canUse: false,
  502. selectObj: {},
  503. value: "",
  504. // 优惠券
  505. listlength: 0,
  506. vin: true,
  507. bannerList: [],
  508. checked: true,
  509. selectItem: {},
  510. personInfo: {},
  511. carNumber: "",
  512. show3: false,
  513. cardList:[],
  514. startMode:"",
  515. paySelectMethodValue:1,
  516. chargingFundsBl:false,
  517. id:""
  518. }
  519. },
  520. computed: {
  521. userCardBool() {
  522. if (this.userCard) {
  523. var date = new Date().getTime()
  524. var reg = new RegExp('-', 'gi')
  525. var str = this.userCard.endTime;
  526. //console.log(str.replace(reg,'/'))
  527. var date2 = new Date(str.replace(reg, '/')).getTime();
  528. if (date < date2) {
  529. return true;
  530. }
  531. }
  532. return false
  533. }
  534. },
  535. onLoad(op) {
  536. if(op.startMode){
  537. this.startMode=op.startMode
  538. }
  539. if(op.id){
  540. this.id=op.id
  541. }
  542. this.uuid = new Date().getTime();
  543. this.stationId = op.stationId;
  544. if (op.deviceNo) {
  545. this.submitForm.deviceNo = op.deviceNo;
  546. this.submitForm.channelNo = op.gun;
  547. this.carNumber = op.carNumber;
  548. this.submitForm.carNumber = op.carNumber;
  549. this.carhelp.setGunIdCharge(this.submitForm);
  550. }
  551. if (op.vin == 'no') {
  552. this.vin = false;
  553. }
  554. if (op.isback) {
  555. this.isback = false;
  556. }
  557. this.useCoupon()
  558. var couponsuse = "充电结束后满足金额即可生效,提前结束充电则优惠券不生效并返回"
  559. // img="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
  560. if (couponsuse) {
  561. this.couponsuse = couponsuse
  562. }
  563. this.init()
  564. },
  565. onReady() {
  566. this.getBannerInfo("charge-start")
  567. this.elderMode = this.carhelp.get('getElderModeClass') == '长辈模式';
  568. if (this.elderMode)
  569. this.theme('elder')
  570. else
  571. this.theme('standard')
  572. this.loginMethod()
  573. //this.uMessageShow()
  574. },
  575. onShow() {
  576. this.personInfo = this.carhelp.getPersonInfo()
  577. var obj = this.carhelp.get("chooseCoupons");
  578. if (obj) {
  579. if (obj.uuid == this.uuid) {
  580. this.selectObj = obj.selectObj;
  581. }
  582. }
  583. this.getHomePage()
  584. },
  585. methods: {
  586. uMessageShow(){
  587. this.$refs.uMessage.bShow()
  588. },
  589. userCardBtn(item){
  590. if(this.userCard&&this.userCard.id==item.id){
  591. this.userCard=null
  592. uni.showToast({
  593. title: "已经取消选中"
  594. })
  595. }else{
  596. this.userCard=item
  597. }
  598. },
  599. carDet(t) {
  600. if(this.submitForm.carNumber){
  601. return
  602. }
  603. this.onShowRole = true
  604. var url="/pages/user/car/carDet?jpcode=jp_team51_charge_id:A_" + this.id
  605. uni.navigateTo({
  606. url: url
  607. })
  608. },
  609. loginMethod(form){
  610. this.personInfo = this.carhelp.getPersonInfo()
  611. // if(plus){
  612. // this.userCard=plus.userCard;
  613. // }
  614. if (this.personInfo && this.personInfo.userType == "1") {
  615. this.show3 = true
  616. }
  617. this.personInfo = this.carhelp.getPersonInfo()
  618. if (this.personInfo.userType == "1") {
  619. this.payValueTemp = 0;
  620. this.payValue = 0;
  621. } else {
  622. this.payValueTemp = 1;
  623. var payValueDefault = this.carhelp.get("payValueDefault");
  624. if(this.user&&this.user.chargingFunds>0){
  625. payValueDefault="4"
  626. }
  627. this.payValue = 1;
  628. if (payValueDefault == "1" || payValueDefault == "0") {
  629. this.payValue = payValueDefault;
  630. }
  631. if (payValueDefault == "1" || payValueDefault == "4") {
  632. this.paySelectMethodValue = payValueDefault;
  633. this.payValue = payValueDefault;
  634. }
  635. if(payValueDefault==4){
  636. this.chargingFundsBl=true;
  637. }
  638. }
  639. this.payName = this.payList[this.payValue].name;
  640. this.useCoupon()
  641. if(form){
  642. this.submitForm.carNumber=form.carNumber
  643. }
  644. },
  645. thisdaysDistance(endTime){
  646. var date=new Date()
  647. var date2=newDate(endTime);
  648. return daysDistance(date,date2)
  649. },
  650. getChargeList() {
  651. uni.showLoading({
  652. title: "加载中",
  653. mask: true,
  654. })
  655. API_index.personCardList({
  656. }).then((res) => {
  657. uni.hideLoading();
  658. this.cardList=res.data.cardList
  659. }).catch(error => {
  660. uni.showToast({
  661. title: error,
  662. icon: "none"
  663. })
  664. })
  665. },
  666. gotoLogin() {
  667. this.onShowRole = true
  668. if (false) {
  669. } else {
  670. uni.navigateTo({
  671. url: "/pages/login/login?jpcode=jp_team51_charge_id:A_" + this.submitForm.deviceNo
  672. })
  673. }
  674. },
  675. paySelectShow() {
  676. if (this.personInfo.userType == "1") {
  677. } else {
  678. this.show = true;
  679. this.recordId = '';
  680. this.otherNum_f = '';
  681. this.fee = 0
  682. }
  683. },
  684. //companyPaySelect
  685. paySelectCompany() {
  686. },
  687. paySelectMethod(value, company) {
  688. console.log(value)
  689. if (this.personInfo.userType == "1") {
  690. uni.showToast({
  691. title: "游客模式只支持“先付后退”"
  692. })
  693. } else {
  694. this.payValue = value
  695. if (value == 2) {
  696. this.companyPaySelect = company
  697. if (company.carList && company.carList.length == 1) {
  698. //this.companyPaySelect=entRegList[0]
  699. this.companyPaySelect.car = company.carList[0].carNum;
  700. }
  701. }
  702. this.$forceUpdate()
  703. }
  704. },
  705. moneyClick_f(index, item) {
  706. this.otherNum_f = '';
  707. this.moneyActiveClass_f = index;
  708. if (item) {
  709. this.selectItem = item;
  710. // if(item.imgUrl){
  711. // this.selectImg=item
  712. // }
  713. }
  714. },
  715. rechargeNow2() {
  716. //先付后退
  717. this.submitForm_f = {};
  718. var fee = 0;
  719. this.submitForm_f.amount = this.fee;
  720. uni.showLoading({
  721. title: "加载中",
  722. mask: true,
  723. })
  724. if (this.recordId) {
  725. this.submitForm_f.recordId = this.recordId
  726. }
  727. //(this.submitForm)
  728. this.wxpy()
  729. },
  730. rechargeNow() {
  731. if (!this.checked) {
  732. uni.showToast({
  733. title: "请同意《充值协议》后进行充值"
  734. })
  735. return
  736. }
  737. this.submitForm_f = {};
  738. var fee = 0;
  739. if (!this.otherNum_f) {
  740. this.submitForm_f.chargingMarketingId = this.selectItem.id;
  741. fee = this.selectItem.rechargeAmount
  742. } else {
  743. this.submitForm_f.amount = this.otherNum_f
  744. fee = this.otherNum_f
  745. }
  746. if (this.fee) {
  747. var thisfee = this.fee
  748. if (this.fee > parseFloat(fee)) {
  749. uni.showToast({
  750. title: `最少充值${thisfee}元才能启动充电`
  751. })
  752. return
  753. }
  754. }
  755. uni.showLoading({
  756. title: "加载中",
  757. mask: true,
  758. })
  759. if (this.recordId) {
  760. this.submitForm_f.recordId = this.recordId
  761. }
  762. //(this.submitForm)
  763. this.wxpy()
  764. },
  765. wxpy() {
  766. var obj = {
  767. ...this.submitForm_f
  768. }
  769. if (obj.amount) {
  770. for (var i in this.moneyList_f) {
  771. var item = this.moneyList_f[i]
  772. if (item.rechargeAmount == obj.amount) {
  773. delete obj.amount;
  774. obj.chargingMarketingId = item.id
  775. break
  776. }
  777. }
  778. }
  779. Pay.wxpay(obj).then((response) => {
  780. if (!response.result) {
  781. uni.showToast({
  782. title: response.message
  783. })
  784. return
  785. }
  786. var data = response.data
  787. uni.hideLoading()
  788. //("Pay+"+new Date().getTime())
  789. wxPayJs(data);
  790. }).catch(error => {
  791. uni.showToast({
  792. title: error
  793. })
  794. })
  795. },
  796. focus() {
  797. console.log(0)
  798. uni.pageScrollTo({
  799. scrollTop: 999999,
  800. duration: 0
  801. })
  802. },
  803. init() {
  804. var data = {
  805. type: 2,
  806. };
  807. API_finance.marketingData(data).then((res) => {
  808. this.moneyList_f = res.data.chargingMarketingList
  809. if (this.moneyList_f.length > 0) {
  810. this.selectItem = this.moneyList_f[0];
  811. this.moneyActiveClass_f = this.moneyList_f[0].id
  812. //(this.moneyActiveClass)
  813. }
  814. var list = res.data.priceList
  815. if (list.length) {
  816. this.moneyListN = [];
  817. for (var i in list) {
  818. this.moneyListN.push({
  819. id: list[i],
  820. name: list[i] + "元"
  821. })
  822. }
  823. this.moneyActiveClass_n = list[0]
  824. }
  825. }).catch(error => {
  826. uni.showToast({
  827. title: error
  828. })
  829. })
  830. },
  831. clickBanner(index) {
  832. var mod = this.bannerList[index]
  833. if (mod.linkUrl.indexOf('http') == 0) {
  834. window.location = mod.linkUrl;
  835. } else if (mod.linkUrl.indexOf('#/') == 0) {
  836. if (mod.linkUrl.indexOf("?") == -1) {
  837. mod.linkUrl += '?';
  838. }
  839. //window.location=mod.linkUrl;
  840. var url = mod.linkUrl.split("#")[1]
  841. //window.location = mod.clickUrl;
  842. uni.navigateTo({
  843. url: url
  844. })
  845. } else if (mod.linkUrl == '#' || mod.linkUrl == '') {
  846. } else {
  847. uni.navigateTo({
  848. url: mod.linkUrl
  849. })
  850. }
  851. },
  852. getBannerInfo(code) {
  853. newsApi.getBannerInfo(code).then((res) => {
  854. this.bannerList = res.data;
  855. // document.getElementsByClassName("uni-swiper-wrapper")[0].parentNode.style="background-color: rgb(255, 255, 255); height: 300px;"
  856. }).catch(error => {
  857. uni.showToast({
  858. title: error,
  859. icon: "none"
  860. })
  861. })
  862. },
  863. getPile() {
  864. },
  865. theme(type) {
  866. if (type == 'elder') {
  867. document.getElementsByTagName('body')[0].setAttribute('data-theme', type);
  868. } else {
  869. document.getElementsByTagName('body')[0].setAttribute('data-theme', type);
  870. }
  871. },
  872. chooseCoupons() {
  873. this.submitInit()
  874. this.gotoUrl('pages/user/coupon/chooseCoupons?uuid=' + this.uuid + "&amount=" + this.submitForm.amount +
  875. "&stationId=" + this.stationId)
  876. },
  877. ckInput_f(text) {
  878. if (text.indexOf('.') > 0) {
  879. var k = text.split(".")[1]
  880. if (k.length >= 3) {
  881. this.$nextTick(() => {
  882. text = parseFloat(text).toFixed(2);
  883. this.otherNum_f = text
  884. })
  885. }
  886. }
  887. var t = Number(text);
  888. if (t < 1) {
  889. this.$nextTick(() => {
  890. this.otherNum_f = '';
  891. })
  892. }
  893. if (t > 500) {
  894. this.$nextTick(() => {
  895. this.otherNum_f = 500;
  896. })
  897. }
  898. },
  899. ckInput(text) {
  900. if (text.indexOf('.') > 0) {
  901. this.$nextTick(() => {
  902. this.otherNum = text.substring(0, text.indexOf('.'))
  903. uni.showToast({
  904. title: "请输入正整数"
  905. })
  906. })
  907. }
  908. var t = Number(text);
  909. if (t < 1) {
  910. this.$nextTick(() => {
  911. this.otherNum = '';
  912. })
  913. }
  914. if (t > 500) {
  915. this.$nextTick(() => {
  916. this.otherNum = 500;
  917. })
  918. }
  919. this.selectJudge();
  920. },
  921. moneyClick(index) {
  922. this.otherNum = ''
  923. this.moneyActiveClass = index;
  924. this.selectJudge();
  925. },
  926. selectJudge() {
  927. this.submitInit()
  928. if (this.submitForm.amount == 0) {
  929. return
  930. }
  931. if (this.selectObj.id && this.selectObj.threshold > this.submitForm.amount) {
  932. uni.showToast({
  933. title: "请重新选择优惠券"
  934. })
  935. this.selectObj = {}
  936. }
  937. },
  938. radioChange(e) {},
  939. confirm() {
  940. ////(JSON.stringify(this.submitForm))
  941. if (this.payValue == 1||this.payValue == 4) {
  942. if (this.selectObj.id) {
  943. this.submitForm.userCouponId = this.selectObj.id
  944. }
  945. if (this.userCardBool && this.canUse && this.vin) {
  946. this.submitForm.userCardId = this.userCard.id
  947. }
  948. } else {
  949. this.submitForm.userCouponId = ""
  950. this.submitForm.userCardId = ""
  951. }
  952. if (this.payValue == 2) {
  953. if (!this.companyPaySelect.car) {
  954. uni.showToast({
  955. title: '请选择充车辆'
  956. })
  957. return
  958. }
  959. this.submitForm.vipUserId = this.companyPaySelect.vipUser.id;
  960. this.submitForm.carNumber = this.companyPaySelect.car;
  961. } else {
  962. this.submitForm.carNumber = this.carNumber;
  963. this.submitForm.vipUserId = ""
  964. }
  965. uni.showLoading({
  966. title: "加载中",
  967. mask: true,
  968. })
  969. this.carhelp.set("payValueDefault", this.payValue);
  970. if (this.payValue == 2) {
  971. this.carhelp.set("payValueDefault3", {
  972. carNumber: this.companyPaySelect.car,
  973. companyId: this.companyPaySelect.enterpriseAccount.id,
  974. });
  975. }
  976. if(this.startMode){
  977. this.submitForm.startMode=this.startMode; //判断充电入口
  978. }
  979. //this.submitForm.deviceNo = this.detail.deviceNo;
  980. API.startCarCharging(this.submitForm).then((res) => {
  981. //(JSON.stringify(this.res))
  982. if(res.data.status == "4"){
  983. this.uMessageShow()
  984. }else if (res.data.status == "5") {
  985. uni.hideLoading()
  986. if (this.submitForm.payType == "1") {
  987. this.recordId = res.data.recordId;
  988. this.fee = res.data.fee;
  989. this.rechargeNow2() //先付后退
  990. } else {
  991. if (this.payValue == 2) {
  992. uni.showToast({
  993. title: "余额不足,请联系企业单位人员"
  994. })
  995. } else {
  996. this.showmodal = true;
  997. this.recordId = res.data.recordId;
  998. var fee = res.data.fee;
  999. this.fee = (fee - this.user.balance).toFixed(2);
  1000. this.otherNum_f = this.fee;
  1001. }
  1002. }
  1003. } else {
  1004. this.gotoUrl("pages/searchPile/chargeProcess/dcCharging?id=" + res.data.recordId);
  1005. }
  1006. }).catch((error)=> {
  1007. uni.hideLoading()
  1008. if (error == '用户账户余额不足!') {
  1009. } else {
  1010. uni.showToast({
  1011. title: error
  1012. })
  1013. }
  1014. })
  1015. },
  1016. thisendTime(endTime){
  1017. if(endTime){
  1018. var reg=new RegExp('-','gi')
  1019. var str=endTime.substring(0,10).replace(reg,'.')
  1020. return str
  1021. }
  1022. return ''
  1023. },
  1024. getHomePage() {
  1025. uni.showLoading({
  1026. title: "加载中",
  1027. mask: true,
  1028. })
  1029. API.userCard({
  1030. stationId: this.stationId
  1031. }).then((res) => {
  1032. this.userCard = res.data.regUserCard
  1033. this.canUse = res.data.canUse
  1034. //this.user = res.data
  1035. API.personalCenter({
  1036. stationId: this.stationId
  1037. }).then((res2) => {
  1038. this.user = res2.data
  1039. this.contractSignTime=res2.data.regUser.contractSignTime
  1040. if(this.user.chargingFunds){
  1041. this.chargingFundsBl=true;
  1042. }
  1043. var entRegList = res2.data.entRegList;
  1044. this.companyList = []
  1045. for (var i in entRegList) {
  1046. var item = entRegList[i]
  1047. if (item.enterpriseAccount) {
  1048. this.companyList.push(item)
  1049. }
  1050. }
  1051. this.isReady = true;
  1052. uni.hideLoading()
  1053. var payValueDefault = this.carhelp.get("payValueDefault");
  1054. if (payValueDefault == "2") {
  1055. var payValueDefault3 = this.carhelp.get("payValueDefault3");
  1056. for (var i in this.companyList) {
  1057. var item = this.companyList[i]
  1058. if (item.enterpriseAccount.id == payValueDefault3.companyId) {
  1059. this.companyPaySelect = item;
  1060. for (var j in item.carList) {
  1061. var car = item.carList[j]
  1062. if (car.carNum == payValueDefault3.carNumber) {
  1063. this.companyPaySelect.car = payValueDefault3.carNumber;
  1064. this.payValue = payValueDefault;
  1065. }
  1066. }
  1067. }
  1068. }
  1069. }
  1070. this.getChargeList()
  1071. this.loginMethod()
  1072. }).catch(error => {
  1073. uni.showToast({
  1074. title: error
  1075. })
  1076. })
  1077. }).catch(error => {
  1078. uni.showToast({
  1079. title: error
  1080. })
  1081. })
  1082. },
  1083. useCoupon() {
  1084. var obj = {
  1085. status: 0,
  1086. stationId: this.stationId,
  1087. hideCardCoupon: 1
  1088. }
  1089. if (this.userCardBool) {
  1090. obj.userCardId = this.userCard.id
  1091. }
  1092. userApi.couponList(obj).then((res) => {
  1093. this.listlength = res.data.recordsTotal;
  1094. }).catch(error => {
  1095. uni.showToast({
  1096. title: error
  1097. })
  1098. })
  1099. },
  1100. submitInit() {
  1101. if (this.moneyActiveClass == -1 && !this.otherNum) {
  1102. this.submitForm.chargeStrategy = 0;
  1103. this.submitForm.amount = 0
  1104. } else {
  1105. this.submitForm.chargeStrategy = 2;
  1106. if (this.otherNum) {
  1107. this.submitForm.amount = this.otherNum
  1108. } else {
  1109. this.submitForm.amount = this.moneyActiveClass
  1110. }
  1111. }
  1112. },
  1113. contractSignTimeSubmit(){
  1114. this.contractSignTime=true;
  1115. this.submit()
  1116. },
  1117. updateContractSignTime(){
  1118. if(this.user&&this.user.regUser&&!this.user.regUser.contractSignTime){
  1119. API.updateContractSignTime({
  1120. openId:this.carhelp.getOpenId()
  1121. }).then((res) => {
  1122. }).catch(error => {
  1123. uni.showToast({
  1124. title: error
  1125. })
  1126. })
  1127. }
  1128. },
  1129. submit() {
  1130. if(!this.contractSignTime){
  1131. this.contractSignTimeBl=true;
  1132. return
  1133. }
  1134. if (!this.submitForm.channelNo) {
  1135. uni.showToast({
  1136. title: '请先选择充电通道'
  1137. })
  1138. return
  1139. }
  1140. this.submitForm.payType = this.payList[this.payValue].value;
  1141. if (this.submitForm.payType == "1") {
  1142. this.submitForm.amount = this.moneyActiveClass_n
  1143. this.submitForm.chargeStrategy = 2;
  1144. } else {
  1145. this.submitInit()
  1146. }
  1147. this.updateContractSignTime()
  1148. this.confirm()
  1149. },
  1150. }
  1151. }
  1152. </script>
  1153. <style>
  1154. page {
  1155. background-color: #fff;
  1156. }
  1157. </style>
  1158. <style lang="scss" scoped>
  1159. .exchange {
  1160. margin-right: 32rpx;
  1161. color: rgba(119, 119, 119, 100);
  1162. //font-size: 24rpx;
  1163. font-size: 32rpx;
  1164. //margin-right: 6rpx;
  1165. }
  1166. .rightspan {
  1167. float: right;
  1168. }
  1169. .indexData5content {
  1170. padding: 40rpx 40rpx;
  1171. .contentTitle {
  1172. color: #333333;
  1173. font-size: 40rpx;
  1174. font-weight: bold;
  1175. margin-bottom: 16rpx;
  1176. }
  1177. .contentbody {
  1178. width: 100%;
  1179. display: block;
  1180. .contentItem {
  1181. border-bottom: 1px solid #ededed;
  1182. padding: 12rpx 0;
  1183. font-size: 32rpx;
  1184. display: flex;
  1185. width: 100%;
  1186. .span1 {
  1187. padding-top: 8rpx;
  1188. width: 50%;
  1189. }
  1190. .span2 {
  1191. padding-top: 8rpx;
  1192. width: 35%;
  1193. }
  1194. .span3 {
  1195. padding-top: 8rpx;
  1196. padding-left: 8rpx;
  1197. width: 10%;
  1198. }
  1199. }
  1200. }
  1201. }
  1202. .textinfo {
  1203. padding: 40rpx;
  1204. font-size: 24rpx !important;
  1205. color: #999999;
  1206. p {
  1207. font-size: 32rpx !important;
  1208. color: #101010;
  1209. font-weight: bold;
  1210. }
  1211. }
  1212. .lefttitle {
  1213. font-weight: bold;
  1214. font-size: 32rpx
  1215. }
  1216. @import "@/_theme.scss";
  1217. .listlength {
  1218. float: right;
  1219. padding-right: 20rpx;
  1220. }
  1221. ::v-deep .u-drawer-content {
  1222. border-radius: 10px 10px 0 0
  1223. }
  1224. ::v-deep .u-radio-group {
  1225. width: 100%;
  1226. }
  1227. ::v-deep .u-radio {
  1228. position: relative;
  1229. }
  1230. ::v-deep .u-radio__icon-wrap {
  1231. position: absolute;
  1232. right: 0;
  1233. }
  1234. .recharge-item2 {
  1235. @include themeify {
  1236. font-size: themed('font-size2') !important;
  1237. }
  1238. /* font-size: 14px !important;*/
  1239. color: #999999;
  1240. }
  1241. .paySelect {
  1242. padding: 32rpx;
  1243. .title {
  1244. font-size: 40rpx
  1245. }
  1246. p {
  1247. width: 100%;
  1248. span {
  1249. color: #666;
  1250. }
  1251. .u-radio__label {
  1252. color: #333333;
  1253. }
  1254. .u-radio {
  1255. width: 100% !important;
  1256. ;
  1257. }
  1258. color: #333333;
  1259. margin-top: 16rpx;
  1260. font-size:32rpx;
  1261. }
  1262. }
  1263. .recharge {
  1264. padding: 32rpx;
  1265. padding-bottom: 250rpx;
  1266. .title {
  1267. @include themeify {
  1268. font-size: themed('font-size3');
  1269. }
  1270. /* font-size: 16px;*/
  1271. position: relative;
  1272. }
  1273. p {
  1274. color: #666;
  1275. margin-top: 4px;
  1276. }
  1277. .self-stop.active {
  1278. background-color: #EFFFF7;
  1279. border-color: #00B962;
  1280. color: #00B962;
  1281. }
  1282. .rechargeMain {
  1283. display: flex;
  1284. flex-wrap: wrap;
  1285. // justify-content: space-between;
  1286. margin-top: 24rpx;
  1287. margin-bottom: 10rpx;
  1288. .recharge-item {
  1289. .u-input {
  1290. text-align: center !important;
  1291. }
  1292. width: 31%;
  1293. border: 1px solid #e3e3e3;
  1294. padding: 20rpx 0;
  1295. border-radius: 4px;
  1296. text-align: center;
  1297. margin-bottom: 20rpx;
  1298. position: relative;
  1299. margin-left: 10rpx;
  1300. @include themeify {
  1301. font-size: themed('font-size3');
  1302. }
  1303. /* font-size: 16px;*/
  1304. }
  1305. .active {
  1306. background-color: #EFFFF7;
  1307. border-color: #00B962;
  1308. color: #00B962;
  1309. }
  1310. }
  1311. .self-stop {
  1312. width: 105px;
  1313. /* height: 48px;
  1314. line-height: 48px;*/
  1315. border-radius: 4px;
  1316. color: #101010;
  1317. @include themeify {
  1318. font-size: themed('font-size3');
  1319. height: themed('font-size19');
  1320. line-height: themed('font-size19')
  1321. }
  1322. /* font-size: 16px;*/
  1323. text-align: center;
  1324. font-family: Arial;
  1325. border: 1px solid rgba(227, 227, 227, 100);
  1326. margin-top: 12px;
  1327. }
  1328. }
  1329. .recharge-input {
  1330. margin-top: 8px;
  1331. margin-bottom: 32px;
  1332. }
  1333. .recharge-radio {
  1334. margin-top: 10px;
  1335. .recharge-radio-item {
  1336. display: flex;
  1337. align-items: center;
  1338. }
  1339. .recharge-radio-name {
  1340. margin-left: 8px;
  1341. }
  1342. }
  1343. .but-box {
  1344. width: 89.3%;
  1345. height: 44px;
  1346. margin: 0 auto;
  1347. position: fixed;
  1348. bottom: 0;
  1349. right: 0;
  1350. left: 0;
  1351. }
  1352. //优惠券
  1353. .discounts {
  1354. margin-top: 10px;
  1355. width: 100%;
  1356. .title {
  1357. width: 100%;
  1358. .title-1 {
  1359. /* height: 22px;*/
  1360. color: rgba(16, 16, 16, 100);
  1361. @include themeify {
  1362. font-size: themed('font-size3');
  1363. height: themed('font-size6');
  1364. }
  1365. /* font-size: 16px;*/
  1366. }
  1367. .title-2 {
  1368. margin-left: 4px;
  1369. @include themeify {
  1370. font-size: themed('font-size2');
  1371. line-height: themed('font-size5');
  1372. }
  1373. /* font-size: 14px;
  1374. line-height: 20px;*/
  1375. }
  1376. .title-3 {
  1377. float: right;
  1378. @include themeify {
  1379. font-size: themed('font-size3');
  1380. line-height: themed('font-size5');
  1381. }
  1382. /* height: 19px;
  1383. font-size: 16px;*/
  1384. }
  1385. }
  1386. .select {
  1387. position: relative;
  1388. ::v-deep .u-radio {
  1389. padding: 36rpx 32rpx;
  1390. margin-top: 12px;
  1391. width: 100%;
  1392. height: 48px;
  1393. border-radius: 4px;
  1394. background-color: rgba(255, 255, 255, 100);
  1395. text-align: center;
  1396. border: 1px solid rgba(227, 227, 227, 100);
  1397. position: relative;
  1398. }
  1399. // ::v-deep .u-radio:nth-child(3) {
  1400. //
  1401. // }
  1402. ::v-deep .u-radio__icon-wrap {
  1403. left: 32rpx;
  1404. background-color: #fff;
  1405. }
  1406. ::v-deep .u-radio__label {
  1407. margin-left: 40px;
  1408. }
  1409. }
  1410. .explain {
  1411. width: 64px;
  1412. /* height: 24px;
  1413. line-height: 24px;*/
  1414. position: absolute;
  1415. top: 10px;
  1416. right: 12px;
  1417. border-radius: 4px;
  1418. background-color: rgba(255, 255, 255, 100);
  1419. text-align: center;
  1420. border: 1px solid rgba(227, 227, 227, 100);
  1421. color: rgba(0, 185, 98, 100);
  1422. /* font-size: 12px;*/
  1423. @include themeify {
  1424. font-size: themed('font-size1');
  1425. line-height: themed('font-size7');
  1426. height: themed('font-size7');
  1427. }
  1428. }
  1429. }
  1430. // 优惠券2
  1431. .discounts2 {
  1432. margin-top: 10px;
  1433. width: 100%;
  1434. display: flex;
  1435. justify-content: space-between;
  1436. .left {
  1437. /* width: 70px;*/
  1438. // height: 20px;
  1439. color: rgba(16, 16, 16, 100);
  1440. /* font-size: 20px;*/
  1441. @include themeify {
  1442. width: 160rpx;
  1443. font-size: 40rpx;
  1444. }
  1445. }
  1446. .right {
  1447. /*
  1448. height: 16px;
  1449. line-height: 28px;*/
  1450. color: rgba(255, 61, 0, 100);
  1451. @include themeify {
  1452. font-size: themed('font-size3');
  1453. height: themed('font-size3');
  1454. line-height: themed('font-size9');
  1455. }
  1456. /* font-size: 16px;*/
  1457. text-align: right;
  1458. display: flex;
  1459. }
  1460. .iconfont {
  1461. @include themeify {
  1462. font-size: themed('font-size7');
  1463. line-height: themed('font-size10');
  1464. }
  1465. /* line-height: 29px;*/
  1466. text-align: center;
  1467. color: #b3b3b3;
  1468. /* font-size: 24px;*/
  1469. }
  1470. }
  1471. // 会员活动
  1472. .member {
  1473. margin-top: 24rpx;
  1474. display: flex;
  1475. justify-content: space-between;
  1476. flex-wrap: wrap;
  1477. align-items: center;
  1478. .actively {
  1479. color: rgba(119, 119, 119, 1);
  1480. font-size: 36rpx;
  1481. }
  1482. .type,
  1483. .right {
  1484. color: rgba(16, 18, 18, 100);
  1485. font-size: 36rpx;
  1486. //line-height: 28px;
  1487. padding-right: 10px;
  1488. display: flex;
  1489. align-items: center;
  1490. }
  1491. .iconfont {
  1492. @include themeify {
  1493. font-size: themed('font-size7');
  1494. line-height: themed('font-size10');
  1495. }
  1496. /* line-height: 29px;*/
  1497. text-align: center;
  1498. color: #b3b3b3;
  1499. /* font-size: 24px;*/
  1500. }
  1501. }
  1502. // 尾部
  1503. .botton {
  1504. border: 1px solid rgba(242, 242, 242, 1);
  1505. background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 100%);
  1506. position: fixed;
  1507. //background: #fff;
  1508. width: 100%;
  1509. padding: 24rpx 40rpx;
  1510. line-height: 88rpx;
  1511. bottom: 0;
  1512. left: 0;
  1513. z-index: 999;
  1514. //padding: 0px 32rpx 32rpx;
  1515. padding-bottom: 12px;
  1516. button {
  1517. display: flex;
  1518. align-items: center;
  1519. justify-content: center;
  1520. //width: 45.8%;
  1521. // background-color: black;
  1522. // color: #fff;
  1523. // background-color: rgba(255, 255, 255, 1);
  1524. // color: rgba(0, 185, 98, 1);
  1525. background-color: rgba(0, 185, 98, 100);
  1526. color: rgba(255, 255, 255, 100);
  1527. height: 88rpx;
  1528. border-radius: 50px;
  1529. font-size: 32rpx;
  1530. }
  1531. }
  1532. .couponsuse {
  1533. color: rgba(153, 153, 153, 100);
  1534. margin-top: 10px;
  1535. font-size: 14px;
  1536. text-align: left;
  1537. font-family: AlibabaPuHui-regular;
  1538. }
  1539. .to-recharge {
  1540. padding: 0 16px;
  1541. line-height: 36px;
  1542. border-radius: 50px 0px 0px 50px;
  1543. background: linear-gradient(#FF9000, #FFB700);
  1544. color: rgba(255, 255, 255, 100);
  1545. font-size: 16px;
  1546. text-align: center;
  1547. position: absolute;
  1548. right: -16px;
  1549. top: 0;
  1550. }
  1551. // ::v-deep .u-checkbox__icon-wrap--checked {
  1552. // background-color: #2979ff !important;
  1553. // border-color: #2979ff !important;
  1554. // }
  1555. .amount {
  1556. // width: 41.9%;
  1557. height: 16px;
  1558. line-height: 15px;
  1559. border-radius: 0px 4px 0px 4px;
  1560. background-color: #ec4530; //rgba(0, 185, 98, 100)
  1561. color: rgba(255, 255, 255, 100);
  1562. font-size: 10px;
  1563. text-align: center;
  1564. position: absolute;
  1565. top: 0;
  1566. right: 0;
  1567. }
  1568. .card {
  1569. overflow: hidden;
  1570. padding: 10px;
  1571. margin-top: 10px;
  1572. .title {
  1573. font-weight: bold;
  1574. }
  1575. }
  1576. .cardselect {
  1577. border-radius: 8px;
  1578. border: 2px solid rgba(0, 185, 98, 1);
  1579. .title {
  1580. color: #00B962;
  1581. font-weight: bold;
  1582. }
  1583. .cardgo {
  1584. position: relative;
  1585. .cardinfo {
  1586. background-color: #00b962;
  1587. width: 64rpx;
  1588. height: 64rpx;
  1589. position: absolute;
  1590. top: -12px;
  1591. right: -12px;
  1592. border-radius: 0 0 0 8px;
  1593. img {
  1594. width: 64rpx;
  1595. }
  1596. }
  1597. }
  1598. }
  1599. .cardno {
  1600. border: 2px solid rgba(204, 204, 204, 1);
  1601. border-radius: 8px;
  1602. .title {
  1603. font-weight: bold;
  1604. }
  1605. .cardgo {
  1606. position: relative;
  1607. .cardinfo {
  1608. background-color: rgba(204, 204, 204, 1);
  1609. width: 64rpx;
  1610. height: 64rpx;
  1611. position: absolute;
  1612. top: -12px;
  1613. right: -12px;
  1614. border-radius: 0 0 0 8px;
  1615. img {
  1616. width: 64rpx;
  1617. }
  1618. }
  1619. }
  1620. }
  1621. .classtable {
  1622. margin: 40rpx 40rpx;
  1623. .td1 {
  1624. width: 50rpx;
  1625. padding: 12rpx 0;
  1626. text-align: center;
  1627. img {
  1628. width: 48rpx;
  1629. height: 48rpx;
  1630. }
  1631. font-size: 10px;
  1632. }
  1633. .td2 {
  1634. padding-left: 16rpx;
  1635. font-size: 12px;
  1636. line-height: 24px;
  1637. .dian {
  1638. padding: 0 10rpx
  1639. }
  1640. }
  1641. }
  1642. .carImg {
  1643. margin: 0 40rpx;
  1644. img {
  1645. width: 100%;
  1646. }
  1647. }
  1648. .cardListView{
  1649. .cardListItemTitle{
  1650. color: #777777;
  1651. font-size: 36rpx;
  1652. }
  1653. .cardListItem{
  1654. // margin:5px 4px;
  1655. //border: 1px solid ;
  1656. border: 2px solid #cccccc;
  1657. // border: 2px solid #cccccc;
  1658. // border-radius: 8px;
  1659. // padding: 3px;
  1660. border-radius: 6px;
  1661. .cardListName{
  1662. font-size: 34rpx;
  1663. }
  1664. .cardListText{
  1665. font-size: 24rpx;
  1666. display:flex;
  1667. justify-content: space-between;
  1668. }
  1669. }
  1670. .cardselect{
  1671. border: 2px solid #00b962;
  1672. background-color: #fff ;
  1673. color: #00b962;
  1674. }
  1675. }
  1676. .rechargeBalance{
  1677. display: flex;
  1678. .rechargeBalanceItem{
  1679. margin-right: 6px;
  1680. color: #666;
  1681. }
  1682. }
  1683. .greyTips{
  1684. background-color: #cccccc;
  1685. // color: #00b962;
  1686. font-weight: bold;
  1687. padding: 30rpx;
  1688. margin-top: 20rpx;
  1689. border-radius: 8px;
  1690. }
  1691. .cost-explain2{
  1692. .type{
  1693. color: #FF3D00;
  1694. }
  1695. }
  1696. </style>