|
|
<template>
|
|
|
<div class="user-info-container">
|
|
|
<ModalHaveTitle class="notes" :title="'用户备忘录'">
|
|
|
<textarea name="" id="" rows="5"></textarea>
|
|
|
<textarea name="" id="" placeholder="备忘录(非必填)"></textarea>
|
|
|
<NavButton :text="'更新备忘录'" @click-btn="updateNote"></NavButton>
|
|
|
</ModalHaveTitle>
|
|
|
|
|
|
|
|
|
<ModalHaveTitle class="bind-user" :title="'绑定用户'">
|
|
|
<div>用户微信号:</div>
|
|
|
<div class="label">用户微信号:</div>
|
|
|
<div class="search">
|
|
|
<input type="text" value="" placeholder="用户UID查询(请输入有货手机号/订单编号)">
|
|
|
<span class="search-btn"></span>
|
|
|
</div>
|
|
|
<div>用户UID:</div>
|
|
|
<textarea name="" id="" rows="6" placeholder="备注(非必填)"></textarea>
|
|
|
<input type="text" value="" placeholder="用户UID" class="input-uid">
|
|
|
<textarea name="" id="" placeholder="备注(非必填)"></textarea>
|
|
|
<NavButton :text="'绑定用户'" @click-btn="bindUser"></NavButton>
|
|
|
</ModalHaveTitle>
|
|
|
|
|
|
<ModalHaveTitle class="user-base-info" :title="'用户基本信息'">
|
|
|
<ul class="info-list">
|
|
|
<li><span class="lable">用户UID:</span></li>
|
|
|
<li><span class="lable">昵称:</span></li>
|
|
|
<li><span class="lable">手机号:</span></li>
|
|
|
<li><span class="lable">注册:</span></li>
|
|
|
<li><span class="lable">生日:</span></li>
|
|
|
<li><span class="lable">等级:</span></li>
|
|
|
<li><span class="lable">365天累计消费:</span></li>
|
|
|
</ul>
|
|
|
<BaseInfoList :list="userInfo"></BaseInfoList>
|
|
|
</ModalHaveTitle>
|
|
|
</div>
|
|
|
</template>
|
...
|
...
|
@@ -35,11 +27,21 @@ |
|
|
import homeModel from '../../../models/home';
|
|
|
import NavButton from './nav-button';
|
|
|
import ModalHaveTitle from './modal-have-title';
|
|
|
import BaseInfoList from './base-info-list';
|
|
|
|
|
|
export default {
|
|
|
name: 'user-info',
|
|
|
name: 'userInfo',
|
|
|
data() {
|
|
|
return {
|
|
|
userInfo: [
|
|
|
{label: '用户UID', value: ''},
|
|
|
{label: '昵称', value: ''},
|
|
|
{label: '手机号', value: ''},
|
|
|
{label: '注册', value: ''},
|
|
|
{label: '生日', value: ''},
|
|
|
{label: '等级', value: ''},
|
|
|
{label: '365天累计消费', value: ''}
|
|
|
]
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
...
|
...
|
@@ -54,33 +56,131 @@ export default { |
|
|
},
|
|
|
components: {
|
|
|
NavButton,
|
|
|
ModalHaveTitle
|
|
|
ModalHaveTitle,
|
|
|
BaseInfoList
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
textarea::-webkit-input-placeholder,
|
|
|
input::-webkit-input-placeholder {
|
|
|
color:#B0B0B0;
|
|
|
font-family: PingFang-SC-Regular;
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
textarea::-moz-placeholder,
|
|
|
input::-moz-placeholder {
|
|
|
color:#B0B0B0;
|
|
|
font-family: PingFang-SC-Regular;
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
textarea:-moz-placeholder,
|
|
|
input:-moz-placeholder {
|
|
|
color:#B0B0B0;
|
|
|
font-family: PingFang-SC-Regular;
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
textarea:-ms-input-placeholder,
|
|
|
input:-ms-input-placeholder {
|
|
|
color:#B0B0B0;
|
|
|
font-family: PingFang-SC-Regular;
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
|
|
|
.user-info-container {
|
|
|
textarea {
|
|
|
width: 100%;
|
|
|
margin: 15px 0 0;
|
|
|
box-sizing: border-box;
|
|
|
resize: none;
|
|
|
background: #F3F3F3;
|
|
|
padding: 10px;
|
|
|
box-sizing: border-box;
|
|
|
border-radius: 2px;
|
|
|
border: none;
|
|
|
font-family: PingFang-SC-Regular;
|
|
|
font-size: 16px;
|
|
|
outline: none;
|
|
|
}
|
|
|
|
|
|
.notes {
|
|
|
textarea {
|
|
|
width: 100%;
|
|
|
margin: 10px 0 0;
|
|
|
box-sizing: border-box;
|
|
|
resize: none;
|
|
|
height: 130px;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.bind-user {
|
|
|
border-top: 1px solid #EAEBEB;
|
|
|
|
|
|
.search {
|
|
|
width: 100%;
|
|
|
background: #fff;
|
|
|
margin: 10px 0;
|
|
|
background: #F3F3F3;
|
|
|
margin: 15px 0;
|
|
|
height: 44PX;
|
|
|
padding: 0 10px;
|
|
|
box-sizing: border-box;
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
position: relative;
|
|
|
|
|
|
&:after {
|
|
|
content: "";
|
|
|
display: block;
|
|
|
width: 100%;
|
|
|
height: 1px;
|
|
|
background: #EAEBEB;
|
|
|
clear: both;
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
bottom: -15px;
|
|
|
}
|
|
|
|
|
|
input {
|
|
|
height: 44PX;
|
|
|
line-height: 45PX;
|
|
|
background: transparent;
|
|
|
border: none;
|
|
|
outline: none;
|
|
|
font-family: PingFang-SC-Regular;
|
|
|
font-size: 16px;
|
|
|
flex: 1;
|
|
|
}
|
|
|
|
|
|
.search-btn {
|
|
|
width: 20PX;
|
|
|
height: 20PX;
|
|
|
background: url(../../../static/images/search.png) no-repeat;
|
|
|
background-size: contain;
|
|
|
display: block;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.input-uid {
|
|
|
width: 100%;
|
|
|
background: #F3F3F3;
|
|
|
height: 44PX;
|
|
|
border: none;
|
|
|
outline: none;
|
|
|
margin-top: 15px;
|
|
|
padding: 0 10px;
|
|
|
box-sizing: border-box;
|
|
|
font-family: PingFang-SC-Regular;
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
|
|
|
.label {
|
|
|
font-family: PingFang-SC-Regular;
|
|
|
font-size: 18px;
|
|
|
margin-top: 20px;
|
|
|
}
|
|
|
|
|
|
textarea {
|
|
|
width: 100%;
|
|
|
margin: 10px 0 0;
|
|
|
resize: none;
|
|
|
height: 151px;
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
|