monthlyCardBuy.vue 35 KB

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