Prechádzať zdrojové kódy

授权管理列表 删除人员 确认删除

常志远 1 rok pred
rodič
commit
99477a2c83

BIN
assets/img/PEokWS2@3x.png


+ 6 - 0
assets/img/riLine-contacts-line.svg

@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32" width="20" height="20" style="" filter="none">
+    
+    <g>
+    <path d="M25.333 9.333h6.667v2.667h-6.667v-2.667zM22.667 16h9.333v2.667h-9.333v-2.667zM26.667 22.667h5.333v2.667h-5.333v-2.667zM2.667 29.333c0-5.891 4.776-10.667 10.667-10.667s10.667 4.776 10.667 10.667v0h-2.667c0-4.418-3.582-8-8-8s-8 3.582-8 8v0h-2.667zM13.333 17.333c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zM13.333 14.667c2.947 0 5.333-2.387 5.333-5.333s-2.387-5.333-5.333-5.333-5.333 2.387-5.333 5.333 2.387 5.333 5.333 5.333z" fill="rgba(51,51,51,1)"></path>
+    </g>
+  </svg>

+ 6 - 0
assets/img/riLine-qr-code-line 1.svg

@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32" width="20" height="20" style="" filter="none">
+    
+    <g>
+    <path d="M21.333 22.667v-1.333h-4v-4h4v2.667h2.667v2.667h-1.333v2.667h-2.667v2.667h-2.667v-4h2.667v-1.333h1.333zM28 28h-5.333v-2.667h2.667v-2.667h2.667v5.333zM4 4h10.667v10.667h-10.667v-10.667zM6.667 6.667v5.333h5.333v-5.333h-5.333zM17.333 4h10.667v10.667h-10.667v-10.667zM20 6.667v5.333h5.333v-5.333h-5.333zM4 17.333h10.667v10.667h-10.667v-10.667zM6.667 20v5.333h5.333v-5.333h-5.333zM24 17.333h4v2.667h-4v-2.667zM8 8h2.667v2.667h-2.667v-2.667zM8 21.333h2.667v2.667h-2.667v-2.667zM21.333 8h2.667v2.667h-2.667v-2.667z" fill="rgba(255,255,255,1)"></path>
+    </g>
+  </svg>

+ 8 - 0
pages.json

@@ -410,6 +410,14 @@
         	{
         		"navigationBarTitleText" : ""
         	}
+        },
+        {
+        	"path" : "pages/managementList/managementList",
+        	"style" : 
+        	{
+        		"navigationBarTitleText" : "",
+        		"enablePullDownRefresh" : false
+        	}
         }
       
        

+ 296 - 0
pages/managementList/managementList.vue

@@ -0,0 +1,296 @@
+<template>
+	<view>
+		<u-navbar title="授权管理" title-color="#101010">
+			<view slot="right" @click="deleteShow=!deleteShow">
+				<img src="@/assets/img/riLine-list-settings-line.svg" alt="" />
+			</view>
+		</u-navbar>
+		<view class="search">
+			<u-search placeholder="搜索授权用户" :show-action="false"		 v-model="keyword"></u-search>
+		</view>
+		
+		<!-- 列表 -->
+		<view class="member-list">
+			<view class="item" v-for="item in 15" >
+				<view class="photo">
+					<img src="@/assets/img/PEokWS2@3x.png" alt="" />
+				</view>
+				<view class="infos">
+					<view class="name">
+						杨静云
+					</view>
+					<view class="tel">
+						19729922849
+					</view>
+				</view>
+				
+				<view class="button" v-if="!deleteShow">
+					权限管理
+				</view>
+				<!-- 单选框 -->
+				<view class="radio-box" v-if="deleteShow">
+				
+					<label class="radio">
+						<radio value="" /><text></text>
+					</label>
+				
+				</view>
+			</view>
+		</view>
+		
+		<view class="bottom">
+			<view class="button qr-code">
+				 <img src="@/assets/img/riLine-qr-code-line 1.svg" alt="" /> 授权二维码
+			</view>
+			
+			<view class="button list-button">
+				 <img src="@/assets/img/riLine-contacts-line.svg" alt="" /> 申请人列表
+				 <view class="bot">
+				 	8
+				 </view>
+			</view>
+		</view>
+		<!-- 删除 -->
+		<view class="delete" v-if="deleteShow" @click="deletePopup=true">
+			<view class="icon">
+				<img src="@/assets/img/riLine-delete-bin-7-line 1.svg" alt="" />
+			</view>
+			<view class="text">
+				删除
+			</view>
+		</view>
+		<!-- 删除确认弹框 -->
+		<u-popup v-model="deletePopup" mode="bottom" border-radius="12">
+			<view class="popup">
+				<view class="headline">
+					删除定时
+				</view>
+				<view class="hint">
+					要删除选中的定时吗?
+				</view>
+				<view class="btn-box">
+					<view class="cancel" @click="deletePopup=false">
+						取消
+					</view>
+					<view class="confirm" >
+						确认删除
+					</view>
+				</view>
+			</view>
+		</u-popup>
+		
+		
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				keyword:"",
+				deleteShow:false,
+				deletePopup:false
+			}
+		},
+		methods: {
+			
+		}
+	}
+</script>
+
+<style>
+	page{
+		padding-bottom: 100px;
+	}
+</style>
+
+
+<style lang="scss" scoped>
+	/deep/.u-slot-right {
+		padding-right: 32rpx;
+		padding-left: 16rpx;
+		line-height: 30px;
+		background-color: #fff;
+		img {
+			width: 48rpx;
+			height: 48rpx;
+			vertical-align: middle;
+		}
+	}
+	
+	.search{
+		border-bottom: 1px solid rgba(242,242,242,1);
+		background: #fff;
+		padding:24rpx;
+		position:sticky;
+		    left: 0;
+		    right: 0;
+		    top: 80rpx;
+		    z-index: 991;
+	}
+
+  // 列表
+  .member-list{
+	  background: #fff;
+	  .item{
+		  padding: 32rpx 0;
+		  margin: 0 32rpx;
+		  display: flex;
+		  align-items: center;
+		  border-bottom: 1px solid rgba(244,244,244,1);;
+	  }
+	  .photo{
+		  img{
+			  width: 80rpx;
+			  height: 80rpx;
+			  border-radius: 50px;
+		  }
+	  }
+	  .infos{
+		  margin-left: 16rpx;
+		  .name{
+			  color: rgba(51,51,51,1);
+			  font-size: 32rpx;
+		  }
+		  .tel{
+			  color: rgba(119,119,119,1);
+			  font-size: 24rpx;
+			  margin-top: 4rpx;
+		  }
+	  }
+	  .button{
+		  width: 144rpx;
+		  height: 56rpx;
+		  line-height: 56rpx;
+		  border-radius: 50px;
+		  background-color: rgba(22,119,255,1);
+		  color: rgba(255,255,255,1);
+		  text-align: center;
+		  margin-left: auto;
+	  }
+	  .radio-box{
+		  margin-left: auto;
+	  }
+	  
+  }
+ 
+ 
+  .bottom{
+	  position: fixed;
+	  left: 0;
+	  right: 0;
+	  bottom: 0;
+	  background-color: #fff;
+	  padding: 20rpx 32rpx;
+	  display: flex;
+	  justify-content: space-between;
+	  img{
+		  width: 40rpx;
+		  height: 40rpx;
+		  margin-right: 8rpx;
+	  }
+	  .button{
+		  width: 328rpx;
+		  height: 80rpx;
+		  line-height: 80rpx;
+		  border-radius: 4px;
+		  font-size: 32rpx;
+		  text-align: center;
+		  display: flex;
+		  align-items: center;
+		  justify-content: center;
+	  }
+	  .qr-code{
+		  
+		  background-color: rgba(22,119,255,1);
+		  color: rgba(255,255,255,1);
+		 
+		  
+	  }
+	  .list-button{
+		  background-color: rgba(222,225,228,1);
+		  color: rgba(51,51,51,1);
+		  position: relative;
+	  }
+	  .bot{
+		  width: 40rpx;
+		  height: 40rpx;
+		  line-height: 40rpx;
+		  border-radius: 10px;
+		  background-color: rgba(244,60,50,1);
+		  color: rgba(255,255,255,1);
+		  font-size: 24rpx;
+		  text-align: center;
+		  position: absolute;
+		  top: -10rpx;
+		  right:-10rpx;
+	  }
+  }
+ 
+ // 删除
+.delete {
+		position: fixed;
+		left: 0;
+		right: 0;
+		bottom: 0;
+		background-color: #fff;
+		display: flex;
+		flex-direction: column;
+		align-items: center;
+		justify-content: center;
+		height: 120rpx;
+
+		img {
+			width: 48rpx;
+			height: 48rpx;
+		}
+
+		.text {
+			color: rgba(51, 51, 51, 1);
+			font-size: 20rpx;
+		}
+	} 
+ 
+ .popup {
+ 	padding: 32rpx;
+ 	text-align: center;
+ 
+ 	.headline {
+ 		color: rgba(16, 16, 16, 1);
+ 		font-size: 36rpx;
+ 		font-weight: bold;
+ 	}
+ 
+ 	.hint {
+ 		color: rgba(16, 16, 16, 1);
+ 		font-size: 32rpx;
+ 		margin-top: 40rpx;
+ 	}
+ 
+ 	.btn-box {
+ 		margin-top: 82rpx;
+ 		display: flex;
+ 		justify-content: space-between;
+ 
+ 		.cancel {
+ 			width: 328rpx;
+ 			line-height: 80rpx;
+ 			border-radius: 4px;
+ 			background-color: rgba(222, 225, 228, 1);
+ 			color: rgba(51, 51, 51, 1);
+ 			font-size: 32rpx;
+ 		}
+ 
+ 		.confirm {
+ 			width: 328rpx;
+ 			line-height: 80rpx;
+ 			border-radius: 4px;
+ 			background-color: rgba(255, 68, 68, 1);
+ 			color: rgba(255, 255, 255, 1);
+ 			font-size: 32rpx;
+ 		}
+ 	}
+ }
+ 
+ 
+</style>