mine.vue 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477
  1. <template>
  2. <view>
  3. <view class="header">
  4. <!-- 用户信息 -->
  5. <view class="userinfo">
  6. <view class="infos">
  7. <view class="head-portrait">
  8. <img src="../../assets/img/headPortrait.png" alt="">
  9. </view>
  10. <view class="username">
  11. <view class="name">
  12. 周斌
  13. </view>
  14. <view class="change">
  15. 点击修改个人信息
  16. </view>
  17. </view>
  18. </view>
  19. <view class="right">
  20. <i class="ri-notification-2-line">
  21. <text class="unread">20</text>
  22. </i>
  23. <i class="ri-settings-line"></i>
  24. </view>
  25. </view>
  26. <!-- 卡片 -->
  27. <view class="card">
  28. <view class="title">
  29. <text class="img">
  30. <img src="../../assets/img/riFill-building-fill@4x.png" alt="">
  31. </text>荆鹏软件企业会员
  32. </view>
  33. <view class="view">
  34. 查看<text class="iconfont">&#xe600;</text>
  35. </view>
  36. </view>
  37. <!-- 立即开通 -->
  38. <view class="open">
  39. <view class="title">
  40. <text class="img">
  41. <img src="../../assets/img/antFill-crown@3x.png" alt="">
  42. </text>充电月卡
  43. </view>
  44. <view class="open-btn">
  45. 立即开通
  46. <text class="iconfont">&#xe632;</text>
  47. </view>
  48. </view>
  49. <!-- 开通后 -->
  50. <view class="opened">
  51. <view class="title">
  52. <text class="img">
  53. <img src="../../assets/img/antFill-crown@3x.png" alt="">
  54. </text>充电月卡
  55. </view>
  56. <view class="date">
  57. 2022.07.30到期
  58. <text class="iconfont">&#xe600;</text>
  59. </view>
  60. </view>
  61. <!-- 可用余额 -->
  62. <view class="balance">
  63. <view class="item">
  64. <view class="num">
  65. 0.00
  66. </view>
  67. <view class="name">
  68. 可用余额
  69. </view>
  70. </view>
  71. <view class="item">
  72. <view class="num">
  73. 2
  74. <text class="new">新券</text>
  75. </view>
  76. <view class="name">
  77. 优惠券
  78. </view>
  79. </view>
  80. <view class="item">
  81. <view class="num">
  82. 0
  83. </view>
  84. <view class="name">
  85. 积分
  86. </view>
  87. </view>
  88. </view>
  89. </view>
  90. <!-- 优惠 -->
  91. <view class="discounts">
  92. </view>
  93. <!-- 菜单 -->
  94. <view class="menu">
  95. <view class="item">
  96. <view class="item-icon">
  97. <i class="ri-todo-line"></i>
  98. </view>
  99. <view class="item-name">
  100. 充电记录
  101. </view>
  102. </view>
  103. <view class="item">
  104. <view class="item-icon">
  105. <i class="ri-map-pin-time-line"></i>
  106. </view>
  107. <view class="item-name">
  108. 我的预约
  109. </view>
  110. </view>
  111. <view class="item">
  112. <view class="item-icon">
  113. <i class="ri-ticket-line"></i>
  114. </view>
  115. <view class="item-name">
  116. 我的发票
  117. </view>
  118. </view>
  119. <view class="item">
  120. <view class="item-icon">
  121. <i class="ri-customer-service-2-line"></i>
  122. </view>
  123. <view class="item-name">
  124. 联系客服
  125. </view>
  126. </view>
  127. <view class="item">
  128. <view class="item-icon">
  129. <i class="ri-feedback-line"></i>
  130. </view>
  131. <view class="item-name">
  132. 意见反馈
  133. </view>
  134. </view>
  135. <view class="item">
  136. <view class="item-icon">
  137. <i class="ri-compass-3-line"></i>
  138. </view>
  139. <view class="item-name">
  140. 操作指南
  141. </view>
  142. </view>
  143. <view class="item">
  144. <view class="item-icon">
  145. <i class="ri-account-pin-box-line"></i>
  146. </view>
  147. <view class="item-name">
  148. 关于我们
  149. </view>
  150. </view>
  151. <view class="item">
  152. <view class="item-icon">
  153. <i class="ri-tools-line"></i>
  154. </view>
  155. <view class="item-name">
  156. 我要报修
  157. </view>
  158. </view>
  159. <view class="item">
  160. <view class="item-icon">
  161. <i class="ri-file-add-line"></i>
  162. </view>
  163. <view class="item-name">
  164. 免费安桩
  165. </view>
  166. </view>
  167. <view class="item">
  168. <view class="item-icon">
  169. <i class="ri-service-line"></i>
  170. </view>
  171. <view class="item-name">
  172. 我要加盟
  173. </view>
  174. </view>
  175. <view class="item">
  176. <view class="item-icon">
  177. <i class="ri-shield-user-line"></i>
  178. </view>
  179. <view class="item-name">
  180. 实名认证
  181. </view>
  182. </view>
  183. </view>
  184. <Tabbar :current="0" ref="tabbarMain" :elderStatus="elderStatus"></Tabbar>
  185. </view>
  186. </template>
  187. <script>
  188. import Tabbar from '@/components/Tabbar.vue'
  189. export default {
  190. components: {
  191. Tabbar
  192. },
  193. data() {
  194. return {
  195. }
  196. },
  197. methods: {
  198. }
  199. }
  200. </script>
  201. <style lang="scss" scoped>
  202. .header {
  203. background: linear-gradient(#D6EEDC, #F6F8F8);
  204. .userinfo {
  205. display: flex;
  206. justify-content: space-between;
  207. padding: 20px 16px;
  208. .infos {
  209. display: flex;
  210. }
  211. .head-portrait {
  212. width: 48px;
  213. height: 48px;
  214. img {
  215. width: 100%;
  216. height: 100%;
  217. }
  218. }
  219. .username {
  220. margin-left: 8px;
  221. .name {
  222. color: rgba(51, 51, 51, 100);
  223. font-size: 24px;
  224. line-height: 24px;
  225. }
  226. .change {
  227. color: rgba(166, 180, 173, 100);
  228. line-height: 14px;
  229. margin-top: 8px;
  230. }
  231. }
  232. .right {
  233. font-size: 24px;
  234. .ri-notification-2-line{
  235. position: relative;
  236. .unread{
  237. width: 20px;
  238. line-height: 14px;
  239. border-radius: 24px;
  240. background-color: rgba(255, 94, 0, 100);
  241. color: rgba(255, 255, 255, 100);
  242. font-size: 9px;
  243. text-align: center;
  244. position: absolute;
  245. bottom: 14px;
  246. left: 14px;
  247. }
  248. }
  249. .ri-settings-line {
  250. margin-left: 16px;
  251. }
  252. }
  253. }
  254. // 卡片
  255. .card {
  256. background: linear-gradient(#405473, #536D96);
  257. width: 91.4%;
  258. margin: 4px auto 0;
  259. padding: 15px 12px 12px 12px;
  260. display: flex;
  261. justify-content: space-between;
  262. border-radius: 8px;
  263. .title {
  264. line-height: 24px;
  265. color: rgba(255, 255, 255, 100);
  266. font-size: 16px;
  267. .img {
  268. display: inline-block;
  269. width: 24px;
  270. height: 24px;
  271. vertical-align: middle;
  272. margin-right: 8px;
  273. img {
  274. width: 20px;
  275. height: 20px;
  276. }
  277. }
  278. }
  279. .view {
  280. line-height: 24px;
  281. color: rgba(208, 214, 226, 100);
  282. font-size: 16px;
  283. }
  284. }
  285. // 立即开通
  286. .open,.opened {
  287. background: linear-gradient(#4A4C62, #2C3145);
  288. width: 91.4%;
  289. padding: 15px 12px 12px 12px;
  290. margin: 4px auto 0;
  291. display: flex;
  292. justify-content: space-between;
  293. border-radius: 8px;
  294. .title {
  295. line-height: 24px;
  296. color: #E1C082;
  297. font-size: 16px;
  298. .img {
  299. display: inline-block;
  300. width: 24px;
  301. height: 24px;
  302. vertical-align: middle;
  303. margin-right: 8px;
  304. img {
  305. width: 20px;
  306. height: 20px;
  307. }
  308. }
  309. }
  310. .open-btn {
  311. padding-left: 12px;
  312. padding-right: 4px;
  313. line-height: 28px;
  314. // text-align: center;
  315. border-radius: 50px;
  316. background: linear-gradient(to right,#F0E1C6, #ECC194);
  317. .iconfont {
  318. margin-left: 0px;
  319. }
  320. }
  321. .date{
  322. color: #d1b37a;
  323. line-height: 24px;
  324. font-size: 16px;
  325. .iconfont{
  326. color: #867668
  327. }
  328. }
  329. }
  330. // 余额
  331. .balance {
  332. background-color: #fff;
  333. width: 91.4%;
  334. margin: 12px auto;
  335. padding: 16px 29px;
  336. display: flex;
  337. justify-content: space-between;
  338. border-radius: 8px;
  339. .item {
  340. text-align: center;
  341. .num {
  342. line-height: 28px;
  343. color: rgba(51, 51, 51, 100);
  344. font-size: 28px;
  345. position: relative;
  346. .new{
  347. width: 40px;
  348. line-height: 20px;
  349. border-radius: 24px 24px 24px 0px;
  350. background-color: rgba(255, 94, 0, 100);
  351. color: rgba(255, 255, 255, 100);
  352. font-size: 12px;
  353. text-align: center;
  354. position: absolute;
  355. bottom:20px;
  356. left: 36px;
  357. }
  358. }
  359. .name {
  360. height: 16px;
  361. color: rgba(134, 134, 134, 100);
  362. font-size: 16px;
  363. margin-top: 4px;
  364. }
  365. }
  366. }
  367. }
  368. // 优惠
  369. .discounts {
  370. width: 91.4%;
  371. height: 80px;
  372. margin: 0 auto;
  373. border-radius: 8px;
  374. overflow: hidden;
  375. img {
  376. width: 100%;
  377. height: 80px;
  378. }
  379. }
  380. // 菜单
  381. .menu{
  382. background-color: #fff;
  383. width: 91.4%;
  384. margin: 12px auto 0;
  385. padding: 0 12px 9px 12px;
  386. border-radius: 8px;
  387. display: flex;
  388. flex-wrap: wrap;
  389. @media screen and (max-width: 375px) {
  390. .item {
  391. width: 33% !important;
  392. }
  393. }
  394. .item{
  395. width: 25%;
  396. margin-top: 20px;
  397. margin-bottom: 11px;
  398. display: flex;
  399. flex-direction: column;
  400. align-items: center;
  401. color: rgba(119, 119, 119, 100);
  402. i{
  403. font-size: 24px
  404. }
  405. .item-name{
  406. font-size: 16px;
  407. margin-top: 8px;
  408. }
  409. }
  410. }
  411. </style>