Commit 44bba9e9 authored by 张杰's avatar 张杰

添加记录页面

parent 6605b015
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
} }
.kg-text-normal-gray { .kg-text-normal-gray {
font-size: 30rpx; font-size: 33rpx;
color: rgb(78, 78, 78); color: rgb(78, 78, 78);
} }
...@@ -60,16 +60,19 @@ ...@@ -60,16 +60,19 @@
} }
.kg-quantity-cell { .kg-quantity-cell {
justify-content: space-between; /* height: 120rpx; */
height: 120rpx;
width: auto; width: auto;
border-radius: 6rpx; border-radius: 6rpx;
box-shadow: 0rpx 0rpx 8rpx 8rpx #f2f6f9; box-shadow: 0rpx 0rpx 8rpx 8rpx #f2f6f9;
padding: 0rpx 20rpx; padding: 30rpx 20rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
display: flex;
flex-direction: column;
} }
.kg-flex-row { .kg-flex-row {
justify-content: space-between;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
......
...@@ -23,9 +23,15 @@ ...@@ -23,9 +23,15 @@
<view class='kg-separater'></view> <view class='kg-separater'></view>
<!-- 数量 --> <!-- 数量 -->
<view style='margin:20rpx'> <view style='margin:20rpx'>
<view class='kg-quantity-cell'>
<template is='quantity_cell' data="{{type:'input',unit:'毫升'}}"></template> <template is='quantity_cell' data="{{type:'input',unit:'毫升'}}"></template>
</view>
<view class='kg-quantity-cell'>
<template is='quantity_cell' data="{{type:'input',unit:'毫升'}}"></template> <template is='quantity_cell' data="{{type:'input',unit:'毫升'}}"></template>
<template is='quantity_cell' data="{{type:'select',unit:'毫升'}}"></template> </view>
<view class='kg-quantity-cell'>
<template is='quantity_cell' data="{{type:'select',options:['少','正常','多多']}}"></template>
</view>
</view> </view>
<view class='kg-separater'></view> <view class='kg-separater'></view>
<template is="section_header" data="{{title:'今日拍照'}}"></template> <template is="section_header" data="{{title:'今日拍照'}}"></template>
...@@ -46,14 +52,31 @@ ...@@ -46,14 +52,31 @@
</view> </view>
<!-- 睡觉 --> <!-- 睡觉 -->
<view hidden='{{controlIndex != 1}}'></view> <view hidden='{{controlIndex != 1}}'>
<!-- 滑动区域 --> <!-- 滑动区域 -->
<scroll-view style='height:calc(100vh - 50px - 2rpx - 20rpx - 140rpx)' scroll-y='true'> <scroll-view style='height:calc(100vh - 50px - 2rpx - 20rpx - 140rpx)' scroll-y='true'>
<view style='margin:20rpx'> <view style='margin:20rpx'>
<view class='kg-quantity-cell'>
<template is='quantity_cell' data="{{type:'input',unit:'分钟'}}"></template> <template is='quantity_cell' data="{{type:'input',unit:'分钟'}}"></template>
</view>
<view class='kg-quantity-cell'>
<template is='quantity_cell' data="{{type:'input',unit:'分钟'}}"></template> <template is='quantity_cell' data="{{type:'input',unit:'分钟'}}"></template>
<template is='quantity_cell' data="{{type:'select',unit:'分钟'}}"></template>
</view> </view>
</scroll-view> </view>
<view hidden='{{controlIndex != 2}}'>WC</view> </scroll-view>
</view>
<!-- WC -->
<view hidden='{{controlIndex != 2}}'>
<scroll-view style='height:calc(100vh - 50px - 2rpx - 20rpx - 140rpx)' scroll-y='true'>
<view style='margin:20rpx'>
<view class='kg-quantity-cell'>
<template is='quantity_cell' data="{{type:'select',options:['pee','poo','diaper']}}"></template>
<text class='kg-text-normal-gray' style='margin-top:20rpx' space="ensp">pee: 4次 poo: 1次 diaper: 9次</text>
</view>
</view>
</scroll-view>
</view>
<template is="operate_btn" data="{{title:'保存'}}"></template> <template is="operate_btn" data="{{title:'保存'}}"></template>
\ No newline at end of file
...@@ -12,21 +12,23 @@ ...@@ -12,21 +12,23 @@
<!--通用的分区标题--> <!--通用的分区标题-->
<template name='section_header'> <template name='section_header'>
<view class='kg-section-header'> <view class='kg-section-header'>
<view style='width:10rpx; height:30rpx;background-color:#f9aa76; margin-left:20rpx'></view> <view style='width:10rpx; height:33rpx;background-color:#f9aa76; margin-left:20rpx'></view>
<view class='kg-text-normal-gray' style='margin-left:16rpx'>{{title}}</view> <view class='kg-text-normal-gray' style='margin-left:16rpx'>{{title}}</view>
</view> </view>
</template> </template>
<template name='quantity_cell'> <template name='quantity_cell'>
<view class='kg-flex-row kg-quantity-cell'> <view class='kg-flex-row '>
<view class='g-text-normal-dark'>张小华</view> <view class='g-text-normal-dark'>张小华</view>
<!-- 输入型cell -->
<view class='kg-flex-row' hidden="{{type != 'input'}}"> <view class='kg-flex-row' hidden="{{type != 'input'}}">
<input class='kg-border' style='width:140rpx;margin-right:10rpx;'></input> <input class='kg-border' style='width:140rpx;margin-right:10rpx;'></input>
<view class='kg-text-normal-gray'>{{unit}}</view> <view class='kg-text-normal-gray'>{{unit}}</view>
</view> </view>
<!-- 选择型cell -->
<view class='kg-flex-row' hidden="{{type != 'select'}}"> <view class='kg-flex-row' hidden="{{type != 'select'}}">
<view wx:for="{{['少','正常','多']}}"> <view wx:for="{{options}}">
<view class="eat_category_btn {{selectIndex == index ? 'selected' : ''}}" bindtap='tap' data-index='{{index}}' style='width: 100rpx;margin-right: 0rpx;margin-bottom: 0rpx;margin-left:20rpx;'>{{item}}</view> <view class="eat_category_btn {{selectIndex == index ? 'selected' : ''}}" bindtap='tap' data-index='{{index}}' style='width: 120rpx;margin-right: 0rpx;margin-bottom: 0rpx;margin-left:20rpx;'>{{item}}</view>
</view> </view>
</view> </view>
</view> </view>
......
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 to comment