同行人组件

This commit is contained in:
shijingjing
2022-09-23 16:25:50 +08:00
parent c1ea828f77
commit 761f404ac1
2 changed files with 25 additions and 18 deletions

View File

@@ -2,16 +2,15 @@
<div class="namePhone"> <div class="namePhone">
<div class="uForm"> <div class="uForm">
<div class="uName"> <div class="uName">
<h4>姓名</h4> <u-input v-model="username" type="text" placeholder="姓名" :maxlength="10" />
<u-input v-model="username" type="text" placeholder="请输入" :maxlength="10" clearable /> <u-input v-model="userphone" type="number" placeholder="手机号" :maxlength="11" />
<div class="line"></div>
</div> </div>
<div class="uPhone">
<h4>手机号</h4>
<u-input v-model="userphone" type="number" placeholder="请输入" :maxlength="11" clearable />
</div> </div>
</div> <div class="btn" @click="removeMe">
<div class="btn"> <img src="../../../../static/img/del.png" alt="">
<div class="removeBtn" @click="removeMe">删除</div>
</div> </div>
</div> </div>
</template> </template>
@@ -58,32 +57,40 @@ export default {
margin-bottom: 10px; margin-bottom: 10px;
.uForm { .uForm {
width: calc(100% - 100px); width: calc(100% - 60px);
background: #EFF5FA; background: #EFF5FA;
border-radius: 8px; border-radius: 8px;
.uName, .uName {
.uPhone {
display: flex; display: flex;
align-items: center; align-items: center;
height: 96px; height: 96px;
line-height: 96px; line-height: 96px;
position: relative;
h4 { h4 {
width: 200px; width: 200px;
text-align: center; text-align: center;
} }
u-input { u-input {
width: 100%; width: 100%;
padding-left: 20px;
box-sizing: border-box;
}
.line {
position: absolute;
left: 310px;
top: 18px;
width: 3px;
height: 64px;
background: #BACBDA;
} }
} }
} }
.btn { .btn {
width: 100px; width: 60px;
.removeBtn {
width: 80px;
background: #ff0000;
border-radius: 8px;
color: #fff;
text-align: center; text-align: center;
img {
width: 32px;
height: 32px;
} }
} }
} }

BIN
src/static/img/del.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 441 B