Showing
2 changed files
with
57 additions
and
7 deletions
| 1 | -<view class="pet-basic flex-vc"> | ||
| 2 | - <image src="/pages/image/topic2.jpg" class="pet-headimg"></image> | ||
| 3 | - <view class="black-font font30r">头像</view> | 1 | +<view class="pet-basic flex-vc bg-white"> |
| 2 | + <view class="pet-head flex-vc"> | ||
| 3 | + <image src="/pages/image/topic2.jpg" class="pet-headimg"></image> | ||
| 4 | + <view class="black-font font30r">头像</view> | ||
| 5 | + </view> | ||
| 4 | <view class="pet-sex flex-lr"> | 6 | <view class="pet-sex flex-lr"> |
| 5 | <block wx:for="{{sex}}"> | 7 | <block wx:for="{{sex}}"> |
| 6 | <view class="flex-lm"> | 8 | <view class="flex-lm"> |
| @@ -11,4 +13,14 @@ | @@ -11,4 +13,14 @@ | ||
| 11 | </view> | 13 | </view> |
| 12 | </block> | 14 | </block> |
| 13 | </view> | 15 | </view> |
| 16 | + <input type="text" placeholder="请输入宝贝名字" placeholder-class="gray-font font28r font-siny flex-cm" class="black-font font28r flex-cm" maxlength="6"/> | ||
| 17 | + <view class="pet-birth flex-cm"> | ||
| 18 | + <picker mode="date" value="{{date}}" start="2000-01-01" end="2018-09-01" bindchange="bindDateChange"> | ||
| 19 | + <view class="picker gray-font font28r flex-cm"> | ||
| 20 | + {{date ? date : '请选择宝贝生日'}} | ||
| 21 | + </view> | ||
| 22 | + </picker> | ||
| 23 | + </view> | ||
| 24 | + <input type="digit" placeholder="请输入宝贝体重" placeholder-class="gray-font font28r font-siny flex-cm" class="black-font font28r flex-cm" maxlength="3"/> | ||
| 25 | + <view class="save-button white-font bg-orange font30r flex-cm">开启宠爱模式</view> | ||
| 14 | </view> | 26 | </view> |
| 1 | +page{ | ||
| 2 | + background:#efeef3; | ||
| 3 | +} | ||
| 4 | +.pet-basic{ | ||
| 5 | + width:660rpx; | ||
| 6 | + padding-top:120rpx; | ||
| 7 | + border-radius:10rpx; | ||
| 8 | + margin:160rpx auto 0; | ||
| 9 | + position:relative; | ||
| 10 | +} | ||
| 11 | +.pet-head{ | ||
| 12 | + position:absolute; | ||
| 13 | + left:0; | ||
| 14 | + right:0; | ||
| 15 | + top:-60rpx; | ||
| 16 | + margin:0 auto; | ||
| 17 | +} | ||
| 1 | .pet-headimg{ | 18 | .pet-headimg{ |
| 2 | width:120rpx; | 19 | width:120rpx; |
| 3 | height:120rpx; | 20 | height:120rpx; |
| 4 | border-radius:50%; | 21 | border-radius:50%; |
| 5 | - margin-bottom:30rpx; | 22 | + margin-bottom:20rpx; |
| 6 | } | 23 | } |
| 7 | .pet-sex{ | 24 | .pet-sex{ |
| 8 | width:300rpx; | 25 | width:300rpx; |
| 9 | margin:0 auto; | 26 | margin:0 auto; |
| 10 | - padding-top:40rpx; | 27 | + padding:40rpx 0; |
| 11 | } | 28 | } |
| 12 | .sex-icon{ | 29 | .sex-icon{ |
| 13 | - width:40rpx; | ||
| 14 | - height:40rpx; | 30 | + width:44rpx; |
| 31 | + height:44rpx; | ||
| 15 | margin-right:18rpx; | 32 | margin-right:18rpx; |
| 16 | } | 33 | } |
| 17 | .pet-radio{ | 34 | .pet-radio{ |
| @@ -24,4 +41,25 @@ | @@ -24,4 +41,25 @@ | ||
| 24 | width:16rpx; | 41 | width:16rpx; |
| 25 | height:16rpx; | 42 | height:16rpx; |
| 26 | border-radius:50%; | 43 | border-radius:50%; |
| 44 | +} | ||
| 45 | +input{ | ||
| 46 | + width:480rpx; | ||
| 47 | + height:70rpx; | ||
| 48 | + border:1px solid #efeef3; | ||
| 49 | + border-radius:10rpx; | ||
| 50 | + margin-bottom:40rpx; | ||
| 51 | + text-align:center; | ||
| 52 | +} | ||
| 53 | +.pet-birth{ | ||
| 54 | + width:480rpx; | ||
| 55 | + height:70rpx; | ||
| 56 | + border:1px solid #efeef3; | ||
| 57 | + border-radius:10rpx; | ||
| 58 | + margin-bottom:40rpx; | ||
| 59 | +} | ||
| 60 | +.save-button{ | ||
| 61 | + width:480rpx; | ||
| 62 | + height:80rpx; | ||
| 63 | + margin:50rpx auto; | ||
| 64 | + border-radius:10rpx; | ||
| 27 | } | 65 | } |
-
Please register or login to post a comment