|
@@ -21,21 +21,19 @@
|
|
|
<view class="card-container" @click="photoBtn">
|
|
|
<view class="info-profile"><image :src="camera" /></view>
|
|
|
<view class="info-camera">
|
|
|
- <!-- <image src="/src/static/icon/camera.svg" /> -->
|
|
|
+ <image src="/src/static/icon/camera.svg" />
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="card-item">
|
|
|
<!-- 昵称 -->
|
|
|
- <view class="section">
|
|
|
- <view class="section-left">
|
|
|
- <view class="label">宝宝昵称</view>
|
|
|
- <view class="nickname">
|
|
|
- <wd-input v-model="nicknameValue" placeholder="请输入昵称" />
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+ <ItemForm label="宝宝昵称" :required="true">
|
|
|
+ <template #default>
|
|
|
+ <wd-input v-model="nicknameValue" placeholder="请输入昵称" />
|
|
|
+ </template>
|
|
|
+ </ItemForm>
|
|
|
+
|
|
|
<!-- 性别 -->
|
|
|
- <ItemForm label="宝宝性别">
|
|
|
+ <ItemForm label="宝宝性别" :required="true">
|
|
|
<template #default>
|
|
|
<pickerUser
|
|
|
:columns="columns"
|
|
@@ -46,7 +44,7 @@
|
|
|
</template>
|
|
|
</ItemForm>
|
|
|
<!-- 生日 -->
|
|
|
- <ItemForm label="宝宝生日">
|
|
|
+ <ItemForm label="宝宝生日" :required="true">
|
|
|
<template #default>
|
|
|
<wd-datetime-picker type="date" v-model="datetimeValue" @confirm="handleTimes" />
|
|
|
</template>
|
|
@@ -69,7 +67,7 @@
|
|
|
<wd-button @click="addBaby">保存</wd-button>
|
|
|
</view>
|
|
|
<view class="baby-Bottom" v-else>
|
|
|
- <wd-button @click="startBtn">开始育人</wd-button>
|
|
|
+ <wd-button @click="startBtn">开始育儿</wd-button>
|
|
|
</view>
|
|
|
<wd-message-box />
|
|
|
</view>
|
|
@@ -198,29 +196,6 @@
|
|
|
}
|
|
|
.card-item {
|
|
|
background: #fff;
|
|
|
- .section {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: space-between;
|
|
|
- padding: 12rpx 32rpx 32rpx 32rpx;
|
|
|
- border-bottom: 1px solid #f1f5f9;
|
|
|
- }
|
|
|
- .section-left {
|
|
|
- width: 100%;
|
|
|
- height: 120rpx;
|
|
|
- }
|
|
|
-
|
|
|
- .label {
|
|
|
- height: 60rpx;
|
|
|
- font-size: 1rem;
|
|
|
- font-style: normal;
|
|
|
- font-weight: 400;
|
|
|
- line-height: 48rpx;
|
|
|
- }
|
|
|
- .nickname {
|
|
|
- height: 60rpx;
|
|
|
- font-size: 28rpx;
|
|
|
- }
|
|
|
}
|
|
|
.baby-Bottom {
|
|
|
display: flex;
|