feat(card): 为必填字段添加红星标识,优化表单提示信息
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
<view class="avatar-tip">点击从相册选择</view>
|
||||
</view>
|
||||
<view class="form-row">
|
||||
<view class="row-label">姓名</view>
|
||||
<view class="row-label"><text class="req-star">*</text>姓名</view>
|
||||
<input class="row-input" :value="form.name" placeholder="请输入姓名"
|
||||
@input="e => form.name = e.detail.value" />
|
||||
</view>
|
||||
@@ -53,17 +53,17 @@
|
||||
</view>
|
||||
<view class="form-row">
|
||||
<view class="row-label">邮箱</view>
|
||||
<input class="row-input" :value="form.email" placeholder="请输入邮箱"
|
||||
<input class="row-input" :value="form.email" placeholder="邮箱(选填)"
|
||||
@input="e => form.email = e.detail.value" />
|
||||
</view>
|
||||
<view class="form-row">
|
||||
<view class="row-label">网站</view>
|
||||
<input class="row-input" :value="form.website" placeholder="个人主页 / 官网"
|
||||
<input class="row-input" :value="form.website" placeholder="个人主页 / 官网(选填)"
|
||||
@input="e => form.website = e.detail.value" />
|
||||
</view>
|
||||
<view class="form-row">
|
||||
<view class="row-label">微信号</view>
|
||||
<input class="row-input" :value="form.wechat" placeholder="微信号"
|
||||
<input class="row-input" :value="form.wechat" placeholder="微信号(选填)"
|
||||
@input="e => form.wechat = e.detail.value" />
|
||||
</view>
|
||||
<view class="form-row">
|
||||
@@ -447,6 +447,13 @@ export default {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* 必填红星 */
|
||||
.req-star {
|
||||
color: #f5222d;
|
||||
margin-right: 4rpx;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.row-input {
|
||||
flex: 1;
|
||||
font-size: 28rpx;
|
||||
|
||||
Reference in New Issue
Block a user