monthlyCardBuy.vue 35 KB

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