Commit 9d369254 by Lays-lzq

feat: 信息限制样式优化

parent 8b135853
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
v-model="visible" v-model="visible"
position="bottom" position="bottom"
round round
transfer
> >
<div class="main"> <div class="main">
<div class="top"> <div class="top">
...@@ -11,7 +12,7 @@ ...@@ -11,7 +12,7 @@
<div class="top-btn" @click="submit">提交</div> <div class="top-btn" @click="submit">提交</div>
</div> </div>
<div class="form" :class="{error: isError}"> <div class="form" :class="{error: isError}">
<van-field v-if="lotteryInfo.premise && lotteryInfo.premise.includes('name')" v-model="form.name" label-width="65" label="联系人" placeholder="请输入联系人" @focus="isError = false"/> <van-field v-if="lotteryInfo.premise && lotteryInfo.premise.includes('name')" v-model="form.name" label-width="60" label="联系人" placeholder="请输入联系人" @focus="isError = false"/>
<template v-if="lotteryInfo.premise && lotteryInfo.premise.includes('phone')"> <template v-if="lotteryInfo.premise && lotteryInfo.premise.includes('phone')">
<van-field v-model="form.phone" label-width="60" label="手机号" placeholder="请输入联系电话" @focus="isError = false"/> <van-field v-model="form.phone" label-width="60" label="手机号" placeholder="请输入联系电话" @focus="isError = false"/>
<van-field v-model="form.code" label-width="60" label="验证码" placeholder="请输入验证码" @focus="isError = false"> <van-field v-model="form.code" label-width="60" label="验证码" placeholder="请输入验证码" @focus="isError = false">
...@@ -44,7 +45,7 @@ ...@@ -44,7 +45,7 @@
position="bottom" position="bottom"
round round
> >
<van-area title="标题" :area-list="areaList" @confirm="chooseAdd" @cancel="isShowAdd = false"/> <van-area title="区域选择" :area-list="areaList" @confirm="chooseAdd" @cancel="isShowAdd = false"/>
</van-popup> </van-popup>
</div> </div>
</van-popup> </van-popup>
...@@ -204,14 +205,14 @@ export default { ...@@ -204,14 +205,14 @@ export default {
this.$toast(errorMessage) this.$toast(errorMessage)
} }
}) })
} },
} }
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.main { .main {
height: 60vh; height: 42vh;
} }
.top { .top {
display: flex; display: flex;
...@@ -239,6 +240,9 @@ export default { ...@@ -239,6 +240,9 @@ export default {
font-weight: 400; font-weight: 400;
color: #357BF0; color: #357BF0;
} }
/deep/ .van-cell {
padding: 9.5px 13px;
}
/deep/ .van-field__label{ /deep/ .van-field__label{
height: 20px; height: 20px;
font-size: 14px; font-size: 14px;
...@@ -249,6 +253,9 @@ export default { ...@@ -249,6 +253,9 @@ export default {
white-space: nowrap; white-space: nowrap;
} }
} }
/deep/ .van-field__word-limit{
color: #999;
}
/deep/ .van-cell::after { /deep/ .van-cell::after {
border-bottom: none; border-bottom: none;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment