userManagement.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <template>
  2. <view class="user-card">
  3. <view class="flex-row align-center user-card-heard">
  4. <img style="width: 48rpx;height: 48rpx;" src="https://qiniu.bms16.com/FieeNq75ybyjIzQO6fmNcdTlRsp5" alt="">
  5. <text style="margin-left: 16rpx;">共享用户</text>
  6. </view>
  7. <view class="user-card-text">家人、朋友长期共用车辆,授权账户可以使用感应解锁,寻车定位,查看设置等功能;</view>
  8. <!-- <view v-for="(item,index) in userList" :key="index"> -->
  9. <view @tap="navUserSet" data-item="item" class="user-list flex-row align-center" >
  10. <img class="user-heard-img" src="https://qiniu.bms16.com/FprjgdYTzB9LDkHZT1F-p_kQKNty" alt="">
  11. <view class="user-name-view">
  12. <view class="user-name">名字</view>
  13. <view class="user-email">154535486@mail</view>
  14. </view>
  15. <img class="user-nav-img" src="https://qiniu.bms16.com/FqnbZ2iKHmzCGJA8XD30sf5g_CAm" alt="">
  16. </view>
  17. <view class="user-list flex-row align-center">
  18. <img class="user-heard-img" src="https://qiniu.bms16.com/FprjgdYTzB9LDkHZT1F-p_kQKNty" alt="">
  19. <view class="user-name-view">
  20. <view class="user-name">名字</view>
  21. <view class="user-email">154535486@mail</view>
  22. </view>
  23. <img class="user-nav-img" src="https://qiniu.bms16.com/FqnbZ2iKHmzCGJA8XD30sf5g_CAm" alt="">
  24. </view>
  25. <view @tap="addUser" class="flex-row user-card-btn align-center">
  26. <img style="width: 20rpx;height: 20rpx;" src="https://qiniu.bms16.com/FvP_5VTgawzExIHW3kJahXAvE04z" alt="">
  27. <text style="margin-left: 6rpx;">添加成员</text>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. var config = require('../../common/config.js');
  33. export default {
  34. data() {
  35. return {
  36. userList:[]
  37. };
  38. }
  39. /**
  40. * 生命周期函数--监听页面加载
  41. */
  42. ,
  43. onLoad: function(options) {
  44. },
  45. methods: {
  46. addUser(){
  47. uni.navigateTo({
  48. url:'/pages/powerSetting/powerSetting'
  49. })
  50. },
  51. navUserSet(e){
  52. const params=e.currentTarget.dataset.item
  53. uni.navigateTo({
  54. url:'/pages/powerSetting/powerSetting?params='+JSON.stringify(params)
  55. })
  56. }
  57. }
  58. };
  59. </script>
  60. <style>
  61. .user-card{
  62. background: #FFFFFF;
  63. border-radius: 40rpx;
  64. border: 4rpx solid #FFFFFF;
  65. margin: 24rpx;
  66. padding: 32rpx 32rpx 48rpx ;
  67. }
  68. .align-center{
  69. align-items: center;
  70. }
  71. .user-card-heard{
  72. font-weight: 600;
  73. font-size: 40rpx;
  74. color: #060809;
  75. margin-bottom: 16rpx;
  76. }
  77. .user-card-text{
  78. font-weight: 400;
  79. font-size: 28rpx;
  80. color: #060809;
  81. margin-bottom: 40rpx;
  82. opacity: 0.4;
  83. }
  84. .user-card-btn{
  85. justify-content: center;
  86. font-weight: 600;
  87. font-size: 32rpx;
  88. color: #060809;
  89. }
  90. .user-heard-img{
  91. width: 112rpx;
  92. height: 112rpx;
  93. border-radius: 50%;
  94. }
  95. .user-name-view{
  96. margin-bottom: 48rpx;
  97. display: flex;
  98. flex-direction: column;
  99. flex-grow: 1;
  100. margin-left: 24rpx;
  101. padding: 0 18rpx;
  102. }
  103. .user-name{
  104. font-weight: 600;
  105. font-size: 32rpx;
  106. color: #060809;
  107. padding-bottom:20rpx ;
  108. }
  109. .user-email{
  110. font-weight: 500;
  111. font-size: 24rpx;
  112. color: #060809;
  113. opacity: 0.6;
  114. }
  115. .user-nav-img{
  116. width: 28rpx;
  117. height: 28rpx;
  118. }
  119. </style>