|
@@ -1,43 +1,66 @@
|
|
|
<!-- 用户管理 -->
|
|
|
<template>
|
|
|
- <view class="usermenage">
|
|
|
-
|
|
|
- <view class="uuserheader">
|
|
|
-
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="content">
|
|
|
- <view class="item">
|
|
|
- <view class="top">
|
|
|
- <view class="expression">
|
|
|
- <text class="title">账号</text>:<text class="msg">admin</text>
|
|
|
- </view>
|
|
|
- <view class="expression">
|
|
|
- <text class="title">实际姓名</text>:<text class="msg">admin</text>
|
|
|
- </view>
|
|
|
- <view class="expression">
|
|
|
- <text class="title">手机</text>:<text class="msg">admin</text>
|
|
|
- </view>
|
|
|
- <view class="expression">
|
|
|
- <text class="title">状态</text>:<text class="msg status">启用</text>
|
|
|
+ <view class="user-warp">
|
|
|
+ <view class="user-header">
|
|
|
+ <view class="header">
|
|
|
+ <view class="inputnameorphone">
|
|
|
+ <view class="more" >
|
|
|
+ <text class="txt" @tap="showCondition">{{conditionlist[index].name }}</text>
|
|
|
+ <image class="downicon" @tap="showCondition" src="../../../static/images/garydownicon.png"></image>
|
|
|
+ <view class="bar" v-if="showcondition">
|
|
|
+ <view class="trigon"></view>
|
|
|
+ <view class="item" @tap="change(1)">账号</view>
|
|
|
+ <view class="item" @tap="change(2)">真实姓名</view>
|
|
|
+ <view class="item" @tap="change(3)">手机号</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
+ <input class="usermsg" type="text" placeholder="请输入账号或姓名、手机号" placeholder-style="font-size:12px"/>
|
|
|
+ <image class="searchicon" src="../../../static/images/search.png"></image>
|
|
|
+ </view>
|
|
|
+ <view class="header-btns">
|
|
|
+ <image class="add" @tap="add" src="../../../static/images/addicon.png"></image>
|
|
|
+ <image class="ref" src="../../../static/images/reficon.png"></image>
|
|
|
</view>
|
|
|
- <view class="bottom">
|
|
|
- <view class="btns">
|
|
|
- <view class="btn more">
|
|
|
- <view class="txt" @tap="showMore">更多</view>
|
|
|
- <view class="bar" v-if="ishow">
|
|
|
- ishow
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view style="height: 110upx"></view>
|
|
|
+ <view class="usermenage">
|
|
|
+ <view class="content">
|
|
|
+ <view class="item">
|
|
|
+ <view class="top">
|
|
|
+ <view class="expression">
|
|
|
+ <text class="title">账号</text>:<text class="msg">admin</text>
|
|
|
+ </view>
|
|
|
+ <view class="expression">
|
|
|
+ <text class="title">实际姓名</text>:<text class="msg">admin</text>
|
|
|
+ </view>
|
|
|
+ <view class="expression">
|
|
|
+ <text class="title">手机</text>:<text class="msg">admin</text>
|
|
|
+ </view>
|
|
|
+ <view class="expression">
|
|
|
+ <text class="title">状态</text>:<text class="msg status"
|
|
|
+ >启用</text
|
|
|
+ >
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="bottom">
|
|
|
+ <view class="btns">
|
|
|
+ <view class="btn more">
|
|
|
+ <view class="txt" @tap="showMore">更多</view>
|
|
|
+ <view class="bar" v-if="isshow">
|
|
|
+ <view class="trigon"></view>
|
|
|
+ <view class="item">冻结</view>
|
|
|
+ <view class="item">删除</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
+ <view class="btn edit">编辑</view>
|
|
|
+ <view class="btn change">修改密码</view>
|
|
|
+ <view class="btn reds">重置密码</view>
|
|
|
</view>
|
|
|
- <view class="btn edit">编辑</view>
|
|
|
- <view class="btn change">修改密码</view>
|
|
|
- <view class="btn reds">重置密码</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -49,25 +72,131 @@ export default {
|
|
|
data () {
|
|
|
//这里存放数据
|
|
|
return {
|
|
|
- ishow: false
|
|
|
+ isshow: false,
|
|
|
+ showcondition: false,
|
|
|
+ conditionlist:[
|
|
|
+ {name: '全部', code:1},
|
|
|
+ {name: '账号', code:2},
|
|
|
+ {name: '真实姓名', code:3},
|
|
|
+ {name: '手机号', code:4}
|
|
|
+ ],
|
|
|
+ index: 0
|
|
|
};
|
|
|
},
|
|
|
//方法集合
|
|
|
methods: {
|
|
|
+ // 打开条件选择
|
|
|
+ showCondition() {
|
|
|
+ this.showcondition = !this.showcondition
|
|
|
+ },
|
|
|
+ change (id) {
|
|
|
+ this.index = id
|
|
|
+ this.showcondition = false
|
|
|
+ },
|
|
|
+ // 打开更多选择
|
|
|
showMore () {
|
|
|
- this.ishow = !this.ishow
|
|
|
+ this.isshow = !this.isshow
|
|
|
+ },
|
|
|
+ // 跳转新增
|
|
|
+ add () {
|
|
|
+ this.$mRouter.push({route:'/pages/index/userinfo/adduser'})
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
<style lang='scss' scoped>
|
|
|
+.user-header {
|
|
|
+ width: 100vw;
|
|
|
+ position: fixed;
|
|
|
+ align-items: center;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ padding: 20upx 32upx;
|
|
|
+ background-color: #fbfbfb;
|
|
|
+ .header {
|
|
|
+ display: flex;
|
|
|
+ }
|
|
|
+
|
|
|
+ .inputnameorphone {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ flex: 1;
|
|
|
+ height: 72upx;
|
|
|
+ background-color: #f7f7f7;
|
|
|
+ margin-left: 15upx;
|
|
|
+ padding-left: 23upx;
|
|
|
+ border-radius: 8upx;
|
|
|
+ .more {
|
|
|
+ display: flex;
|
|
|
+ position: relative;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ // width: 95upx;
|
|
|
+ height: 72upx;
|
|
|
+ .bar {
|
|
|
+ position: absolute;
|
|
|
+ left: -39upx;
|
|
|
+ top: 80upx;
|
|
|
+ padding: 0 10upx;
|
|
|
+ background-color: #fff;
|
|
|
+ .trigon {
|
|
|
+ position: absolute;
|
|
|
+ top: -16upx;
|
|
|
+ left: 60upx;
|
|
|
+ width: 38upx;
|
|
|
+ height: 38upx;
|
|
|
+ transform: rotate(45deg);
|
|
|
+ background-color: #fff;
|
|
|
+ }
|
|
|
+ .item {
|
|
|
+ width: 180upx;
|
|
|
+ border-bottom: 1px solid #e0e0e0;
|
|
|
+ padding: 30upx 0;
|
|
|
+ text-align: center;
|
|
|
+ color: #333;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .txt {
|
|
|
+ color: #8f8f8f;
|
|
|
+ }
|
|
|
+ .downicon {
|
|
|
+ width: 18upx;
|
|
|
+ height: 12upx;
|
|
|
+ margin-left: 10upx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .usermsg {
|
|
|
+ flex: 1;
|
|
|
+ margin-left: 15upx;
|
|
|
+ }
|
|
|
+ .searchicon {
|
|
|
+ width: 38upx;
|
|
|
+ height: 38upx;
|
|
|
+ margin: 0 30upx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .header-btns {
|
|
|
+ width: 110upx;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ margin-left: 15upx;
|
|
|
+ .add,
|
|
|
+ .ref {
|
|
|
+ width: 50upx;
|
|
|
+ height: 50upx;
|
|
|
+ }
|
|
|
+ .ref{
|
|
|
+ margin-left: 12upx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
.usermenage {
|
|
|
padding: 24upx 32upx 0;
|
|
|
.content {
|
|
|
background-color: #f1f1f1;
|
|
|
.item {
|
|
|
padding: 24upx 24upx 0;
|
|
|
- background-color: #fff;
|
|
|
+ background-color: #fbfbfb;
|
|
|
border-radius: 8upx;
|
|
|
.top {
|
|
|
border-bottom: 1px solid #e7e7e7;
|
|
@@ -81,7 +210,7 @@ export default {
|
|
|
height: 32upx;
|
|
|
color: #7a7c7c;
|
|
|
text-align: justify;
|
|
|
- &::after{
|
|
|
+ &::after {
|
|
|
width: 100%;
|
|
|
display: inline-block;
|
|
|
content: '';
|
|
@@ -100,7 +229,6 @@ export default {
|
|
|
padding: 17upx 0;
|
|
|
.btns {
|
|
|
display: flex;
|
|
|
- // justify-content: flex-end;
|
|
|
.btn {
|
|
|
width: 158upx;
|
|
|
height: 58upx;
|
|
@@ -113,11 +241,42 @@ export default {
|
|
|
margin-left: 24upx;
|
|
|
}
|
|
|
.more {
|
|
|
+ position: relative;
|
|
|
width: auto;
|
|
|
border: none;
|
|
|
margin-left: 0;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
+ .bar {
|
|
|
+ position: absolute;
|
|
|
+ top: 77upx;
|
|
|
+ left: 0;
|
|
|
+ width: 220upx;
|
|
|
+ background-color: #fff;
|
|
|
+ border-radius: 6upx;
|
|
|
+ z-index: 10;
|
|
|
+ padding: 0 20upx;
|
|
|
+ .trigon {
|
|
|
+ position: absolute;
|
|
|
+ top: -16upx;
|
|
|
+ left: 10upx;
|
|
|
+ width: 38upx;
|
|
|
+ height: 38upx;
|
|
|
+ transform: rotate(45deg);
|
|
|
+ background-color: #fff;
|
|
|
+ }
|
|
|
+ .item {
|
|
|
+ padding: 17upx 0;
|
|
|
+ color: #333;
|
|
|
+ border-bottom: 1px solid #e0e0e0;
|
|
|
+ text-align: left;
|
|
|
+ background-color: #fff;
|
|
|
+ border-radius: 0;
|
|
|
+ &:last-child {
|
|
|
+ border: none;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
.edit {
|
|
|
margin-left: 40upx;
|