monthlyCardBuy.vue 35 KB

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