You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yanzong_qianduan/pages/news/user/index.vue

378 lines
8.2 KiB

9 months ago
<template>
<view class="user">
10 months ago
<view class="order-navbar">
<u-navbar title="会员管理" :border-bottom="false" :background="background"></u-navbar>
</view>
<view class="user-hd">
<view class="avater">
<image :src="form.avatar_url?form.avatar_url:`${$picUrl}/static/news/avater.png`"></image>
10 months ago
</view>
<view class="info">
<!-- p会员 无p游客 -->
<view class="name">{{form.nick_name}}<text class="p">{{form.user_type_text}}</text></view>
<!-- <view class="desc">真实姓名张三</view> -->
<view class="desc">{{form.mobile}}</view>
10 months ago
</view>
</view>
<view class="user-show">
<view class="a">
<text>余额(</text>¥{{form.expend_money?form.expend_money:0.00}}
10 months ago
</view>
<view class="a">
<text>积分(</text>{{form.grade?form.grade:0.00}}
10 months ago
</view>
</view>
<view class="user-order">
<view class="a">关联订单</view>
<view class="b">
<view class="num">99+</view>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
<view class="user-do">
<view class="a">用户信息</view>
<view class="b">编辑信息</view>
</view>
<view class="user-bd">
<view class="item">
<view class="a">登录密码</view>
<view class="b"><view class="select select-on">****</view></view>
</view>
<view class="item">
<view class="a">上级推广人</view>
<view class="b">
<view class="select select-on">张三</view>
<u-icon style="margin-left: 10rpx;" name="arrow-right"></u-icon>
</view>
</view>
<view class="item">
<view class="a">用户分组</view>
<view class="b">
<view class="select">请选择用户分组</view>
<u-icon style="margin-left: 10rpx;" name="arrow-right"></u-icon>
</view>
</view>
<view class="item">
<view class="a">用户标签</view>
<view class="b">
<view class="select">请选择用户分组</view>
<u-icon style="margin-left: 10rpx;" name="arrow-right"></u-icon>
</view>
</view>
<view class="items">
<view class="a">推广资格
<u-switch v-model="checked" active-color="#55BD6A" ></u-switch></view>
<view class="b">
指定分销模式下开启或关闭用户的推广权限
</view>
</view>
<view class="items">
<view class="a">推广权限
<u-switch v-model="checked" active-color="#55BD6A" ></u-switch></view>
<view class="b">
指定分销模式下开启或关闭用户的推广权限
</view>
</view>
<view class="item">
<view class="a">用户状态</view>
<view class="b">
<u-switch v-model="checked" active-color="#55BD6A" ></u-switch>
</view>
</view>
</view>
<view class="user-fd">
<view class="b">
确认修改
</view>
</view>
9 months ago
</view>
</template>
10 months ago
<script>
9 months ago
// import img from "@/static/news/login-bg.png"
export default {
data() {
10 months ago
return {
form:{
address_id: null,
avatar: null,
avatar_id: null,
avatar_url: null,
balance: "",
city: null,
country: null,
create_time: "",
effective_time: null,
expend_money: "",
gender: "",
grade: null,
grade_id: null,
is_delete: null,
last_login_time: null,
mobile: "",
nick_name: "",
pay_money: "",
platform: "",
points: null,
province: null,
store_id: null,
update_time: "",
user_id: null,
user_type: null,
user_type_text: ""
},
10 months ago
checked: true,
isScroll: true,
background: {
9 months ago
background: 'url(https://www.royaum.com.cn/static/news/login-bg.png) centertop no-repeat',
10 months ago
// background: 'url('+ img+') center top no-repeat',
backgroundSize: '100% auto',
},
9 months ago
}
10 months ago
},
onPageScroll(e){
if(e.scrollTop <= 44){
this.isScroll = true;
}else{
this.isScroll = false;
}
9 months ago
},
methods: {
},
onLoad(option) {
console.log(option)
this.form = Object.assign({},this.form,JSON.parse(option.item))
console.log(this.form)
9 months ago
}
}
</script>
<style lang="scss" scoped>
10 months ago
.user{
width: 100%;
padding: 0 0 150rpx;
box-sizing: border-box;
overflow: hidden;
9 months ago
background: url(https://www.royaum.com.cn/static/news/login-bg.png) center top no-repeat;
10 months ago
background-size: 100% auto;
min-height: 100vh;
&-hd{
padding: 60rpx 40rpx 30rpx;
display: flex;
align-items: flex-start;
.avater{
width: 114rpx;
height: 114rpx;
margin-right: 30rpx;
image{
width: 100%;
height: 100%;
border-radius: 50%;
}
}
.info{
flex: 1;
9 months ago
overflow: hidden;
font-size: 28rpx;
font-weight: 400;
color: #5E5E5E;
10 months ago
line-height: 55rpx;
.name{
font-size: 32rpx;
font-weight: 500;
color: #2A2A2A;
display: flex;
align-items: center;
text{
display: block;
width: 98rpx;
border: 1px solid #FFB950;
height: 40rpx;
font-size: 28rpx;
font-weight: 400;
color: #FFB343;
line-height: 40rpx;
border-radius: 40rpx;
text-align: center;
margin-left: 20rpx;
background-color: #fff;
&.p{
color: #F34A40;
border-color: #F34A40;
}
}
}
}
}
&-show{
width: 704rpx;
height: 170rpx;
background: #FFFFFF;
border-radius: 8rpx;
margin: 0 auto;
padding: 35rpx;
box-sizing: border-box;
display: flex;
align-items: center;
.a{
flex: 1;
text-align: center;
font-size: 36rpx;
font-weight: 400;
color: #383838;
text-align: center;
&:first-child{
border-right: 1px solid #F3F3F3;
}
text{
9 months ago
display: block;
font-size: 28rpx;
font-weight: 400;
10 months ago
color: #B2B2B2;
margin-bottom: 20rpx;
}
}
}
&-order{
width: 704rpx;
background: #FFFFFF;
border-radius: 8rpx;
margin: 0 auto;
padding: 25rpx 20rpx;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 16rpx;
.a{
}
.b{
flex: 1;
display: flex;
align-items: center;
justify-content: flex-end;
color: #9E9E9E;
.num{
width: 44rpx;
height: 44rpx;
background: #FF6257;
border-radius:44rpx;
line-height: 44rpx;
color: #fff;
text-align: center;
font-size: 20rpx;
margin-right: 10rpx;
}
}
}
&-do{
width: 704rpx;
margin: 0 auto;
padding: 35rpx 25rpx;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: space-between;
.a{
font-size: 28rpx;
font-weight: 400;
color: #A3A3A3;
}
.b{
font-size: 28rpx;
font-weight: 400;
color: #307BF6;
}
}
&-bd{
width: 704rpx;
background: #FFFFFF;
border-radius: 8rpx;
margin: 0 auto;
padding: 0 20rpx;
box-sizing: border-box;
.item{
padding: 25rpx 0;
border-top: 1px solid rgba(242,242,242,0.83);
display: flex;
align-items: center;
justify-content: space-between;
&:first-child{
border-top-color: #fff;
}
.a{
font-size: 28rpx;
font-weight: 400;
color: #454545;
}
.b{
flex: 1;
font-size: 28rpx;
font-weight: 400;
color: #9d9d9d;
display: flex;
align-items: center;
justify-content: flex-end;
.select{
&-on{
color:#454545;
}
color: #9d9d9d;
}
}
}
.items{
padding: 25rpx 0;
border-top: 1px solid rgba(242,242,242,0.83);
&:first-child{
border-top-color: #fff;
}
.a{
font-size: 28rpx;
font-weight: 400;
color: #454545;
display: flex;
align-items: center;
justify-content: space-between;
}
.b{
flex: 1;
font-size: 28rpx;
font-weight: 400;
color: #9d9d9d;
text-align: left;
padding-top: 10rpx;
}
}
}
&-fd{
width: 100%;
background-color: #fafafa;
box-sizing: border-box;
position: fixed;
left: 0;
bottom: 0;
z-index: 200;
padding: 20rpx 40rpx;
display: flex;
align-items: center;
justify-content: space-between;
.b{
width: 630rpx;
line-height: 83rpx;
background: #FFAAA4;
border-radius: 83rpx;
9 months ago
text-align: center;
font-size: 28rpx;
font-weight: 500;
10 months ago
color: #FFFFFF;
}
}
9 months ago
}
</style>