monthlyCardBuy.vue 37 KB

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