monthlyCardBuy.vue 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579
  1. <template>
  2. <view>
  3. <ujp-navbar title="服务费包月卡" >
  4. <view class="iconfont service" @click="openModal">
  5. &#xe60d;
  6. </view>
  7. </ujp-navbar>
  8. <!-- 提示 -->
  9. <!-- <template>
  10. <u-alert-tips type="warning" :title="title" :description="description" :show-icon="true"></u-alert-tips>
  11. </template> -->
  12. <!-- 卡片 -->
  13. <view class="main">
  14. <view class="carNone" v-if="!isReady">
  15. <img src="@/assets/static/img/暂无数据-缺省页.png" alt="">
  16. <p class="" style="color: #bfdfd5;font-size: 18px;">加载中</p>
  17. </view>
  18. <view class="carNone" v-if="isReady&&cardList.length == 0">
  19. <img src="@/assets/static/img/暂无数据-缺省页.png" alt="">
  20. <p class="" style="color: #bfdfd5;font-size: 18px;">暂无月卡上架</p>
  21. </view>
  22. <view class="user-card" v-if="ispay">
  23. <view class="head-img">
  24. <img style="border-radius: 50px;" v-if="userInfo.headImg" :src="userInfo.headImg" alt="">
  25. <img v-else src="../../assets/img/headPortrait.png" alt="">
  26. </view>
  27. <view class="user-name">
  28. <view class="name">
  29. {{userInfo.realName?userInfo.realName:userInfo.nickName}}
  30. </view>
  31. <view class="sign">
  32. {{userCard&&ispay?userCard.endTime.substring(0,10):''}}到期
  33. </view>
  34. </view>
  35. </view>
  36. <ujp-swiper v-if="!ispay" :img-mode="'scaleToFill'" height="190"
  37. :effect3d="true" :autoplay="false" :circular="false"
  38. @change="checkboxChangeBtn" :name="'picUrl'">
  39. <swiper-item class="scroll-view-item_H u-swiper-item"
  40. v-for="(item,i) in cardList" :key="i">
  41. <view
  42. :style="{
  43. backgroundImage:' url('+item.monthlyRentCard.image+') ',
  44. transform: uCurrent != i ? 'scaleY(0.9)' : 'scaleY(1)',
  45. margin: uCurrent != i ? '0 20rpx' : 0,
  46. }"
  47. :class="'cardtab ' ">
  48. <view class="tag" v-if="item.monthlyRentCard.isVip">{{item.monthlyRentCard.platformText}}车主
  49. </view>
  50. <view class="tag" v-else-if="false&&item.monthlyRentCard.remark">{{item.monthlyRentCard.remark}}</view>
  51. <view class="priceName">
  52. {{item.monthlyRentCard.remark}}
  53. </view>
  54. <view class="price">
  55. <view class="current-price">
  56. <b>{{item.monthlyRentCard.price}}</b><text>元/月</text>
  57. <!-- -->
  58. <p v-if="item.monthlyRentCard.buyNum">{{item.monthlyRentCard.buyNum}}人次购买</p>
  59. </view>
  60. </view>
  61. </view>
  62. </swiper-item>
  63. </ujp-swiper>
  64. </view>
  65. <u-action-sheet :list="list" @click="click" v-model="show"></u-action-sheet>
  66. <u-modal v-model="showModel" :show-cancel-button="true" @cancel="getUserInfo()" @confirm="confirm"
  67. confirm-text="支付成功?" title="扫码支付">
  68. <view style="
  69. text-align: center;
  70. ">
  71. <img id="qrcode2" :src="qrCodeImg">
  72. </view>
  73. <view style="
  74. text-align: center;
  75. ">请使用支付宝扫码</view>
  76. </u-modal>
  77. <u-modal v-model="show1" @confirm="gotoGz" cancel-text="暂不关注" confirm-text="前往关注" confirm-color="#53b56b"
  78. :show-cancel-button="true" ref="uModal2" :asyncClose="true">
  79. <view style="padding: 15px;">请先关注<span style=" color: #53b56b;">{{projectName}}</span>公众号,购买月卡</view>
  80. </u-modal>
  81. <u-modal v-model="infoSet1" @confirm="infoSet1=false,gotoUrl('pages/user/dataSet')" cancel-text="取消"
  82. confirm-text="完善个人信息" confirm-color="#53b56b" :show-cancel-button="true" ref="uModal2" :asyncClose="true">
  83. <view style="padding: 15px;">购买月卡需要完善以下2点<br />
  84. 1.填写真实姓名<br />
  85. 2.填写车牌号<br />
  86. </view>
  87. </u-modal>
  88. <img id="qrcode" style="display: none;">
  89. <!-- 须知 -->
  90. <view class="notice">
  91. <view class="title">
  92. 可享一个月充电服务费<span style="color:#ec4f27">全免</span>
  93. </view>
  94. <view class="line" >
  95. <!-- <view v-show="detail.type==1">· 仅限<b>非运营车</b>车主或<b>新用户</b>购买和使用</view>
  96. <view>· 在指定充电站充电时,此单服务费<b>全免</b></view>
  97. <view>· 不可抵扣电费、停车费、占位费</view> -->
  98. <view class="lineInfo lineInfo1" >
  99. <view class="lineSvg">
  100. <img src="@/assets/img/buy/bus2.svg">
  101. </view>
  102. <view class="lineView">
  103. <view class="lineTitle">适用车主</view>
  104. <p class="linep">适合运营车车主购买和使用</p>
  105. </view>
  106. </view>
  107. <!-- <view class="lineInfo lineInfo2" >
  108. <view class="lineSvg">
  109. <img src="@/assets/img/buy/bus.svg">
  110. </view>
  111. <view class="lineView">
  112. <view class="lineTitle">适用车主</view>
  113. <p class="linep">适合运营车车主购买和使用</p>
  114. </view>
  115. </view> -->
  116. <view class="lineInfo lineInfo1" >
  117. <view class="lineSvg">
  118. <img src="@/assets/img/buy/fee.svg">
  119. </view>
  120. <view class="lineView">
  121. <view class="lineTitle">充电免服务费</view>
  122. <p class="linep">在指定站点充电时,此单服务费全免</p>
  123. </view>
  124. </view>
  125. <view class="lineInfo lineInfo1" >
  126. <view class="lineSvg">
  127. <img src="@/assets/img/buy/tips.svg">
  128. </view>
  129. <view class="lineView">
  130. <view class="lineTitle">注意事项</view>
  131. <p class="linep">不可抵扣电费、停车费、占位费</p>
  132. </view>
  133. </view>
  134. </view>
  135. <u-divider fontSize="36" border-color="#bbc039" color="#101010">购卡须知</u-divider>
  136. <view class="text">
  137. <view class="num">
  138. 01
  139. </view>
  140. <view class="">
  141. 服务费包月卡默认与购卡人账户进行关联,所涉权益仅可绑定单个车牌,即账户、月卡、车牌三者关联形成一个权益主体。
  142. </view>
  143. </view>
  144. <view class="text">
  145. <view class="num">
  146. 02
  147. </view>
  148. <view class="">
  149. 服务费包月卡有效期内,持卡人在指定充电站为绑定车辆充电,可享受充电服务费全免。持卡人给非绑定车辆充电,将正常收取充电服务费。
  150. </view>
  151. </view>
  152. <view class="text">
  153. <view class="num">
  154. 03
  155. </view>
  156. <view class="">
  157. 有效期30天。
  158. </view>
  159. </view>
  160. <view class="text">
  161. <view class="num">
  162. 04
  163. </view>
  164. <view class="">
  165. 如车牌等信息填写错误,请致电售后客服进行处理。
  166. </view>
  167. </view>
  168. <view class="text">
  169. <view class="num">
  170. 05
  171. </view>
  172. <view class="">
  173. 本卡一经售出,不支持任何形式的退换。
  174. </view>
  175. </view>
  176. <!-- <view
  177. @click="gotoUrl('pages/monthlyCardActivity/monthlyCardList?cardId='+(ispay?userCard.rentCardId:cardId))">
  178. 适用<br/>
  179. 站点
  180. </view> -->
  181. </view>
  182. <view class="notice2">
  183. <view class="titleHead">适用充电站点</view>
  184. <view
  185. style="font-size: 24rpx;color: rgba(119, 119, 119, 1);width: 91.4%;margin: 8px auto 0;font-weight: 400;text-align: start;">
  186. 暂不适用站点:恩施花硒谷华美达安可酒店充电站、恩施青花民族医院充电站
  187. </view>
  188. <!-- 附近站点 -->
  189. <view class="station" v-for="(stationData,i) in pageListGetObj.list" :key="i"
  190. @click="gotoUrl('pages/searchPile/stationAndPile/stationDetails?id=' + stationData.id)">
  191. <view class="head">
  192. <view class="title oldTextjp" oldstyle="font-size: 20px;">
  193. {{stationData.name}}
  194. </view>
  195. <view class="distance ">
  196. <!-- <text class="iconfont" style="color:#666666">&#xe615;</text>{{stationData.distance!=null&&stationData.distance>0.1 ? stationData.distance.toFixed(1)+'公里':'小于100米'}} -->
  197. </view>
  198. </view>
  199. <view class="sign" v-if="stationData.stationType==50">
  200. {{stationData.address}}
  201. </view>
  202. <view class="sign" v-else>
  203. <!-- -->
  204. <view class="sign-1"
  205. v-if="stationData.giveDiscount&&stationData.discountRatio&&stationData.discountRatio!=100">
  206. 会员{{discountRatio10(stationData.discountRatio)}}折</view>
  207. <view class="sign-3" v-if="stationData.category=='超充'">160kW超充站</view>
  208. <view class="sign-4"
  209. v-if="stationData.nightLowPriceEnabled">
  210. 夜间超低价</view>
  211. <view class="sign-2" v-if="stationData.platformType==1">自营站</view>
  212. <view class="sign-2" v-if="stationData.tagList.length != 0"
  213. v-for="(tagName,tagIndex) in stationData.tagList" :style="'border: 1px solid '+tagNameBy(tagName,1)+';color:'+tagNameBy(tagName,1)"
  214. :key="tagIndex">{{tagNameBy(tagName,0)}}</view>
  215. </view>
  216. <view class="price-free oldTextClass">
  217. <view class="price" v-if="userInfo&&userInfo.userType==2">
  218. <view class="price-1">
  219. <text class="num">
  220. {{!stationData.giveDiscount ? (stationData.electricityPrice+stationData.servicePrice).toFixed(2)
  221. : (stationData.electricityPrice+stationData.discountServicePrice).toFixed(2)}}</text>
  222. <text class="unit " oldstyle="font-size: 48rpx;">元/度</text>
  223. </view>
  224. <view class="price-2 " oldstyle="font-size: 48rpx;" v-if="stationData.giveDiscount">
  225. <text
  226. class="num">{{(stationData.electricityPrice+stationData.servicePrice).toFixed(2)}}</text>
  227. <text class="unit ">元/度</text>
  228. </view>
  229. </view>
  230. <!-- 游客价格-->
  231. <view class="price" v-else>
  232. <view class="price-1">
  233. <text class="num">
  234. {{(stationData.electricityPrice+stationData.servicePrice).toFixed(2)}}</text>
  235. <text class="unit " oldstyle="font-size: 48rpx;">元/度</text>
  236. </view>
  237. <view class="price-3 " oldstyle="font-size: 48rpx;" v-if="stationData.giveDiscount">
  238. <text class="num1">会员</text>
  239. <text class="num">{{ (stationData.electricityPrice+stationData.discountServicePrice).toFixed(2)}}</text>
  240. <text class="unit ">元/度</text>
  241. </view>
  242. </view>
  243. <view class="free">
  244. <view class="fast" v-if="stationData.fastNum">
  245. <view class="fast-font">
  246. </view>
  247. <view class="num">
  248. {{stationData.fastAvailableNum}}/{{stationData.fastNum}}
  249. </view>
  250. </view>
  251. <view class="slow oldTextjp2" oldstyle="margin-left: 1px;" v-if="stationData.slowNum">
  252. <view class="slow-font">
  253. </view>
  254. <view class="num">
  255. {{stationData.slowAvailableNum}}/{{stationData.slowNum}}
  256. </view>
  257. </view>
  258. </view>
  259. </view>
  260. </view>
  261. <view class="bottom" @click="getPageList(true)"
  262. v-if="pageListGetObj.recordsTotal!=pageListGetObj.list.length">
  263. <view class="bot">
  264. <view class="bot-line"></view>
  265. <view class="bot-text " style="color: #00B962;text-align: center;margin-top: 10px">
  266. 点击查看更多(共{{pageListGetObj.recordsTotal}}站点)</view>
  267. <view class="bot-line"></view>
  268. </view>
  269. </view>
  270. <view class="bottom" v-else>
  271. <view class="bot">
  272. <view class="bot-line"></view>
  273. <view class="bot-text " style="color: #00B962;text-align: center;margin-top: 10px;">已经到底了</view>
  274. <view class="bot-line"></view>
  275. </view>
  276. </view>
  277. <view class="upupupView" v-show="flag==1">
  278. <view class="upupupImg">
  279. <img src="@/assets/img/upupup.svg">
  280. </view>
  281. <p>上划查看更多内容</p>
  282. </view>
  283. </view>
  284. <!-- 按钮 -->
  285. <view class="button" v-if="!ispay">
  286. <!-- <button class="btn btn2" @click="show4=true" v-if="userCard&&userCard.classify==2">购买月卡 - 并<span style="color:red">废弃</span>其他卡
  287. </button> -->
  288. <button class="btn " v-if="userInfo.userType=='1'">游客无法购买月卡
  289. </button>
  290. <button class="btn " v-else-if="!isReady">加载中
  291. </button>
  292. <button class="btn " v-else-if="ispay"> {{userCard&&ispay?userCard.endTime:''}}到期
  293. </button>
  294. <button class="btn " v-else-if="!endCardBool">已下架
  295. </button>
  296. <button class="btn " v-else-if="!show2" @click="gotoGz">关注公众号
  297. </button>
  298. <button class="btn " v-else-if="!infoSet" @click="gotoUrl('pages/user/dataSet')">完善个人信息
  299. </button>
  300. <button class="btn " v-else-if="!cardList.length" @click="putShelf">已下架
  301. </button>
  302. <button class="btn " @click="showPay" v-else-if="detail.isVip">
  303. <text style="font-size: 14px;">¥</text>
  304. <span>{{detail.price}}</span>
  305. <text class="price">{{detail.oldPrice}}</text>开通服务费包月卡
  306. <view class="position">
  307. <view id="talkbubble">{{detail.platformText}}车主</view>
  308. </view>
  309. </button>
  310. <button class="btn " @click="showPay" v-else>
  311. <text style="font-size: 14px;"></text>
  312. <span style="margin-right: 8px;">{{detail.price}}元</span>
  313. <text v-if="detail.discount" class="price">{{detail.oldPrice}}</text> 开通服务费包月卡
  314. <view class="position" v-if="false&&detail.remark2">
  315. <view id="talkbubble">{{detail.remark2}}</view>
  316. </view>
  317. </button>
  318. <view class="hint">
  319. 开通表示阅读并同意<span @click="gotoUrl('pages/article/details?code=FWFZKXY')"
  320. style="text-decoration:underline;color: #C07C38;">《服务费折扣协议》</span>
  321. </view>
  322. </view>
  323. <u-modal v-model="show4" title="购买须知" @confirm="show4=false,show=true" cancel-text="取消" confirm-text="确认购买" confirm-color="red"
  324. :show-cancel-button="true" ref="uModal2" :asyncClose="true">
  325. <view style="padding: 15px; " v-if="userCard">
  326. <view>由于您已经购买了其他卡</view>
  327. <view style="margin-top: 8px;">汽车充电同时只生效一张卡,且本<span style="color: #00b962;">月卡</span>优惠力度最高。</view>
  328. <view style="margin-top: 4px;">购买成功后,将<span style="color: red;">废弃</span>您已购买的<span style="color: #00b962;">[6折卡]</span>,且<span style="color: red;">不退款、不折算</span>。</view>
  329. <view style="margin-top: 4px;">同时也建议您先使用完<span style="color: #00b962;">[6折卡]</span>的充电度数,以免造成不必要的损失。</view>
  330. <view style="margin-top: 4px;">已购买<span style="color: #00b962;">[6折卡]</span>:于{{userCard.endTime.substring(0,10)}}到期,已用{{userCard.chargedDegree?userCard.chargedDegree.toFixed(0):0.00}}度 /
  331. 共{{userCard.chargeDegreeLimit}}度。</view>
  332. </view>
  333. </u-modal>
  334. <u-modal v-model="show3" @confirm="confirmPhone" confirm-text="拨打电话" confirm-color="#606266"
  335. :show-cancel-button="true" ref="uModal" :asyncClose="true" title="客服电话" :content="consumerPhone"
  336. :content-style="{fontSize: '24px',color: '#101010'}"></u-modal>
  337. </view>
  338. </template>
  339. <script>
  340. import * as API_weixin from '@/apis/weixin.js'
  341. import * as API_site from '@/apis/site.js';
  342. import * as Pay from '@/apis/weixin.js'
  343. import * as API from '@/apis/card.js'
  344. import * as loginApi from '@/apis/login.js'
  345. import Tabbar from '@/components/Tabbar.vue';
  346. import QRCode from 'qrcodejs2'
  347. import {
  348. newDate,
  349. convertCanvasToImage,
  350. } from '@/utils'
  351. import {
  352. wxPayJs
  353. } from '@/utils/wxpay'
  354. export default {
  355. components: {
  356. Tabbar
  357. },
  358. data() {
  359. return {
  360. description: '盟主能量包本期限时优惠活动将于9月16日结束。',
  361. checked: "false",
  362. cardId: '',
  363. qrCodeImg: "",
  364. show4:false,
  365. showModel: false,
  366. cardList: [],
  367. pageList: [],
  368. projectName: "",
  369. list: [{
  370. text: '微信',
  371. }, {
  372. text: '支付宝'
  373. }],
  374. show: false,
  375. submitForm: {},
  376. //ykgz: '',
  377. detail: {},
  378. ispay: false,
  379. show3: false,
  380. show2: true,
  381. show1: false,
  382. infoSet: true,
  383. infoSet1: false,
  384. userCard: null,
  385. isReady: false,
  386. userInfo: {},
  387. elderStatus: false,
  388. consumerPhone: "",
  389. scrollLeftSet: 0,
  390. uCurrent:0,
  391. scrollLeftOldSet: 0,
  392. scrollLeftSetBl: false,
  393. flag: 0, //0 初始化, 1 ,开始判断, 2已经滑动
  394. }
  395. },
  396. onLoad() {
  397. this.projectName = process.car.ProjectName;
  398. },
  399. onReady() {
  400. var consumerPhone = "400-8899-619"
  401. // img="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
  402. if (consumerPhone) {
  403. this.consumerPhone = consumerPhone
  404. }
  405. //this.ykgz = this.carhelp.getConfig().ykgz
  406. //this.checkSubscribe()
  407. this.getCardList();
  408. },
  409. onShow() {
  410. if (this.carhelp.get("getElderModeClass") == "长辈模式") {
  411. this.elderStatus = true;
  412. } else {
  413. this.elderStatus = false;
  414. }
  415. if (this.$refs.tabbarMain) {
  416. this.$refs.tabbarMain.setcount(1);
  417. }
  418. //this.checkSubscribe();
  419. // this.getCardList();
  420. // this.show2 = true;
  421. },
  422. computed: {
  423. pageListGetObj() {
  424. var cardId = this.cardId
  425. if (this.ispay) {
  426. cardId = this.userCard.rentCardId;
  427. }
  428. var i = this.pageList.findIndex(item => {
  429. return item.monthlyRentCardId == cardId
  430. })
  431. if (i == -1)
  432. return {
  433. list: []
  434. }
  435. else
  436. return this.pageList[i]
  437. },
  438. endCardBool() {
  439. if (!this.cardList.length) {
  440. return false;
  441. }
  442. var date = new Date().getTime()
  443. if (!this.detail.endTime) {
  444. return true;
  445. }
  446. var date2 = newDate(this.detail.endTime).getTime();
  447. if (date < date2) {
  448. return true;
  449. } else {
  450. return false;
  451. }
  452. }
  453. },
  454. onPageScroll(e) {
  455. if (this.flag == 1) {
  456. if (e.scrollTop >= 50) {
  457. this.flag = 2;
  458. } else {
  459. }
  460. }
  461. },
  462. methods: {
  463. showPay(){
  464. // if(this.userCard&&this.userCard.classify==2){
  465. // this.show4=true
  466. // }else{
  467. // }
  468. this.show=true
  469. },
  470. scrolltolower: function(e) {
  471. //
  472. },
  473. scrolltoupper: function(e) {
  474. //this.scrollLeftSetBl=false;
  475. },
  476. scroll: function(e) {
  477. if (this.scrollLeftSetBl) {
  478. return
  479. }
  480. this.scrollLeftSetBl = true;
  481. var scrollWidth = e.detail.scrollWidth
  482. if (e.detail.deltaX > 0) {
  483. //右移动
  484. this.scrollLeftSet = 0;
  485. this.checkboxChange(this.cardList[0].monthlyRentCard)
  486. } else {
  487. //左移动
  488. this.scrollLeftSet = scrollWidth
  489. if (this.cardList.length > 1) {
  490. this.checkboxChange(this.cardList[1].monthlyRentCard)
  491. }
  492. }
  493. this.scrollLeftSetBl = false;
  494. //this.old.scrollTop = e.detail.scrollTop
  495. this.scrollLeftOldSet = e.detail.scrollLeft
  496. },
  497. confirmPhone() {
  498. this.show = false;
  499. uni.makePhoneCall({
  500. phoneNumber: this.consumerPhone //仅为示例
  501. });
  502. },
  503. openModal() {
  504. this.show3 = true;
  505. },
  506. checkboxChangeBtn(e){
  507. this.uCurrent=e
  508. this.checkboxChange(this.cardList[e].monthlyRentCard)
  509. },
  510. checkboxChange(monthlyRentCard) {
  511. this.detail = monthlyRentCard;
  512. this.cardId = monthlyRentCard.id
  513. monthlyRentCard.checked = true
  514. for (var i in this.cardList) {
  515. var obj = this.cardList[i].monthlyRentCard;
  516. if (this.cardId == obj.id) {
  517. } else {
  518. obj.checked = false
  519. }
  520. }
  521. this.getPageList(false);
  522. },
  523. gotoGz() {
  524. this.carhelp.setGzDate()
  525. var url = process.car.gzUrl;
  526. window.location.href = url
  527. },
  528. checkSubscribe() {
  529. uni.showLoading({
  530. title: "加载中",
  531. mask: true,
  532. })
  533. API_weixin.checkSubscribe({
  534. openId: this.carhelp.getOpenId()
  535. }).then((res) => {
  536. uni.hideLoading()
  537. if (res.data == "0") {
  538. this.show1 = true
  539. } else {
  540. //this.getInfo();
  541. this.getCardList();
  542. this.show2 = true;
  543. //this.carhelp.setGzDate()
  544. }
  545. //setGzDate
  546. }).catch(error => {
  547. uni.showToast({
  548. title: error
  549. })
  550. })
  551. },
  552. userCardBool(userCard) {
  553. if (userCard&&userCard.classify==1) {
  554. var date = new Date().getTime()
  555. var date2 = newDate(userCard.endTime).getTime();
  556. if (date < date2) {
  557. return true;
  558. }
  559. }
  560. return false
  561. },
  562. getCardList() {
  563. uni.showLoading({
  564. title: "加载中",
  565. mask: true,
  566. })
  567. API.cardList({
  568. type:1
  569. }).then((response) => {
  570. this.cardList = response.data.cardList;
  571. for (var i in this.cardList) {
  572. var obj = this.cardList[i].monthlyRentCard
  573. //不打折的卡
  574. obj.remark2 = obj.remark;
  575. if (obj.oldPrice) {
  576. if (!obj.discount && obj.couponRemark) {
  577. obj.remark2 = obj.couponRemark
  578. if (!obj.remark) {
  579. obj.remark = "月卡优惠券"
  580. }
  581. }
  582. obj.discount = true
  583. }
  584. }
  585. if (this.cardList.length) {
  586. this.detail = this.cardList[0].monthlyRentCard
  587. this.cardId = this.detail.id;
  588. this.cardList[0].monthlyRentCard.checked = true
  589. if (this.pageList.length == 0) {
  590. this.pageList = this.cardList.map(item => {
  591. return {
  592. recordsTotal: -1,
  593. monthlyRentCardId: item.monthlyRentCard.id,
  594. list: [],
  595. pageIndex: 1,
  596. }
  597. })
  598. this.getPageList(false);
  599. }
  600. //this.pageList.map(item)
  601. }
  602. this.getUserInfo()
  603. this.isReady = true;
  604. //cardId: this.cardId
  605. }).catch(error => {
  606. uni.showToast({
  607. title: error
  608. })
  609. })
  610. },
  611. getPageList(bl) {
  612. var cardId = this.cardId
  613. if (this.ispay) {
  614. cardId = this.userCard.rentCardId;
  615. }
  616. var i = this.pageList.findIndex(item => {
  617. return item.monthlyRentCardId == cardId
  618. })
  619. var data = {
  620. monthlyRentCardId: cardId,
  621. online: 0,
  622. pageSize: 6,
  623. }
  624. if (this.carhelp.getPersonInfo()) {
  625. data.openId = this.carhelp.getOpenId()
  626. }
  627. if (i > -1) {
  628. if (bl) {
  629. this.pageList[i].pageIndex += 1;
  630. } else {
  631. if (this.pageList[i].recordsTotal == -1) {
  632. } else {
  633. return
  634. }
  635. }
  636. data.pageIndex = this.pageList[i].pageIndex
  637. } else {
  638. return
  639. }
  640. uni.showLoading({
  641. title: "加载中",
  642. mask: true,
  643. })
  644. var list = this.pageList[i].list;
  645. API_site.getChargingStationData(data).then((response) => {
  646. console.log(response)
  647. list = [
  648. ...list,
  649. ...response.data.data
  650. ];
  651. this.pageList[i].recordsTotal = response.data.recordsTotal;
  652. this.pageList[i].list = list;
  653. uni.hideLoading()
  654. }).catch(error => {
  655. uni.showToast({
  656. title: error
  657. })
  658. })
  659. },
  660. getUserInfo() {
  661. uni.showLoading({
  662. title: "加载中",
  663. mask: true,
  664. })
  665. loginApi.findByOpenId({
  666. openId: this.carhelp.getOpenId(),
  667. noerror: true
  668. }).then((res) => {
  669. if (res.code == 200 && res.result) {
  670. if (res.data.regUser) {
  671. var userInfo = res.data.regUser
  672. this.userInfo = userInfo;
  673. // if (userInfo.userType == "1") {
  674. // } else if (userInfo.carId && userInfo.realName) {
  675. // this.infoSet = true;
  676. // } else {
  677. // this.infoSet = false;
  678. // if (this.endCardBool) {
  679. // this.infoSet1 = true;
  680. // }
  681. // }
  682. var userCard = res.data.userCard;
  683. this.userCard = userCard
  684. this.ispay = this.userCardBool(userCard)
  685. } else {
  686. }
  687. if (this.flag == 0) {
  688. this.flag = 1;
  689. setTimeout(() => {
  690. this.flag = 2;
  691. }, 5000)
  692. }
  693. }
  694. uni.hideLoading();
  695. }).catch(error => {
  696. uni.showToast({
  697. title: error,
  698. icon: "none"
  699. })
  700. })
  701. },
  702. putShelf2() {
  703. uni.showToast({
  704. title: "暂不支持重复购买"
  705. })
  706. },
  707. putShelf() {
  708. uni.showToast({
  709. title: "已下架,暂不支持购买"
  710. })
  711. },
  712. getInfo() {
  713. uni.showLoading({
  714. title: "加载中",
  715. mask: true,
  716. })
  717. API.cardDetail({
  718. cardId: this.cardId
  719. }).then((response) => {
  720. this.detail = response.data.monthlyRentCard
  721. uni.hideLoading()
  722. }).catch(error => {
  723. uni.showToast({
  724. title: error
  725. })
  726. })
  727. },
  728. submit(type) {
  729. if (!this.endCardBool) {
  730. return
  731. }
  732. uni.showLoading({
  733. title: "加载中",
  734. mask: true,
  735. })
  736. API.openCard({
  737. cardId: this.cardId
  738. }).then((response) => {
  739. this.submitForm.id = response.data.orderInfoId
  740. if (type == 0) {
  741. this.wxpy()
  742. }
  743. if (type == 1) {
  744. this.alpy()
  745. }
  746. }).catch(error => {
  747. uni.showToast({
  748. title: error
  749. })
  750. })
  751. },
  752. alpy() {
  753. uni.showLoading({
  754. title: "加载中",
  755. mask: true,
  756. })
  757. var listcanvas = document.getElementsByTagName('canvas')
  758. if (listcanvas.length > 0) {
  759. document.getElementById("qrcode").removeChild(document.getElementsByTagName('canvas')[0]);
  760. }
  761. Pay.alpay(this.submitForm).then((response) => {
  762. let qrcode = new QRCode('qrcode', {
  763. width: 200,
  764. height: 200,
  765. text: response.data.qr_code,
  766. correctLevel: QRCode.CorrectLevel.M,
  767. })
  768. this.outOrderNo = response.data.outOrderNo;
  769. var canvas = document.getElementsByTagName('canvas')[0];
  770. this.qrCodeImg = convertCanvasToImage(canvas);
  771. uni.hideLoading()
  772. this.showModel = true
  773. }).catch(error => {
  774. uni.showToast({
  775. title: error
  776. })
  777. })
  778. },
  779. wxpy() {
  780. Pay.wxpay(this.submitForm).then((response) => {
  781. if (!response.result) {
  782. uni.showToast({
  783. title: response.message
  784. })
  785. return
  786. }
  787. var data = response.data
  788. uni.hideLoading()
  789. //("Pay+"+new Date().getTime())
  790. wxPayJs(data);
  791. }).catch(error => {
  792. uni.showToast({
  793. title: error
  794. })
  795. })
  796. },
  797. confirm() {
  798. this.getUserInfo();
  799. uni.redirectTo({
  800. url: "/pages/user/finance/rechargeRes?id=" + this.outOrderNo
  801. })
  802. },
  803. click(index) {
  804. console.log(`点击了第${index + 1}项,内容为:${this.list[index].text}`)
  805. this.submit(index);
  806. }
  807. }
  808. }
  809. </script>
  810. <style>
  811. @keyframes movepoint {
  812. 25% {
  813. top: 10px;
  814. }
  815. 100% {
  816. top: 15px;
  817. }
  818. }
  819. .upupupImg {
  820. height: 80px;
  821. }
  822. .upupupView {
  823. text-align: center;
  824. font-size: 12px;
  825. padding: 30rpx;
  826. border-radius: 12px;
  827. position: absolute;
  828. background: rgb(0 0 0 / 70%);
  829. top: 50%;
  830. transform: translate(-50%);
  831. left: 50%;
  832. color: #fff;
  833. }
  834. .upupupView img {
  835. top: 15px;
  836. position: relative;
  837. width: 60px;
  838. animation: movepoint 2s infinite;
  839. -webkit-animation: movepoint 2s infinite;
  840. }
  841. </style>
  842. <style lang="scss" scoped>
  843. .scroll-Y {
  844. height: 300rpx;
  845. }
  846. .scroll-view_H {
  847. white-space: nowrap;
  848. width: 100%;
  849. }
  850. .scroll-view-item {
  851. height: 300rpx;
  852. line-height: 300rpx;
  853. text-align: center;
  854. font-size: 36rpx;
  855. }
  856. .scroll-view-item_H {
  857. display: inline-block;
  858. //width: 85%;
  859. height: 300rpx;
  860. line-height: 300rpx;
  861. text-align: center;
  862. font-size: 36rpx;
  863. }
  864. .service {
  865. font-size: 24px;
  866. //color: #fff;
  867. position: absolute;
  868. right: 16px;
  869. }
  870. ::v-deep .u-alert-desc {
  871. color: #ff7300;
  872. }
  873. // 卡片
  874. .main {
  875. background-color: #404A5E;
  876. padding: 40rpx 0 0 0;
  877. z-index: 80;
  878. .tag {
  879. position: absolute;
  880. background-color: rgba(255, 61, 0, 100);
  881. color: #ffffff;
  882. font-size: 24rpx;
  883. text-align: center;
  884. line-height: 40rpx;
  885. padding: 0 12rpx;
  886. right: 0rpx;
  887. top: 0rpx;
  888. border-radius: 0 12px 0 12px;
  889. }
  890. // @media screen and (max-width:320px) {
  891. // .tag {
  892. // padding: 0 4rpx;
  893. // }
  894. // .price {
  895. // position: absolute;
  896. // top: 24rpx !important;
  897. // right: 32rpx !important;
  898. // }
  899. // .current-price {
  900. // font-size: 36rpx;
  901. // }
  902. // }
  903. .priceName{
  904. top: -30rpx;
  905. left: 30rpx;
  906. position: absolute;
  907. font-size: 32rpx;
  908. }
  909. .price {
  910. top: -90rpx;
  911. right: 42rpx;
  912. position: absolute;
  913. p {
  914. text-align: right;
  915. color: rgba(0, 0, 0, 0.5);
  916. font-size: 12px;
  917. position: relative;
  918. top: -250rpx;
  919. }
  920. }
  921. .current-price {
  922. font-size: 58rpx;
  923. color: #101010;
  924. text-align: right;
  925. text {
  926. font-size: 28rpx;
  927. }
  928. }
  929. .original-cost {
  930. color: rgba(75, 65, 50, 100);
  931. text-decoration: line-through;
  932. margin-bottom: 6rpx;
  933. }
  934. ::v-deep .u-iconfont {
  935. font-size: 36rpx !important;
  936. }
  937. .card-0 {}
  938. // .card-0 {
  939. // background-position-x: 40rpx;
  940. // }
  941. .cardtab {
  942. margin-top: 32rpx;
  943. position: relative;
  944. background-size: 100% 100%;
  945. background-repeat: no-repeat;
  946. height: 200rpx;
  947. ::v-deep .u-checkbox__icon-wrap {
  948. background-color: #607d8b;
  949. opacity: 0.3
  950. }
  951. .radio-box {
  952. position: absolute;
  953. right: 0;
  954. bottom: 40rpx;
  955. }
  956. }
  957. }
  958. // 按钮
  959. .button {
  960. position: fixed;
  961. margin-top: -20rpx;
  962. width: 100%;
  963. bottom: 0px;
  964. border-radius: 16px 16px 0px 0px;
  965. padding: 20px 20px 24px 20px;
  966. background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 67%, rgba(255, 255, 255, 1) 84%);
  967. uni-button:after {
  968. border: none;
  969. }
  970. .btn {
  971. border: none !important;
  972. background: linear-gradient(#D8A05B, #C07C38);
  973. box-shadow: 0px 2px 6px 0px rgba(207, 175, 118, 40);
  974. border-radius: 50px;
  975. color: #FFF;
  976. font-size: 18px !important;
  977. line-height: 44px;
  978. height: 44px;
  979. overflow: inherit !important;
  980. .price {
  981. text-decoration: line-through;
  982. margin: auto 4px;
  983. font-size: 12px
  984. }
  985. }
  986. .btn2 {
  987. background: #00b962;
  988. }
  989. .hint {
  990. color: rgba(159, 157, 154, 100);
  991. line-height: 20px;
  992. text-align: center;
  993. margin-top: 8px;
  994. }
  995. .btn-2 {
  996. position: relative;
  997. }
  998. .position {
  999. position: absolute;
  1000. top: -16px;
  1001. left: 24%;
  1002. z-index: 999;
  1003. }
  1004. #talkbubble {
  1005. position: absolute;
  1006. top: 0;
  1007. left: 0;
  1008. padding: 0 10px;
  1009. line-height: 20px;
  1010. font-size: 12px;
  1011. color: #fff;
  1012. background: red;
  1013. position: relative;
  1014. border-radius: 10px;
  1015. text-align: center;
  1016. }
  1017. #talkbubble:before {
  1018. content: "";
  1019. position: absolute;
  1020. top: 100%;
  1021. //right: 45%;
  1022. border-top: 5px solid red;
  1023. border-right: 5px solid transparent;
  1024. border-left: 5px solid transparent;
  1025. }
  1026. }
  1027. .notice2 {
  1028. padding: 0 0 120px 0;
  1029. .titleHead {
  1030. color: #101010;
  1031. font-size: 40rpx;
  1032. text-align: center;
  1033. margin-bottom: 10px;
  1034. }
  1035. }
  1036. // 须知
  1037. .notice {
  1038. top: -10rpx;
  1039. border-radius: 15px 15px 0 0;
  1040. position: relative;
  1041. .title {
  1042. color: rgba(51, 51, 51, 1);
  1043. font-size: 40rpx;
  1044. text-align: center;
  1045. margin-bottom: 30rpx;
  1046. }
  1047. .line {
  1048. margin-bottom: 40rpx;
  1049. color: #666666;
  1050. font-size: 34rpx;
  1051. line-height: 52rpx;
  1052. .lineInfo1{
  1053. border: 1px solid #D5C5B5;
  1054. background-color: #fef9f5;
  1055. }
  1056. .lineInfo2{
  1057. border: 1px solid #79ACDB ;
  1058. background-color: #ffffff;
  1059. }
  1060. .lineInfo{
  1061. margin-right: 20rpx;
  1062. display: flex;
  1063. padding: 20rpx 15rpx 15rpx 10rpx;
  1064. border-radius: 10px;
  1065. margin-bottom: 16rpx;
  1066. .lineSvg{
  1067. padding-top: 2px;
  1068. margin: auto 16rpx;
  1069. img{
  1070. width: 70rpx;
  1071. color:#62574C ;
  1072. }
  1073. }
  1074. .lineView{
  1075. .lineTitle{
  1076. color:#62574C;
  1077. font-size: 36rpx;
  1078. }
  1079. .linep{
  1080. color:#8A7B6C;
  1081. font-size: 28rpx;
  1082. line-height: 28rpx;
  1083. }
  1084. }
  1085. }
  1086. }
  1087. background-color: #fff;
  1088. padding: 30rpx 30rpx 30rpx 50rpx;
  1089. ::v-deep .u-divider {
  1090. margin-bottom: 16px !important;
  1091. }
  1092. .text {
  1093. color: #666666;
  1094. margin-bottom: 12px;
  1095. line-height: 24px;
  1096. display: flex;
  1097. .num {
  1098. margin-right: 8px;
  1099. }
  1100. }
  1101. }
  1102. .carNone {
  1103. display: flex;
  1104. flex-direction: column;
  1105. justify-content: center;
  1106. align-items: center;
  1107. img {
  1108. width: 100%;
  1109. height: 100%;
  1110. }
  1111. p {
  1112. margin-top: -60px;
  1113. }
  1114. }
  1115. .slogan-4 {
  1116. margin-top: 10px;
  1117. /* text-decoration: underline; */
  1118. color: #9F9C99;
  1119. text-align: center;
  1120. position: fixed;
  1121. /* top: 40px; */
  1122. bottom: 40px;
  1123. right: 20px;
  1124. height: 55px;
  1125. width: 55px;
  1126. line-height: 20px;
  1127. font-size: 16px;
  1128. background: linear-gradient(45deg, #4BD2C0, rgb(72, 218, 149));
  1129. box-shadow: 0 4rpx 24rpx 0 rgb(72, 218, 149);
  1130. padding-top: 8px;
  1131. color: #fff;
  1132. border-radius: 25px;
  1133. }
  1134. .station,
  1135. .location,
  1136. .state1 {
  1137. box-shadow: 0px 4rpx 12rpx 0px #008c4a33;
  1138. }
  1139. // 附近站点改版
  1140. .station {
  1141. width: 91.4%;
  1142. border-radius: 8px;
  1143. padding: 12px 12px 12px 11px;
  1144. background-color: #fff;
  1145. margin: 8px auto 0;
  1146. .head {
  1147. display: flex;
  1148. justify-content: space-between;
  1149. align-items: center;
  1150. .title {
  1151. color: rgba(16, 16, 16, 100);
  1152. font-size: 32rpx;
  1153. font-weight: 550;
  1154. width: 440rpx;
  1155. text-overflow: ellipsis;
  1156. overflow: hidden;
  1157. white-space: nowrap;
  1158. }
  1159. .distance {
  1160. width: 180rpx;
  1161. color: rgba(102, 102, 102, 100);
  1162. font-size: 32rpx;
  1163. text-align: end;
  1164. .iconfont {
  1165. font-size: 24rpx;
  1166. margin-right: 4rpx;
  1167. }
  1168. }
  1169. }
  1170. .sign {
  1171. display: flex;
  1172. flex-wrap: wrap;
  1173. margin-top: 16rpx;
  1174. .sign-1 {
  1175. line-height: 40rpx;
  1176. border-radius: 8rpx;
  1177. background-color: rgba(255, 255, 255, 100);
  1178. color: rgba(255, 139, 0, 100);
  1179. font-size: 24rpx;
  1180. text-align: center;
  1181. border: 1px solid rgba(255, 139, 0, 100);
  1182. padding: 0 8rpx;
  1183. margin-right: 16rpx;
  1184. margin-bottom: 8rpx;
  1185. }
  1186. .sign-2 {
  1187. line-height: 40rpx;
  1188. border-radius: 8rpx;
  1189. background-color: rgba(255, 255, 255, 100);
  1190. color: rgba(153, 153, 153, 100);
  1191. font-size: 24rpx;
  1192. text-align: center;
  1193. border: 1px solid rgba(204, 204, 204, 100);
  1194. padding: 0 8rpx;
  1195. margin-right: 16rpx;
  1196. margin-bottom: 8rpx;
  1197. }
  1198. .sign-3 {
  1199. line-height: 40rpx;
  1200. border-radius: 8rpx;
  1201. background-color: rgba(255, 255, 255, 100);
  1202. color: #8161FF;
  1203. font-size: 24rpx;
  1204. text-align: center;
  1205. border: 1px solid #8161FF;
  1206. padding: 0 8rpx;
  1207. margin-right: 16rpx;
  1208. margin-bottom: 8rpx;
  1209. }
  1210. .sign-4 {
  1211. line-height: 40rpx;
  1212. border-radius: 8rpx;
  1213. background-color: rgba(255, 255, 255, 100);
  1214. color: #00B962;
  1215. font-size: 24rpx;
  1216. text-align: center;
  1217. border: 1px solid #00B962;
  1218. padding: 0 8rpx;
  1219. margin-right: 16rpx;
  1220. margin-bottom: 8rpx;
  1221. }
  1222. }
  1223. .price-free {
  1224. display: flex;
  1225. justify-content: space-between;
  1226. margin-top: 8rpx;
  1227. .price {
  1228. display: flex;
  1229. align-items: baseline;
  1230. }
  1231. .price-1 {
  1232. .num {
  1233. color: rgba(255, 98, 0, 100);
  1234. font-size: 44rpx;
  1235. }
  1236. .unit {
  1237. font-size: 12px;
  1238. color: rgba(153, 153, 153, 100);
  1239. }
  1240. }
  1241. .price-3 {
  1242. font-size: 24rpx;
  1243. color: #fff;
  1244. margin-left: 8rpx;
  1245. padding-right: 9rpx;
  1246. background:#00B962 ;
  1247. border-radius: 8rpx;
  1248. .num1{
  1249. padding-left: 12rpx;
  1250. border-radius: 8rpx 0 8rpx 8rpx;
  1251. padding-right: 18rpx;
  1252. background: #121212;
  1253. -webkit-clip-path: polygon(0 0, 93% 0, 84% 100%, 0% 100%);
  1254. clip-path: polygon(0 0, 93% 0, 84% 100%, 0% 100%);
  1255. }
  1256. }
  1257. .price-2 {
  1258. font-size: 24rpx;
  1259. color: rgba(153, 153, 153, 100);
  1260. margin-left: 8rpx;
  1261. text-decoration: line-through;
  1262. }
  1263. }
  1264. .free {
  1265. display: flex;
  1266. align-items: center;
  1267. .slow,
  1268. .fast {
  1269. display: flex;
  1270. .sp-font {
  1271. width: 40rpx;
  1272. height: 40rpx;
  1273. line-height: 40rpx;
  1274. border-radius: 4px;
  1275. background-color: #7a68f6;
  1276. color: #fff;
  1277. font-size: 28rpx;
  1278. text-align: center;
  1279. margin-right: 2rpx;
  1280. }
  1281. .fast-font {
  1282. width: 40rpx;
  1283. height: 40rpx;
  1284. line-height: 40rpx;
  1285. border-radius: 8rpx;
  1286. background-color: rgba(186, 240, 215, 100);
  1287. color: rgba(0, 130, 69, 100);
  1288. font-size: 28rpx;
  1289. text-align: center;
  1290. margin-right: 8rpx;
  1291. }
  1292. .slow-font {
  1293. width: 40rpx;
  1294. height: 40rpx;
  1295. line-height: 40rpx;
  1296. border-radius: 8rpx;
  1297. background-color: rgba(226, 226, 226, 100);
  1298. color: rgba(128, 128, 128, 100);
  1299. font-size: 28rpx;
  1300. text-align: center;
  1301. margin-right: 8rpx;
  1302. }
  1303. .num {
  1304. font-size: 32rpx;
  1305. color: rgba(0, 145, 67, 100);
  1306. line-height: 40rpx;
  1307. }
  1308. }
  1309. .slow {
  1310. margin-left: 24rpx;
  1311. }
  1312. }
  1313. }
  1314. .user-card {
  1315. padding: 19px 0 39px 20px;
  1316. margin: 21px 20px 0 20px;
  1317. background: url(@/assets/img/companyVIP.png) no-repeat right, linear-gradient(to right, #C6D4ED, #DCE6F0) no-repeat;
  1318. box-shadow: 0px 0px 16px 0px rgba(14, 39, 84, 28);
  1319. border: 2px solid rgba(236, 239, 245, 100);
  1320. border-radius: 16px;
  1321. display: flex;
  1322. .head-img {
  1323. width: 48px;
  1324. height: 48px;
  1325. img {
  1326. width: 100%;
  1327. }
  1328. }
  1329. .user-name {
  1330. margin-left: 12px;
  1331. .name {
  1332. line-height: 24px;
  1333. color: rgba(33, 41, 48, 100);
  1334. font-size: 24px;
  1335. font-weight: 550;
  1336. }
  1337. .sign {
  1338. color: rgba(76, 89, 111, 100);
  1339. font-size: 16px;
  1340. line-height: 16px;
  1341. margin-top: 8px;
  1342. }
  1343. }
  1344. }
  1345. </style>