managementList.vue 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. <template>
  2. <view>
  3. <u-navbar title="授权管理" title-color="#101010">
  4. <view slot="right" @click="deleteShow=!deleteShow">
  5. <img src="@/assets/img/riLine-list-settings-line.svg" alt="" />
  6. </view>
  7. </u-navbar>
  8. <view class="search">
  9. <u-search placeholder="搜索授权用户" :show-action="false" v-model="keyword"></u-search>
  10. </view>
  11. <!-- 列表 -->
  12. <view class="member-list">
  13. <view class="item" v-for="item in 15" >
  14. <view class="photo">
  15. <img src="@/assets/img/PEokWS2@3x.png" alt="" />
  16. </view>
  17. <view class="infos">
  18. <view class="name">
  19. 杨静云
  20. </view>
  21. <view class="tel">
  22. 19729922849
  23. </view>
  24. </view>
  25. <view class="button" v-if="!deleteShow">
  26. 权限管理
  27. </view>
  28. <!-- 单选框 -->
  29. <view class="radio-box" v-if="deleteShow">
  30. <label class="radio">
  31. <radio value="" /><text></text>
  32. </label>
  33. </view>
  34. </view>
  35. </view>
  36. <view class="bottom">
  37. <view class="button qr-code">
  38. <img src="@/assets/img/riLine-qr-code-line 1.svg" alt="" /> 授权二维码
  39. </view>
  40. <view class="button list-button">
  41. <img src="@/assets/img/riLine-contacts-line.svg" alt="" /> 申请人列表
  42. <view class="bot">
  43. 8
  44. </view>
  45. </view>
  46. </view>
  47. <!-- 删除 -->
  48. <view class="delete" v-if="deleteShow" @click="deletePopup=true">
  49. <view class="icon">
  50. <img src="@/assets/img/riLine-delete-bin-7-line 1.svg" alt="" />
  51. </view>
  52. <view class="text">
  53. 删除
  54. </view>
  55. </view>
  56. <!-- 删除确认弹框 -->
  57. <u-popup v-model="deletePopup" mode="bottom" border-radius="12">
  58. <view class="popup">
  59. <view class="headline">
  60. 删除定时
  61. </view>
  62. <view class="hint">
  63. 要删除选中的定时吗?
  64. </view>
  65. <view class="btn-box">
  66. <view class="cancel" @click="deletePopup=false">
  67. 取消
  68. </view>
  69. <view class="confirm" >
  70. 确认删除
  71. </view>
  72. </view>
  73. </view>
  74. </u-popup>
  75. </view>
  76. </template>
  77. <script>
  78. export default {
  79. data() {
  80. return {
  81. keyword:"",
  82. deleteShow:false,
  83. deletePopup:false
  84. }
  85. },
  86. methods: {
  87. }
  88. }
  89. </script>
  90. <style>
  91. page{
  92. padding-bottom: 100px;
  93. }
  94. </style>
  95. <style lang="scss" scoped>
  96. /deep/.u-slot-right {
  97. padding-right: 32rpx;
  98. padding-left: 16rpx;
  99. line-height: 30px;
  100. background-color: #fff;
  101. img {
  102. width: 48rpx;
  103. height: 48rpx;
  104. vertical-align: middle;
  105. }
  106. }
  107. .search{
  108. border-bottom: 1px solid rgba(242,242,242,1);
  109. background: #fff;
  110. padding:24rpx;
  111. position:sticky;
  112. left: 0;
  113. right: 0;
  114. top: 80rpx;
  115. z-index: 991;
  116. }
  117. // 列表
  118. .member-list{
  119. background: #fff;
  120. .item{
  121. padding: 32rpx 0;
  122. margin: 0 32rpx;
  123. display: flex;
  124. align-items: center;
  125. border-bottom: 1px solid rgba(244,244,244,1);;
  126. }
  127. .photo{
  128. img{
  129. width: 80rpx;
  130. height: 80rpx;
  131. border-radius: 50px;
  132. }
  133. }
  134. .infos{
  135. margin-left: 16rpx;
  136. .name{
  137. color: rgba(51,51,51,1);
  138. font-size: 32rpx;
  139. }
  140. .tel{
  141. color: rgba(119,119,119,1);
  142. font-size: 24rpx;
  143. margin-top: 4rpx;
  144. }
  145. }
  146. .button{
  147. width: 144rpx;
  148. height: 56rpx;
  149. line-height: 56rpx;
  150. border-radius: 50px;
  151. background-color: rgba(22,119,255,1);
  152. color: rgba(255,255,255,1);
  153. text-align: center;
  154. margin-left: auto;
  155. }
  156. .radio-box{
  157. margin-left: auto;
  158. }
  159. }
  160. .bottom{
  161. position: fixed;
  162. left: 0;
  163. right: 0;
  164. bottom: 0;
  165. background-color: #fff;
  166. padding: 20rpx 32rpx;
  167. display: flex;
  168. justify-content: space-between;
  169. img{
  170. width: 40rpx;
  171. height: 40rpx;
  172. margin-right: 8rpx;
  173. }
  174. .button{
  175. width: 328rpx;
  176. height: 80rpx;
  177. line-height: 80rpx;
  178. border-radius: 4px;
  179. font-size: 32rpx;
  180. text-align: center;
  181. display: flex;
  182. align-items: center;
  183. justify-content: center;
  184. }
  185. .qr-code{
  186. background-color: rgba(22,119,255,1);
  187. color: rgba(255,255,255,1);
  188. }
  189. .list-button{
  190. background-color: rgba(222,225,228,1);
  191. color: rgba(51,51,51,1);
  192. position: relative;
  193. }
  194. .bot{
  195. width: 40rpx;
  196. height: 40rpx;
  197. line-height: 40rpx;
  198. border-radius: 10px;
  199. background-color: rgba(244,60,50,1);
  200. color: rgba(255,255,255,1);
  201. font-size: 24rpx;
  202. text-align: center;
  203. position: absolute;
  204. top: -10rpx;
  205. right:-10rpx;
  206. }
  207. }
  208. // 删除
  209. .delete {
  210. position: fixed;
  211. left: 0;
  212. right: 0;
  213. bottom: 0;
  214. background-color: #fff;
  215. display: flex;
  216. flex-direction: column;
  217. align-items: center;
  218. justify-content: center;
  219. height: 120rpx;
  220. img {
  221. width: 48rpx;
  222. height: 48rpx;
  223. }
  224. .text {
  225. color: rgba(51, 51, 51, 1);
  226. font-size: 20rpx;
  227. }
  228. }
  229. .popup {
  230. padding: 32rpx;
  231. text-align: center;
  232. .headline {
  233. color: rgba(16, 16, 16, 1);
  234. font-size: 36rpx;
  235. font-weight: bold;
  236. }
  237. .hint {
  238. color: rgba(16, 16, 16, 1);
  239. font-size: 32rpx;
  240. margin-top: 40rpx;
  241. }
  242. .btn-box {
  243. margin-top: 82rpx;
  244. display: flex;
  245. justify-content: space-between;
  246. .cancel {
  247. width: 328rpx;
  248. line-height: 80rpx;
  249. border-radius: 4px;
  250. background-color: rgba(222, 225, 228, 1);
  251. color: rgba(51, 51, 51, 1);
  252. font-size: 32rpx;
  253. }
  254. .confirm {
  255. width: 328rpx;
  256. line-height: 80rpx;
  257. border-radius: 4px;
  258. background-color: rgba(255, 68, 68, 1);
  259. color: rgba(255, 255, 255, 1);
  260. font-size: 32rpx;
  261. }
  262. }
  263. }
  264. </style>