charge.vue 40 KB

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