2022-07-01 15:11:11 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="addClerk">
|
2022-07-01 16:16:59 +08:00
|
|
|
<div class="item">
|
|
|
|
|
<span class="tips">*</span>
|
|
|
|
|
<div class="border">
|
|
|
|
|
<span class="label">姓名</span>
|
|
|
|
|
<span class="value">
|
|
|
|
|
<input type="text" placeholder="请输入" v-model="name" maxlength="6">
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="item">
|
|
|
|
|
<span class="tips"></span>
|
|
|
|
|
<div class="border">
|
|
|
|
|
<span class="label">电话</span>
|
|
|
|
|
<span class="value">
|
|
|
|
|
<input type="tel" placeholder="请输入" v-model="phone" maxlength="20">
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="btn">确认添加</div>
|
2022-07-01 15:11:11 +08:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {mapState} from 'vuex'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: 'addClerk',
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
2022-07-01 16:16:59 +08:00
|
|
|
name: '',
|
|
|
|
|
phone: ''
|
2022-07-01 15:11:11 +08:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
computed: {...mapState(['user'])},
|
|
|
|
|
created() {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
onShow() {
|
2022-07-01 16:16:59 +08:00
|
|
|
document.title = "新增店员"
|
2022-07-01 15:11:11 +08:00
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.addClerk {
|
2022-07-01 16:16:59 +08:00
|
|
|
.item{
|
|
|
|
|
width: 100%;
|
|
|
|
|
padding-left: 14px;
|
|
|
|
|
background: #FFF;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
display: flex;
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
.tips{
|
|
|
|
|
width: 18px;
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
font-family: PingFangSC-Regular, PingFang SC;
|
|
|
|
|
color: #FF4466;
|
|
|
|
|
line-height: 44px;
|
|
|
|
|
padding: 34px 0 34px 0;
|
|
|
|
|
}
|
|
|
|
|
.border{
|
|
|
|
|
width: calc(100% - 18px);
|
|
|
|
|
padding: 34px 32px 34px 0;
|
|
|
|
|
line-height: 44px;
|
|
|
|
|
line-height: 44px;
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
font-family: PingFangSC-Regular, PingFang SC;
|
|
|
|
|
color: #333;
|
|
|
|
|
display: flex;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
.label{
|
|
|
|
|
width: 170px;
|
|
|
|
|
}
|
|
|
|
|
.value{
|
|
|
|
|
width: calc(100% - 170px);
|
|
|
|
|
text-align: right;
|
|
|
|
|
img{
|
|
|
|
|
width: 32px;
|
|
|
|
|
height: 32px;
|
|
|
|
|
margin-left: 8px;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.color-999{
|
|
|
|
|
color: #999;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.btn{
|
|
|
|
|
position: fixed;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
text-align: center;
|
|
|
|
|
height: 112px;
|
|
|
|
|
line-height: 112px;
|
|
|
|
|
background: #3975C6;
|
|
|
|
|
box-shadow: inset 0px 2px 0px 0px #EEEEEE;
|
|
|
|
|
font-size: 32px;
|
|
|
|
|
font-family: PingFangSC-Medium, PingFang SC;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: #FFF;
|
|
|
|
|
}
|
2022-07-01 15:11:11 +08:00
|
|
|
}
|
|
|
|
|
</style>
|